vid_toolbox.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. * Copyright (C) 2017 Teluu Inc. (http://www.teluu.com)
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write to the Free Software
  16. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  17. */
  18. #ifndef __PJMEDIA_CODEC_VID_TOOLBOX_H__
  19. #define __PJMEDIA_CODEC_VID_TOOLBOX_H__
  20. #include <pjmedia-codec/types.h>
  21. #include <pjmedia/vid_codec.h>
  22. /**
  23. * @file pjmedia-codec/vid_toolbox.h
  24. * @brief Video Toolbox codec
  25. */
  26. PJ_BEGIN_DECL
  27. /**
  28. * @defgroup PJMEDIA_CODEC_VID_TOOLBOX Video Toolbox Codec
  29. * @ingroup PJMEDIA_CODEC_VID_CODECS
  30. * @{
  31. *
  32. * Video Toolbox H.264 codec wrapper for Mac and iOS.
  33. */
  34. /**
  35. * Initialize and register Video Toolbox codec factory.
  36. *
  37. * @param mgr The video codec manager instance where this codec will
  38. * be registered to. Specify NULL to use default instance
  39. * (in that case, an instance of video codec manager must
  40. * have been created beforehand).
  41. * @param pf Pool factory.
  42. *
  43. * @return PJ_SUCCESS on success.
  44. */
  45. PJ_DECL(pj_status_t) pjmedia_codec_vid_toolbox_init(pjmedia_vid_codec_mgr *mgr,
  46. pj_pool_factory *pf);
  47. /**
  48. * Unregister Video Toolbox video codecs factory from the video codec manager
  49. * and deinitialize the codec library.
  50. *
  51. * @return PJ_SUCCESS on success.
  52. */
  53. PJ_DECL(pj_status_t) pjmedia_codec_vid_toolbox_deinit(void);
  54. /**
  55. * @} PJMEDIA_CODEC_VIDEO_TOOLBOX
  56. */
  57. PJ_END_DECL
  58. #endif /* __PJMEDIA_CODEC_VID_TOOLBOX_H__ */