FFmpeg
Data Structures | Functions
nal.h File Reference
#include <stdint.h>
#include "avio.h"

Go to the source code of this file.

Data Structures

struct  NALU
 
struct  NALUList
 

Functions

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)
 
const uint8_t * ff_nal_find_startcode (const uint8_t *p, const uint8_t *end)
 
const uint8_t * ff_nal_mp4_find_startcode (const uint8_t *start, const uint8_t *end, int nal_length_size)
 
int ff_nal_parse_units (AVIOContext *s, const uint8_t *buf, int size)
 
int ff_nal_parse_units_buf (const uint8_t *buf_in, uint8_t **buf, int *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

◆ 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_find_startcode()

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

◆ 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_parse_units()

int ff_nal_parse_units ( AVIOContext s,
const uint8_t *  buf,
int  size 
)

◆ ff_nal_parse_units_buf()

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

◆ 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().