tdav_codec_h264.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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_h264.h
  23. * @brief H.264 codec plugin using FFmpeg for decoding and x264 for encoding
  24. * RTP payloader/depayloader follows RFC 3984.
  25. *
  26. * @author Mamadou Diop <diopmamadou(at)doubango.org>
  27. *
  28. */
  29. #ifndef TINYDAV_CODEC_H264_H
  30. #define TINYDAV_CODEC_H264_H
  31. #include "tinydav_config.h"
  32. #if HAVE_FFMPEG || HAVE_H264_PASSTHROUGH
  33. #include "tinydav/codecs/h264/tdav_codec_h264_common.h"
  34. TDAV_BEGIN_DECLS
  35. TINYDAV_GEXTERN const tmedia_codec_plugin_def_t *tdav_codec_h264_base_plugin_def_t;
  36. TINYDAV_GEXTERN const tmedia_codec_plugin_def_t *tdav_codec_h264_main_plugin_def_t;
  37. tsk_bool_t tdav_codec_ffmpeg_h264_is_supported();
  38. tsk_bool_t tdav_codec_passthrough_h264_is_supported();
  39. static inline tsk_bool_t tdav_codec_h264_is_ffmpeg_plugin(const tmedia_codec_plugin_def_t *plugin)
  40. {
  41. return(plugin && ((plugin == tdav_codec_h264_base_plugin_def_t) || (plugin == tdav_codec_h264_main_plugin_def_t)));
  42. }
  43. TDAV_END_DECLS
  44. #endif /* HAVE_FFMPEG || HAVE_H264_PASSTHROUGH */
  45. #endif /* TINYDAV_CODEC_H264_H */