Lines Matching defs:frame
150 static inline void idct_put(MDECContext *a, AVFrame *frame, int mb_x, int mb_y)
153 int linesize = frame->linesize[0];
155 uint8_t *dest_y = frame->data[0] + (mb_y * 16* linesize ) + mb_x * 16;
156 uint8_t *dest_cb = frame->data[1] + (mb_y * 8 * frame->linesize[1]) + mb_x * 8;
157 uint8_t *dest_cr = frame->data[2] + (mb_y * 8 * frame->linesize[2]) + mb_x * 8;
165 a->idsp.idct_put(dest_cb, frame->linesize[1], block[4]);
166 a->idsp.idct_put(dest_cr, frame->linesize[2], block[5]);
170 static int decode_frame(AVCodecContext *avctx, AVFrame *frame,
178 if ((ret = ff_thread_get_buffer(avctx, frame, 0)) < 0)
180 frame->pict_type = AV_PICTURE_TYPE_I;
181 frame->key_frame = 1;
203 idct_put(a, frame, a->mb_x, a->mb_y);