#include <config.h>
#include <stdio.h>
#include <math.h>
#include "portableio.h"
Include dependency graph for portableio.c:
Go to the source code of this file.
Defines | |
#define | Read32BitsLowHigh(f) Read32Bits(f) |
#define | FloatToUnsigned(f) ((unsigned long)(((long)((f) - 2147483648.0)) + 2147483647L + 1)) |
#define | UnsignedToFloat(u) (((double)((long)((u) - 2147483647L - 1))) + 2147483648.0) |
Functions | |
int | ReadByte (FILE *fp) |
int | Read16BitsLowHigh (FILE *fp) |
int | Read16BitsHighLow (FILE *fp) |
void | Write8Bits (FILE *fp, int i) |
void | Write16BitsLowHigh (FILE *fp, int i) |
void | Write16BitsHighLow (FILE *fp, int i) |
int | Read24BitsHighLow (FILE *fp) |
int | Read32Bits (FILE *fp) |
int | Read32BitsHighLow (FILE *fp) |
void | Write32Bits (FILE *fp, int i) |
void | Write32BitsLowHigh (FILE *fp, int i) |
void | Write32BitsHighLow (FILE *fp, int i) |
void | ReadBytes (FILE *fp, char *p, int n) |
void | ReadBytesSwapped (FILE *fp, char *p, int n) |
void | WriteBytes (FILE *fp, char *p, int n) |
void | WriteBytesSwapped (FILE *fp, char *p, int n) |
double | ConvertFromIeeeExtended (char *bytes) |
double | ReadIeeeExtendedHighLow (FILE *fp) |
Definition at line 423 of file portableio.c.
#define UnsignedToFloat | ( | u | ) | (((double)((long)((u) - 2147483647L - 1))) + 2147483648.0) |
double ConvertFromIeeeExtended | ( | char * | bytes | ) |
Definition at line 431 of file portableio.c.
References f, and UnsignedToFloat.
Referenced by ReadIeeeExtendedHighLow().
int Read16BitsHighLow | ( | FILE * | fp | ) |
Definition at line 157 of file portableio.c.
Referenced by parse_aiff_header(), and Read32BitsHighLow().
int Read16BitsLowHigh | ( | FILE * | fp | ) |
int Read24BitsHighLow | ( | FILE * | fp | ) |
Definition at line 230 of file portableio.c.
int Read32Bits | ( | FILE * | fp | ) |
Definition at line 264 of file portableio.c.
References Read16BitsLowHigh().
Here is the call graph for this function:
int Read32BitsHighLow | ( | FILE * | fp | ) |
Definition at line 297 of file portableio.c.
References Read16BitsHighLow().
Referenced by parse_aiff_header(), parse_file_header(), and parse_wave_header().
Here is the call graph for this function:
int ReadByte | ( | FILE * | fp | ) |
Definition at line 102 of file portableio.c.
void ReadBytes | ( | FILE * | fp, | |
char * | p, | |||
int | n | |||
) |
void ReadBytesSwapped | ( | FILE * | fp, | |
char * | p, | |||
int | n | |||
) |
Definition at line 356 of file portableio.c.
double ReadIeeeExtendedHighLow | ( | FILE * | fp | ) |
Definition at line 484 of file portableio.c.
References ConvertFromIeeeExtended(), and ReadBytes().
Referenced by parse_aiff_header().
Here is the call graph for this function:
void Write16BitsHighLow | ( | FILE * | fp, | |
int | i | |||
) |
void Write16BitsLowHigh | ( | FILE * | fp, | |
int | i | |||
) |
Definition at line 202 of file portableio.c.
Referenced by lame_decoder(), Write32Bits(), Write32BitsLowHigh(), and WriteWaveHeader().
void Write32Bits | ( | FILE * | fp, | |
int | i | |||
) |
Definition at line 315 of file portableio.c.
References Write16BitsLowHigh().
Here is the call graph for this function:
void Write32BitsHighLow | ( | FILE * | fp, | |
int | i | |||
) |
Definition at line 331 of file portableio.c.
References Write16BitsHighLow().
Here is the call graph for this function:
void Write32BitsLowHigh | ( | FILE * | fp, | |
int | i | |||
) |
Definition at line 323 of file portableio.c.
References Write16BitsLowHigh().
Referenced by WriteWaveHeader().
Here is the call graph for this function:
void Write8Bits | ( | FILE * | fp, | |
int | i | |||
) |
Definition at line 195 of file portableio.c.
void WriteBytes | ( | FILE * | fp, | |
char * | p, | |||
int | n | |||
) |
void WriteBytesSwapped | ( | FILE * | fp, | |
char * | p, | |||
int | n | |||
) |