#include "mm_file_utils.h"
#include "mm_file_codec_private.h"
-int (*OpenVideoCodecFunc[MM_VIDEO_CODEC_NUM]) (MMFileCodecContext *codecContext, MMFileCodecFrame *input) = {
+static int (*OpenVideoCodecFunc[MM_VIDEO_CODEC_NUM]) (MMFileCodecContext *codecContext, MMFileCodecFrame *input) = {
mmfile_codec_open_dummy, /* NONE */
mmfile_codec_open_dummy, /* WMV */
mmfile_codec_open_dummy, /* H261 */
/*Index table for Sampling frequency */
-const int Sampling_freq_table[16] = { 96000, 88200, 64000, 48000,
+static const int Sampling_freq_table[16] = { 96000, 88200, 64000, 48000,
44100, 32000, 24000, 22050,
16000, 12000, 11025, 8000,
0, 0, 0, 0
/*RTP format only supported*/
/*mode vs bitRate-frameSize lookup table; [0]->AMR-NB [1]->AMR-WB */
-const tAmrModeConfig AmrModeConfigTable[2][16] = {
+static const tAmrModeConfig AmrModeConfigTable[2][16] = {
{
{4750, 13}, {5150, 14}, {5900, 16}, {6700, 18},
{7400, 20}, {7950, 21}, {10200, 27}, {12200, 32},
#define MMFILE_FORMAT_SO_FILE_NAME LIBDIR"/libmmfile_formats.so"
#define MMFILE_CODEC_SO_FILE_NAME LIBDIR"/libmmfile_codecs.so"
-int (*mmfile_format_open)(MMFileFormatContext **formatContext, MMFileSourceType *fileSrc);
-int (*mmfile_format_read_stream)(MMFileFormatContext *formatContext);
-int (*mmfile_format_read_frame)(MMFileFormatContext *formatContext, unsigned int timestamp, MMFileFormatFrame *frame);
-int (*mmfile_format_read_tag)(MMFileFormatContext *formatContext);
-int (*mmfile_format_close)(MMFileFormatContext *formatContext);
-int (*mmfile_codec_open)(MMFileCodecContext **codecContext, int codecType, int codecId, MMFileCodecFrame *input);
-int (*mmfile_codec_decode)(MMFileCodecContext *codecContext, MMFileCodecFrame *output);
-int (*mmfile_codec_close)(MMFileCodecContext *codecContext);
-int (*mmfile_format_get_frame)(const char *path, double timestamp, bool is_accurate, unsigned char **frame, int *size, int *width, int *height);
-int (*mmfile_format_get_frame_from_memory)(const void *data, unsigned int datasize, double timestamp, bool is_accurate, unsigned char **frame, int *size, int *width, int *height);
+static int (*mmfile_format_open)(MMFileFormatContext **formatContext, MMFileSourceType *fileSrc);
+static int (*mmfile_format_read_stream)(MMFileFormatContext *formatContext);
+static int (*mmfile_format_read_frame)(MMFileFormatContext *formatContext, unsigned int timestamp, MMFileFormatFrame *frame);
+static int (*mmfile_format_read_tag)(MMFileFormatContext *formatContext);
+static int (*mmfile_format_close)(MMFileFormatContext *formatContext);
+static int (*mmfile_codec_open)(MMFileCodecContext **codecContext, int codecType, int codecId, MMFileCodecFrame *input);
+static int (*mmfile_codec_decode)(MMFileCodecContext *codecContext, MMFileCodecFrame *output);
+static int (*mmfile_codec_close)(MMFileCodecContext *codecContext);
+static int (*mmfile_format_get_frame)(const char *path, double timestamp, bool is_accurate, unsigned char **frame, int *size, int *width, int *height);
+static int (*mmfile_format_get_frame_from_memory)(const void *data, unsigned int datasize, double timestamp, bool is_accurate, unsigned char **frame, int *size, int *width, int *height);
#endif
#ifdef __MMFILE_DYN_LOADING__
char extension[MMFILE_FILE_EXT_MAX_LEN];
} MMFileAVMimeType;
-const MMFileAVMimeType MMFILE_FFMPEG_MIME_TABLE[] = {
+static const MMFileAVMimeType MMFILE_FFMPEG_MIME_TABLE[] = {
{"audio/mpeg", "mp3", "mp3"},
{"audio/mp3", "mp3", "mp3"},
{"audio/mpg3", "mp3", "mp3"},