Lines Matching defs:avctx

56     AVCodecContext *avctx;
93 av_log(s->avctx, AV_LOG_ERROR, "Buffer is too small\n");
182 av_log(s->avctx, AV_LOG_ERROR, "Compressing failed\n");
199 av_log(s->avctx, AV_LOG_ERROR, "Unsupported compression method: %d\n",
247 static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
250 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(avctx->pix_fmt);
251 TiffEncoderContext *s = avctx->priv_data;
265 s->width = avctx->width;
266 s->height = avctx->height;
273 avctx->bits_per_coded_sample =
277 switch (avctx->pix_fmt) {
286 avctx->bits_per_coded_sample = 0x28;
289 alpha = avctx->pix_fmt == AV_PIX_FMT_GRAY8A || avctx->pix_fmt == AV_PIX_FMT_YA16LE;
306 av_pix_fmt_get_chroma_sub_sample(avctx->pix_fmt, &shift_h, &shift_v);
313 av_log(s->avctx, AV_LOG_ERROR,
336 packet_size = avctx->height * bytes_per_row * 2 +
337 avctx->height * 4 + AV_INPUT_BUFFER_MIN_SIZE;
339 if ((ret = ff_alloc_packet(avctx, pkt, packet_size)) < 0)
373 av_log(s->avctx, AV_LOG_ERROR, "Not enough memory\n");
406 av_log(s->avctx, AV_LOG_ERROR, "Encode strip failed\n");
438 av_log(s->avctx, AV_LOG_ERROR, "Encode strip failed\n");
473 if (avctx->sample_aspect_ratio.num > 0 &&
474 avctx->sample_aspect_ratio.den > 0) {
476 avctx->sample_aspect_ratio);
483 if (!(avctx->flags & AV_CODEC_FLAG_BITEXACT))
487 if (avctx->pix_fmt == AV_PIX_FMT_PAL8) {
503 if (avctx->chroma_sample_location == AVCHROMA_LOC_TOPLEFT)
525 static av_cold int encode_init(AVCodecContext *avctx)
527 TiffEncoderContext *s = avctx->priv_data;
531 av_log(avctx, AV_LOG_ERROR,
537 s->avctx = avctx;
542 static av_cold int encode_close(AVCodecContext *avctx)
544 TiffEncoderContext *s = avctx->priv_data;