Lines Matching defs:frame
116 static void tgq_idct_put_mb(TgqContext *s, int16_t (*block)[64], AVFrame *frame,
119 ptrdiff_t linesize = frame->linesize[0];
120 uint8_t *dest_y = frame->data[0] + (mb_y * 16 * linesize) + mb_x * 16;
121 uint8_t *dest_cb = frame->data[1] + (mb_y * 8 * frame->linesize[1]) + mb_x * 8;
122 uint8_t *dest_cr = frame->data[2] + (mb_y * 8 * frame->linesize[2]) + mb_x * 8;
129 ff_ea_idct_put_c(dest_cb, frame->linesize[1], block[4]);
130 ff_ea_idct_put_c(dest_cr, frame->linesize[2], block[5]);
143 static void tgq_idct_put_mb_dconly(TgqContext *s, AVFrame *frame,
146 ptrdiff_t linesize = frame->linesize[0];
147 uint8_t *dest_y = frame->data[0] + (mb_y * 16 * linesize) + mb_x * 16;
148 uint8_t *dest_cb = frame->data[1] + (mb_y * 8 * frame->linesize[1]) + mb_x * 8;
149 uint8_t *dest_cr = frame->data[2] + (mb_y * 8 * frame->linesize[2]) + mb_x * 8;
155 tgq_dconly(s, dest_cb, frame->linesize[1], dc[4]);
156 tgq_dconly(s, dest_cr, frame->linesize[2], dc[5]);
160 static int tgq_decode_mb(TgqContext *s, AVFrame *frame, int mb_y, int mb_x)
178 tgq_idct_put_mb(s, s->block, frame, mb_x, mb_y);
196 tgq_idct_put_mb_dconly(s, frame, mb_x, mb_y, dc);
212 static int tgq_decode_frame(AVCodecContext *avctx, AVFrame *frame,
242 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
244 frame->key_frame = 1;
245 frame->pict_type = AV_PICTURE_TYPE_I;
249 if (tgq_decode_mb(s, frame, y, x) < 0)