Changeset 3 for trunk/include
- Timestamp:
- 08/12/06 16:21:35 (18 years ago)
- Location:
- trunk/include
- Files:
-
- 1 added
- 11 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/Makefile.am
r1 r3 4 4 5 5 nobase_include_HEADERS = \ 6 m usepack/config_types.h \7 m usepack/decoder.h \8 m usepack/huffman.h \9 m usepack/math.h \10 m usepack/musepack.h \11 m usepack/reader.h \12 m usepack/requant.h \13 m usepack/streaminfo.h6 mpcdec/config_types.h \ 7 mpcdec/decoder.h \ 8 mpcdec/huffman.h \ 9 mpcdec/math.h \ 10 mpcdec/mpcdec.h \ 11 mpcdec/reader.h \ 12 mpcdec/requant.h \ 13 mpcdec/streaminfo.h -
trunk/include/config.h.in
r1 r3 1 /* include/config.h.in. Generated from configure. inby autoheader. */1 /* include/config.h.in. Generated from configure.ac by autoheader. */ 2 2 3 3 /* Define to 1 if you have the <dlfcn.h> header file. */ … … 92 92 #undef const 93 93 94 /* Define as `__inline' if that's what the C compiler calls it, or to nothing 95 if it is not supported. */ 94 /* Define to `__inline__' or `__inline' if that's what the C compiler 95 calls it, or to nothing if 'inline' is not supported under any name. */ 96 #ifndef __cplusplus 96 97 #undef inline 98 #endif 97 99 98 100 /* Define to `long' if <sys/types.h> does not define. */ -
trunk/include/mainpage.h
r1 r3 1 1 /** 2 \mainpage libm usepackdocumentation2 \mainpage libmpcdec documentation 3 3 4 \section whats what is libm usepack5 libm usepackis a library that decodes musepack compressed audio data. Musepack4 \section whats what is libmpcdec 5 libmpcdec is a library that decodes musepack compressed audio data. Musepack 6 6 is a free, high performance, high quality lossy audio compression codec. For 7 7 more information on musepack visit http://www.musepack.net. 8 8 9 \section using using libm usepack9 \section using using libmpcdec 10 10 11 Using libm usepackis very straightforward. There are typically four things you must12 do to use libm usepackin your application.11 Using libmpcdec is very straightforward. There are typically four things you must 12 do to use libmpcdec in your application. 13 13 14 14 \subsection step1 step 1: implement an mpc_reader to provide raw data to the decoder library … … 35 35 36 36 For a simple example of all of these steps see the sample application distributed with 37 libm usepackin src/sample.cpp.37 libmpcdec in src/sample.cpp. 38 38 */ -
trunk/include/mpcdec/config_types.h.in
r1 r3 36 36 #define __MUSEPACK_CONFIG_TYPES_H__ 37 37 38 typedef unsigned char BOOL;38 typedef unsigned char mpc_bool_t; 39 39 #define TRUE 1 40 40 #define FALSE 0 41 41 42 /* these are filled in by configure */43 42 typedef @SIZE16@ mpc_int16_t; 44 43 typedef @USIZE16@ mpc_uint16_t; -
trunk/include/mpcdec/decoder.h
r1 r3 35 35 /// \file decoder.h 36 36 37 #ifndef _m usepack_decoder_h_38 #define _m usepack_decoder_h_37 #ifndef _mpcdec_decoder_h_ 38 #define _mpcdec_decoder_h_ 39 39 40 #include " musepack/huffman.h"41 #include "m usepack/math.h"42 #include "m usepack/musepack.h"43 #include " musepack/reader.h"44 #include " musepack/streaminfo.h"40 #include "huffman.h" 41 #include "math.h" 42 #include "mpcdec.h" 43 #include "reader.h" 44 #include "streaminfo.h" 45 45 46 46 enum { -
trunk/include/mpcdec/huffman.h
r1 r3 36 36 /// Data structures and functions for huffman coding. 37 37 38 #ifndef _m usepack_huffman_h_39 #define _m usepack_huffman_h_38 #ifndef _mpcdec_huffman_h_ 39 #define _mpcdec_huffman_h_ 40 40 41 #include "musepack/config_types.h" 42 #include "musepack/decoder.h" 41 #ifndef WIN32 42 #include "mpcdec/config_types.h" 43 #else 44 #include "mpcdec/config_win32.h" 45 #endif 46 47 #include "decoder.h" 43 48 44 49 struct mpc_decoder_t; // forward declare to break circular dependencies … … 73 78 void mpc_decoder_init_huffman_sv7_tables(struct mpc_decoder_t *d); 74 79 75 #endif // _m usepack_huffman_h_80 #endif // _mpcdec_huffman_h_ -
trunk/include/mpcdec/internal.h
r1 r3 33 33 */ 34 34 35 /// \file musepack_internal.h36 /// Definitions and structures used only internally by the libm usepack.35 /// \file internal.h 36 /// Definitions and structures used only internally by the libmpcdec. 37 37 38 #ifndef _musepack_internal_h 39 #define _musepack_internal_h 38 #ifndef _mpcdec_internal_h 39 #define _mpcdec_internal_h 40 40 41 41 42 enum { … … 44 45 45 46 /// Big/little endian 32 bit byte swapping routine. 46 static inline47 static __inline 47 48 mpc_uint32_t swap32(mpc_uint32_t val) { 48 49 const unsigned char* src = (const unsigned char*)&val; … … 59 60 60 61 /// helper functions used by multiple files 61 mpc_uint32_t random_int(mpc_decoder *d); // in synth_filter.c62 mpc_uint32_t mpc_random_int(mpc_decoder *d); // in synth_filter.c 62 63 void mpc_decoder_initialisiere_quantisierungstabellen(mpc_decoder *d, double scale_factor); 63 64 void mpc_decoder_synthese_filter_float(mpc_decoder *d, MPC_SAMPLE_FORMAT* OutData); 64 65 65 #endif // _m usepack_internal_h66 #endif // _mpcdec_internal_h 66 67 -
trunk/include/mpcdec/math.h
r1 r3 33 33 */ 34 34 35 /// \file m pc_math.h36 /// Libm usepackinternal math routines.35 /// \file math.h 36 /// Libmpcdec internal math routines. 37 37 38 #ifndef _m usepack_math_h_39 #define _m usepack_math_h_38 #ifndef _mpcdec_math_h_ 39 #define _mpcdec_math_h_ 40 40 41 41 //#define MPC_FIXED_POINT … … 141 141 #endif 142 142 143 #endif // _m usepack_math_h_143 #endif // _mpcdec_math_h_ 144 144 -
trunk/include/mpcdec/reader.h
r1 r3 35 35 /// \file reader.h 36 36 37 #ifndef _m usepack_reader_h_38 #define _m usepack_reader_h_37 #ifndef _mpcdec_reader_h_ 38 #define _mpcdec_reader_h_ 39 39 40 40 /// \brief Stream reader interface structure. … … 48 48 49 49 /// Seeks to byte position offset. 50 BOOL(*seek)(void *t, mpc_int32_t offset);50 mpc_bool_t (*seek)(void *t, mpc_int32_t offset); 51 51 52 52 /// Returns the current byte offset in the stream. … … 57 57 58 58 /// True if the stream is a seekable stream. 59 BOOL(*canseek)(void *t);59 mpc_bool_t (*canseek)(void *t); 60 60 61 /// Optional field that can be used to identify a particular instance of61 /// Field that can be used to identify a particular instance of 62 62 /// reader or carry along data associated with that reader. 63 63 void *data; 64 64 65 // These are used by provided internal standard file-based reader implementation. 66 // You shouldn't touch them. They're included in the main struct to avoid 67 // malloc/free. 65 } mpc_reader; 66 67 typedef struct mpc_reader_file_t { 68 mpc_reader reader; 69 68 70 FILE *file; 69 71 long file_size; 70 BOOLis_seekable;71 } mpc_reader ;72 mpc_bool_t is_seekable; 73 } mpc_reader_file; 72 74 73 75 /// Initializes reader with default stdio file reader implementation. Use … … 76 78 /// \param r reader struct to initalize 77 79 /// \param input input stream to attach to the reader 78 void mpc_reader_setup_file_reader(mpc_reader *r, FILE *input);80 void mpc_reader_setup_file_reader(mpc_reader_file *r, FILE *input); 79 81 80 #endif // _m usepack_reader_h_82 #endif // _mpcdec_reader_h_ -
trunk/include/mpcdec/requant.h
r1 r3 36 36 /// Requantization function definitions. 37 37 38 #ifndef _m usepack_requant_h39 #define _m usepack_requant_h_38 #ifndef _mpcdec_requant_h 39 #define _mpcdec_requant_h_ 40 40 41 #include "m usepack/musepack.h"41 #include "mpcdec.h" 42 42 43 43 /* C O N S T A N T S */ … … 49 49 #define Dc (__Dc + 1) 50 50 51 #endif // _m usepack_requant_h_51 #endif // _mpcdec_requant_h_ -
trunk/include/mpcdec/streaminfo.h
r1 r3 35 35 /// \file streaminfo.h 36 36 37 #ifndef _m usepack_streaminfo_h_38 #define _m usepack_streaminfo_h_37 #ifndef _mpcdec_streaminfo_h_ 38 #define _mpcdec_streaminfo_h_ 39 39 40 40 typedef mpc_int32_t mpc_streaminfo_off_t; … … 84 84 } mpc_streaminfo; 85 85 86 #endif // _m usepack_streaminfo_h_86 #endif // _mpcdec_streaminfo_h_
Note: See TracChangeset
for help on using the changeset viewer.