• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • Examples
  • File List
  • Globals

libavcodec/mpegaudiodec_float.c

Go to the documentation of this file.
00001 /*
00002  * Float MPEG Audio decoder
00003  * Copyright (c) 2010 Michael Niedermayer
00004  *
00005  * This file is part of Libav.
00006  *
00007  * Libav is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Lesser General Public
00009  * License as published by the Free Software Foundation; either
00010  * version 2.1 of the License, or (at your option) any later version.
00011  *
00012  * Libav is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with Libav; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
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
Generated on Thu Jul 11 2013 15:38:20 for Libav by doxygen 1.7.1