Lines Matching defs:frame
47 static int m101_decode_frame(AVCodecContext *avctx, AVFrame *frame,
56 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
58 frame->pict_type = AV_PICTURE_TYPE_I;
59 frame->key_frame = 1;
72 frame->interlaced_frame = ((avctx->extradata[3*4] & 3) != 3);
73 if (frame->interlaced_frame)
74 frame->top_field_first = avctx->extradata[3*4] & 1;
78 if (frame->interlaced_frame)
79 src_y = ((y&1)^frame->top_field_first) ? y/2 : (y/2 + avctx->height/2);
81 uint8_t *line = frame->data[0] + y*frame->linesize[0];
85 uint16_t *luma = (uint16_t*)&frame->data[0][y*frame->linesize[0]];
86 uint16_t *cb = (uint16_t*)&frame->data[1][y*frame->linesize[1]];
87 uint16_t *cr = (uint16_t*)&frame->data[2][y*frame->linesize[2]];