obs-defs.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /******************************************************************************
  2. Copyright (C) 2023 by Lain Bailey <[email protected]>
  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_FAILED_TO_OPEN -2
  25. #define MODULE_FILE_NOT_FOUND MODULE_FAILED_TO_OPEN /* DEPRECATED! */
  26. #define MODULE_MISSING_EXPORTS -3
  27. #define MODULE_INCOMPATIBLE_VER -4
  28. #define MODULE_HARDCODED_SKIP -5
  29. #define OBS_OUTPUT_SUCCESS 0
  30. #define OBS_OUTPUT_BAD_PATH -1
  31. #define OBS_OUTPUT_CONNECT_FAILED -2
  32. #define OBS_OUTPUT_INVALID_STREAM -3
  33. #define OBS_OUTPUT_ERROR -4
  34. #define OBS_OUTPUT_DISCONNECTED -5
  35. #define OBS_OUTPUT_UNSUPPORTED -6
  36. #define OBS_OUTPUT_NO_SPACE -7
  37. #define OBS_OUTPUT_ENCODE_ERROR -8
  38. #define OBS_OUTPUT_HDR_DISABLED -9
  39. #define OBS_VIDEO_SUCCESS 0
  40. #define OBS_VIDEO_FAIL -1
  41. #define OBS_VIDEO_NOT_SUPPORTED -2
  42. #define OBS_VIDEO_INVALID_PARAM -3
  43. #define OBS_VIDEO_CURRENTLY_ACTIVE -4
  44. #define OBS_VIDEO_MODULE_NOT_FOUND -5