FFmpeg
Data Structures | Macros | Functions | Variables
av1_metadata.c File Reference
#include "libavutil/common.h"
#include "libavutil/opt.h"
#include "bsf.h"
#include "bsf_internal.h"
#include "cbs.h"
#include "cbs_bsf.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)
 

Functions

static int av1_metadata_update_sequence_header (AVBSFContext *bsf, AV1RawSequenceHeader *seq)
 
static int av1_metadata_update_fragment (AVBSFContext *bsf, AVPacket *pkt, CodedBitstreamFragment *frag)
 
static int av1_metadata_init (AVBSFContext *bsf)
 

Variables

static const CBSBSFType av1_metadata_type
 
static const AVOption av1_metadata_options []
 
static const AVClass av1_metadata_class
 
static enum AVCodecID av1_metadata_codec_ids []
 
const FFBitStreamFilter ff_av1_metadata_bsf
 

Macro Definition Documentation

◆ OFFSET

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

Definition at line 164 of file av1_metadata.c.

◆ FLAGS

Definition at line 165 of file av1_metadata.c.

Function Documentation

◆ av1_metadata_update_sequence_header()

static int av1_metadata_update_sequence_header ( AVBSFContext bsf,
AV1RawSequenceHeader seq 
)
static

Definition at line 48 of file av1_metadata.c.

Referenced by av1_metadata_update_fragment().

◆ av1_metadata_update_fragment()

static int av1_metadata_update_fragment ( AVBSFContext bsf,
AVPacket pkt,
CodedBitstreamFragment frag 
)
static

Definition at line 108 of file av1_metadata.c.

◆ av1_metadata_init()

static int av1_metadata_init ( AVBSFContext bsf)
static

Definition at line 153 of file av1_metadata.c.

Variable Documentation

◆ av1_metadata_type

const CBSBSFType av1_metadata_type
static
Initial value:
= {
.codec_id = AV_CODEC_ID_AV1,
.fragment_name = "temporal unit",
.unit_name = "OBU",
.update_fragment = &av1_metadata_update_fragment,
}

Definition at line 146 of file av1_metadata.c.

Referenced by av1_metadata_init().

◆ av1_metadata_options

const AVOption av1_metadata_options[]
static

Definition at line 166 of file av1_metadata.c.

◆ av1_metadata_class

const AVClass av1_metadata_class
static
Initial value:
= {
.class_name = "av1_metadata_bsf",
.item_name = av_default_item_name,
}

Definition at line 212 of file av1_metadata.c.

◆ av1_metadata_codec_ids

enum AVCodecID av1_metadata_codec_ids[]
static
Initial value:

Definition at line 219 of file av1_metadata.c.

◆ ff_av1_metadata_bsf

const FFBitStreamFilter ff_av1_metadata_bsf
Initial value:
= {
.p.name = "av1_metadata",
.p.codec_ids = av1_metadata_codec_ids,
.p.priv_class = &av1_metadata_class,
.priv_data_size = sizeof(AV1MetadataContext),
}

Definition at line 223 of file av1_metadata.c.

av1_metadata_codec_ids
static enum AVCodecID av1_metadata_codec_ids[]
Definition: av1_metadata.c:219
filter
void(* filter)(uint8_t *src, int stride, int qscale)
Definition: h263dsp.c:29
av1_metadata_update_fragment
static int av1_metadata_update_fragment(AVBSFContext *bsf, AVPacket *pkt, CodedBitstreamFragment *frag)
Definition: av1_metadata.c:108
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
AV_CODEC_ID_AV1
@ AV_CODEC_ID_AV1
Definition: codec_id.h:284
av_default_item_name
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:237
av1_metadata_options
static const AVOption av1_metadata_options[]
Definition: av1_metadata.c:166
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:368
ff_cbs_bsf_generic_close
void ff_cbs_bsf_generic_close(AVBSFContext *bsf)
Close a generic CBS BSF instance.
Definition: cbs_bsf.c:155
av1_metadata_init
static int av1_metadata_init(AVBSFContext *bsf)
Definition: av1_metadata.c:153
av1_metadata_class
static const AVClass av1_metadata_class
Definition: av1_metadata.c:212
AV_CODEC_ID_NONE
@ AV_CODEC_ID_NONE
Definition: codec_id.h:50
ff_cbs_bsf_generic_filter
int ff_cbs_bsf_generic_filter(AVBSFContext *bsf, AVPacket *pkt)
Filter operation for CBS BSF.
Definition: cbs_bsf.c:61
AV1MetadataContext
Definition: av1_metadata.c:28