FFmpeg
Data Structures | Macros | Functions | Variables
filter_units.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 FFBitStreamFilter ff_filter_units_bsf
 

Macro Definition Documentation

◆ OFFSET

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

Definition at line 225 of file filter_units.c.

◆ FLAGS

Definition at line 226 of file filter_units.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 50 of file filter_units.c.

Referenced by filter_units_init().

◆ filter_units_filter()

static int filter_units_filter ( AVBSFContext bsf,
AVPacket pkt 
)
static

Definition at line 104 of file filter_units.c.

◆ filter_units_init()

static int filter_units_init ( AVBSFContext bsf)
static

Definition at line 156 of file filter_units.c.

◆ filter_units_close()

static void filter_units_close ( AVBSFContext bsf)
static

Definition at line 215 of file filter_units.c.

Variable Documentation

◆ filter_units_options

const AVOption filter_units_options[]
static

Definition at line 227 of file filter_units.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 269 of file filter_units.c.

◆ ff_filter_units_bsf

const FFBitStreamFilter ff_filter_units_bsf
Initial value:
= {
.p.name = "filter_units",
.p.codec_ids = ff_cbs_all_codec_ids,
.p.priv_class = &filter_units_class,
.priv_data_size = sizeof(FilterUnitsContext),
.close = &filter_units_close,
}

Definition at line 276 of file filter_units.c.

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
FilterUnitsContext
Definition: filter_units.c:29
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
ff_cbs_all_codec_ids
enum AVCodecID ff_cbs_all_codec_ids[]
Table of all supported codec IDs.
Definition: cbs.c:61
av_default_item_name
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:237
filter_units_class
static const AVClass filter_units_class
Definition: filter_units.c:269
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:365
filter_units_init
static int filter_units_init(AVBSFContext *bsf)
Definition: filter_units.c:156
filter_units_filter
static int filter_units_filter(AVBSFContext *bsf, AVPacket *pkt)
Definition: filter_units.c:104
filter_units_close
static void filter_units_close(AVBSFContext *bsf)
Definition: filter_units.c:215
filter_units_options
static const AVOption filter_units_options[]
Definition: filter_units.c:227