GPAC
Open Source Multimedia Framework. For more information, check out http://gpac.wp.mines-telecom.fr
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
avparse.h File Reference
#include <gpac/bitstream.h>
+ Include dependency graph for avparse.h:
+ This graph shows which files directly or indirectly include this file:

Data Structures

struct  GF_M4VDecSpecInfo
 
struct  GF_VorbisParser
 
struct  GF_M4ADecSpecInfo
 
struct  GF_AC3Header
 

Enumerations

enum  {
  GF_M4A_AAC_MAIN = 1, GF_M4A_AAC_LC = 2, GF_M4A_AAC_SSR = 3, GF_M4A_AAC_LTP = 4,
  GF_M4A_AAC_SBR = 5, GF_M4A_AAC_SCALABLE = 6, GF_M4A_TWINVQ = 7, GF_M4A_CELP = 8,
  GF_M4A_HVXC = 9, GF_M4A_TTSI = 12, GF_M4A_MAIN_SYNTHETIC = 13, GF_M4A_WAVETABLE_SYNTHESIS = 14,
  GF_M4A_GENERAL_MIDI = 15, GF_M4A_ALGO_SYNTH_AUDIO_FX = 16, GF_M4A_ER_AAC_LC = 17, GF_M4A_ER_AAC_LTP = 19,
  GF_M4A_ER_AAC_SCALABLE = 20, GF_M4A_ER_TWINVQ = 21, GF_M4A_ER_BSAC = 22, GF_M4A_ER_AAC_LD = 23,
  GF_M4A_ER_CELP = 24, GF_M4A_ER_HVXC = 25, GF_M4A_ER_HILN = 26, GF_M4A_ER_PARAMETRIC = 27,
  GF_M4A_SSC = 28, GF_M4A_AAC_PS = 29, GF_M4A_LAYER1 = 32, GF_M4A_LAYER2 = 33,
  GF_M4A_LAYER3 = 34, GF_M4A_DST = 35, GF_M4A_ALS = 36
}
 

Functions

GF_M4VParser * gf_m4v_parser_new (char *data, u64 data_size, Bool mpeg12video)
 
GF_M4VParser * gf_m4v_parser_bs_new (GF_BitStream *bs, Bool mpeg12video)
 
void gf_m4v_parser_del (GF_M4VParser *m4v)
 
GF_Err gf_m4v_parse_config (GF_M4VParser *m4v, GF_M4VDecSpecInfo *dsi)
 
GF_Err gf_m4v_parse_frame (GF_M4VParser *m4v, GF_M4VDecSpecInfo dsi, u8 *frame_type, u32 *time_inc, u64 *size, u64 *start, Bool *is_coded)
 
u64 gf_m4v_get_object_start (GF_M4VParser *m4v)
 
Bool gf_m4v_is_valid_object_type (GF_M4VParser *m4v)
 
GF_Err gf_m4v_get_config (char *rawdsi, u32 rawdsi_size, GF_M4VDecSpecInfo *dsi)
 
void gf_m4v_rewrite_pl (char **io_dsi, u32 *io_dsi_len, u8 PL)
 
GF_Err gf_m4v_rewrite_par (char **o_data, u32 *o_dataLen, s32 par_n, s32 par_d)
 
const char * gf_m4v_get_profile_name (u8 video_pl)
 
s32 gf_mv12_next_start_code (unsigned char *pbuffer, u32 buflen, u32 *optr, u32 *scode)
 
s32 gf_mv12_next_slice_start (unsigned char *pbuffer, u32 startoffset, u32 buflen, u32 *slice_offset)
 
u8 gf_mp3_num_channels (u32 hdr)
 
u16 gf_mp3_sampling_rate (u32 hdr)
 
u16 gf_mp3_window_size (u32 hdr)
 
u32 gf_mp3_bit_rate (u32 hdr)
 
u8 gf_mp3_object_type_indication (u32 hdr)
 
u8 gf_mp3_layer (u32 hdr)
 
u16 gf_mp3_frame_size (u32 hdr)
 
