FFmpeg
Data Structures | Macros | Enumerations | Functions
bsf.h File Reference
#include "libavutil/dict.h"
#include "libavutil/log.h"
#include "libavutil/rational.h"
#include "codec_id.h"
#include "codec_par.h"
#include "packet.h"

Go to the source code of this file.

Data Structures

struct  AVBSFContext
 The bitstream filter state. More...
 
struct  AVBitStreamFilter
 
struct  AVBitStreamFilterContext
 An instance of a filter. More...
 
struct  AVBitStreamFilterGraph
 

Macros

#define AV_BSF_FLAG_DYNAMIC_INPUTS   (1 << 0)
 The number of the filter inputs is not determined just by the filter's static inputs. More...
 
#define AV_BSF_FLAG_DYNAMIC_OUTPUTS   (1 << 1)
 The number of the filter outputs is not determined just by the filter's static outputs. More...
 
#define AV_BSF_FLAG_METADATA_ONLY   (1 << 2)
 The filter is a "metadata" filter - it does not modify the packet data in any way. More...
 

Enumerations

enum  { AV_BSF_SOURCE_FLAG_PUSH = 1 << 0, AV_BSF_SOURCE_FLAG_KEEP_REF = 1 << 1 }
 
enum  { AV_BSF_SINK_FLAG_PEEK = 1 << 0, AV_BSF_SINK_FLAG_NO_REQUEST = 1 << 1 }
 

Functions

const AVBitStreamFilterav_bsf_get_by_name (const char *name)
 
const AVBitStreamFilterav_bsf_iterate (void **opaque)
 Iterate over all registered bitstream filters. More...
 
int av_bsf_alloc (const AVBitStreamFilter *filter, AVBSFContext **ctx)
 Allocate a context for a given bitstream filter. More...
 
int av_bsf_init (AVBSFContext *ctx)
 Prepare the filter for use, after all the parameters and options have been set. More...
 
int av_bsf_send_packet (AVBSFContext *ctx, AVPacket *pkt)
 Submit a packet for filtering. More...
 
int av_bsf_receive_packet (AVBSFContext *ctx, AVPacket *pkt)
 Retrieve a filtered packet. More...
 
void av_bsf_flush (AVBSFContext *ctx)
 Reset the internal bitstream filter state. More...
 
void av_bsf_free (AVBSFContext **ctx)
 Free a bitstream filter context and everything associated with it; write NULL into the supplied pointer. More...
 
const AVClassav_bsf_get_class (void)
 Get the AVClass for AVBSFContext. More...
 
AVBSFListav_bsf_list_alloc (void)
 Allocate empty list of bitstream filters. More...
 
void av_bsf_list_free (AVBSFList **lst)
 Free list of bitstream filters. More...
 
int av_bsf_list_append (AVBSFList *lst, AVBSFContext *bsf)
 Append bitstream filter to the list of bitstream filters. More...
 
int av_bsf_list_append2 (AVBSFList *lst, const char *bsf_name, AVDictionary **options)
 Construct new bitstream filter context given it's name and options and append it to the list of bitstream filters. More...
 
int av_bsf_list_finalize (AVBSFList **lst, AVBSFContext **bsf)
 Finalize list of bitstream filters. More...
 
int av_bsf_list_parse_str (const char *str, AVBSFContext **bsf)
 Parse string describing list of bitstream filters and create single AVBSFContext describing the whole chain of bitstream filters. More...
 
int av_bsf_get_null_filter (AVBSFContext **bsf)
 Get null/pass-through bitstream filter. More...
 
const char * av_bsf_pad_get_name (const AVBitStreamFilterPad *pads, int pad_idx)
 Get the name of an AVBitStreamFilterPad. More...
 
enum AVCodecIDav_bsf_pad_get_codec_ids (const AVBitStreamFilterPad *pads, int pad_idx)
 Get the codec ids supported by an AVBitStreamFilterPad. More...
 
int av_bsf_link (AVBitStreamFilterContext *src, unsigned srcpad, AVBitStreamFilterContext *dst, unsigned dstpad)
 Link two filters together. More...
 
int av_bsf_init_str (AVBitStreamFilterContext *ctx, const char *args)
 Initialize a filter with the supplied parameters. More...
 
int av_bsf_init_dict (AVBitStreamFilterContext *ctx, AVDictionary **options)
 Initialize a filter with the supplied dictionary of options. More...
 
AVBitStreamFilterGraphav_bsf_graph_alloc (void)
 Allocate a filter graph. More...
 
int av_bsf_graph_alloc_filter (AVBitStreamFilterContext **filt_ctx, const AVBitStreamFilter *filter, const char *name, AVBitStreamFilterGraph *graph)
 Create a new filter instance in a filter graph. More...
 
int av_bsf_graph_create_filter (AVBitStreamFilterContext **filt_ctx, const AVBitStreamFilter *filt, const char *name, AVDictionary **options, AVBitStreamFilterGraph *graph_ctx)
 A convenience wrapper that allocates and initializes a filter in a single step. More...
 
AVBitStreamFilterContextav_bsf_graph_get_filter (AVBitStreamFilterGraph *graph, const char *name)
 Get a filter instance identified by instance name from graph. More...
 
int av_bsf_graph_config (AVBitStreamFilterGraph *graphctx, void *log_ctx)
 Check validity and configure all the links and formats in the graph. More...
 
int av_bsf_graph_source_needs_input (const AVBitStreamFilterGraph *graph)
 Get the index of the source filter in the filtergraph that reported needing input more urgently. More...
 
void av_bsf_graph_free (AVBitStreamFilterGraph **graph)
 Free a graph, destroy its links, and set *graph to NULL. More...
 
int av_bsf_source_parameters_set (AVBitStreamFilterContext *ctx, const AVCodecParameters *par)
 Initialize the source filter with the provided parameters. More...
 
av_warn_unused_result int av_bsf_source_add_packet (AVBitStreamFilterContext *ctx, AVPacket *pkt, int flags)
 Add a packet to the buffer source. More...
 
int av_bsf_source_get_status (AVBitStreamFilterContext *ctx)
 Returns 0 or a negative AVERROR code. More...
 
int av_bsf_source_close (AVBitStreamFilterContext *ctx, int64_t pts, unsigned flags)
 Close the source after EOF. More...
 
int av_bsf_sink_get_packet (AVBitStreamFilterContext *ctx, AVPacket *pkt, int flags)
 Get a packet with filtered data from sink and put it in packet. More...
 
AVRational av_bsf_sink_get_time_base (const AVBitStreamFilterContext *ctx)
 
const AVCodecParametersav_bsf_sink_get_parameters (const AVBitStreamFilterContext *ctx)