FFmpeg
Loading...
Searching...
No Matches
lcevc_metadata.c File Reference

Go to the source code of this file.

Data Structures

struct  LCEVCMetadataContext
 

Macros

#define OFFSET(x)
 
#define FLAGS   (AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_BSF_PARAM)
 

Functions

static int lcevc_metadata_handle_vui (AVBSFContext *bsf, CodedBitstreamFragment *au)
 
static int lcevc_metadata_update_fragment (AVBSFContext *bsf, AVPacket *pkt, CodedBitstreamFragment *au)
 
static int lcevc_metadata_init (AVBSFContext *bsf)
 

Variables

static const CBSBSFType lcevc_metadata_type
 
static const AVOption lcevc_metadata_options []
 
static const AVClass lcevc_metadata_class
 
static enum AVCodecID lcevc_metadata_codec_ids []
 
const FFBitStreamFilter ff_lcevc_metadata_bsf
 

Macro Definition Documentation

◆ OFFSET

#define OFFSET ( x)
Value:

Definition at line 152 of file lcevc_metadata.c.

◆ FLAGS

Definition at line 153 of file lcevc_metadata.c.

Function Documentation

◆ lcevc_metadata_handle_vui()

static int lcevc_metadata_handle_vui ( AVBSFContext * bsf,
CodedBitstreamFragment * au )
static

Definition at line 47 of file lcevc_metadata.c.

Referenced by lcevc_metadata_update_fragment().

◆ lcevc_metadata_update_fragment()

static int lcevc_metadata_update_fragment ( AVBSFContext * bsf,
AVPacket * pkt,
CodedBitstreamFragment * au )
static

Definition at line 112 of file lcevc_metadata.c.

◆ lcevc_metadata_init()

static int lcevc_metadata_init ( AVBSFContext * bsf)
static

Definition at line 147 of file lcevc_metadata.c.

Variable Documentation

◆ lcevc_metadata_type

const CBSBSFType lcevc_metadata_type
static
Initial value:
= {
.codec_id = AV_CODEC_ID_LCEVC,
.fragment_name = "access unit",
.unit_name = "NAL unit",
.update_fragment = &lcevc_metadata_update_fragment,
}
@ AV_CODEC_ID_LCEVC
Definition codec_id.h:609
static int lcevc_metadata_update_fragment(AVBSFContext *bsf, AVPacket *pkt, CodedBitstreamFragment *au)

Definition at line 140 of file lcevc_metadata.c.

Referenced by lcevc_metadata_init().

◆ lcevc_metadata_options

const AVOption lcevc_metadata_options[]
static
Initial value:
= {
{ "overscan_appropriate_flag", "Set VUI overscan appropriate flag",
OFFSET(overscan_appropriate_flag), AV_OPT_TYPE_BOOL,
{ .i64 = -1 }, -1, 1, FLAGS },
{ "video_format", "Set video format (table E-2)",
OFFSET(video_format), AV_OPT_TYPE_INT,
{ .i64 = -1 }, -1, 5, FLAGS},
{ "video_full_range_flag", "Set video full range flag",
OFFSET(video_full_range_flag), AV_OPT_TYPE_BOOL,
{ .i64 = -1 }, -1, 1, FLAGS },
{ "colour_primaries", "Set colour primaries (table E-3)",
OFFSET(colour_primaries), AV_OPT_TYPE_INT,
{ .i64 = -1 }, -1, 255, FLAGS },
{ "transfer_characteristics", "Set transfer characteristics (table E-4)",
{ .i64 = -1 }, -1, 255, FLAGS },
{ "matrix_coefficients", "Set matrix coefficients (table E-5)",
OFFSET(matrix_coefficients), AV_OPT_TYPE_INT,
{ .i64 = -1 }, -1, 255, FLAGS },
{ "chroma_sample_loc_type", "Set chroma sample location type (figure E-1)",
OFFSET(chroma_sample_loc_type), AV_OPT_TYPE_INT,
{ .i64 = -1 }, -1, 5, FLAGS },
{ "delete_filler", "Delete all filler",
OFFSET(delete_filler), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, FLAGS},
{ NULL }
}
#define FLAGS
Definition cmdutils.c:598
#define NULL
Definition coverity.c:32
#define OFFSET(x)
@ AV_OPT_TYPE_INT
Underlying C type is int.
Definition opt.h:258
@ AV_OPT_TYPE_BOOL
Underlying C type is int.
Definition opt.h:326
static const struct TransferCharacteristics transfer_characteristics[]

Definition at line 154 of file lcevc_metadata.c.

◆ lcevc_metadata_class

const AVClass lcevc_metadata_class
static
Initial value:
= {
.class_name = "lcevc_metadata_bsf",
.item_name = av_default_item_name,
}
const char * av_default_item_name(void *ptr)
Return the context name.
Definition log.c:241
#define LIBAVUTIL_VERSION_INT
Definition version.h:85
static const AVOption lcevc_metadata_options[]

Definition at line 185 of file lcevc_metadata.c.

◆ lcevc_metadata_codec_ids

enum AVCodecID lcevc_metadata_codec_ids[]
static
Initial value:

Definition at line 192 of file lcevc_metadata.c.

◆ ff_lcevc_metadata_bsf

const FFBitStreamFilter ff_lcevc_metadata_bsf
Initial value:
= {
.p.name = "lcevc_metadata",
.p.codec_ids = lcevc_metadata_codec_ids,
.p.priv_class = &lcevc_metadata_class,
.priv_data_size = sizeof(LCEVCMetadataContext),
}
static av_cold void close(AVCodecParserContext *s)
Definition apv_parser.c:197
int ff_cbs_bsf_generic_filter(AVBSFContext *bsf, AVPacket *pkt)
Filter operation for CBS BSF.
Definition cbs_bsf.c:97
av_cold void ff_cbs_bsf_generic_close(AVBSFContext *bsf)
Close a generic CBS BSF instance.
Definition cbs_bsf.c:191
int(* init)(AVBSFContext *ctx)
Definition dts2pts.c:608
static const AVClass lcevc_metadata_class
static enum AVCodecID lcevc_metadata_codec_ids[]
static int lcevc_metadata_init(AVBSFContext *bsf)
void(* filter)(uint8_t *src, ptrdiff_t stride, int qscale)
Definition h263dsp.c:29

Definition at line 196 of file lcevc_metadata.c.