Go to the documentation of this file.
45 ctx->cbc->trace_enable = 1;
47 ctx->cbc->trace_context =
ctx->cbc;
48 ctx->cbc->trace_read_callback = ff_cbs_trace_read_log;
55 err = ff_cbs_read_extradata(
ctx->cbc, frag, bsf->
par_in);
57 ff_cbs_fragment_reset(frag);
67 ff_cbs_fragment_free(&
ctx->fragment);
68 ff_cbs_close(&
ctx->cbc);
75 char tmp[256] = { 0 };
103 err = ff_cbs_read_packet_side_data(
ctx->cbc, frag,
pkt);
104 ff_cbs_fragment_reset(frag);
113 err = ff_cbs_read_packet(
ctx->cbc, frag,
pkt);
115 ff_cbs_fragment_reset(frag);
123 .
p.
name =
"trace_headers",
124 .p.codec_ids = ff_cbs_all_codec_ids,
void av_packet_unref(AVPacket *pkt)
Wipe the packet.
AVCodecParameters * par_in
Parameters of the input stream.
uint8_t * extradata
Extra binary data needed for initializing the decoder, codec-dependent.
@ AV_PKT_DATA_NEW_EXTRADATA
The AV_PKT_DATA_NEW_EXTRADATA is used to notify the codec or the format that the extradata buffer was...
Context structure for coded bitstream operations.
void(* filter)(uint8_t *src, int stride, int qscale)
int64_t duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
size_t av_strlcatf(char *dst, size_t size, const char *fmt,...)
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
The bitstream filter state.
#define AV_PKT_FLAG_CORRUPT
The packet content is corrupted.
Coded bitstream fragment structure, combining one or more units.
av_cold void CBS_FUNC() close(CodedBitstreamContext **ctx_ptr)
Close a context and free all internal state.
AVBitStreamFilter p
The public AVBitStreamFilter.
int(* init)(AVBSFContext *ctx)
#define AV_NOPTS_VALUE
Undefined timestamp value.
int64_t dts
Decompression timestamp in AVStream->time_base units; the time at which the packet is decompressed.
int flags
A combination of AV_PKT_FLAG values.
#define AV_LOG_INFO
Standard information.
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...
uint8_t * av_packet_get_side_data(const AVPacket *pkt, enum AVPacketSideDataType type, size_t *size)
Get side information from packet.
void * priv_data
Opaque filter-specific private data.
size_t av_strlcat(char *dst, const char *src, size_t size)
Append the string src to the string dst, but to a total length of no more than size - 1 bytes,...
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
This structure stores compressed data.
int ff_bsf_get_packet_ref(AVBSFContext *ctx, AVPacket *pkt)
Called by bitstream filters to get packet for filtering.