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.

59 lines
2.3KB

  1. /*
  2. * CAF common code
  3. * Copyright (c) 2007 Justin Ruggles
  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. /**
  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. { AV_CODEC_ID_AAC, MKBETAG('a','a','c',' ') },
  33. { AV_CODEC_ID_AC3, MKBETAG('a','c','-','3') },
  34. { AV_CODEC_ID_ALAC, MKBETAG('a','l','a','c') },
  35. /* FIXME: use DV demuxer, as done in MOV */
  36. /*{ AV_CODEC_ID_DVAUDIO, MKBETAG('v','d','v','a') },*/
  37. /*{ AV_CODEC_ID_DVAUDIO, MKBETAG('d','v','c','a') },*/
  38. { AV_CODEC_ID_ADPCM_IMA_QT, MKBETAG('i','m','a','4') },
  39. { AV_CODEC_ID_MACE3, MKBETAG('M','A','C','3') },
  40. { AV_CODEC_ID_MACE6, MKBETAG('M','A','C','6') },
  41. { AV_CODEC_ID_MP3, MKBETAG('.','m','p','3') },
  42. { AV_CODEC_ID_MP2, MKBETAG('.','m','p','2') },
  43. { AV_CODEC_ID_MP1, MKBETAG('.','m','p','1') },
  44. { AV_CODEC_ID_PCM_ALAW, MKBETAG('a','l','a','w') },
  45. { AV_CODEC_ID_PCM_MULAW, MKBETAG('u','l','a','w') },
  46. { AV_CODEC_ID_QCELP, MKBETAG('Q','c','l','p') },
  47. { AV_CODEC_ID_QDM2, MKBETAG('Q','D','M','2') },
  48. { AV_CODEC_ID_QDM2, MKBETAG('Q','D','M','C') },
  49. /* currently unsupported codecs */
  50. /*{ AC-3 over S/PDIF MKBETAG('c','a','c','3') },*/
  51. /*{ MPEG4CELP MKBETAG('c','e','l','p') },*/
  52. /*{ MPEG4HVXC MKBETAG('h','v','x','c') },*/
  53. /*{ MPEG4TwinVQ MKBETAG('t','w','v','q') },*/
  54. { AV_CODEC_ID_NONE, 0 },
  55. };