ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

parse.c File Reference
#include "mpg123lib_intern.h"
#include <sys/stat.h>
#include <fcntl.h>
#include "getbits.h"
#include "debug.h"

Go to the source code of this file.

Defines

#define ULONG_MAX   ((unsigned long)-1)
#define TRACK_MAX_FRAMES   ULONG_MAX/4/1152
#define bsbufid(fr)   (fr)->bsbuf==(fr)->bsspace[0] ? 0 : ((fr)->bsbuf==fr->bsspace[1] ? 1 : ( (fr)->bsbuf==(fr)->bsspace[0]+512 ? 2 : ((fr)->bsbuf==fr->bsspace[1]+512 ? 3 : -1) ) )
#define HDRCMPMASK   0xfffe0d00
#define HDRSAMPMASK   0xc00 /* 1100 00000000, FF bits (sample rate) */
#define free_format_header(head)   ( ((head & 0xffe00000) == 0xffe00000) && ((head>>17)&3) && (((head>>12)&0xf) == 0x0) && (((head>>10)&0x3) != 0x3 ))
#define make_long(a, o)   ((((unsigned long) a[o]) << 24) | (((unsigned long) a[o+1]) << 16) | (((unsigned long) a[o+2]) << 8) | ((unsigned long) a[o+3]))
#define make_short(a, o)   ((((unsigned short) a[o]) << 8) | ((unsigned short) a[o+1]))

Functions

static int decode_header (mpg123_handle *fr, unsigned long newhead)
int frame_bitrate (mpg123_handle *fr)
long frame_freq (mpg123_handle *fr)
int head_check (unsigned long head)
static int check_lame_tag (mpg123_handle *fr)
static int header_mono (unsigned long newhead)
int read_frame (mpg123_handle *fr)
static int guess_freeformat_framesize (mpg123_handle *fr)
void set_pointer (mpg123_handle *fr, long backstep)
double compute_bpf (mpg123_handle *fr)
double attribute_align_arg mpg123_tpf (mpg123_handle *fr)
int attribute_align_arg mpg123_position (mpg123_handle *fr, off_t no, off_t buffsize, off_t *current_frame, off_t *frames_left, double *current_seconds, double *seconds_left)
int get_songlen (mpg123_handle *fr, int no)

Variables

static const int tabsel_123 [2][3][16]
const long freqs [9] = { 44100, 48000, 32000, 22050, 24000, 16000 , 11025 , 12000 , 8000 }

Generated on Sat May 26 2012 04:47:14 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.