Lines Matching refs:bsf
24 #include "bsf.h"
86 static int h264_metadata_insert_aud(AVBSFContext *bsf,
89 H264MetadataContext *ctx = bsf->priv_data;
119 av_log(bsf, AV_LOG_ERROR, "No usable primary_pic_type: "
132 av_log(bsf, AV_LOG_ERROR, "Failed to insert AUD.\n");
139 static int h264_metadata_update_sps(AVBSFContext *bsf,
142 H264MetadataContext *ctx = bsf->priv_data;
249 av_log(bsf, AV_LOG_ERROR, "Invalid value for crop_%s: " \
303 av_log(bsf, AV_LOG_WARNING, "Stream does not appear to "
331 static int h264_metadata_handle_display_orientation(AVBSFContext *bsf,
336 H264MetadataContext *ctx = bsf->priv_data;
372 av_log(bsf, AV_LOG_ERROR, "Failed to attach extracted "
428 av_log(bsf, AV_LOG_WARNING, "Input display matrix is not "
463 av_log(bsf, AV_LOG_ERROR, "Failed to add display orientation "
473 static int h264_metadata_update_fragment(AVBSFContext *bsf, AVPacket *pkt,
476 H264MetadataContext *ctx = bsf->priv_data;
485 err = h264_metadata_insert_aud(bsf, au);
494 err = h264_metadata_update_sps(bsf, au->units[i].content);
518 av_log(bsf, AV_LOG_ERROR, "Failed to add user data SEI "
537 err = h264_metadata_handle_display_orientation(bsf, pkt, au,
556 static int h264_metadata_init(AVBSFContext *bsf)
558 H264MetadataContext *ctx = bsf->priv_data;
587 av_log(bsf, AV_LOG_ERROR, "Invalid user data: "
593 return ff_cbs_bsf_generic_init(bsf, &h264_metadata_type);