FFmpeg
Data Structures | Macros | Functions | Variables
av1_metadata_bsf.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_bsf.c.

◆ FLAGS

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

◆ av1_metadata_init()

static int av1_metadata_init ( AVBSFContext bsf)
static

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

Referenced by av1_metadata_init().

◆ av1_metadata_options

const AVOption av1_metadata_options[]
static

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

◆ av1_metadata_codec_ids

enum AVCodecID av1_metadata_codec_ids[]
static
Initial value:

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

av1_metadata_class
static const AVClass av1_metadata_class
Definition: av1_metadata_bsf.c:212
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:153
av1_metadata_codec_ids
static enum AVCodecID av1_metadata_codec_ids[]
Definition: av1_metadata_bsf.c:219
av1_metadata_update_fragment
static int av1_metadata_update_fragment(AVBSFContext *bsf, AVPacket *pkt, CodedBitstreamFragment *frag)
Definition: av1_metadata_bsf.c:108
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts_bsf.c:365
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
AV_CODEC_ID_AV1
@ AV_CODEC_ID_AV1
Definition: codec_id.h:283
av_default_item_name
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:237
ff_cbs_bsf_generic_close
void ff_cbs_bsf_generic_close(AVBSFContext *bsf)
Close a generic CBS BSF instance.
Definition: cbs_bsf.c:155
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
av1_metadata_options
static const AVOption av1_metadata_options[]
Definition: av1_metadata_bsf.c:166
AV1MetadataContext
Definition: av1_metadata_bsf.c:28