tdav_codec_ilbc.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. * Copyright (C) 2010-2011 Mamadou Diop.
  3. *
  4. * Contact: Mamadou Diop <diopmamadou(at)doubango.org>
  5. *
  6. * This file is part of Open Source Doubango Framework.
  7. *
  8. * DOUBANGO is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * DOUBANGO is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with DOUBANGO.
  20. *
  21. */
  22. /**@file tdav_codec_ilbc.h
  23. * @brief iLBC codec
  24. *
  25. * @author Mamadou Diop <diopmamadou(at)doubango.org>
  26. *
  27. */
  28. #ifndef TINYDAV_CODEC_ILBC_H
  29. #define TINYDAV_CODEC_ILBC_H
  30. #include "tinydav_config.h"
  31. #if HAVE_ILBC
  32. #include "tinymedia/tmedia_codec.h"
  33. #include <ilbc/iLBC_define.h>
  34. #include <ilbc/iLBC_encode.h>
  35. #include <ilbc/iLBC_decode.h>
  36. TDAV_BEGIN_DECLS
  37. /** iLBC codec */
  38. typedef struct tdav_codec_ilbc_s {
  39. TMEDIA_DECLARE_CODEC_AUDIO;
  40. iLBC_Enc_Inst_t encoder;
  41. iLBC_Dec_Inst_t decoder;
  42. float encblock[BLOCKL_MAX];
  43. float decblock[BLOCKL_MAX];
  44. }
  45. tdav_codec_ilbc_t;
  46. TINYDAV_GEXTERN const tmedia_codec_plugin_def_t *tdav_codec_ilbc_plugin_def_t;
  47. TDAV_END_DECLS
  48. #endif /* HAVE_ILBC */
  49. #endif /* TINYDAV_CODEC_ILBC_H */