93 uint8_t **poutbuf,
int *poutbuf_size,
94 const uint8_t *buf,
int buf_size,
int keyframe)
149 *poutbuf_size = pkt.
size;
150 memcpy(*poutbuf, pkt.
data, pkt.
size);
void av_bsf_free(AVBSFContext **ctx)
Free a bitstream filter context and everything associated with it; write NULL into the supplied point...
void * av_malloc(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
AVCodecParameters * par_out
Parameters of the output stream.
memory handling functions
int av_bitstream_filter_filter(AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, const char *args, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int keyframe)
The bitstream filter state.
const AVBitStreamFilter * av_bsf_get_by_name(const char *name)
int av_bsf_init(AVBSFContext *ctx)
Prepare the filter for use, after all the parameters and options have been set.
AVRational time_base
This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented...
void av_freep(void *arg)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc() and set the pointer ...
int av_bsf_alloc(const AVBitStreamFilter *filter, AVBSFContext **ctx)
Allocate a context for a given bitstream filter.
int av_bsf_receive_packet(AVBSFContext *ctx, AVPacket *pkt)
Retrieve a filtered packet.
uint8_t * extradata
some codecs need / can use extradata like Huffman tables.
#define AVERROR_EOF
End of file.
void av_free(void *ptr)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc(). ...
const AVBitStreamFilter * av_bsf_next(void **opaque)
Iterate over all registered bitstream filters.
AVBitStreamFilterContext * av_bitstream_filter_init(const char *name)
AVRational time_base_in
The timebase used for the timestamps of the input packets.
int extradata_size
Size of the extradata content in bytes.
common internal API header
static void filter(MpegAudioContext *s, int ch, const short *samples, int incr)
void av_bitstream_filter_close(AVBitStreamFilterContext *bsfc)
int av_bsf_send_packet(AVBSFContext *ctx, AVPacket *pkt)
Submit a packet for filtering.
Libavcodec external API header.
main external API structure.
void av_packet_unref(AVPacket *pkt)
Wipe the packet.
struct AVBitStreamFilter * filter
int avcodec_parameters_from_context(AVCodecParameters *par, const AVCodecContext *codec)
Fill the parameters struct based on the values from the supplied codec context.
#define FF_DISABLE_DEPRECATION_WARNINGS
FF_DISABLE_DEPRECATION_WARNINGS AVBitStreamFilter * av_bitstream_filter_next(const AVBitStreamFilter *f)
#define AV_INPUT_BUFFER_PADDING_SIZE
Required number of additionally allocated bytes at the end of the input bitstream for decoding...
#define FF_ENABLE_DEPRECATION_WARNINGS
uint8_t * extradata
Extra binary data needed for initializing the decoder, codec-dependent.
void av_register_bitstream_filter(AVBitStreamFilter *bsf)
This structure stores compressed data.
AVCodecParameters * par_in
Parameters of the input stream.
void * av_mallocz(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...