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 "bsf_internal.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

◆ OFFSET

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

Definition at line 218 of file filter_units_bsf.c.

◆ FLAGS

Definition at line 219 of file filter_units_bsf.c.

Function Documentation

◆ filter_units_make_type_list()

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

Definition at line 48 of file filter_units_bsf.c.

Referenced by filter_units_init().

◆ filter_units_filter()

static int filter_units_filter ( AVBSFContext bsf,
AVPacket pkt 
)
static

Definition at line 102 of file filter_units_bsf.c.

◆ filter_units_init()

static int filter_units_init ( AVBSFContext bsf)
static

Definition at line 151 of file filter_units_bsf.c.

◆ filter_units_close()

static void filter_units_close ( AVBSFContext bsf)
static

Definition at line 208 of file filter_units_bsf.c.

Variable Documentation

◆ filter_units_options

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 }
}

Definition at line 220 of file filter_units_bsf.c.

◆ filter_units_class

const AVClass filter_units_class
static
Initial value:
= {
.class_name = "filter_units",
.item_name = av_default_item_name,
}

Definition at line 231 of file filter_units_bsf.c.

◆ ff_filter_units_bsf

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,
}

Definition at line 238 of file filter_units_bsf.c.

filter_units_filter
static int filter_units_filter(AVBSFContext *bsf, AVPacket *pkt)
Definition: filter_units_bsf.c:102
filter_units_close
static void filter_units_close(AVBSFContext *bsf)
Definition: filter_units_bsf.c:208
init
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:31
filter
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
Definition: filter_design.txt:228
FLAGS
#define FLAGS
Definition: filter_units_bsf.c:219
FilterUnitsContext
Definition: filter_units_bsf.c:29
OFFSET
#define OFFSET(x)
Definition: filter_units_bsf.c:218
filter_units_options
static const AVOption filter_units_options[]
Definition: filter_units_bsf.c:220
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
NULL
#define NULL
Definition: coverity.c:32
ff_cbs_all_codec_ids
enum AVCodecID ff_cbs_all_codec_ids[]
Table of all supported codec IDs.
Definition: cbs.c:54
av_default_item_name
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:235
filter_units_class
static const AVClass filter_units_class
Definition: filter_units_bsf.c:231
codec_ids
static enum AVCodecID codec_ids[]
Definition: aac_adtstoasc_bsf.c:148
filter_units_init
static int filter_units_init(AVBSFContext *bsf)
Definition: filter_units_bsf.c:151
AV_OPT_TYPE_STRING
@ AV_OPT_TYPE_STRING
Definition: opt.h:228