FFmpeg
Data Structures | Macros | Functions | Variables
av1_metadata_bsf.c File Reference
#include "libavutil/common.h"
#include "libavutil/opt.h"
#include "bsf.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 AVBitStreamFilter ff_av1_metadata_bsf
 

Macro Definition Documentation

◆ OFFSET

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

Definition at line 163 of file av1_metadata_bsf.c.

◆ FLAGS

Definition at line 164 of file av1_metadata_bsf.c.

Function Documentation

◆ av1_metadata_update_sequence_header()

static int av1_metadata_update_sequence_header ( AVBSFContext bsf,
AV1RawSequenceHeader seq 
)
static

Definition at line 47 of file av1_metadata_bsf.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 107 of file av1_metadata_bsf.c.

◆ av1_metadata_init()

static int av1_metadata_init ( AVBSFContext bsf)
static

Definition at line 152 of file av1_metadata_bsf.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 145 of file av1_metadata_bsf.c.

Referenced by av1_metadata_init().

◆ av1_metadata_options

const AVOption av1_metadata_options[]
static

Definition at line 165 of file av1_metadata_bsf.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 211 of file av1_metadata_bsf.c.

◆ av1_metadata_codec_ids

enum AVCodecID av1_metadata_codec_ids[]
static
Initial value:

Definition at line 218 of file av1_metadata_bsf.c.

◆ ff_av1_metadata_bsf

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

Definition at line 222 of file av1_metadata_bsf.c.

init
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:31
av1_metadata_class
static const AVClass av1_metadata_class
Definition: av1_metadata_bsf.c:211
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
av1_metadata_init
static int av1_metadata_init(AVBSFContext *bsf)
Definition: av1_metadata_bsf.c:152
av1_metadata_codec_ids
static enum AVCodecID av1_metadata_codec_ids[]
Definition: av1_metadata_bsf.c:218
av1_metadata_update_fragment
static int av1_metadata_update_fragment(AVBSFContext *bsf, AVPacket *pkt, CodedBitstreamFragment *frag)
Definition: av1_metadata_bsf.c:107
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
AV_CODEC_ID_AV1
@ AV_CODEC_ID_AV1
Definition: codec_id.h:279
av_default_item_name
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:235
ff_cbs_bsf_generic_close
void ff_cbs_bsf_generic_close(AVBSFContext *bsf)
Close a generic CBS BSF instance.
Definition: cbs_bsf.c:152
AV_CODEC_ID_NONE
@ AV_CODEC_ID_NONE
Definition: codec_id.h:47
ff_cbs_bsf_generic_filter
int ff_cbs_bsf_generic_filter(AVBSFContext *bsf, AVPacket *pkt)
Filter operation for CBS BSF.
Definition: cbs_bsf.c:63
av1_metadata_options
static const AVOption av1_metadata_options[]
Definition: av1_metadata_bsf.c:165
codec_ids
static enum AVCodecID codec_ids[]
Definition: aac_adtstoasc_bsf.c:148
AV1MetadataContext
Definition: av1_metadata_bsf.c:27