Lines Matching defs:frame
146 * Decode inter-frame
149 static int tgv_decode_inter(TgvContext *s, AVFrame *frame,
226 /* read vectors and build frame */
258 frame->data[0][(y * 4 + j) * frame->linesize[0] + (x * 4 + i)] =
265 static int tgv_decode_frame(AVCodecContext *avctx, AVFrame *frame,
307 if ((ret = ff_get_buffer(avctx, frame, AV_GET_BUFFER_FLAG_REF)) < 0)
310 memcpy(frame->data[1], s->palette, AVPALETTE_SIZE);
314 frame->key_frame = 1;
315 frame->pict_type = AV_PICTURE_TYPE_I;
322 av_log(avctx, AV_LOG_WARNING, "truncated intra frame\n");
326 memcpy(frame->data[0] + y * frame->linesize[0],
331 av_log(avctx, AV_LOG_WARNING, "inter frame without corresponding intra frame\n");
334 frame->key_frame = 0;
335 frame->pict_type = AV_PICTURE_TYPE_P;
336 if (tgv_decode_inter(s, frame, buf, buf_end) < 0) {
337 av_log(avctx, AV_LOG_WARNING, "truncated inter frame\n");
343 if ((ret = av_frame_ref(s->last_frame, frame)) < 0)