FFmpeg
Functions | Variables
avc.c File Reference
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "libavcodec/h264.h"
#include "libavcodec/get_bits.h"
#include "avio.h"
#include "avc.h"
#include "avio_internal.h"
#include "nal.h"

Go to the source code of this file.

Functions

int ff_isom_write_avcc (AVIOContext *pb, const uint8_t *data, int len)
 
int ff_avc_write_annexb_extradata (const uint8_t *in, uint8_t **buf, int *size)
 
static int get_ue_golomb (GetBitContext *gb)
 
static int get_se_golomb (GetBitContext *gb)
 
int ff_avc_decode_sps (H264SPS *sps, const uint8_t *buf, int buf_size)
 

Variables

static const AVRational avc_sample_aspect_ratio [17]
 

Function Documentation

◆ ff_isom_write_avcc()

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

◆ ff_avc_write_annexb_extradata()

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

Definition at line 144 of file avc.c.

Referenced by get_private_data(), and mov_write_isml_manifest().

◆ get_ue_golomb()

static int get_ue_golomb ( GetBitContext gb)
inlinestatic

Definition at line 195 of file avc.c.

Referenced by ff_avc_decode_sps(), and get_se_golomb().

◆ get_se_golomb()

static int get_se_golomb ( GetBitContext gb)
inlinestatic

Definition at line 202 of file avc.c.

Referenced by ff_avc_decode_sps().

◆ ff_avc_decode_sps()

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

Definition at line 208 of file avc.c.

Referenced by ff_isom_write_avcc(), and mxf_parse_h264_frame().

Variable Documentation

◆ avc_sample_aspect_ratio

const AVRational avc_sample_aspect_ratio[17]
static
Initial value:
= {
{ 0, 1 },
{ 1, 1 },
{ 12, 11 },
{ 10, 11 },
{ 16, 11 },
{ 40, 33 },
{ 24, 11 },
{ 20, 11 },
{ 32, 11 },
{ 80, 33 },
{ 18, 11 },
{ 15, 11 },
{ 64, 33 },
{ 160, 99 },
{ 4, 3 },
{ 3, 2 },
{ 2, 1 },
}

Definition at line 175 of file avc.c.

Referenced by ff_avc_decode_sps().