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


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


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)


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 218 of file filter_units_bsf.c.

Definition at line 219 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 

Definition at line 48 of file filter_units_bsf.c.

Referenced by filter_units_init().

static int filter_units_filter ( AVBSFContext bsf,
AVPacket pkt 

Definition at line 102 of file filter_units_bsf.c.

static int filter_units_init ( AVBSFContext bsf)

Definition at line 151 of file filter_units_bsf.c.

static void filter_units_close ( AVBSFContext bsf)

Definition at line 208 of file filter_units_bsf.c.

Variable Documentation

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

Definition at line 220 of file filter_units_bsf.c.

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

Definition at line 231 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 238 of file filter_units_bsf.c.