00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #define CONFIG_FLOAT 1
00023 #include "mpegaudiodec.c"
00024
00025 #if CONFIG_MP1FLOAT_DECODER
00026 AVCodec ff_mp1float_decoder = {
00027 .name = "mp1float",
00028 .type = AVMEDIA_TYPE_AUDIO,
00029 .id = CODEC_ID_MP1,
00030 .priv_data_size = sizeof(MPADecodeContext),
00031 .init = decode_init,
00032 .decode = decode_frame,
00033 #if FF_API_PARSE_FRAME
00034 .capabilities = CODEC_CAP_PARSE_ONLY | CODEC_CAP_DR1,
00035 #else
00036 .capabilities = CODEC_CAP_DR1,
00037 #endif
00038 .flush = flush,
00039 .long_name = NULL_IF_CONFIG_SMALL("MP1 (MPEG audio layer 1)"),
00040 };
00041 #endif
00042 #if CONFIG_MP2FLOAT_DECODER
00043 AVCodec ff_mp2float_decoder = {
00044 .name = "mp2float",
00045 .type = AVMEDIA_TYPE_AUDIO,
00046 .id = CODEC_ID_MP2,
00047 .priv_data_size = sizeof(MPADecodeContext),
00048 .init = decode_init,
00049 .decode = decode_frame,
00050 #if FF_API_PARSE_FRAME
00051 .capabilities = CODEC_CAP_PARSE_ONLY | CODEC_CAP_DR1,
00052 #else
00053 .capabilities = CODEC_CAP_DR1,
00054 #endif
00055 .flush = flush,
00056 .long_name = NULL_IF_CONFIG_SMALL("MP2 (MPEG audio layer 2)"),
00057 };
00058 #endif
00059 #if CONFIG_MP3FLOAT_DECODER
00060 AVCodec ff_mp3float_decoder = {
00061 .name = "mp3float",
00062 .type = AVMEDIA_TYPE_AUDIO,
00063 .id = CODEC_ID_MP3,
00064 .priv_data_size = sizeof(MPADecodeContext),
00065 .init = decode_init,
00066 .decode = decode_frame,
00067 #if FF_API_PARSE_FRAME
00068 .capabilities = CODEC_CAP_PARSE_ONLY | CODEC_CAP_DR1,
00069 #else
00070 .capabilities = CODEC_CAP_DR1,
00071 #endif
00072 .flush = flush,
00073 .long_name = NULL_IF_CONFIG_SMALL("MP3 (MPEG audio layer 3)"),
00074 };
00075 #endif
00076 #if CONFIG_MP3ADUFLOAT_DECODER
00077 AVCodec ff_mp3adufloat_decoder = {
00078 .name = "mp3adufloat",
00079 .type = AVMEDIA_TYPE_AUDIO,
00080 .id = CODEC_ID_MP3ADU,
00081 .priv_data_size = sizeof(MPADecodeContext),
00082 .init = decode_init,
00083 .decode = decode_frame_adu,
00084 #if FF_API_PARSE_FRAME
00085 .capabilities = CODEC_CAP_PARSE_ONLY | CODEC_CAP_DR1,
00086 #else
00087 .capabilities = CODEC_CAP_DR1,
00088 #endif
00089 .flush = flush,
00090 .long_name = NULL_IF_CONFIG_SMALL("ADU (Application Data Unit) MP3 (MPEG audio layer 3)"),
00091 };
00092 #endif
00093 #if CONFIG_MP3ON4FLOAT_DECODER
00094 AVCodec ff_mp3on4float_decoder = {
00095 .name = "mp3on4float",
00096 .type = AVMEDIA_TYPE_AUDIO,
00097 .id = CODEC_ID_MP3ON4,
00098 .priv_data_size = sizeof(MP3On4DecodeContext),
00099 .init = decode_init_mp3on4,
00100 .close = decode_close_mp3on4,
00101 .decode = decode_frame_mp3on4,
00102 .capabilities = CODEC_CAP_DR1,
00103 .flush = flush_mp3on4,
00104 .long_name = NULL_IF_CONFIG_SMALL("MP3onMP4"),
00105 };
00106 #endif