FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 *out)
 
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 228 of file filter_units_bsf.c.

Definition at line 229 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 out 
)
static

Definition at line 101 of file filter_units_bsf.c.

static int filter_units_init ( AVBSFContext bsf)
static

Definition at line 162 of file filter_units_bsf.c.

static void filter_units_close ( AVBSFContext bsf)
static

Definition at line 219 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 230 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 241 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 void filter(int16_t *output, ptrdiff_t out_stride, int16_t *low, ptrdiff_t low_stride, int16_t *high, ptrdiff_t high_stride, int len, int clip)
Definition: cfhd.c:153
static int filter_units_init(AVBSFContext *bsf)
static void filter_units_close(AVBSFContext *bsf)
static enum AVCodecID codec_ids[]
enum AVCodecID ff_cbs_all_codec_ids[]
Table of all supported codec IDs.
Definition: cbs.c:52
static int filter_units_filter(AVBSFContext *bsf, AVPacket *out)

Definition at line 248 of file filter_units_bsf.c.