FFmpeg
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 *pkt)
 
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 234 of file av1_metadata_bsf.c.

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

Referenced by av1_metadata_filter(), and av1_metadata_init().

static int av1_metadata_filter ( AVBSFContext bsf,
AVPacket pkt 
)
static

Definition at line 114 of file av1_metadata_bsf.c.

static int av1_metadata_init ( AVBSFContext bsf)
static

Definition at line 186 of file av1_metadata_bsf.c.

static void av1_metadata_close ( AVBSFContext bsf)
static

Definition at line 226 of file av1_metadata_bsf.c.

Variable Documentation

const AVOption av1_metadata_options[]
static

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

enum AVCodecID av1_metadata_codec_ids[]
static
Initial value:

Definition at line 296 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 enum AVCodecID av1_metadata_codec_ids[]
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
static int av1_metadata_filter(AVBSFContext *bsf, AVPacket *pkt)
static int av1_metadata_init(AVBSFContext *bsf)
static enum AVCodecID codec_ids[]
static void av1_metadata_close(AVBSFContext *bsf)

Definition at line 300 of file av1_metadata_bsf.c.