FFmpeg
Data Structures | Macros | Functions | Variables
filter_units_bsf.c File Reference
#include <stdlib.h>
#include "libavutil/common.h"
#include "libavutil/opt.h"
#include "bsf.h"
#include "cbs.h"

Go to the source code of this file.

Data Structures

struct  FilterUnitsContext
 

Macros

#define OFFSET(x)   offsetof(FilterUnitsContext, x)
 
#define FLAGS   (AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_BSF_PARAM)
 

Functions

static int filter_units_make_type_list (const char *list_string, CodedBitstreamUnitType **type_list, int *nb_types)
 
static int filter_units_filter (AVBSFContext *bsf, AVPacket *pkt)
 
static int filter_units_init (AVBSFContext *bsf)
 
static void filter_units_close (AVBSFContext *bsf)
 

Variables

static const AVOption filter_units_options []
 
static const AVClass filter_units_class
 
const AVBitStreamFilter ff_filter_units_bsf
 

Macro Definition Documentation

#define OFFSET (   x)    offsetof(FilterUnitsContext, x)

Definition at line 217 of file filter_units_bsf.c.

Definition at line 218 of file filter_units_bsf.c.

Function Documentation

static int filter_units_make_type_list ( const char *  list_string,
CodedBitstreamUnitType **  type_list,
int nb_types 
)
static

Definition at line 47 of file filter_units_bsf.c.

Referenced by filter_units_init().

static int filter_units_filter ( AVBSFContext bsf,
AVPacket pkt 
)
static

Definition at line 101 of file filter_units_bsf.c.

static int filter_units_init ( AVBSFContext bsf)
static

Definition at line 150 of file filter_units_bsf.c.

static void filter_units_close ( AVBSFContext bsf)
static

Definition at line 207 of file filter_units_bsf.c.

Variable Documentation

const AVOption filter_units_options[]
static
Initial value:
= {
{ "pass_types", "List of unit types to pass through the filter.",
OFFSET(pass_types), AV_OPT_TYPE_STRING,
{ .str = NULL }, .flags = FLAGS },
{ "remove_types", "List of unit types to remove in the filter.",
OFFSET(remove_types), AV_OPT_TYPE_STRING,
{ .str = NULL }, .flags = FLAGS },
{ NULL }
}
#define NULL
Definition: coverity.c:32
#define FLAGS
#define OFFSET(x)

Definition at line 219 of file filter_units_bsf.c.

const AVClass filter_units_class
static
Initial value:
= {
.class_name = "filter_units",
.item_name = av_default_item_name,
}
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:191
static const AVOption filter_units_options[]

Definition at line 230 of file filter_units_bsf.c.

const AVBitStreamFilter ff_filter_units_bsf
Initial value:
= {
.name = "filter_units",
.priv_data_size = sizeof(FilterUnitsContext),
.priv_class = &filter_units_class,
.close = &filter_units_close,
}
static const AVClass filter_units_class
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static int filter_units_init(AVBSFContext *bsf)
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
static void filter_units_close(AVBSFContext *bsf)
static int filter_units_filter(AVBSFContext *bsf, AVPacket *pkt)
static enum AVCodecID codec_ids[]
enum AVCodecID ff_cbs_all_codec_ids[]
Table of all supported codec IDs.
Definition: cbs.c:52

Definition at line 237 of file filter_units_bsf.c.