Changeset 71 for mppenc/branches/r2d/libmpcenc/tools.c
- Timestamp:
- 10/07/06 02:49:28 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mppenc/branches/r2d/libmpcenc/tools.c
r65 r71 40 40 #if defined HAVE_INCOMPLETE_READ && FILEIO != 1 41 41 42 size_t43 complete_read ( int fd, void* dest, size_t bytes )44 { 45 size_t bytesread = 0;46 size_t ret;42 mpc_size_t 43 complete_read ( int fd, void* dest, mpc_size_t bytes ) 44 { 45 mpc_size_t bytesread = 0; 46 mpc_size_t ret; 47 47 48 48 while ( bytes > 0 ) { … … 52 52 ret = read ( fd, dest, bytes ); 53 53 #endif 54 if ( ret == 0 || ret == ( size_t)-1 )54 if ( ret == 0 || ret == (mpc_size_t)-1 ) 55 55 break; 56 56 dest = (void*)(((char*)dest) + ret); … … 75 75 76 76 static void 77 Change_Endian32 ( mpc_uint32_t* dst, size_t words32bit )77 Change_Endian32 ( mpc_uint32_t* dst, mpc_size_t words32bit ) 78 78 { 79 79 … … 107 107 */ 108 108 109 size_t110 Read_LittleEndians ( FILE* fp, mpc_uint32_t* dst, size_t words32bit )111 { 112 size_t wordsread;109 mpc_size_t 110 Read_LittleEndians ( FILE* fp, mpc_uint32_t* dst, mpc_size_t words32bit ) 111 { 112 mpc_size_t wordsread; 113 113 wordsread = READ ( fp, dst, words32bit * sizeof(*dst) ) / sizeof(*dst); 114 114 … … 195 195 196 196 void 197 Requantize_MidSideStereo ( Int Stop_Band, const Bool_t* used_MS )198 { 199 Int Band; // 0...Stop_Band197 Requantize_MidSideStereo ( mpc_int_t Stop_Band, const mpc_bool_t* used_MS ) 198 { 199 mpc_int_t Band; // 0...Stop_Band 200 200 Uint k; // 0...35 201 201 Float ML; … … 412 412 413 413 void 414 Requantize_IntensityStereo ( Int Start_Band, Int Stop_Band )415 { 416 Int Band; // Start_Band...Stop_Band414 Requantize_IntensityStereo ( mpc_int_t Start_Band, mpc_int_t Stop_Band ) 415 { 416 mpc_int_t Band; // Start_Band...Stop_Band 417 417 Uint k; // 0...35 418 418 Float ML; … … 479 479 480 480 void 481 Resort_HuffTable ( Huffman_t* const Table, const size_t elements, Int offset )482 { 483 size_t i;481 Resort_HuffTable ( Huffman_t* const Table, const mpc_size_t elements, mpc_int_t offset ) 482 { 483 mpc_size_t i; 484 484 485 485 for ( i = 0; i < elements; i++ ) { … … 505 505 506 506 void 507 Make_HuffTable ( Huffman_t* dst, const HuffSrc_t* src, size_t len )508 { 509 size_t i;507 Make_HuffTable ( Huffman_t* dst, const HuffSrc_t* src, mpc_size_t len ) 508 { 509 mpc_size_t i; 510 510 511 511 for ( i = 0; i < len; i++,src++,dst++ ) { … … 530 530 531 531 void 532 Make_LookupTable ( mpc_uint8_t* LUT, size_t LUT_len, const Huffman_t* const Table, constsize_t elements )533 { 534 size_t i;535 size_t idx = elements;532 Make_LookupTable ( mpc_uint8_t* LUT, mpc_size_t LUT_len, const Huffman_t* const Table, const mpc_size_t elements ) 533 { 534 mpc_size_t i; 535 mpc_size_t idx = elements; 536 536 mpc_uint32_t dval = (mpc_uint32_t)0x80000000L / LUT_len * 2; 537 537 mpc_uint32_t val = dval - 1;
Note: See TracChangeset
for help on using the changeset viewer.