FFmpeg
Data Structures | Enumerations | Functions
evc.c File Reference
#include "libavutil/mem.h"
#include "libavcodec/get_bits.h"
#include "libavcodec/golomb.h"
#include "libavcodec/evc.h"
#include "avio.h"
#include "evc.h"

Go to the source code of this file.

Data Structures

struct  EVCNALUnitArray
 
struct  EVCDecoderConfigurationRecord
 Specifies the decoder configuration information for ISO/IEC 23094-1 video content. More...
 
struct  NALU
 
struct  NALUList
 

Enumerations

enum  {
  SPS_INDEX, PPS_INDEX, APS_INDEX, SEI_INDEX,
  NB_ARRAYS
}
 

Functions

static int evcc_parse_sps (const uint8_t *bs, int bs_size, EVCDecoderConfigurationRecord *evcc)
 
static int evcc_array_add_nal_unit (const uint8_t *nal_buf, uint32_t nal_size, uint8_t nal_type, int ps_array_completeness, EVCNALUnitArray *array)
 
static void evcc_init (EVCDecoderConfigurationRecord *evcc)
 
static void evcc_close (EVCDecoderConfigurationRecord *evcc)
 
static int evcc_write (AVIOContext *pb, EVCDecoderConfigurationRecord *evcc)
 
int ff_isom_write_evcc (AVIOContext *pb, const uint8_t *data, int size, int ps_array_completeness)
 Writes EVC sample metadata to the provided AVIOContext. More...
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
SPS_INDEX 
PPS_INDEX 
APS_INDEX 
SEI_INDEX 
NB_ARRAYS 

Definition at line 30 of file evc.c.

Function Documentation

◆ evcc_parse_sps()

static int evcc_parse_sps ( const uint8_t *  bs,
int  bs_size,
EVCDecoderConfigurationRecord evcc 
)
static

Definition at line 81 of file evc.c.

Referenced by ff_isom_write_evcc().

◆ evcc_array_add_nal_unit()

static int evcc_array_add_nal_unit ( const uint8_t *  nal_buf,
uint32_t  nal_size,
uint8_t  nal_type,
int  ps_array_completeness,
EVCNALUnitArray array 
)
static

Definition at line 129 of file evc.c.

Referenced by ff_isom_write_evcc().

◆ evcc_init()

static void evcc_init ( EVCDecoderConfigurationRecord evcc)
static

Definition at line 160 of file evc.c.

Referenced by ff_isom_write_evcc().

◆ evcc_close()

static void evcc_close ( EVCDecoderConfigurationRecord evcc)
static

Definition at line 167 of file evc.c.

Referenced by ff_isom_write_evcc().

◆ evcc_write()

static int evcc_write ( AVIOContext pb,
EVCDecoderConfigurationRecord evcc 
)
static

Definition at line 177 of file evc.c.

Referenced by ff_isom_write_evcc().

◆ ff_isom_write_evcc()

int ff_isom_write_evcc ( AVIOContext pb,
const uint8_t *  data,
int  size,
int  ps_array_completeness 
)

Writes EVC sample metadata to the provided AVIOContext.

Parameters
pbpointer to the AVIOContext where the evc sample metadata shall be written
bufinput data buffer
sizesize in bytes of the input data buffer
ps_array_completeness
See also
ISO/IEC 14496-15:2021 Coding of audio-visual objects - Part 15: section 12.3.3.3
Returns
0 in case of success, a negative error code in case of failure

Definition at line 299 of file evc.c.

Referenced by mov_write_evcc_tag().