Home
last modified time | relevance | path

Searched refs:bsf (Results 1 – 25 of 80) sorted by relevance

1234

/third_party/ffmpeg/tools/
Dtarget_bsf_fuzzer.c44 AVBSFContext *bsf = NULL; in LLVMFuzzerTestOneInput() local
63 res = av_bsf_alloc(f, &bsf); in LLVMFuzzerTestOneInput()
73 bsf->par_in->width = bytestream2_get_le32(&gbc); in LLVMFuzzerTestOneInput()
74 bsf->par_in->height = bytestream2_get_le32(&gbc); in LLVMFuzzerTestOneInput()
75 bsf->par_in->bit_rate = bytestream2_get_le64(&gbc); in LLVMFuzzerTestOneInput()
76 bsf->par_in->bits_per_coded_sample = bytestream2_get_le32(&gbc); in LLVMFuzzerTestOneInput()
82 bsf->par_in->codec_id = id; in LLVMFuzzerTestOneInput()
83 bsf->par_in->codec_tag = bytestream2_get_le32(&gbc); in LLVMFuzzerTestOneInput()
88 bsf->par_in->sample_rate = bytestream2_get_le32(&gbc); in LLVMFuzzerTestOneInput()
89bsf->par_in->channels = (unsigned)bytestream2_get_le32(&gbc) % FF_SANE_NB_CHANNE… in LLVMFuzzerTestOneInput()
[all …]
/third_party/ffmpeg/libavcodec/
Dcbs_bsf.c22 static int cbs_bsf_update_side_data(AVBSFContext *bsf, AVPacket *pkt) in cbs_bsf_update_side_data() argument
24 CBSBSFContext *ctx = bsf->priv_data; in cbs_bsf_update_side_data()
37 av_log(bsf, AV_LOG_ERROR, in cbs_bsf_update_side_data()
42 err = ctx->type->update_fragment(bsf, NULL, frag); in cbs_bsf_update_side_data()
48 av_log(bsf, AV_LOG_ERROR, in cbs_bsf_update_side_data()
63 int ff_cbs_bsf_generic_filter(AVBSFContext *bsf, AVPacket *pkt) in ff_cbs_bsf_generic_filter() argument
65 CBSBSFContext *ctx = bsf->priv_data; in ff_cbs_bsf_generic_filter()
69 err = ff_bsf_get_packet_ref(bsf, pkt); in ff_cbs_bsf_generic_filter()
73 err = cbs_bsf_update_side_data(bsf, pkt); in ff_cbs_bsf_generic_filter()
79 av_log(bsf, AV_LOG_ERROR, "Failed to read %s from packet.\n", in ff_cbs_bsf_generic_filter()
[all …]
Dvp9_raw_reorder_bsf.c74 static int vp9_raw_reorder_frame_parse(AVBSFContext *bsf, VP9RawReorderFrame *frame) in vp9_raw_reorder_frame_parse() argument
90 av_log(bsf, AV_LOG_ERROR, "Invalid frame marker: %u.\n", in vp9_raw_reorder_frame_parse()
101 av_log(bsf, AV_LOG_ERROR, "Profile reserved_zero bit set: " in vp9_raw_reorder_frame_parse()
120 av_log(bsf, AV_LOG_ERROR, "Invalid frame sync code: %06x.\n", in vp9_raw_reorder_frame_parse()
139 av_log(bsf, AV_LOG_ERROR, "Invalid frame sync code: " in vp9_raw_reorder_frame_parse()
171 static int vp9_raw_reorder_make_output(AVBSFContext *bsf, in vp9_raw_reorder_make_output() argument
175 VP9RawReorderContext *ctx = bsf->priv_data; in vp9_raw_reorder_make_output()
203 av_log(bsf, AV_LOG_DEBUG, "Output and display frame " in vp9_raw_reorder_make_output()
212 av_log(bsf, AV_LOG_DEBUG, "Output frame %"PRId64" " in vp9_raw_reorder_make_output()
216 av_log(bsf, AV_LOG_DEBUG, "Output unshown frame " in vp9_raw_reorder_make_output()
[all …]
Dav1_frame_merge_bsf.c34 static void av1_frame_merge_flush(AVBSFContext *bsf) in av1_frame_merge_flush() argument
36 AV1FMergeContext *ctx = bsf->priv_data; in av1_frame_merge_flush()
44 static int av1_frame_merge_filter(AVBSFContext *bsf, AVPacket *out) in av1_frame_merge_filter() argument
46 AV1FMergeContext *ctx = bsf->priv_data; in av1_frame_merge_filter()
51 err = ff_bsf_get_packet_ref(bsf, in); in av1_frame_merge_filter()
60 av_log(bsf, AV_LOG_ERROR, "Failed to read packet.\n"); in av1_frame_merge_filter()
65 av_log(bsf, AV_LOG_ERROR, "No OBU in packet.\n"); in av1_frame_merge_filter()
71 av_log(bsf, AV_LOG_ERROR, "Missing Temporal Delimiter.\n"); in av1_frame_merge_filter()
78 av_log(bsf, AV_LOG_ERROR, "Temporal Delimiter in the middle of a packet.\n"); in av1_frame_merge_filter()
88 av_log(bsf, AV_LOG_ERROR, "Failed to write packet.\n"); in av1_frame_merge_filter()
[all …]
Dtrace_headers_bsf.c36 static int trace_headers_init(AVBSFContext *bsf) in trace_headers_init() argument
38 TraceHeadersContext *ctx = bsf->priv_data; in trace_headers_init()
41 err = ff_cbs_init(&ctx->cbc, bsf->par_in->codec_id, bsf); in trace_headers_init()
48 if (bsf->par_in->extradata) { in trace_headers_init()
51 av_log(bsf, AV_LOG_INFO, "Extradata\n"); in trace_headers_init()
53 err = ff_cbs_read_extradata(ctx->cbc, frag, bsf->par_in); in trace_headers_init()
61 static void trace_headers_close(AVBSFContext *bsf) in trace_headers_close() argument
63 TraceHeadersContext *ctx = bsf->priv_data; in trace_headers_close()
69 static int trace_headers(AVBSFContext *bsf, AVPacket *pkt) in trace_headers() argument
71 TraceHeadersContext *ctx = bsf->priv_data; in trace_headers()
[all …]
Dfilter_units_bsf.c102 static int filter_units_filter(AVBSFContext *bsf, AVPacket *pkt) in filter_units_filter() argument
104 FilterUnitsContext *ctx = bsf->priv_data; in filter_units_filter()
108 err = ff_bsf_get_packet_ref(bsf, pkt); in filter_units_filter()
117 av_log(bsf, AV_LOG_ERROR, "Failed to read packet.\n"); in filter_units_filter()
139 av_log(bsf, AV_LOG_ERROR, "Failed to write packet.\n"); in filter_units_filter()
151 static int filter_units_init(AVBSFContext *bsf) in filter_units_init() argument
153 FilterUnitsContext *ctx = bsf->priv_data; in filter_units_init()
157 av_log(bsf, AV_LOG_ERROR, "Exactly one of pass_types or " in filter_units_init()
167 av_log(bsf, AV_LOG_ERROR, "Failed to parse pass_types.\n"); in filter_units_init()
175 av_log(bsf, AV_LOG_ERROR, "Failed to parse remove_types.\n"); in filter_units_init()
[all …]
Dbsf.c73 static const char *bsf_to_name(void *bsf) in bsf_to_name() argument
75 return ((AVBSFContext *)bsf)->filter->name; in bsf_to_name()
280 static int bsf_list_init(AVBSFContext *bsf) in bsf_list_init() argument
282 BSFListContext *lst = bsf->priv_data; in bsf_list_init()
284 const AVCodecParameters *cod_par = bsf->par_in; in bsf_list_init()
285 AVRational tb = bsf->time_base_in; in bsf_list_init()
302 bsf->time_base_out = tb; in bsf_list_init()
303 ret = avcodec_parameters_copy(bsf->par_out, cod_par); in bsf_list_init()
309 static int bsf_list_filter(AVBSFContext *bsf, AVPacket *out) in bsf_list_filter() argument
311 BSFListContext *lst = bsf->priv_data; in bsf_list_filter()
[all …]
Dh264_redundant_pps_bsf.c79 static int h264_redundant_pps_update_fragment(AVBSFContext *bsf, in h264_redundant_pps_update_fragment() argument
83 H264RedundantPPSContext *ctx = bsf->priv_data; in h264_redundant_pps_update_fragment()
98 av_log(bsf, AV_LOG_VERBOSE, "Deleting redundant PPS " in h264_redundant_pps_update_fragment()
115 static void h264_redundant_pps_flush(AVBSFContext *bsf) in h264_redundant_pps_flush() argument
117 H264RedundantPPSContext *ctx = bsf->priv_data; in h264_redundant_pps_flush()
128 static int h264_redundant_pps_init(AVBSFContext *bsf) in h264_redundant_pps_init() argument
130 H264RedundantPPSContext *ctx = bsf->priv_data; in h264_redundant_pps_init()
134 return ff_cbs_bsf_generic_init(bsf, &h264_redundant_pps_type); in h264_redundant_pps_init()
Dh265_metadata_bsf.c66 static void h265_metadata_guess_level(AVBSFContext *bsf, in h265_metadata_guess_level() argument
69 H265MetadataContext *ctx = bsf->priv_data; in h265_metadata_guess_level()
129 av_log(bsf, AV_LOG_DEBUG, "Stream appears to conform to " in h265_metadata_guess_level()
135 static void h265_metadata_update_level(AVBSFContext *bsf, in h265_metadata_update_level() argument
138 H265MetadataContext *ctx = bsf->priv_data; in h265_metadata_update_level()
146 av_log(bsf, AV_LOG_WARNING, "Unable to determine level " in h265_metadata_update_level()
158 static int h265_metadata_update_vps(AVBSFContext *bsf, in h265_metadata_update_vps() argument
161 H265MetadataContext *ctx = bsf->priv_data; in h265_metadata_update_vps()
183 h265_metadata_update_level(bsf, &vps->profile_tier_level.general_level_idc); in h265_metadata_update_vps()
188 static int h265_metadata_update_sps(AVBSFContext *bsf, in h265_metadata_update_sps() argument
[all …]
Dprores_metadata_bsf.c43 static int prores_metadata(AVBSFContext *bsf, AVPacket *pkt) in prores_metadata() argument
45 ProresMetadataContext *ctx = bsf->priv_data; in prores_metadata()
50 ret = ff_bsf_get_packet_ref(bsf, pkt); in prores_metadata()
63 av_log(bsf, AV_LOG_ERROR, "not enough data in prores frame\n"); in prores_metadata()
69 av_log(bsf, AV_LOG_ERROR, "invalid frame header\n"); in prores_metadata()
75 av_log(bsf, AV_LOG_ERROR, "invalid frame header size\n"); in prores_metadata()
98 static int prores_metadata_init(AVBSFContext *bsf) in prores_metadata_init() argument
100 ProresMetadataContext *ctx = bsf->priv_data; in prores_metadata_init()
113 … av_log(bsf, AV_LOG_ERROR, "Color primaries %d is not a valid value\n", ctx->color_primaries); in prores_metadata_init()
125 av_log(bsf, AV_LOG_ERROR, "Colorspace %d is not a valid value\n", ctx->matrix_coefficients); in prores_metadata_init()
Dav1_metadata_bsf.c47 static int av1_metadata_update_sequence_header(AVBSFContext *bsf, in av1_metadata_update_sequence_header() argument
50 AV1MetadataContext *ctx = bsf->priv_data; in av1_metadata_update_sequence_header()
71 av_log(bsf, AV_LOG_WARNING, "Warning: color_range cannot be set " in av1_metadata_update_sequence_header()
80 av_log(bsf, AV_LOG_WARNING, "Warning: chroma_sample_position " in av1_metadata_update_sequence_header()
107 static int av1_metadata_update_fragment(AVBSFContext *bsf, AVPacket *pkt, in av1_metadata_update_fragment() argument
110 AV1MetadataContext *ctx = bsf->priv_data; in av1_metadata_update_fragment()
116 err = av1_metadata_update_sequence_header(bsf, &obu->obu.sequence_header); in av1_metadata_update_fragment()
130 av_log(bsf, AV_LOG_ERROR, "Failed to insert Temporal Delimiter.\n"); in av1_metadata_update_fragment()
152 static int av1_metadata_init(AVBSFContext *bsf) in av1_metadata_init() argument
154 AV1MetadataContext *ctx = bsf->priv_data; in av1_metadata_init()
[all …]
Dh264_metadata_bsf.c84 static int h264_metadata_insert_aud(AVBSFContext *bsf, in h264_metadata_insert_aud() argument
87 H264MetadataContext *ctx = bsf->priv_data; in h264_metadata_insert_aud()
117 av_log(bsf, AV_LOG_ERROR, "No usable primary_pic_type: " in h264_metadata_insert_aud()
130 av_log(bsf, AV_LOG_ERROR, "Failed to insert AUD.\n"); in h264_metadata_insert_aud()
137 static int h264_metadata_update_sps(AVBSFContext *bsf, in h264_metadata_update_sps() argument
140 H264MetadataContext *ctx = bsf->priv_data; in h264_metadata_update_sps()
243 av_log(bsf, AV_LOG_ERROR, "Invalid value for crop_%s: " \ in h264_metadata_update_sps()
297 av_log(bsf, AV_LOG_WARNING, "Stream does not appear to " in h264_metadata_update_sps()
325 static int h264_metadata_handle_display_orientation(AVBSFContext *bsf, in h264_metadata_handle_display_orientation() argument
330 H264MetadataContext *ctx = bsf->priv_data; in h264_metadata_handle_display_orientation()
[all …]
Dvp9_metadata_bsf.c38 static int vp9_metadata_update_fragment(AVBSFContext *bsf, AVPacket *pkt, in vp9_metadata_update_fragment() argument
41 VP9MetadataContext *ctx = bsf->priv_data; in vp9_metadata_update_fragment()
54 av_log(bsf, AV_LOG_WARNING, "Warning: RGB " in vp9_metadata_update_fragment()
66 av_log(bsf, AV_LOG_WARNING, "Warning: Color space RGB " in vp9_metadata_update_fragment()
74 av_log(bsf, AV_LOG_WARNING, "Warning: Intra-only frames in " in vp9_metadata_update_fragment()
90 static int vp9_metadata_init(AVBSFContext *bsf) in vp9_metadata_init() argument
92 return ff_cbs_bsf_generic_init(bsf, &vp9_metadata_type); in vp9_metadata_init()
Dmpeg2_metadata_bsf.c47 static int mpeg2_metadata_update_fragment(AVBSFContext *bsf, in mpeg2_metadata_update_fragment() argument
51 MPEG2MetadataContext *ctx = bsf->priv_data; in mpeg2_metadata_update_fragment()
77 av_log(bsf, AV_LOG_WARNING, "Stream contains a sequence " in mpeg2_metadata_update_fragment()
143 av_log(bsf, AV_LOG_ERROR, "Failed to insert new sequence " in mpeg2_metadata_update_fragment()
178 static int mpeg2_metadata_init(AVBSFContext *bsf) in mpeg2_metadata_init() argument
180 MPEG2MetadataContext *ctx = bsf->priv_data; in mpeg2_metadata_init()
184 av_log(bsf, AV_LOG_ERROR, "The value 0 for %s is " \ in mpeg2_metadata_init()
194 return ff_cbs_bsf_generic_init(bsf, &mpeg2_metadata_type); in mpeg2_metadata_init()
Dhapqa_extract_bsf.c48 static int hapqa_extract(AVBSFContext *bsf, AVPacket *pkt) in hapqa_extract() argument
50 HapqaExtractContext *ctx = bsf->priv_data; in hapqa_extract()
58 ret = ff_bsf_get_packet_ref(bsf, pkt); in hapqa_extract()
68 av_log(bsf, AV_LOG_ERROR, "Invalid section type for HAPQA %#04x.\n", section_type & 0x0F); in hapqa_extract()
93 av_log(bsf, AV_LOG_ERROR, "No valid texture found.\n"); in hapqa_extract()
Dbsf.h266 int av_bsf_list_append(AVBSFList *lst, AVBSFContext *bsf);
295 int av_bsf_list_finalize(AVBSFList **lst, AVBSFContext **bsf);
310 int av_bsf_list_parse_str(const char *str, AVBSFContext **bsf);
319 int av_bsf_get_null_filter(AVBSFContext **bsf);
Dcbs_bsf.h40 int (*update_fragment)(AVBSFContext *bsf, AVPacket *pkt,
66 int ff_cbs_bsf_generic_init(AVBSFContext *bsf, const CBSBSFType *type);
74 void ff_cbs_bsf_generic_close(AVBSFContext *bsf);
87 int ff_cbs_bsf_generic_filter(AVBSFContext *bsf, AVPacket *pkt);
Dbitstream_filter.c42 void av_register_bitstream_filter(AVBitStreamFilter *bsf) in av_register_bitstream_filter() argument
55 const AVBitStreamFilter *bsf; in av_bitstream_filter_init() local
57 bsf = av_bsf_get_by_name(name); in av_bitstream_filter_init()
58 if (!bsf) in av_bitstream_filter_init()
70 ctx->filter = bsf; in av_bitstream_filter_init()
/third_party/ffmpeg/libavformat/
Dav1dec.c51 static int read_header(AVFormatContext *s, const AVRational *framerate, AVBSFContext **bsf, void *l… in read_header() argument
75 ret = av_bsf_alloc(filter, bsf); in read_header()
79 ret = avcodec_parameters_copy((*bsf)->par_in, st->codecpar); in read_header()
81 av_bsf_free(bsf); in read_header()
85 ret = av_bsf_init(*bsf); in read_header()
87 av_bsf_free(bsf); in read_header()
98 AVBSFContext *bsf; member
202 return read_header(s, &c->framerate, &c->bsf, c); in annexb_read_header()
244 ret = av_bsf_send_packet(c->bsf, pkt); in annexb_read_packet()
251 ret = av_bsf_receive_packet(c->bsf, pkt); in annexb_read_packet()
[all …]
Dconcatdec.c38 AVBSFContext *bsf; member
200 AVBSFContext *bsf; in detect_stream_specific() local
216 ret = av_bsf_alloc(filter, &bsf); in detect_stream_specific()
219 cs->bsf = bsf; in detect_stream_specific()
221 ret = avcodec_parameters_copy(bsf->par_in, st->codecpar); in detect_stream_specific()
225 ret = av_bsf_init(bsf); in detect_stream_specific()
229 ret = avcodec_parameters_copy(st->codecpar, bsf->par_out); in detect_stream_specific()
384 if (cat->files[i].streams[j].bsf) in concat_read_close()
385 av_bsf_free(&cat->files[i].streams[j].bsf); in concat_read_close()
540 if (cs->bsf) { in filter_packet()
[all …]
/third_party/ffmpeg/tests/fate/
Dtruehd.mak11 FATE_TRUEHD-$(call ALLYES, TRUEHD_DEMUXER TRUEHD_MUXER TRUEHD_CORE_BSF) += fate-truehd-core-bsf
12 fate-truehd-core-bsf: CMD = md5pipe -i $(TARGET_SAMPLES)/truehd/atmos.thd -c:a copy -bsf:a truehd_c…
13 fate-truehd-core-bsf: CMP = oneline
14 fate-truehd-core-bsf: REF = 3aa5d0c7825051f3657b71fd6135183b
Dhap.mak32 #Test bsf conversion
34 …framecrc -i $(TARGET_SAMPLES)/hap/HAPQA_Snappy_1chunk_127x1.mov -c:v copy -bsf:v hapqa_extract=tex…
37 …ramecrc -i $(TARGET_SAMPLES)/hap/HAPQA_Snappy_16chunk_127x1.mov -c:v copy -bsf:v hapqa_extract=tex…
40 …framecrc -i $(TARGET_SAMPLES)/hap/HAPQA_Snappy_1chunk_127x1.mov -c:v copy -bsf:v hapqa_extract=tex…
43 …ramecrc -i $(TARGET_SAMPLES)/hap/HAPQA_Snappy_16chunk_127x1.mov -c:v copy -bsf:v hapqa_extract=tex…
46 #Test bsf conversion and mov
50 …-i $(TARGET_SAMPLES)/hap/HAPQA_NoSnappy_127x1.mov -nostdin -c:v copy -bsf:v hapqa_extract=texture=…
56 …-i $(TARGET_SAMPLES)/hap/HAPQA_NoSnappy_127x1.mov -nostdin -c:v copy -bsf:v hapqa_extract=texture=…
72 fate-hapqa-extract-bsf: $(FATE_HAPQA_EXTRACT_BSF) $(FATE_HAPQA_EXTRACT_BSF_FFPROBE)
Dffmpeg.mak144 mov "-c copy -bsf:a aac_adtstoasc" "-codec copy"
149 h264 "-c:v copy -bsf:v h264_mp4toannexb" "-codec copy"
153 h264 "-c:v copy -bsf:v h264_mp4toannexb -an" "-c:v copy"
157 …ER AVI_MUXER REMOVE_EXTRADATA_BSF) += fate-ffmpeg-bsf-remove-k fate-ffmpeg-bsf-remove-r fate-ffmpe…
158 fate-ffmpeg-bsf-remove-k: $(SAMPLES)/mpeg2/matrixbench_mpeg2.lq1.mpg
159 fate-ffmpeg-bsf-remove-k: CMD = transcode "mpeg" $(TARGET_SAMPLES)/mpeg2/matrixbench_mpeg2.lq1.mpg\
161 fate-ffmpeg-bsf-remove-r: $(SAMPLES)/mpeg2/matrixbench_mpeg2.lq1.mpg
162 fate-ffmpeg-bsf-remove-r: CMD = transcode "mpeg" $(TARGET_SAMPLES)/mpeg2/matrixbench_mpeg2.lq1.mpg\
164 fate-ffmpeg-bsf-remove-e: $(SAMPLES)/mpeg2/matrixbench_mpeg2.lq1.mpg
165 fate-ffmpeg-bsf-remove-e: CMD = transcode "mpeg" $(TARGET_SAMPLES)/mpeg2/matrixbench_mpeg2.lq1.mpg\
Dmpeg4.mak8 fate-mpeg4-bsf-unpack-bframes: CMD = md5 -i $(TARGET_SAMPLES)/mpeg4/packed_bframes.avi -flags +bite…
9 FATE_MPEG4-$(call ALLYES, AVI_DEMUXER MPEG4_UNPACK_BFRAMES_BSF AVI_MUXER) += fate-mpeg4-bsf-unpack-…
Ddca.mak78 FATE_DCA-$(call ALLYES, DTS_DEMUXER DTS_MUXER DCA_CORE_BSF) += fate-dca-core-bsf
79 fate-dca-core-bsf: CMD = md5pipe -i $(TARGET_SAMPLES)/dts/master_audio_7.1_24bit.dts -c:a copy -bsf
80 fate-dca-core-bsf: CMP = oneline
81 fate-dca-core-bsf: REF = ca22b00d8c641cd168e2f7ca8d2f340e

1234