FFmpeg
Functions
lcevc.c File Reference
#include "libavutil/error.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "libavcodec/bytestream.h"
#include "libavcodec/h2645_parse.h"
#include "libavcodec/lcevc.h"
#include "libavcodec/lcevctab.h"
#include "libavcodec/lcevc_parse.h"
#include "avio.h"
#include "avio_internal.h"
#include "lcevc.h"

Go to the source code of this file.

Functions

static int write_nalu (LCEVCDecoderConfigurationRecord *lvcc, AVIOContext *pb, const H2645NAL *nal)
 Rewrite the NALu stripping the unneeded blocks. More...
 
int ff_lcvec_parse_config_record (LCEVCDecoderConfigurationRecord *lvcc, const uint8_t *buf, int size)
 
int ff_isom_write_lvcc (AVIOContext *pb, const uint8_t *data, int len)
 

Function Documentation

◆ write_nalu()

static int write_nalu ( LCEVCDecoderConfigurationRecord lvcc,
AVIOContext pb,
const H2645NAL nal 
)
static

Rewrite the NALu stripping the unneeded blocks.

Given that length fields coded inside the NALu are not aware of any emulation_3bytes present in the bitstream, we need to keep track of the raw buffer as we navigate the stripped buffer in order to write proper NALu sizes.

Definition at line 39 of file lcevc.c.

Referenced by ff_isom_write_lvcc(), and ff_lcvec_parse_config_record().

◆ ff_lcvec_parse_config_record()

int ff_lcvec_parse_config_record ( LCEVCDecoderConfigurationRecord lvcc,
const uint8_t *  buf,
int  size 
)

Definition at line 180 of file lcevc.c.

Referenced by ff_make_codec_str().

◆ ff_isom_write_lvcc()

int ff_isom_write_lvcc ( AVIOContext pb,
const uint8_t *  data,
int  len 
)

Definition at line 251 of file lcevc.c.

Referenced by mov_write_lvcc_tag().