Lines Matching defs:avctx
39 AVCodecContext *avctx;
46 static av_cold int cmv_decode_init(AVCodecContext *avctx){
47 CmvContext *s = avctx->priv_data;
49 s->avctx = avctx;
50 avctx->pix_fmt = AV_PIX_FMT_PAL8;
66 for (i=0; i < s->avctx->height && buf_end - buf >= s->avctx->width; i++) {
67 memcpy(dst, buf, s->avctx->width);
69 buf += s->avctx->width;
95 const uint8_t *raw = buf + (s->avctx->width*s->avctx->height/16);
99 for(y=0; y<s->avctx->height/4; y++)
100 for(x=0; x<s->avctx->width/4 && buf_end - buf > i; x++) {
116 x*4, y*4, xoffset, yoffset, s->avctx->width, s->avctx->height);
125 x*4, y*4, xoffset, yoffset, s->avctx->width, s->avctx->height);
136 av_log(s->avctx, AV_LOG_WARNING, "truncated header\n");
143 if (s->width != s->avctx->width ||
144 s->height != s->avctx->height) {
149 ret = ff_set_dimensions(s->avctx, s->width, s->height);
155 s->avctx->framerate = (AVRational){ fps, 1 };
172 static int cmv_decode_frame(AVCodecContext *avctx, AVFrame *frame,
177 CmvContext *s = avctx->priv_data;
194 if ((ret = av_image_check_size(s->width, s->height, 0, s->avctx)) < 0)
197 if ((ret = ff_get_buffer(avctx, frame, AV_GET_BUFFER_FLAG_REF)) < 0)
223 static av_cold int cmv_decode_end(AVCodecContext *avctx){
224 CmvContext *s = avctx->priv_data;