FFmpeg
Functions
nal.c File Reference
#include <stdint.h>
#include <string.h>
#include "libavutil/mem.h"
#include "libavutil/error.h"
#include "libavcodec/defs.h"
#include "avio.h"
#include "avio_internal.h"
#include "nal.h"

Go to the source code of this file.

Functions

static const uint8_t * nal_find_startcode_internal (const uint8_t *p, const uint8_t *end)
 
const uint8_t * ff_nal_find_startcode (const uint8_t *p, const uint8_t *end)
 
static int nal_parse_units (AVIOContext *pb, NALUList *list, const uint8_t *buf_in, int size)
 
int ff_nal_parse_units (AVIOContext *pb, const uint8_t *buf_in, int size)
 
int ff_nal_units_create_list (NALUList *list, const uint8_t *buf, int size)
 
void ff_nal_units_write_list (const NALUList *list, AVIOContext *pb, const uint8_t *buf)
 
int ff_nal_parse_units_buf (const uint8_t *buf_in, uint8_t **buf, int *size)
 
const uint8_t * ff_nal_mp4_find_startcode (const uint8_t *start, const uint8_t *end, int nal_length_size)
 
uint8_t * ff_nal_unit_extract_rbsp (const uint8_t *src, uint32_t src_len, uint32_t *dst_len, int header_len)
 

Function Documentation

◆ nal_find_startcode_internal()

static const uint8_t* nal_find_startcode_internal ( const uint8_t *  p,
const uint8_t *  end 
)
static

Definition at line 31 of file nal.c.

Referenced by ff_nal_find_startcode().

◆ ff_nal_find_startcode()

const uint8_t* ff_nal_find_startcode ( const uint8_t *  p,
const uint8_t *  end 
)

◆ nal_parse_units()

static int nal_parse_units ( AVIOContext pb,
NALUList list,
const uint8_t *  buf_in,
int  size 
)
static

Definition at line 74 of file nal.c.

Referenced by ff_nal_parse_units(), and ff_nal_units_create_list().

◆ ff_nal_parse_units()

int ff_nal_parse_units ( AVIOContext pb,
const uint8_t *  buf_in,
int  size 
)

◆ ff_nal_units_create_list()

int ff_nal_units_create_list ( NALUList list,
const uint8_t *  buf,
int  size 
)

Definition at line 115 of file nal.c.

◆ ff_nal_units_write_list()

void ff_nal_units_write_list ( const NALUList list,
AVIOContext pb,
const uint8_t *  buf 
)

Definition at line 121 of file nal.c.

◆ ff_nal_parse_units_buf()

int ff_nal_parse_units_buf ( const uint8_t *  buf_in,
uint8_t **  buf,
int *  size 
)

◆ ff_nal_mp4_find_startcode()

const uint8_t* ff_nal_mp4_find_startcode ( const uint8_t *  start,
const uint8_t *  end,
int  nal_length_size 
)

Definition at line 143 of file nal.c.

Referenced by ff_rtp_send_h264_hevc().

◆ ff_nal_unit_extract_rbsp()

uint8_t* ff_nal_unit_extract_rbsp ( const uint8_t *  src,
uint32_t  src_len,
uint32_t *  dst_len,
int  header_len 
)

Definition at line 160 of file nal.c.

Referenced by ff_avc_decode_sps(), hvcc_add_nal_unit(), vvcc_add_nal_unit(), and write_codec_attr().