FFmpeg
Data Structures | Macros | Functions | Variables
filter_units.c File Reference
#include <stdbool.h>
#include <stdlib.h>
#include "libavutil/mem.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 228 of file filter_units.c.

◆ FLAGS

Definition at line 229 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 52 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 106 of file filter_units.c.

◆ filter_units_init()

static int filter_units_init ( AVBSFContext bsf)
static

Definition at line 158 of file filter_units.c.

◆ filter_units_close()

static void filter_units_close ( AVBSFContext bsf)
static

Definition at line 218 of file filter_units.c.

Variable Documentation

◆ filter_units_options

const AVOption filter_units_options[]
static

Definition at line 230 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 272 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 279 of file filter_units.c.

filter
void(* filter)(uint8_t *src, int stride, int qscale)
Definition: h263dsp.c:29
FilterUnitsContext
Definition: filter_units.c:30
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:62
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:272
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:368
filter_units_init
static int filter_units_init(AVBSFContext *bsf)
Definition: filter_units.c:158
filter_units_filter
static int filter_units_filter(AVBSFContext *bsf, AVPacket *pkt)
Definition: filter_units.c:106
filter_units_close
static void filter_units_close(AVBSFContext *bsf)
Definition: filter_units.c:218
filter_units_options
static const AVOption filter_units_options[]
Definition: filter_units.c:230