Lines Matching defs:avctx
51 static int cpia_decode_frame(AVCodecContext *avctx, AVFrame *rframe,
54 CpiaContext* const cpia = avctx->priv_data;
67 if ( avpkt->size < FRAME_HEADER_SIZE + avctx->height * 3
74 av_log(avctx, AV_LOG_ERROR, "Invalid header!\n");
80 avpriv_report_missing_feature(avctx, "4:2:2 subsampling");
84 avpriv_report_missing_feature(avctx, "YUV byte order UYVY");
88 avpriv_report_missing_feature(avctx, "Decimation");
104 if ((ret = ff_reget_buffer(avctx, frame, 0)) < 0)
119 av_log(avctx, AV_LOG_WARNING, "Frame ended unexpectedly!\n");
124 av_log(avctx, AV_LOG_WARNING, "Wrong line length %d or line not terminated properly (found 0x%02x)!\n", linelength, src[linelength - 1]);
145 av_log(avctx, AV_LOG_WARNING, "Decoded data exceeded linesize!\n");
165 av_log(avctx, AV_LOG_WARNING, "Decoded data exceeded linesize!\n");
194 static av_cold int cpia_decode_init(AVCodecContext *avctx)
196 CpiaContext *s = avctx->priv_data;
199 avctx->pix_fmt = AV_PIX_FMT_YUV420P;
204 if (avctx->time_base.num == 1 && avctx->time_base.den == 1000000) {
205 avctx->time_base.num = 1;
206 avctx->time_base.den = 60;
216 static av_cold int cpia_decode_end(AVCodecContext *avctx)
218 CpiaContext *s = avctx->priv_data;