Lines Matching +refs:frame +refs:width
41 int width, height;
42 AVFrame frame;
50 s->width = avctx->width;
51 /* width needs to be divisible by 4 for this codec to work */
52 if (s->width & 0x3)
92 * (3 * 16) + height * (width * 3 / 4) */
93 if (buf_size != 48 + s->height * (s->width * 3 / 4)) {
95 buf_size, 48 + s->height * (s->width * 3 / 4));
102 if (s->frame.data[0])
103 avctx->release_buffer(avctx, &s->frame);
105 s->frame.buffer_hints = FF_BUFFER_HINTS_VALID;
106 s->frame.reference = 0;
107 if (avctx->get_buffer(avctx, &s->frame) < 0) {
112 y_plane = s->frame.data[0];
113 u_plane = s->frame.data[1];
114 v_plane = s->frame.data[2];
118 y_ptr < (s->height * s->frame.linesize[0]);
119 y_ptr += s->frame.linesize[0] - s->width,
120 u_ptr += s->frame.linesize[1] - s->width / 4,
121 v_ptr += s->frame.linesize[2] - s->width / 4) {
140 pixel_groups = s->width / 4 - 1;
165 *(AVFrame*)data= s->frame;
174 if (s->frame.data[0])
175 avctx->release_buffer(avctx, &s->frame);