Changeset 226 for libmpc/branches/r2d/libmpcenc/libmpcenc.h
- Timestamp:
- 03/16/07 16:54:54 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/branches/r2d/libmpcenc/libmpcenc.h
r221 r226 27 27 #endif 28 28 29 // bitstream.c 30 #define FRAMES_PER_BLOCK_PWR 6 // MUST be even 31 #define FRAMES_PER_BLOCK (1 << FRAMES_PER_BLOCK_PWR) 32 #define BUFFER_FULL (4352 * FRAMES_PER_BLOCK) // 34490 bit/frame 1320.3 kbps 33 34 // FIXME : make this size dependent of the input file 35 #define SEEK_SIZE (1 << 16) // number of seek entries 29 #define MPC_FRAME_LENGTH (36 * 32) 30 #define MAX_FRAME_SIZE 4352 36 31 37 32 typedef struct { … … 45 40 mpc_uint64_t outputBits; // Counter for the number of written bits in the bitstream 46 41 mpc_uint32_t bitsBuff; // bits buffer 47 mpc_uint8_t buffer [BUFFER_FULL]; // Buffer for bitstream-file 48 mpc_uint_t framesInBlock; 42 mpc_uint8_t * buffer; // Buffer for bitstream-file 43 mpc_uint_t framesInBlock; // Number of frames in current block 44 mpc_uint_t frames_per_block_pwr; // Number of frame in a block = 1 << frames_per_block_pwr 49 45 50 46 // seeking 51 mpc_uint32_t seek_table[SEEK_SIZE];47 mpc_uint32_t * seek_table; 52 48 mpc_uint32_t seek_pos; /// current position in the seek table 53 49 mpc_uint32_t seek_ref; /// reference position for the seek information … … 74 70 } mpc_encoder_t; 75 71 76 void Init_SV8 ( mpc_encoder_t* ); 72 void mpc_encoder_init ( mpc_encoder_t * e, 73 mpc_uint64_t SamplesInWAVE, 74 unsigned int FramesBlockPwr, 75 unsigned int SeekDistance ); 76 void mpc_encoder_exit ( mpc_encoder_t * e ); 77 77 void writeStreamInfo ( mpc_encoder_t*e, 78 78 const unsigned int MaxBand,
Note: See TracChangeset
for help on using the changeset viewer.