u32 gf_mp3_get_next_header (FILE *in)
 
u32 gf_mp3_get_next_header_mem (const char *buffer, u32 size, u32 *pos)
 
u8 gf_mp3_version (u32 hdr)
 
const char * gf_mp3_version_name (u32 hdr)
 
Bool gf_vorbis_parse_header (GF_VorbisParser *vp, char *data, u32 data_len)
 
u32 gf_vorbis_check_frame (GF_VorbisParser *vp, char *data, u32 data_length)
 
GF_Err gf_m4a_get_config (char *dsi, u32 dsi_size, GF_M4ADecSpecInfo *cfg)
 
u32 gf_m4a_get_profile (GF_M4ADecSpecInfo *cfg)
 
GF_Err gf_m4a_write_config (GF_M4ADecSpecInfo *cfg, char **dsi, u32 *dsi_size)
 
GF_Err gf_m4a_write_config_bs (GF_BitStream *bs, GF_M4ADecSpecInfo *cfg)
 
GF_Err gf_m4a_parse_config (GF_BitStream *bs, GF_M4ADecSpecInfo *cfg, Bool size_known)
 
const char * gf_m4a_object_type_name (u32 objectType)
 
const char * gf_m4a_get_profile_name (u8 audio_pl)
 
Bool gf_ac3_parser (u8 *buffer, u32 buffer_size, u32 *pos, GF_AC3Header *out_hdr, Bool full_parse)
 
Bool gf_ac3_parser_bs (GF_BitStream *bs, GF_AC3Header *hdr, Bool full_parse)
 
u32 gf_ac3_get_channels (u32 acmod)
 
u32 gf_ac3_get_bitrate (u32 brcode)
 
GF_Err gf_avc_get_sps_info (char *sps, u32 sps_size, u32 *sps_id, u32 *width, u32 *height, s32 *par_n, s32 *par_d)
 
GF_Err gf_avc_get_pps_info (char *pps, u32 pps_size, u32 *pps_id, u32 *sps_id)
 
const char * gf_avc_get_profile_name (u8 video_prof)
 
GF_Err gf_hevc_get_sps_info (char *sps_data, u32 sps_size, u32 *sps_id, u32 *width, u32 *height, s32 *par_n, s32 *par_d)
 
const char * gf_hevc_get_profile_name (u8 video_prof)
 
void gf_img_parse (GF_BitStream *bs, u8 *OTI, u32 *mtype, u32 *width, u32 *height, char **dsi, u32 *dsi_len)
 
GF_Err gf_img_jpeg_dec (char *jpg, u32 jpg_size, u32 *width, u32 *height, u32 *pixel_format, char *dst, u32 *dst_size, u32 dst_nb_comp)
 
GF_Err gf_img_png_dec (char *png, u32 png_size, u32 *width, u32 *height, u32 *pixel_format, char *dst, u32 *dst_size)
 
GF_Err gf_img_file_dec (char *png_file, u32 *oti, u32 *width, u32 *height, u32 *pixel_format, char **dst, u32 *dst_size)
 
GF_Err gf_img_png_enc (char *data, u32 width, u32 height, s32 stride, u32 pixel_format, char *dst, u32 *dst_size)
 

Variables

static const u32 GF_M4ASampleRates []
 

Data Structure Documentation

struct GF_M4VDecSpecInfo
+ Collaboration diagram for GF_M4VDecSpecInfo:
Data Fields
u8 VideoPL
u8 RAP_stream
u8 objectType
u8 has_shape
u8 enh_layer
u16 width
u16 height
u8 par_num
u8 par_den
u16 clock_rate
u8 NumBitsTimeIncrement
u32 time_increment
Double fps
struct GF_VorbisParser
+ Collaboration diagram for GF_VorbisParser:
Data Fields
u32 sample_rate
u32 channels
u32 version
s32 max_r
s32 avg_r
s32 low_r
u32 min_block
u32 max_block
Bool is_init
u32 modebits
Bool mode_flag[64]
struct GF_M4ADecSpecInfo
+ Collaboration diagram for GF_M4ADecSpecInfo:
Data Fields
u32 nb_chan
u32 base_object_type
u32 base_sr
u32 base_sr_index
Bool has_sbr
u32 sbr_object_type
u32 sbr_sr
u32 sbr_sr_index
Bool has_ps
u8 audioPL
struct GF_AC3Header
+ Collaboration diagram for GF_AC3Header:
Data Fields
u32 bitrate
u32 sample_rate
u32 framesize
u32 channels
u8 fscod
u8 bsid
u8 bsmod
u8 acmod
u8 lfon
u8 brcode

