73 char tmp[256] = { 0 };
108 .
name =
"trace_headers",
static av_cold int init(AVCodecContext *avctx)
int ff_cbs_init(CodedBitstreamContext **ctx_ptr, enum AVCodecID codec_id, void *log_ctx)
Create and initialise a new context for the given codec.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
The bitstream filter state.
void * priv_data
Opaque filter-specific private data.
int trace_enable
Enable trace output during read/write operations.
int64_t duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
int ff_cbs_read_packet(CodedBitstreamContext *ctx, CodedBitstreamFragment *frag, const AVPacket *pkt)
Read the data bitstream from a packet into a fragment, then split into units and decompose.
void ff_cbs_fragment_reset(CodedBitstreamFragment *frag)
Free the units contained in a fragment as well as the fragment's own data buffer, but not the units a...
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
filter_frame For filters that do not use the this method is called when a frame is pushed to the filter s input It can be called at any time except in a reentrant way If the input frame is enough to produce then the filter should push the output frames on the output link immediately As an exception to the previous rule if the input frame is enough to produce several output frames then the filter needs output only at least one per link The additional frames can be left buffered in the filter
int flags
A combination of AV_PKT_FLAG values.
#define AV_LOG_INFO
Standard information.
Coded bitstream fragment structure, combining one or more units.
void av_packet_unref(AVPacket *pkt)
Wipe the packet.
int trace_level
Log level to use for trace output.
Context structure for coded bitstream operations.
size_t av_strlcatf(char *dst, size_t size, const char *fmt,...)
void ff_cbs_close(CodedBitstreamContext **ctx_ptr)
Close a context and free all internal state.
int ff_cbs_read_extradata(CodedBitstreamContext *ctx, CodedBitstreamFragment *frag, const AVCodecParameters *par)
Read the extradata bitstream found in codec parameters into a fragment, then split into units and dec...
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...
common internal and external API header
static enum AVCodecID codec_ids[]
#define AV_PKT_FLAG_CORRUPT
The packet content is corrupted.
enum AVCodecID ff_cbs_all_codec_ids[]
Table of all supported codec IDs.
uint8_t * extradata
Extra binary data needed for initializing the decoder, codec-dependent.
void ff_cbs_fragment_free(CodedBitstreamFragment *frag)
Free the units array of a fragment in addition to what ff_cbs_fragment_reset does.
int64_t dts
Decompression timestamp in AVStream->time_base units; the time at which the packet is decompressed...
This structure stores compressed data.
AVCodecParameters * par_in
Parameters of the input stream.
int ff_bsf_get_packet_ref(AVBSFContext *ctx, AVPacket *pkt)
Called by bitstream filters to get packet for filtering.
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...
#define AV_NOPTS_VALUE
Undefined timestamp value.