Lines Matching defs:context
78 RawVideoContext *context = avctx->priv_data;
89 ff_set_systematic_pal2(context->palette, avctx->pix_fmt);
90 context->length = avpicture_get_size(avctx->pix_fmt, avctx->width, avctx->height);
94 context->buffer = av_malloc(context->length);
95 if (!context->buffer)
98 context->pic.pict_type = AV_PICTURE_TYPE_I;
99 context->pic.key_frame = 1;
101 avctx->coded_frame= &context->pic;
105 context->flip=1;
121 RawVideoContext *context = avctx->priv_data;
133 if(buf_size < context->length - (avctx->pix_fmt==PIX_FMT_PAL8 ? 256*4 : 0))
137 if (context->buffer) {
139 uint8_t *dst = context->buffer;
140 buf_size = context->length - 256*4;
158 buf += buf_size - context->length;
163 if((avctx->pix_fmt==PIX_FMT_PAL8 && buf_size < context->length) ||
166 frame->data[1]= context->palette;
179 if(context->flip)
203 RawVideoContext *context = avctx->priv_data;
205 av_freep(&context->buffer);