Lines Matching defs:frame
102 * simply point to the current's frame gm_params as they will be initialized
758 "Failed to allocate reference frame buffer %d.\n", i);
766 "Failed to allocate current frame buffer.\n");
808 AVFrame *frame;
813 av_log(avctx, AV_LOG_ERROR, "Failed to update context with frame header\n");
820 frame = f->f;
821 frame->key_frame = header->frame_type == AV1_FRAME_KEY;
826 frame->pict_type = AV_PICTURE_TYPE_I;
829 frame->pict_type = AV_PICTURE_TYPE_P;
832 frame->pict_type = AV_PICTURE_TYPE_SP;
855 static int export_film_grain(AVCodecContext *avctx, AVFrame *frame)
865 fgp = av_film_grain_params_create_side_data(frame);
915 static int set_output_frame(AVCodecContext *avctx, AVFrame *frame,
927 ret = av_frame_ref(frame, srcframe);
932 ret = export_film_grain(avctx, frame);
934 av_frame_unref(frame);
939 frame->pts = pkt->pts;
940 frame->pkt_dts = pkt->dts;
941 frame->pkt_size = pkt->size;
959 "Failed to update frame %d in reference list\n", i);
997 "Failed to allocate space for current frame.\n");
1009 static int av1_decode_frame(AVCodecContext *avctx, AVFrame *frame,
1021 av_log(avctx, AV_LOG_DEBUG, "Total obu for this frame:%d.\n",
1095 s->raw_frame_header = &obu->obu.frame.header;
1105 av_log(avctx, AV_LOG_ERROR, "Failed to get reference frame.\n");
1116 ret = set_output_frame(avctx, frame, pkt, got_frame);
1118 av_log(avctx, AV_LOG_ERROR, "Set output frame error.\n");
1128 av_log(avctx, AV_LOG_ERROR, "Get current frame error\n");
1139 av_log(avctx, AV_LOG_ERROR, "HW accel start frame fail.\n");
1154 raw_tile_group = &obu->obu.frame.tile_group;
1188 av_log(avctx, AV_LOG_ERROR, "HW accel end frame fail.\n");
1200 ret = set_output_frame(avctx, frame, pkt, got_frame);
1202 av_log(avctx, AV_LOG_ERROR, "Set output frame error\n");