FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
av1_metadata_bsf.c File Reference
#include "libavutil/common.h"
#include "libavutil/opt.h"
#include "bsf.h"
#include "cbs.h"
#include "cbs_av1.h"

Go to the source code of this file.

Data Structures

struct  AV1MetadataContext
 

Macros

#define OFFSET(x)   offsetof(AV1MetadataContext, x)
 
#define FLAGS   (AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_BSF_PARAM)
 

Enumerations

enum  { PASS, INSERT, REMOVE }
 

Functions

static int av1_metadata_update_sequence_header (AVBSFContext *bsf, AV1RawSequenceHeader *seq)
 
static int av1_metadata_filter (AVBSFContext *bsf, AVPacket *out)
 
static int av1_metadata_init (AVBSFContext *bsf)
 
static void av1_metadata_close (AVBSFContext *bsf)
 

Variables

static const AVOption av1_metadata_options []
 
static const AVClass av1_metadata_class
 
static enum AVCodecID av1_metadata_codec_ids []
 
const AVBitStreamFilter ff_av1_metadata_bsf
 

Macro Definition Documentation

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

Definition at line 228 of file av1_metadata_bsf.c.

Definition at line 229 of file av1_metadata_bsf.c.

Enumeration Type Documentation

anonymous enum
Enumerator
PASS 
INSERT 
REMOVE 

Definition at line 26 of file av1_metadata_bsf.c.

Function Documentation

static int av1_metadata_update_sequence_header ( AVBSFContext bsf,
AV1RawSequenceHeader seq 
)
static

Definition at line 52 of file av1_metadata_bsf.c.

Referenced by av1_metadata_filter(), and av1_metadata_init().

static int av1_metadata_filter ( AVBSFContext bsf,
AVPacket out 
)
static

Definition at line 117 of file av1_metadata_bsf.c.

static int av1_metadata_init ( AVBSFContext bsf)
static

Definition at line 182 of file av1_metadata_bsf.c.

static void av1_metadata_close ( AVBSFContext bsf)
static

Definition at line 222 of file av1_metadata_bsf.c.

Variable Documentation

const AVOption av1_metadata_options[]
static

Definition at line 230 of file av1_metadata_bsf.c.

const AVClass av1_metadata_class
static
Initial value:
= {
.class_name = "av1_metadata_bsf",
.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 av1_metadata_options[]

Definition at line 279 of file av1_metadata_bsf.c.

enum AVCodecID av1_metadata_codec_ids[]
static
Initial value:

Definition at line 286 of file av1_metadata_bsf.c.

const AVBitStreamFilter ff_av1_metadata_bsf
Initial value:
= {
.name = "av1_metadata",
.priv_data_size = sizeof(AV1MetadataContext),
.priv_class = &av1_metadata_class,
.close = &av1_metadata_close,
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static const AVClass av1_metadata_class
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 enum AVCodecID av1_metadata_codec_ids[]
static int av1_metadata_init(AVBSFContext *bsf)
static enum AVCodecID codec_ids[]
static void av1_metadata_close(AVBSFContext *bsf)
static int av1_metadata_filter(AVBSFContext *bsf, AVPacket *out)

Definition at line 290 of file av1_metadata_bsf.c.