Changeset 400


Ignore:
Timestamp:
04/21/08 16:22:24 (17 years ago)
Author:
r2d
Message:

Limited libmpcdec exported symbols (only for autotools building because cmake builds libmpcdec as static).

Location:
libmpc/trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • libmpc/trunk/include/mpc/mpc_types.h

    r376 r400  
    127127#endif
    128128
     129#ifdef __GNUC__
     130# define MPC_API __attribute__ ((visibility("default")))
     131#endif
     132
    129133#ifdef __cplusplus
    130134}
  • libmpc/trunk/include/mpc/mpcdec.h

    r390 r400  
    4040#endif
    4141
     42#include "reader.h"
    4243#include "streaminfo.h"
    4344
     
    6667/// \param si streaminfo structure indicating format of source stream
    6768/// \return pointer on the initialized decoder structure if successful, 0 if not
    68 mpc_decoder * mpc_decoder_init(mpc_streaminfo *si);
     69MPC_API mpc_decoder * mpc_decoder_init(mpc_streaminfo *si);
    6970
    7071/// Releases input mpc decoder
    71 void mpc_decoder_exit(mpc_decoder *p_dec);
     72MPC_API void mpc_decoder_exit(mpc_decoder *p_dec);
    7273
    7374/**
     
    7677 * @param scale_factor multiplicative scaling factor
    7778 */
    78 void mpc_decoder_scale_output(mpc_decoder *p_dec, double scale_factor);
     79MPC_API void mpc_decoder_scale_output(mpc_decoder *p_dec, double scale_factor);
    7980
    80 void mpc_decoder_decode_frame(mpc_decoder * d, mpc_bits_reader * r, mpc_frame_info * i);
     81MPC_API void mpc_decoder_decode_frame(mpc_decoder * d, mpc_bits_reader * r, mpc_frame_info * i);
    8182
    8283// This is the gain reference used in old replaygain
     
    8889 * @return an initialized mpc_demux pointer
    8990 */
    90 mpc_demux * mpc_demux_init(mpc_reader * p_reader);
     91MPC_API mpc_demux * mpc_demux_init(mpc_reader * p_reader);
    9192/// free demuxer
    92 void mpc_demux_exit(mpc_demux * d);
     93MPC_API void mpc_demux_exit(mpc_demux * d);
    9394/**
    9495 * Calls mpc_decoder_scale_output to set the scaling factor according to the
     
    100101 * @param clip_prevention MPC_TRUE : uses cliping prevention
    101102 */
    102 void mpc_set_replay_level(mpc_demux * d, float level, mpc_bool_t use_gain,
     103MPC_API void mpc_set_replay_level(mpc_demux * d, float level, mpc_bool_t use_gain,
    103104                          mpc_bool_t use_title, mpc_bool_t clip_prevention);
    104105/// decode frame
    105 mpc_status mpc_demux_decode(mpc_demux * d, mpc_frame_info * i);
     106MPC_API mpc_status mpc_demux_decode(mpc_demux * d, mpc_frame_info * i);
    106107/// get streaminfo
    107 void mpc_demux_get_info(mpc_demux * d, mpc_streaminfo * i);
     108MPC_API void mpc_demux_get_info(mpc_demux * d, mpc_streaminfo * i);
    108109/// seeks to a given sample
    109 mpc_status mpc_demux_seek_sample(mpc_demux * d, mpc_uint64_t destsample);
     110MPC_API mpc_status mpc_demux_seek_sample(mpc_demux * d, mpc_uint64_t destsample);
    110111/// seeks to a given second
    111 mpc_status mpc_demux_seek_second(mpc_demux * d, double seconds);
     112MPC_API mpc_status mpc_demux_seek_second(mpc_demux * d, double seconds);
    112113
    113114/// \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);
     115MPC_API mpc_seek_t mpc_demux_pos(mpc_demux * d);
    115116
    116117/// chapters : only for sv8 streams
     
    120121 * @return the number of chapters found in the stream
    121122 */
    122 mpc_int_t mpc_demux_chap_nb(mpc_demux * d);
     123MPC_API mpc_int_t mpc_demux_chap_nb(mpc_demux * d);
    123124/**
    124125 * Gets datas associated to a given chapter
     
    131132 * @return the sample where the chapter starts
    132133 */
    133 mpc_uint64_t mpc_demux_chap(mpc_demux * d, int chap_nb, char ** tag, mpc_uint_t * tag_size);
     134MPC_API mpc_uint64_t mpc_demux_chap(mpc_demux * d, int chap_nb, char ** tag, mpc_uint_t * tag_size);
    134135
    135136#ifdef __cplusplus
  • libmpc/trunk/include/mpc/reader.h

    r264 r400  
    7979/// \param r p_reader handle to initialize
    8080/// \param filename input filename to attach to the reader
    81 mpc_status mpc_reader_init_stdio(mpc_reader *p_reader, const char *filename);
     81MPC_API mpc_status mpc_reader_init_stdio(mpc_reader *p_reader, const char *filename);
    8282
    8383/// Initializes reader with default stdio file reader implementation.  Use
     
    8686/// \param r p_reader handle to initialize
    8787/// \param p_file input file handle (already open)
    88 mpc_status mpc_reader_init_stdio_stream(mpc_reader * p_reader, FILE * p_file);
     88MPC_API mpc_status mpc_reader_init_stdio_stream(mpc_reader * p_reader, FILE * p_file);
    8989
    9090/// Release reader with default stdio file reader implementation.
    9191///
    9292/// \param r reader handle to release
    93 void mpc_reader_exit_stdio(mpc_reader *p_reader);
     93MPC_API void mpc_reader_exit_stdio(mpc_reader *p_reader);
    9494
    9595#ifdef __cplusplus
  • libmpc/trunk/include/mpc/streaminfo.h

    r311 r400  
    4040
    4141#include <mpc/mpc_types.h>
    42 #include "reader.h"
    4342
    4443#ifdef __cplusplus
     
    9998/// Gets length of stream si, in seconds.
    10099/// \return length of stream in seconds
    101 double mpc_streaminfo_get_length(mpc_streaminfo *si);
     100MPC_API double mpc_streaminfo_get_length(mpc_streaminfo *si);
    102101
    103102/// Returns length of stream si, in samples.
    104103/// \return length of stream in samples
    105 mpc_int64_t mpc_streaminfo_get_length_samples(mpc_streaminfo *si);
     104MPC_API mpc_int64_t mpc_streaminfo_get_length_samples(mpc_streaminfo *si);
    106105
    107106#ifdef __cplusplus
  • libmpc/trunk/libmpcdec/Makefile.am

    r232 r400  
    1313
    1414noinst_HEADERS = mpc_bits_reader.h
     15AM_CFLAGS = -fpic -fvisibility=hidden
  • libmpc/trunk/libmpcdec/mpc_bits_reader.h

    r342 r400  
    3535#define MAX_ENUM 32
    3636
    37 int mpc_bits_get_block(mpc_bits_reader * r, mpc_block * p_block);
     37MPC_API int mpc_bits_get_block(mpc_bits_reader * r, mpc_block * p_block);
    3838mpc_int32_t mpc_bits_golomb_dec(mpc_bits_reader * r, const mpc_uint_t k);
    3939unsigned int mpc_bits_get_size(mpc_bits_reader * r, mpc_uint64_t * p_size);
  • libmpc/trunk/libmpcdec/mpc_demux.c

    r390 r400  
    157157 * @return MPC_STATUS_FILE on errors of any kind
    158158 */
    159 mpc_int32_t mpc_demux_skip_id3v2(mpc_demux * d)
     159static mpc_int32_t mpc_demux_skip_id3v2(mpc_demux * d)
    160160{
    161161        mpc_uint8_t  tmp [4];
     
    203203}
    204204
    205 mpc_status mpc_demux_seek_init(mpc_demux * d)
     205static mpc_status mpc_demux_seek_init(mpc_demux * d)
    206206{
    207207        if (d->seek_table != 0)
  • libmpc/trunk/mpc2sv8/Makefile.am

    r232 r400  
    11INCLUDES = -I$(top_srcdir)/include
     2
     3common_sources = ../common/crc32.c
     4
    25METASOURCES = AUTO
    36bin_PROGRAMS = mpc2sv8
    4 mpc2sv8_SOURCES = mpc2sv8.c
     7mpc2sv8_SOURCES = mpc2sv8.c $(common_sources)
    58mpc2sv8_LDADD = -lm \
    69        $(top_builddir)/libmpcdec/libmpcdec.la \
  • libmpc/trunk/mpcchap/Makefile.am

    r394 r400  
    11bin_PROGRAMS = mpcchap
    22
    3 common_sources = ../common/tags.c
     3common_sources = ../common/tags.c ../common/crc32.c
    44
    55INCLUDES = -I$(top_srcdir)/include -I/home/nico/src/cuetools-1.3.1/
  • libmpc/trunk/mpccut/Makefile.am

    r317 r400  
    11INCLUDES = -I$(top_srcdir)/include
     2
     3common_sources = ../common/crc32.c
     4
    25METASOURCES = AUTO
    36bin_PROGRAMS = mpccut
    4 mpccut_SOURCES = mpccut.c
     7mpccut_SOURCES = mpccut.c $(common_sources)
    58mpccut_LDADD = $(top_builddir)/libmpcenc/libmpcenc.a \
    69        $(top_builddir)/libmpcdec/libmpcdec.la -lm
Note: See TracChangeset for help on using the changeset viewer.