Enumeration Type Documentation

anonymous enum

defined(GPAC_DISABLE_AV_PARSERS) && !defined (GPAC_DISABLE_OGG)

Enumerator
GF_M4A_AAC_MAIN 
GF_M4A_AAC_LC 
GF_M4A_AAC_SSR 
GF_M4A_AAC_LTP 
GF_M4A_AAC_SBR 
GF_M4A_AAC_SCALABLE 
GF_M4A_TWINVQ 
GF_M4A_CELP 
GF_M4A_HVXC 
GF_M4A_TTSI 
GF_M4A_MAIN_SYNTHETIC 
GF_M4A_WAVETABLE_SYNTHESIS 
GF_M4A_GENERAL_MIDI 
GF_M4A_ALGO_SYNTH_AUDIO_FX 
GF_M4A_ER_AAC_LC 
GF_M4A_ER_AAC_LTP 
GF_M4A_ER_AAC_SCALABLE 
GF_M4A_ER_TWINVQ 
GF_M4A_ER_BSAC 
GF_M4A_ER_AAC_LD 
GF_M4A_ER_CELP 
GF_M4A_ER_HVXC 
GF_M4A_ER_HILN 
GF_M4A_ER_PARAMETRIC 
GF_M4A_SSC 
GF_M4A_AAC_PS 
GF_M4A_LAYER1 
GF_M4A_LAYER2 
GF_M4A_LAYER3 
GF_M4A_DST 
GF_M4A_ALS 

Function Documentation

