Lines Matching defs:frame
136 static void copy_processed_frame(AVCodecContext *avctx, AVFrame *frame)
140 uint8_t *dst = frame->data[0];
146 dst += frame->linesize[0];
391 static int hnm_decode_frame(AVCodecContext *avctx, AVFrame *frame,
412 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
421 copy_processed_frame(avctx, frame);
422 frame->pict_type = AV_PICTURE_TYPE_I;
423 frame->key_frame = 1;
424 memcpy(frame->data[1], hnm->palette, 256 * 4);
427 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
439 copy_processed_frame(avctx, frame);
440 frame->pict_type = AV_PICTURE_TYPE_P;
441 frame->key_frame = 0;
442 memcpy(frame->data[1], hnm->palette, 256 * 4);