Lines Matching refs:bsf
21 #include "bsf.h"
34 static void av1_frame_merge_flush(AVBSFContext *bsf)
36 AV1FMergeContext *ctx = bsf->priv_data;
44 static int av1_frame_merge_filter(AVBSFContext *bsf, AVPacket *out)
46 AV1FMergeContext *ctx = bsf->priv_data;
51 err = ff_bsf_get_packet_ref(bsf, in);
60 av_log(bsf, AV_LOG_ERROR, "Failed to read packet.\n");
65 av_log(bsf, AV_LOG_ERROR, "No OBU in packet.\n");
71 av_log(bsf, AV_LOG_ERROR, "Missing Temporal Delimiter.\n");
78 av_log(bsf, AV_LOG_ERROR, "Temporal Delimiter in the middle of a packet.\n");
88 av_log(bsf, AV_LOG_ERROR, "Failed to write packet.\n");
121 av1_frame_merge_flush(bsf);
126 static int av1_frame_merge_init(AVBSFContext *bsf)
128 AV1FMergeContext *ctx = bsf->priv_data;
136 err = ff_cbs_init(&ctx->input, AV_CODEC_ID_AV1, bsf);
140 return ff_cbs_init(&ctx->output, AV_CODEC_ID_AV1, bsf);
143 static void av1_frame_merge_close(AVBSFContext *bsf)
145 AV1FMergeContext *ctx = bsf->priv_data;