You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

104 lines
2.5KB

  1. /*
  2. * Float MPEG Audio decoder
  3. * Copyright (c) 2010 Michael Niedermayer
  4. *
  5. * This file is part of Libav.
  6. *
  7. * Libav is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU Lesser General Public
  9. * License as published by the Free Software Foundation; either
  10. * version 2.1 of the License, or (at your option) any later version.
  11. *
  12. * Libav is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * Lesser General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Lesser General Public
  18. * License along with Libav; if not, write to the Free Software
  19. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  20. */
  21. #define CONFIG_FLOAT 1
  22. #include "mpegaudiodec.c"
  23. #if CONFIG_MP1FLOAT_DECODER
  24. AVCodec ff_mp1float_decoder =
  25. {
  26. "mp1float",
  27. AVMEDIA_TYPE_AUDIO,
  28. CODEC_ID_MP1,
  29. sizeof(MPADecodeContext),
  30. decode_init,
  31. NULL,
  32. .close = NULL,
  33. decode_frame,
  34. CODEC_CAP_PARSE_ONLY,
  35. .flush= flush,
  36. .long_name= NULL_IF_CONFIG_SMALL("MP1 (MPEG audio layer 1)"),
  37. };
  38. #endif
  39. #if CONFIG_MP2FLOAT_DECODER
  40. AVCodec ff_mp2float_decoder =
  41. {
  42. "mp2float",
  43. AVMEDIA_TYPE_AUDIO,
  44. CODEC_ID_MP2,
  45. sizeof(MPADecodeContext),
  46. decode_init,
  47. NULL,
  48. .close = NULL,
  49. decode_frame,
  50. CODEC_CAP_PARSE_ONLY,
  51. .flush= flush,
  52. .long_name= NULL_IF_CONFIG_SMALL("MP2 (MPEG audio layer 2)"),
  53. };
  54. #endif
  55. #if CONFIG_MP3FLOAT_DECODER
  56. AVCodec ff_mp3float_decoder =
  57. {
  58. "mp3float",
  59. AVMEDIA_TYPE_AUDIO,
  60. CODEC_ID_MP3,
  61. sizeof(MPADecodeContext),
  62. decode_init,
  63. NULL,
  64. .close = NULL,
  65. decode_frame,
  66. CODEC_CAP_PARSE_ONLY,
  67. .flush= flush,
  68. .long_name= NULL_IF_CONFIG_SMALL("MP3 (MPEG audio layer 3)"),
  69. };
  70. #endif
  71. #if CONFIG_MP3ADUFLOAT_DECODER
  72. AVCodec ff_mp3adufloat_decoder =
  73. {
  74. "mp3adufloat",
  75. AVMEDIA_TYPE_AUDIO,
  76. CODEC_ID_MP3ADU,
  77. sizeof(MPADecodeContext),
  78. decode_init,
  79. NULL,
  80. .close = NULL,
  81. decode_frame_adu,
  82. CODEC_CAP_PARSE_ONLY,
  83. .flush= flush,
  84. .long_name= NULL_IF_CONFIG_SMALL("ADU (Application Data Unit) MP3 (MPEG audio layer 3)"),
  85. };
  86. #endif
  87. #if CONFIG_MP3ON4FLOAT_DECODER
  88. AVCodec ff_mp3on4float_decoder =
  89. {
  90. "mp3on4float",
  91. AVMEDIA_TYPE_AUDIO,
  92. CODEC_ID_MP3ON4,
  93. sizeof(MP3On4DecodeContext),
  94. decode_init_mp3on4,
  95. NULL,
  96. decode_close_mp3on4,
  97. decode_frame_mp3on4,
  98. .flush= flush,
  99. .long_name= NULL_IF_CONFIG_SMALL("MP3onMP4"),
  100. };
  101. #endif