spBase
|
#include <sp/spDefs.h>
関数 | |
データシフト | |
void | spShiftShort (short *data, long length, long shift) |
void | spShiftLong (long *data, long length, long shift) |
void | spShiftFloat (float *data, long length, long shift) |
void | spShiftDouble (double *data, long length, long shift) |
データスワップ | |
void | spSwapShort (short *data, long length) |
void | spSwapLong (long *data, long length) |
void | spSwapLong32 (spLong32 *data, long length) |
void | spSwapULong32 (spULong32 *data, long length) |
void | spSwapFloat (float *data, long length) |
void | spSwapDouble (double *data, long length) |
void | spSwapLong64 (spLong64 *data, long length) |
void | spSwapULong64 (spULong64 *data, long length) |
読み込み | |
long | spFReadShort (short *data, long length, int swap, FILE *fp) |
long | spFReadLong (long *data, long length, int swap, FILE *fp) |
long | spFReadLong32 (long *data, long length, int swap, FILE *fp) |
long | spFReadULong32 (unsigned long *data, long length, int swap, FILE *fp) |
long | spFReadLong32Direct (spLong32 *data, long length, int swap, FILE *fp) |
long | spFReadULong32Direct (spULong32 *data, long length, int swap, FILE *fp) |
long | spFReadLong24 (long *data, long length, int swap, FILE *fp) |
long | spFReadULong24 (unsigned long *data, long length, int swap, FILE *fp) |
long | spFReadLong64 (spLong64 *data, long length, int swap, FILE *fp) |
long | spFReadULong64 (spULong64 *data, long length, int swap, FILE *fp) |
long | spFReadFloatWeighted (float *data, long length, float weight, int swap, FILE *fp) |
long | spFReadFloat (float *data, long length, int swap, FILE *fp) |
long | spFReadDoubleWeighted (double *data, long length, double weight, int swap, FILE *fp) |
long | spFReadDouble (double *data, long length, int swap, FILE *fp) |
long | spFReadByte (short *data, long length, FILE *fp) |
long | spFReadSignedByte (short *data, long length, FILE *fp) |
long | spFReadULaw (short *data, long length, FILE *fp) |
long | spFReadALaw (short *data, long length, FILE *fp) |
long | spFReadINT8 (spINT8 *data, long length, FILE *fp) |
long | spFReadINT16 (spINT16 *data, long length, FILE *fp) |
long | spFReadBYTE (spBYTE *data, long length, FILE *fp) |
long | spFReadWORD (spWORD *data, long length, FILE *fp) |
long | spFReadLONG (spLONG *data, long length, FILE *fp) |
long | spFReadULONG (spULONG *data, long length, FILE *fp) |
long | spFReadShortToDoubleWeighted (double *data, long length, double weight, int swap, FILE *fp) |
long | spFReadShortToDouble (double *data, long length, int swap, FILE *fp) |
long | spFReadLongToDoubleWeighted (double *data, long length, double weight, int swap, FILE *fp) |
long | spFReadLongToDouble (double *data, long length, int swap, FILE *fp) |
long | spFReadLong32ToDoubleWeighted (double *data, long length, double weight, int swap, FILE *fp) |
long | spFReadLong32ToDouble (double *data, long length, int swap, FILE *fp) |
long | spFReadLong24ToDoubleWeighted (double *data, long length, double weight, int swap, FILE *fp) |
long | spFReadLong24ToDouble (double *data, long length, int swap, FILE *fp) |
long | spFReadFloatToDoubleWeighted (double *data, long length, double weight, int swap, FILE *fp) |
long | spFReadFloatToDouble (double *data, long length, int swap, FILE *fp) |
long | spFReadBitToDoubleWeighted (double *data, long length, double weight, int samp_bit, int swap, FILE *fp) |
long | spFReadBitToDouble (double *data, long length, double max, int samp_bit, int swap, FILE *fp) |
書き込み | |
long | spFWriteShort (short *data, long length, int swap, FILE *fp) |
long | spFWriteLong (long *data, long length, int swap, FILE *fp) |
long | spFWriteLong32 (long *data, long length, int swap, FILE *fp) |
long | spFWriteULong32 (unsigned long *data, long length, int swap, FILE *fp) |
long | spFWriteLong32Direct (spLong32 *data, long length, int swap, FILE *fp) |
long | spFWriteULong32Direct (spULong32 *data, long length, int swap, FILE *fp) |
long | spFWriteLong24 (long *data, long length, int swap, FILE *fp) |
long | spFWriteULong24 (unsigned long *data, long length, int swap, FILE *fp) |
long | spFWriteLong64 (spLong64 *data, long length, int swap, FILE *fp) |
long | spFWriteULong64 (spULong64 *data, long length, int swap, FILE *fp) |
long | spFWriteFloatWeighted (float *data, long length, float weight, int swap, FILE *fp) |
long | spFWriteFloat (float *data, long length, int swap, FILE *fp) |
long | spFWriteDoubleWeighted (double *data, long length, double weight, int swap, FILE *fp) |
long | spFWriteDouble (double *data, long length, int swap, FILE *fp) |
long | spFWriteByte (short *data, long length, FILE *fp) |
long | spFWriteSignedByte (short *data, long length, FILE *fp) |
long | spFWriteULaw (short *data, long length, FILE *fp) |
long | spFWriteALaw (short *data, long length, FILE *fp) |
long | spFWriteINT8 (spINT8 *data, long length, FILE *fp) |
long | spFWriteINT16 (spINT16 *data, long length, FILE *fp) |
long | spFWriteBYTE (spBYTE *data, long length, FILE *fp) |
long | spFWriteWORD (spWORD *data, long length, FILE *fp) |
long | spFWriteLONG (spLONG *data, long length, FILE *fp) |
long | spFWriteULONG (spULONG *data, long length, FILE *fp) |
long | spFWriteDoubleToShortWeighted (double *data, long length, double weight, int swap, FILE *fp) |
long | spFWriteDoubleToShort (double *data, long length, int swap, FILE *fp) |
long | spFWriteDoubleToLongWeighted (double *data, long length, double weight, int swap, FILE *fp) |
long | spFWriteDoubleToLong (double *data, long length, int swap, FILE *fp) |
long | spFWriteDoubleToLong32Weighted (double *data, long length, double weight, int swap, FILE *fp) |
long | spFWriteDoubleToLong32 (double *data, long length, int swap, FILE *fp) |
long | spFWriteDoubleToLong24Weighted (double *data, long length, double weight, int swap, FILE *fp) |
long | spFWriteDoubleToLong24 (double *data, long length, int swap, FILE *fp) |
long | spFWriteDoubleToFloatWeighted (double *data, long length, double weight, int swap, FILE *fp) |
long | spFWriteDoubleToFloat (double *data, long length, int swap, FILE *fp) |
long | spFWriteDoubleToBitWeighted (double *data, long length, double weight, int samp_bit, int swap, FILE *fp) |
long | spFWriteDoubleToBit (double *data, long length, double max, int samp_bit, int swap, FILE *fp) |
long | spFWriteLong32ToShort (long *data, long length, int swap, FILE *fp) |
long | spFWriteLong24ToShort (long *data, long length, int swap, FILE *fp) |
テキスト入出力 | |
int | spGetNumRow (const char *filename) |
int | spGetNumColumn (const char *filename) |
int | spGetCSVNumRow (const char *filename) |
int | spGetCSVNumColumn (const char *filename) |
int | spFGetNColumn (char *buf, int size, int col, FILE *fp) |
int | spFGetColumn (char *buf, int col, FILE *fp) |
int | spSGetNColumn (char *buf, int size, int col, const char *line) |
int | spSGetColumn (char *buf, int col, const char *line) |
char * | spSGetNextNColumn (char *buf, int size, const char *line) |
int | spFGetCSVNColumn (char *buf, int size, int col, FILE *fp) |
int | spSGetCSVNColumn (char *buf, int size, int col, const char *line) |
char * | spSGetNextCSVNColumn (char *buf, int size, const char *line) |
int | spFGetNLine (char *buf, int size, FILE *fp) |
int | spFGetLine (char *buf, FILE *fp) |
int | spGetNLine (char *buf, int size) |
int | spGetLine (char *buf) |
int | spFPutLine (const char *input, FILE *fp) |
int | spSPutLine (const char *input, char *line, int size) |
int | spFPutString (const char *input, FILE *fp) |
int | spSPutString (const char *input, char *line, int size) |
char * | spFGetNString (char *buf, int size, FILE *fp) |
char * | spGetNString (char *buf, int size) |
char * | spSGetNString (char *buf, int size, const char *string) |
int | spSScanNSetup (const char *line, char *name, int namelen, char *value, int valuelen) |
int | spSScanSetup (const char *line, char *name, char *value) |
ファイルサイズ | |
#define | spGetSignalLength(filename, headsize, type) (spGetFileSize(filename, headsize) / (spFileOffset)sizeof(type)) |
#define | spFSkipData(len, fp, type) (spFSkipByte((len) * (long)sizeof(type), fp) / (long)sizeof(type)) |
spFileOffset | spGetFileSize (const char *filename, long headsize) |
long | spGetTextFileSize (const char *filename) |
void | spFSkipHeader (long headsize, FILE *fp) |
long | spFSkipByte (long len, FILE *fp) |
インターリーブとデインターリーブ | |
#define | spInterleaveData(ddata, dlength, idata, ilength, num_channel, type) _spInterleaveData((char *)(ddata), dlength, (char *)(idata), ilength, num_channel, sizeof(type)) |
#define | spDeinterleaveData(idata, ilength, ddata, dlength, num_channel, type) _spDeinterleaveData((char *)(idata), ilength, (char *)(ddata), dlength, num_channel, sizeof(type)) |
long | _spInterleaveData (char *ddata, long dlength, char *idata, long ilength, int num_channel, int samp_byte) |
long | _spDeinterleaveData (char *idata, long ilength, char *ddata, long dlength, int num_channel, int samp_byte) |