tdav.h 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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.h
  23. * @brief tinyDAV.
  24. *
  25. * @author Mamadou Diop <diopmamadou(at)doubango.org>
  26. *
  27. */
  28. #ifndef TINYMEDIA_TDAV_H
  29. #define TINYMEDIA_TDAV_H
  30. #include "tinydav_config.h"
  31. #include "tsk_common.h" /* tsk_bool_t */
  32. #include "tinymedia/tmedia_codec.h" /* tmedia_codec_id_t */
  33. TDAV_BEGIN_DECLS
  34. // @tinyWRAP
  35. // @deprecated: to be replaced by "tmedia_codec_id_t" in Doubango 3.0
  36. typedef enum tdav_codec_id_e {
  37. tdav_codec_id_none = tmedia_codec_id_none,
  38. tdav_codec_id_amr_nb_oa = tmedia_codec_id_amr_nb_oa,
  39. tdav_codec_id_amr_nb_be = tmedia_codec_id_amr_nb_be,
  40. tdav_codec_id_amr_wb_oa = tmedia_codec_id_amr_wb_oa,
  41. tdav_codec_id_amr_wb_be = tmedia_codec_id_amr_wb_be,
  42. tdav_codec_id_gsm = tmedia_codec_id_gsm,
  43. tdav_codec_id_pcma = tmedia_codec_id_pcma,
  44. tdav_codec_id_pcmu = tmedia_codec_id_pcmu,
  45. tdav_codec_id_ilbc = tmedia_codec_id_ilbc,
  46. tdav_codec_id_speex_nb = tmedia_codec_id_speex_nb,
  47. tdav_codec_id_speex_wb = tmedia_codec_id_speex_wb,
  48. tdav_codec_id_speex_uwb = tmedia_codec_id_speex_uwb,
  49. tdav_codec_id_bv16 = tmedia_codec_id_bv16,
  50. tdav_codec_id_bv32 = tmedia_codec_id_bv32,
  51. tdav_codec_id_opus = tmedia_codec_id_opus,
  52. tdav_codec_id_g729ab = tmedia_codec_id_g729ab,
  53. tdav_codec_id_g722 = tmedia_codec_id_g722,
  54. /* room for new Audio codecs */
  55. tdav_codec_id_h261 = tmedia_codec_id_h261,
  56. tdav_codec_id_h263 = tmedia_codec_id_h263,
  57. tdav_codec_id_h263p = tmedia_codec_id_h263p,
  58. tdav_codec_id_h263pp = tmedia_codec_id_h263pp,
  59. tdav_codec_id_h264_bp = tmedia_codec_id_h264_bp,
  60. tdav_codec_id_h264_mp = tmedia_codec_id_h264_mp,
  61. tdav_codec_id_h264_hp = tmedia_codec_id_h264_hp,
  62. tdav_codec_id_h264_bp10 = tmedia_codec_id_h264_bp, // @deprecated
  63. tdav_codec_id_h264_bp20 = tmedia_codec_id_h264_bp, // @deprecated
  64. tdav_codec_id_h264_bp30 = tmedia_codec_id_h264_bp, // @deprecated
  65. tdav_codec_id_h264_svc = tmedia_codec_id_h264_svc,
  66. tdav_codec_id_theora = tmedia_codec_id_theora,
  67. tdav_codec_id_mp4ves_es = tmedia_codec_id_mp4ves_es,
  68. tdav_codec_id_vp8 = tmedia_codec_id_vp8,
  69. /* room for new Video codecs */
  70. tdav_codec_id_t140 = tmedia_codec_id_t140,
  71. tdav_codec_id_red = tmedia_codec_id_red,
  72. }
  73. tdav_codec_id_t;
  74. TINYDAV_API int tdav_init();
  75. TINYDAV_API int tdav_codec_set_priority(tdav_codec_id_t codec_id, int priority);
  76. TINYDAV_API int tdav_set_codecs(tdav_codec_id_t codecs);
  77. TINYDAV_API tsk_bool_t tdav_codec_is_supported(tdav_codec_id_t codec);
  78. TINYDAV_API tsk_bool_t tdav_codec_is_enabled(tdav_codec_id_t codec);
  79. TINYDAV_API tsk_bool_t tdav_ipsec_is_supported();
  80. TINYDAV_API int tdav_deinit();
  81. TDAV_END_DECLS
  82. #endif /* TINYMEDIA_TDAV_H */