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.

91 lines
3.1KB

  1. /*
  2. * Float MPEG Audio decoder
  3. * Copyright (c) 2010 Michael Niedermayer
  4. *
  5. * This file is part of FFmpeg.
  6. *
  7. * FFmpeg 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. * FFmpeg 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 FFmpeg; 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. .name = "mp1float",
  26. .type = AVMEDIA_TYPE_AUDIO,
  27. .id = AV_CODEC_ID_MP1,
  28. .priv_data_size = sizeof(MPADecodeContext),
  29. .init = decode_init,
  30. .decode = decode_frame,
  31. .capabilities = CODEC_CAP_DR1,
  32. .flush = flush,
  33. .long_name = NULL_IF_CONFIG_SMALL("MP1 (MPEG audio layer 1)"),
  34. };
  35. #endif
  36. #if CONFIG_MP2FLOAT_DECODER
  37. AVCodec ff_mp2float_decoder = {
  38. .name = "mp2float",
  39. .type = AVMEDIA_TYPE_AUDIO,
  40. .id = AV_CODEC_ID_MP2,
  41. .priv_data_size = sizeof(MPADecodeContext),
  42. .init = decode_init,
  43. .decode = decode_frame,
  44. .capabilities = CODEC_CAP_DR1,
  45. .flush = flush,
  46. .long_name = NULL_IF_CONFIG_SMALL("MP2 (MPEG audio layer 2)"),
  47. };
  48. #endif
  49. #if CONFIG_MP3FLOAT_DECODER
  50. AVCodec ff_mp3float_decoder = {
  51. .name = "mp3float",
  52. .type = AVMEDIA_TYPE_AUDIO,
  53. .id = AV_CODEC_ID_MP3,
  54. .priv_data_size = sizeof(MPADecodeContext),
  55. .init = decode_init,
  56. .decode = decode_frame,
  57. .capabilities = CODEC_CAP_DR1,
  58. .flush = flush,
  59. .long_name = NULL_IF_CONFIG_SMALL("MP3 (MPEG audio layer 3)"),
  60. };
  61. #endif
  62. #if CONFIG_MP3ADUFLOAT_DECODER
  63. AVCodec ff_mp3adufloat_decoder = {
  64. .name = "mp3adufloat",
  65. .type = AVMEDIA_TYPE_AUDIO,
  66. .id = AV_CODEC_ID_MP3ADU,
  67. .priv_data_size = sizeof(MPADecodeContext),
  68. .init = decode_init,
  69. .decode = decode_frame_adu,
  70. .capabilities = CODEC_CAP_DR1,
  71. .flush = flush,
  72. .long_name = NULL_IF_CONFIG_SMALL("ADU (Application Data Unit) MP3 (MPEG audio layer 3)"),
  73. };
  74. #endif
  75. #if CONFIG_MP3ON4FLOAT_DECODER
  76. AVCodec ff_mp3on4float_decoder = {
  77. .name = "mp3on4float",
  78. .type = AVMEDIA_TYPE_AUDIO,
  79. .id = AV_CODEC_ID_MP3ON4,
  80. .priv_data_size = sizeof(MP3On4DecodeContext),
  81. .init = decode_init_mp3on4,
  82. .close = decode_close_mp3on4,
  83. .decode = decode_frame_mp3on4,
  84. .capabilities = CODEC_CAP_DR1,
  85. .flush = flush_mp3on4,
  86. .long_name = NULL_IF_CONFIG_SMALL("MP3onMP4"),
  87. };
  88. #endif