Lines Matching refs:frame
36 int (*decode)(AVCodecContext *avctx, AVFrame *frame,
41 static int bitpacked_decode_uyvy422(AVCodecContext *avctx, AVFrame *frame,
48 frame->buf[0] = av_buffer_ref(avpkt->buf);
49 if (!frame->buf[0]) {
53 ret = av_image_fill_arrays(frame->data, frame->linesize, avpkt->data,
56 av_buffer_unref(&frame->buf[0]);
63 static int bitpacked_decode_yuv422p10(AVCodecContext *avctx, AVFrame *frame,
72 ret = ff_thread_get_buffer(avctx, frame, 0);
87 y = (uint16_t*)(frame->data[0] + i * frame->linesize[0]);
88 u = (uint16_t*)(frame->data[1] + i * frame->linesize[1]);
89 v = (uint16_t*)(frame->data[2] + i * frame->linesize[2]);
125 static int bitpacked_decode(AVCodecContext *avctx, AVFrame *frame,
132 res = bc->decode(avctx, frame, avpkt);
136 frame->pict_type = AV_PICTURE_TYPE_I;
137 frame->key_frame = 1;