Changeset 400 for libmpc/trunk/include
- Timestamp:
- 04/21/08 16:22:24 (17 years ago)
- Location:
- libmpc/trunk/include/mpc
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/trunk/include/mpc/mpc_types.h
r376 r400 127 127 #endif 128 128 129 #ifdef __GNUC__ 130 # define MPC_API __attribute__ ((visibility("default"))) 131 #endif 132 129 133 #ifdef __cplusplus 130 134 } -
libmpc/trunk/include/mpc/mpcdec.h
r390 r400 40 40 #endif 41 41 42 #include "reader.h" 42 43 #include "streaminfo.h" 43 44 … … 66 67 /// \param si streaminfo structure indicating format of source stream 67 68 /// \return pointer on the initialized decoder structure if successful, 0 if not 68 mpc_decoder * mpc_decoder_init(mpc_streaminfo *si);69 MPC_API mpc_decoder * mpc_decoder_init(mpc_streaminfo *si); 69 70 70 71 /// Releases input mpc decoder 71 void mpc_decoder_exit(mpc_decoder *p_dec);72 MPC_API void mpc_decoder_exit(mpc_decoder *p_dec); 72 73 73 74 /** … … 76 77 * @param scale_factor multiplicative scaling factor 77 78 */ 78 void mpc_decoder_scale_output(mpc_decoder *p_dec, double scale_factor);79 MPC_API void mpc_decoder_scale_output(mpc_decoder *p_dec, double scale_factor); 79 80 80 void mpc_decoder_decode_frame(mpc_decoder * d, mpc_bits_reader * r, mpc_frame_info * i);81 MPC_API void mpc_decoder_decode_frame(mpc_decoder * d, mpc_bits_reader * r, mpc_frame_info * i); 81 82 82 83 // This is the gain reference used in old replaygain … … 88 89 * @return an initialized mpc_demux pointer 89 90 */ 90 mpc_demux * mpc_demux_init(mpc_reader * p_reader);91 MPC_API mpc_demux * mpc_demux_init(mpc_reader * p_reader); 91 92 /// free demuxer 92 void mpc_demux_exit(mpc_demux * d);93 MPC_API void mpc_demux_exit(mpc_demux * d); 93 94 /** 94 95 * Calls mpc_decoder_scale_output to set the scaling factor according to the … … 100 101 * @param clip_prevention MPC_TRUE : uses cliping prevention 101 102 */ 102 void mpc_set_replay_level(mpc_demux * d, float level, mpc_bool_t use_gain,103 MPC_API void mpc_set_replay_level(mpc_demux * d, float level, mpc_bool_t use_gain, 103 104 mpc_bool_t use_title, mpc_bool_t clip_prevention); 104 105 /// decode frame 105 mpc_status mpc_demux_decode(mpc_demux * d, mpc_frame_info * i);106 MPC_API mpc_status mpc_demux_decode(mpc_demux * d, mpc_frame_info * i); 106 107 /// get streaminfo 107 void mpc_demux_get_info(mpc_demux * d, mpc_streaminfo * i);108 MPC_API void mpc_demux_get_info(mpc_demux * d, mpc_streaminfo * i); 108 109 /// seeks to a given sample 109 mpc_status mpc_demux_seek_sample(mpc_demux * d, mpc_uint64_t destsample);110 MPC_API mpc_status mpc_demux_seek_sample(mpc_demux * d, mpc_uint64_t destsample); 110 111 /// seeks to a given second 111 mpc_status mpc_demux_seek_second(mpc_demux * d, double seconds);112 MPC_API mpc_status mpc_demux_seek_second(mpc_demux * d, double seconds); 112 113 113 114 /// \return the current position in the stream (in bits) from the beginning of the file 114 mpc_seek_t mpc_demux_pos(mpc_demux * d);115 MPC_API mpc_seek_t mpc_demux_pos(mpc_demux * d); 115 116 116 117 /// chapters : only for sv8 streams … … 120 121 * @return the number of chapters found in the stream 121 122 */ 122 mpc_int_t mpc_demux_chap_nb(mpc_demux * d);123 MPC_API mpc_int_t mpc_demux_chap_nb(mpc_demux * d); 123 124 /** 124 125 * Gets datas associated to a given chapter … … 131 132 * @return the sample where the chapter starts 132 133 */ 133 mpc_uint64_t mpc_demux_chap(mpc_demux * d, int chap_nb, char ** tag, mpc_uint_t * tag_size);134 MPC_API mpc_uint64_t mpc_demux_chap(mpc_demux * d, int chap_nb, char ** tag, mpc_uint_t * tag_size); 134 135 135 136 #ifdef __cplusplus -
libmpc/trunk/include/mpc/reader.h
r264 r400 79 79 /// \param r p_reader handle to initialize 80 80 /// \param filename input filename to attach to the reader 81 mpc_status mpc_reader_init_stdio(mpc_reader *p_reader, const char *filename);81 MPC_API mpc_status mpc_reader_init_stdio(mpc_reader *p_reader, const char *filename); 82 82 83 83 /// Initializes reader with default stdio file reader implementation. Use … … 86 86 /// \param r p_reader handle to initialize 87 87 /// \param p_file input file handle (already open) 88 mpc_status mpc_reader_init_stdio_stream(mpc_reader * p_reader, FILE * p_file);88 MPC_API mpc_status mpc_reader_init_stdio_stream(mpc_reader * p_reader, FILE * p_file); 89 89 90 90 /// Release reader with default stdio file reader implementation. 91 91 /// 92 92 /// \param r reader handle to release 93 void mpc_reader_exit_stdio(mpc_reader *p_reader);93 MPC_API void mpc_reader_exit_stdio(mpc_reader *p_reader); 94 94 95 95 #ifdef __cplusplus -
libmpc/trunk/include/mpc/streaminfo.h
r311 r400 40 40 41 41 #include <mpc/mpc_types.h> 42 #include "reader.h"43 42 44 43 #ifdef __cplusplus … … 99 98 /// Gets length of stream si, in seconds. 100 99 /// \return length of stream in seconds 101 double mpc_streaminfo_get_length(mpc_streaminfo *si);100 MPC_API double mpc_streaminfo_get_length(mpc_streaminfo *si); 102 101 103 102 /// Returns length of stream si, in samples. 104 103 /// \return length of stream in samples 105 mpc_int64_t mpc_streaminfo_get_length_samples(mpc_streaminfo *si);104 MPC_API mpc_int64_t mpc_streaminfo_get_length_samples(mpc_streaminfo *si); 106 105 107 106 #ifdef __cplusplus
Note: See TracChangeset
for help on using the changeset viewer.