Go to the source code of this file.
Defines | |
#define | ntohl own_ntohl |
Functions | |
static unsigned long int | own_ntohl (unsigned long int in) |
int | mpeg_read (const char *_path, struct mpeg *_mpeg) |
unsigned long int | mpeg_seek_next_header (FILE *_fp) |
int | mpeg_extract_info (unsigned long int _header, struct mpeg *_mpeg) |
size_t | mpeg_frame_length (struct mpeg *_mpeg) |
size_t | mpeg_frame_bytes (struct mpeg *_mpeg) |
void | mpeg_print (struct mpeg *_mpeg) |
int | main (int argc, char *argv[]) |
Variables | |
static const int | bitrates [2][3][15] |
static const int | freqs [3][3] |
#define ntohl own_ntohl |
static unsigned long int own_ntohl | ( | unsigned long int | in | ) | [static] |
int mpeg_read | ( | const char * | _path, | |
struct mpeg * | _mpeg | |||
) |
Definition at line 118 of file mpeg.c.
References mpeg_extract_info(), and mpeg_seek_next_header().
Referenced by main().
unsigned long int mpeg_seek_next_header | ( | FILE * | _fp | ) |
int mpeg_extract_info | ( | unsigned long int | _header, | |
struct mpeg * | _mpeg | |||
) |
Definition at line 156 of file mpeg.c.
References mpeg::bit_copyright, mpeg::bit_orig, mpeg::bit_padding, mpeg::bit_priv, mpeg::bit_prot, mpeg::bitrate, bitrates, mpeg::chan, mpeg::emphasis, mpeg::freq, freqs, mpeg::layer_desc, MASK_BITRATE, MASK_CHAN, MASK_COPYRIGHT, MASK_EMPHASIS, MASK_FREQ, MASK_LAYER, MASK_MODE_EXT, MASK_MPEG, MASK_ORIG, MASK_PADDING, MASK_PRIV, MASK_PROT, MASK_SYNC, mpeg::mode_ext, mpeg::mpeg_version, MPEG_VERSION_1, MPEG_VERSION_2, MPEG_VERSION_2_5, SHIFT_BITRATE, SHIFT_CHAN, SHIFT_COPYRIGHT, SHIFT_EMPHASIS, SHIFT_FREQ, SHIFT_LAYER, SHIFT_MODE_EXT, SHIFT_MPEG, SHIFT_ORIG, SHIFT_PADDING, SHIFT_PRIV, and SHIFT_PROT.
Referenced by mpeg_read().
size_t mpeg_frame_length | ( | struct mpeg * | _mpeg | ) |
Definition at line 200 of file mpeg.c.
References mpeg::bit_padding, mpeg::bitrate, mpeg::freq, mpeg::layer_desc, and LAYER_VERSION_1.
Referenced by mpeg_frame_bytes(), and mpeg_print().
size_t mpeg_frame_bytes | ( | struct mpeg * | _mpeg | ) |
void mpeg_print | ( | struct mpeg * | _mpeg | ) |
Definition at line 212 of file mpeg.c.
References mpeg::bit_copyright, mpeg::bit_orig, mpeg::bit_padding, mpeg::bit_priv, mpeg::bit_prot, mpeg::bitrate, mpeg::chan, CMODE_JOINT_STEREO, mpeg::emphasis, mpeg::freq, mpeg::layer_desc, LAYER_VERSION_1, LAYER_VERSION_2, LAYER_VERSION_3, mpeg::mode_ext, mpeg_frame_bytes(), mpeg_frame_length(), mpeg::mpeg_version, MPEG_VERSION_1, MPEG_VERSION_2, and MPEG_VERSION_2_5.
Referenced by main().
int main | ( | int | argc, | |
char * | argv[] | |||
) |
const int bitrates[2][3][15] [static] |
const int freqs[3][3] [static] |
Initial value:
{ { 44100, 48000, 32000 }, { 22050, 24000, 16000 }, { 11025, 12000, 8000 } }
Definition at line 77 of file mpeg.c.
Referenced by mpeg_extract_info().