GF_M4VParser* gf_m4v_parser_new ( char *  data,
u64  data_size,
Bool  mpeg12video 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_M4VParser* gf_m4v_parser_bs_new ( GF_BitStream *  bs,
Bool  mpeg12video 
)

+ Here is the caller graph for this function:

void gf_m4v_parser_del ( GF_M4VParser *  m4v)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_m4v_parse_config ( GF_M4VParser *  m4v,
GF_M4VDecSpecInfo dsi 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_m4v_parse_frame ( GF_M4VParser *  m4v,
GF_M4VDecSpecInfo  dsi,
u8 frame_type,
u32 time_inc,
u64 size,
u64 start,
Bool is_coded 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u64 gf_m4v_get_object_start ( GF_M4VParser *  m4v)

+ Here is the caller graph for this function:

Bool gf_m4v_is_valid_object_type ( GF_M4VParser *  m4v)

+ Here is the caller graph for this function:

GF_Err gf_m4v_get_config ( char *  rawdsi,
u32  rawdsi_size,
GF_M4VDecSpecInfo dsi 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_m4v_rewrite_pl ( char **  io_dsi,
u32 io_dsi_len,
u8  PL 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_m4v_rewrite_par ( char **  o_data,
u32 o_dataLen,
s32  par_n,
s32  par_d 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const char* gf_m4v_get_profile_name ( u8  video_pl)

+ Here is the caller graph for this function:

s32 gf_mv12_next_start_code ( unsigned char *  pbuffer,
u32  buflen,
u32 optr,
u32 scode 
)

+ Here is the caller graph for this function:

s32 gf_mv12_next_slice_start ( unsigned char *  pbuffer,
u32  startoffset,
u32  buflen,
u32 slice_offset 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8 gf_mp3_num_channels ( u32  hdr)

+ Here is the caller graph for this function:

u16 gf_mp3_sampling_rate ( u32  hdr)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u16 gf_mp3_window_size ( u32  hdr)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 gf_mp3_bit_rate ( u32  hdr)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8 gf_mp3_object_type_indication ( u32  hdr)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8 gf_mp3_layer ( u32  hdr)

+ Here is the caller graph for this function:

u16 gf_mp3_frame_size ( u32  hdr)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 gf_mp3_get_next_header ( FILE *  in)

+ Here is the caller graph for this function:

u32 gf_mp3_get_next_header_mem ( const char *  buffer,
u32  size,
u32 pos 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8 gf_mp3_version ( u32  hdr)

+ Here is the caller graph for this function:

const char* gf_mp3_version_name ( u32  hdr)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool gf_vorbis_parse_header ( GF_VorbisParser vp,
char *  data,
u32  data_len 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 gf_vorbis_check_frame ( GF_VorbisParser vp,
char *  data,
u32  data_length 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_m4a_get_config ( char *  dsi,
u32  dsi_size,
GF_M4ADecSpecInfo cfg 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 gf_m4a_get_profile ( GF_M4ADecSpecInfo cfg)

+ Here is the caller graph for this function:

GF_Err gf_m4a_write_config ( GF_M4ADecSpecInfo cfg,
char **  dsi,
u32 dsi_size 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_m4a_write_config_bs ( GF_BitStream *  bs,
GF_M4ADecSpecInfo cfg 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_m4a_parse_config ( GF_BitStream *  bs,
GF_M4ADecSpecInfo cfg,
Bool  size_known 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const char* gf_m4a_object_type_name ( u32  objectType)

+ Here is the caller graph for this function:

const char* gf_m4a_get_profile_name ( u8  audio_pl)

+ Here is the caller graph for this function:

Bool gf_ac3_parser ( u8 buffer,
u32  buffer_size,
u32 pos,
GF_AC3Header out_hdr,
Bool  full_parse 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool gf_ac3_parser_bs ( GF_BitStream *  bs,
GF_AC3Header hdr,
Bool  full_parse 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 gf_ac3_get_channels ( u32  acmod)

+ Here is the caller graph for this function:

u32 gf_ac3_get_bitrate ( u32  brcode)

+ Here is the caller graph for this function:

GF_Err gf_avc_get_sps_info ( char *  sps,
u32  sps_size,
u32 sps_id,
u32 width,
u32 height,
s32 par_n,
s32 par_d 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_avc_get_pps_info ( char *  pps,
u32  pps_size,
u32 pps_id,
u32 sps_id 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const char* gf_avc_get_profile_name ( u8  video_prof)

+ Here is the caller graph for this function:

GF_Err gf_hevc_get_sps_info ( char *  sps_data,
u32  sps_size,
u32 sps_id,
u32 width,
u32 height,
s32 par_n,
s32 par_d 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const char* gf_hevc_get_profile_name ( u8  video_prof)

+ Here is the caller graph for this function:

void gf_img_parse ( GF_BitStream *  bs,
u8 OTI,
u32 mtype,
u32 width,
u32 height,
char **  dsi,
u32 dsi_len 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_img_jpeg_dec ( char *  jpg,
u32  jpg_size,
u32 width,
u32 height,
u32 pixel_format,
char *  dst,
u32 dst_size,
u32  dst_nb_comp 
)

+ Here is the caller graph for this function:

GF_Err gf_img_png_dec ( char *  png,
u32  png_size,
u32 width,
u32 height,
u32 pixel_format,
char *  dst,
u32 dst_size 
)

+ Here is the caller graph for this function:

GF_Err gf_img_file_dec ( char *  png_file,
u32 oti,
u32 width,
u32 height,
u32 pixel_format,
char **  dst,
u32 dst_size 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_img_png_enc ( char *  data,
u32  width,
u32  height,
s32  stride,
u32  pixel_format,
char *  dst,
u32 dst_size 
)

+ Here is the caller graph for this function:

Variable Documentation

const u32 GF_M4ASampleRates[]
static
Initial value:
=
{
96000, 88200, 64000, 48000, 44100, 32000, 24000, 22050,
16000, 12000, 11025, 8000, 7350, 0, 0, 0
}