FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
bsf.c File Reference
#include <string.h>
#include "libavutil/log.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "bsf.h"

Go to the source code of this file.

Data Structures

struct  AVBSFInternal
 

Functions

void av_bsf_free (AVBSFContext **pctx)
 Free a bitstream filter context and everything associated with it; write NULL into the supplied pointer. More...
 
static voidbsf_child_next (void *obj, void *prev)
 
const AVClassav_bsf_get_class (void)
 Get the AVClass for AVBSFContext. More...
 
int av_bsf_alloc (const AVBitStreamFilter *filter, AVBSFContext **pctx)
 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...
 
int ff_bsf_get_packet (AVBSFContext *ctx, AVPacket **pkt)
 Called by the bitstream filters to get the next packet for filtering. More...
 

Variables

static const AVClass bsf_class
 

Function Documentation

static void* bsf_child_next ( void obj,
void prev 
)
static

Definition at line 58 of file bsf.c.

int ff_bsf_get_packet ( AVBSFContext ctx,
AVPacket **  pkt 
)

Called by the bitstream filters to get the next packet for filtering.

The filter is responsible for either freeing the packet or passing it to the caller.

Definition at line 199 of file bsf.c.

Referenced by aac_adtstoasc_filter(), chomp_filter(), dca_core_filter(), dump_extradata(), h264_mp4toannexb_filter(), hevc_mp4toannexb_filter(), imx_dump_header(), mjpeg2jpeg_filter(), mjpega_dump_header(), mov2textsub(), mp3_header_decompress(), mpeg4_unpack_bframes_filter(), noise(), remove_extradata(), text2movsub(), and vp9_superframe_filter().

Variable Documentation

const AVClass bsf_class
static
Initial value:
= {
.class_name = "AVBSFContext",
.item_name = av_default_item_name,
.child_next = bsf_child_next,
.child_class_next = ff_bsf_child_class_next,
}
static void * bsf_child_next(void *obj, void *prev)
Definition: bsf.c:58
#define LIBAVUTIL_VERSION_INT
Definition: version.h:70
av_default_item_name
const AVClass * ff_bsf_child_class_next(const AVClass *prev)

Definition at line 66 of file bsf.c.

Referenced by av_bsf_alloc(), and av_bsf_get_class().