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

Go to the source code of this file.

Data Structures

struct  H264SPS
 

Functions

int ff_avc_parse_nal_units (AVIOContext *s, const uint8_t *buf, int size)
 
int ff_avc_parse_nal_units_buf (const uint8_t *buf_in, uint8_t **buf, int *size)
 
int ff_isom_write_avcc (AVIOContext *pb, const uint8_t *data, int len)
 
const uint8_t * ff_avc_find_startcode (const uint8_t *p, const uint8_t *end)
 
int ff_avc_write_annexb_extradata (const uint8_t *in, uint8_t **buf, int *size)
 
const uint8_t * ff_avc_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)
 
int ff_avc_decode_sps (H264SPS *sps, const uint8_t *buf, int buf_size)
 

Function Documentation

◆ ff_avc_parse_nal_units()

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

Definition at line 73 of file avc.c.

Referenced by ff_avc_parse_nal_units_buf(), ff_hevc_annexb2mp4(), and ff_mov_write_packet().

◆ ff_avc_parse_nal_units_buf()

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

◆ ff_isom_write_avcc()

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

◆ ff_avc_find_startcode()

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

◆ ff_avc_write_annexb_extradata()

int ff_avc_write_annexb_extradata ( const uint8_t *  in,
uint8_t **  buf,
int size 
)

Definition at line 221 of file avc.c.

Referenced by get_private_data(), and mov_write_isml_manifest().

◆ ff_avc_mp4_find_startcode()

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

Definition at line 252 of file avc.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 269 of file avc.c.

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

◆ ff_avc_decode_sps()

int ff_avc_decode_sps ( H264SPS sps,
const uint8_t *  buf,
int  buf_size 
)

Definition at line 334 of file avc.c.

Referenced by ff_isom_write_avcc(), and mxf_parse_h264_frame().