caf.c 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. * CAF common code
  3. * Copyright (c) 2007 Justin Ruggles
  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. /**
  22. * @file
  23. * CAF common code
  24. */
  25. #include "avformat.h"
  26. #include "internal.h"
  27. #include "caf.h"
  28. /**
  29. * Known codec tags for CAF
  30. */
  31. const AVCodecTag ff_codec_caf_tags[] = {
  32. { CODEC_ID_AAC, MKTAG('a','a','c',' ') },
  33. { CODEC_ID_AC3, MKTAG('a','c','-','3') },
  34. { CODEC_ID_ADPCM_IMA_QT, MKTAG('i','m','a','4') },
  35. { CODEC_ID_ADPCM_IMA_WAV, MKTAG('m','s', 0, 17 ) },
  36. { CODEC_ID_ADPCM_MS, MKTAG('m','s', 0, 2 ) },
  37. { CODEC_ID_ALAC, MKTAG('a','l','a','c') },
  38. { CODEC_ID_AMR_NB, MKTAG('s','a','m','r') },
  39. /* FIXME: use DV demuxer, as done in MOV */
  40. /*{ CODEC_ID_DVAUDIO, MKTAG('v','d','v','a') },*/
  41. /*{ CODEC_ID_DVAUDIO, MKTAG('d','v','c','a') },*/
  42. { CODEC_ID_GSM, MKTAG('a','g','s','m') },
  43. { CODEC_ID_GSM_MS, MKTAG('m','s', 0, '1') },
  44. { CODEC_ID_MACE3, MKTAG('M','A','C','3') },
  45. { CODEC_ID_MACE6, MKTAG('M','A','C','6') },
  46. { CODEC_ID_MP1, MKTAG('.','m','p','1') },
  47. { CODEC_ID_MP2, MKTAG('.','m','p','2') },
  48. { CODEC_ID_MP3, MKTAG('.','m','p','3') },
  49. { CODEC_ID_MP3, MKTAG('m','s', 0 ,'U') },
  50. { CODEC_ID_PCM_ALAW, MKTAG('a','l','a','w') },
  51. { CODEC_ID_PCM_MULAW, MKTAG('u','l','a','w') },
  52. { CODEC_ID_QCELP, MKTAG('Q','c','l','p') },
  53. { CODEC_ID_QDM2, MKTAG('Q','D','M','2') },
  54. { CODEC_ID_QDM2, MKTAG('Q','D','M','C') },
  55. /* currently unsupported codecs */
  56. /*{ AC-3 over S/PDIF MKTAG('c','a','c','3') },*/
  57. /*{ MPEG4CELP MKTAG('c','e','l','p') },*/
  58. /*{ MPEG4HVXC MKTAG('h','v','x','c') },*/
  59. /*{ MPEG4TwinVQ MKTAG('t','w','v','q') },*/
  60. { CODEC_ID_NONE, 0 },
  61. };