obs-defs.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /******************************************************************************
  2. Copyright (C) 2023 by Lain Bailey <lain@obsproject.com>
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation, either version 2 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. ******************************************************************************/
  14. #pragma once
  15. /** Maximum number of source channels for output and per display */
  16. #define MAX_CHANNELS 64
  17. #define OBS_ALIGN_CENTER (0)
  18. #define OBS_ALIGN_LEFT (1 << 0)
  19. #define OBS_ALIGN_RIGHT (1 << 1)
  20. #define OBS_ALIGN_TOP (1 << 2)
  21. #define OBS_ALIGN_BOTTOM (1 << 3)
  22. #define MODULE_SUCCESS 0
  23. #define MODULE_ERROR -1
  24. #define MODULE_FILE_NOT_FOUND -2
  25. #define MODULE_MISSING_EXPORTS -3
  26. #define MODULE_INCOMPATIBLE_VER -4
  27. #define MODULE_HARDCODED_SKIP -5
  28. #define OBS_OUTPUT_SUCCESS 0
  29. #define OBS_OUTPUT_BAD_PATH -1
  30. #define OBS_OUTPUT_CONNECT_FAILED -2
  31. #define OBS_OUTPUT_INVALID_STREAM -3
  32. #define OBS_OUTPUT_ERROR -4
  33. #define OBS_OUTPUT_DISCONNECTED -5
  34. #define OBS_OUTPUT_UNSUPPORTED -6
  35. #define OBS_OUTPUT_NO_SPACE -7
  36. #define OBS_OUTPUT_ENCODE_ERROR -8
  37. #define OBS_OUTPUT_HDR_DISABLED -9
  38. #define OBS_VIDEO_SUCCESS 0
  39. #define OBS_VIDEO_FAIL -1
  40. #define OBS_VIDEO_NOT_SUPPORTED -2
  41. #define OBS_VIDEO_INVALID_PARAM -3
  42. #define OBS_VIDEO_CURRENTLY_ACTIVE -4
  43. #define OBS_VIDEO_MODULE_NOT_FOUND -5