vpx.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*
  2. * Copyright (C) 2019 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_VPX_H__
  19. #define __PJMEDIA_CODEC_VPX_H__
  20. #include <pjmedia-codec/types.h>
  21. #include <pjmedia/vid_codec.h>
  22. /**
  23. * @file pjmedia-codec/vpx.h
  24. * @brief VPX codec
  25. */
  26. PJ_BEGIN_DECL
  27. /**
  28. * @defgroup PJMEDIA_CODEC_VPX VPX Codec
  29. * @ingroup PJMEDIA_CODEC_VID_CODECS
  30. * @{
  31. */
  32. /**
  33. * Initialize and register VPX codec factory.
  34. *
  35. * @param mgr The video codec manager instance where this codec will
  36. * be registered to. Specify NULL to use default instance
  37. * (in that case, an instance of video codec manager must
  38. * have been created beforehand).
  39. * @param pf Pool factory.
  40. *
  41. * @return PJ_SUCCESS on success.
  42. */
  43. PJ_DECL(pj_status_t) pjmedia_codec_vpx_vid_init(pjmedia_vid_codec_mgr *mgr,
  44. pj_pool_factory *pf);
  45. /**
  46. * Unregister VPX video codecs factory from the video codec manager and
  47. * deinitialize the codec library.
  48. *
  49. * @return PJ_SUCCESS on success.
  50. */
  51. PJ_DECL(pj_status_t) pjmedia_codec_vpx_vid_deinit(void);
  52. /**
  53. * @} PJMEDIA_CODEC_VPX
  54. */
  55. PJ_END_DECL
  56. #endif /* __PJMEDIA_CODEC_VPX_H__ */