noobs 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/COPYING +339 -0
  2. package/README.md +46 -0
  3. package/bin/64bit/obs.lib +0 -0
  4. package/binding.gyp +23 -0
  5. package/dist/bin/Qt6Core.dll +0 -0
  6. package/dist/bin/Qt6Gui.dll +0 -0
  7. package/dist/bin/Qt6Network.dll +0 -0
  8. package/dist/bin/Qt6Svg.dll +0 -0
  9. package/dist/bin/Qt6Widgets.dll +0 -0
  10. package/dist/bin/Qt6Xml.dll +0 -0
  11. package/dist/bin/avcodec-61.dll +0 -0
  12. package/dist/bin/avdevice-61.dll +0 -0
  13. package/dist/bin/avfilter-10.dll +0 -0
  14. package/dist/bin/avformat-61.dll +0 -0
  15. package/dist/bin/avutil-59.dll +0 -0
  16. package/dist/bin/datachannel.dll +0 -0
  17. package/dist/bin/libcurl.dll +0 -0
  18. package/dist/bin/libobs-d3d11.dll +0 -0
  19. package/dist/bin/libobs-opengl.dll +0 -0
  20. package/dist/bin/libobs-winrt.dll +0 -0
  21. package/dist/bin/librist.dll +0 -0
  22. package/dist/bin/libx264-164.dll +0 -0
  23. package/dist/bin/lua51.dll +0 -0
  24. package/dist/bin/obs-amf-test.exe +0 -0
  25. package/dist/bin/obs-ffmpeg-mux.exe +0 -0
  26. package/dist/bin/obs-frontend-api.dll +0 -0
  27. package/dist/bin/obs-scripting.dll +0 -0
  28. package/dist/bin/obs.dll +0 -0
  29. package/dist/bin/srt.dll +0 -0
  30. package/dist/bin/swresample-5.dll +0 -0
  31. package/dist/bin/swscale-8.dll +0 -0
  32. package/dist/bin/w32-pthreads.dll +0 -0
  33. package/dist/bin/zlib.dll +0 -0
  34. package/dist/effects/area.effect +250 -0
  35. package/dist/effects/bicubic_scale.effect +236 -0
  36. package/dist/effects/bilinear_lowres_scale.effect +123 -0
  37. package/dist/effects/color.effect +172 -0
  38. package/dist/effects/default.effect +254 -0
  39. package/dist/effects/default_rect.effect +84 -0
  40. package/dist/effects/deinterlace_base.effect +325 -0
  41. package/dist/effects/deinterlace_blend.effect +21 -0
  42. package/dist/effects/deinterlace_blend_2x.effect +21 -0
  43. package/dist/effects/deinterlace_discard.effect +21 -0
  44. package/dist/effects/deinterlace_discard_2x.effect +21 -0
  45. package/dist/effects/deinterlace_linear.effect +21 -0
  46. package/dist/effects/deinterlace_linear_2x.effect +21 -0
  47. package/dist/effects/deinterlace_yadif.effect +21 -0
  48. package/dist/effects/deinterlace_yadif_2x.effect +21 -0
  49. package/dist/effects/format_conversion.effect +1823 -0
  50. package/dist/effects/lanczos_scale.effect +292 -0
  51. package/dist/effects/opaque.effect +159 -0
  52. package/dist/effects/premultiplied_alpha.effect +38 -0
  53. package/dist/effects/repeat.effect +36 -0
  54. package/dist/effects/solid.effect +80 -0
  55. package/dist/noobs.node +0 -0
  56. package/dist/plugins/obs-ffmpeg.dll +0 -0
  57. package/dist/plugins/obs-x264.dll +0 -0
  58. package/dist/plugins/win-capture.dll +0 -0
  59. package/include/audio-monitoring/osx/mac-helpers.h +13 -0
  60. package/include/audio-monitoring/pulse/pulseaudio-wrapper.h +212 -0
  61. package/include/audio-monitoring/win32/wasapi-output.h +22 -0
  62. package/include/callback/calldata.h +195 -0
  63. package/include/callback/decl.h +61 -0
  64. package/include/callback/proc.h +52 -0
  65. package/include/callback/signal.h +73 -0
  66. package/include/graphics/axisang.h +65 -0
  67. package/include/graphics/bounds.h +108 -0
  68. package/include/graphics/device-exports.h +177 -0
  69. package/include/graphics/effect-parser.h +290 -0
  70. package/include/graphics/effect.h +190 -0
  71. package/include/graphics/graphics-internal.h +335 -0
  72. package/include/graphics/graphics.h +1024 -0
  73. package/include/graphics/half.h +100 -0
  74. package/include/graphics/image-file.h +124 -0
  75. package/include/graphics/input.h +34 -0
  76. package/include/graphics/libnsgif/libnsgif.h +142 -0
  77. package/include/graphics/math-defs.h +45 -0
  78. package/include/graphics/math-extra.h +61 -0
  79. package/include/graphics/matrix3.h +98 -0
  80. package/include/graphics/matrix4.h +102 -0
  81. package/include/graphics/plane.h +85 -0
  82. package/include/graphics/quat.h +170 -0
  83. package/include/graphics/shader-parser.h +273 -0
  84. package/include/graphics/srgb.h +177 -0
  85. package/include/graphics/vec2.h +148 -0
  86. package/include/graphics/vec3.h +224 -0
  87. package/include/graphics/vec4.h +241 -0
  88. package/include/media-io/audio-io.h +228 -0
  89. package/include/media-io/audio-math.h +43 -0
  90. package/include/media-io/audio-resampler.h +44 -0
  91. package/include/media-io/format-conversion.h +50 -0
  92. package/include/media-io/frame-rate.h +29 -0
  93. package/include/media-io/media-io-defs.h +20 -0
  94. package/include/media-io/media-remux.h +37 -0
  95. package/include/media-io/video-frame.h +64 -0
  96. package/include/media-io/video-io.h +338 -0
  97. package/include/media-io/video-scaler.h +43 -0
  98. package/include/obs-audio-controls.h +250 -0
  99. package/include/obs-av1.h +47 -0
  100. package/include/obs-avc.h +55 -0
  101. package/include/obs-config.h +52 -0
  102. package/include/obs-data.h +311 -0
  103. package/include/obs-defs.h +52 -0
  104. package/include/obs-encoder.h +361 -0
  105. package/include/obs-ffmpeg-compat.h +13 -0
  106. package/include/obs-hevc.h +81 -0
  107. package/include/obs-hotkey.h +271 -0
  108. package/include/obs-hotkeys.h +653 -0
  109. package/include/obs-interaction.h +56 -0
  110. package/include/obs-internal.h +1459 -0
  111. package/include/obs-missing-files.h +53 -0
  112. package/include/obs-module.h +181 -0
  113. package/include/obs-nal.h +37 -0
  114. package/include/obs-nix-platform.h +53 -0
  115. package/include/obs-nix-wayland.h +24 -0
  116. package/include/obs-nix-x11.h +22 -0
  117. package/include/obs-nix.h +42 -0
  118. package/include/obs-output.h +96 -0
  119. package/include/obs-properties.h +364 -0
  120. package/include/obs-scene.h +127 -0
  121. package/include/obs-service.h +115 -0
  122. package/include/obs-source.h +568 -0
  123. package/include/obs.h +2608 -0
  124. package/include/obsconfig.h +13 -0
  125. package/include/obsversion.h +5 -0
  126. package/include/util/apple/cfstring-utils.h +16 -0
  127. package/include/util/array-serializer.h +37 -0
  128. package/include/util/base.h +97 -0
  129. package/include/util/bitstream.h +28 -0
  130. package/include/util/bmem.h +94 -0
  131. package/include/util/buffered-file-serializer.h +32 -0
  132. package/include/util/c99defs.h +75 -0
  133. package/include/util/cf-lexer.h +199 -0
  134. package/include/util/cf-parser.h +281 -0
  135. package/include/util/circlebuf.h +319 -0
  136. package/include/util/config-file.h +103 -0
  137. package/include/util/crc32.h +29 -0
  138. package/include/util/curl/curl-helper.h +35 -0
  139. package/include/util/darray.h +606 -0
  140. package/include/util/deque.h +319 -0
  141. package/include/util/dstr.h +320 -0
  142. package/include/util/file-serializer.h +34 -0
  143. package/include/util/lexer.h +273 -0
  144. package/include/util/pipe.h +52 -0
  145. package/include/util/platform.h +223 -0
  146. package/include/util/profiler.h +97 -0
  147. package/include/util/serializer.h +158 -0
  148. package/include/util/simde/check.h +285 -0
  149. package/include/util/simde/debug-trap.h +117 -0
  150. package/include/util/simde/hedley.h +2123 -0
  151. package/include/util/simde/simde-align.h +481 -0
  152. package/include/util/simde/simde-arch.h +537 -0
  153. package/include/util/simde/simde-common.h +918 -0
  154. package/include/util/simde/simde-constify.h +925 -0
  155. package/include/util/simde/simde-detect-clang.h +114 -0
  156. package/include/util/simde/simde-diagnostic.h +447 -0
  157. package/include/util/simde/simde-features.h +550 -0
  158. package/include/util/simde/simde-math.h +1858 -0
  159. package/include/util/simde/x86/mmx.h +2456 -0
  160. package/include/util/simde/x86/sse.h +4479 -0
  161. package/include/util/simde/x86/sse2.h +7549 -0
  162. package/include/util/source-profiler.h +66 -0
  163. package/include/util/sse-intrin.h +32 -0
  164. package/include/util/task.h +22 -0
  165. package/include/util/text-lookup.h +45 -0
  166. package/include/util/threading-posix.h +77 -0
  167. package/include/util/threading-windows.h +142 -0
  168. package/include/util/threading.h +103 -0
  169. package/include/util/utf8.h +35 -0
  170. package/include/util/uthash.h +34 -0
  171. package/include/util/util_uint128.h +108 -0
  172. package/include/util/util_uint64.h +34 -0
  173. package/include/util/windows/device-enum.h +14 -0
  174. package/include/util/windows/obfuscate.h +16 -0
  175. package/include/util/windows/win-registry.h +37 -0
  176. package/include/util/windows/win-version.h +57 -0
  177. package/include/util/windows/window-helpers.h +47 -0
  178. package/index.d.ts +38 -0
  179. package/index.js +8 -0
  180. package/package.json +31 -0
  181. package/src/main.cpp +321 -0
  182. package/src/obs_interface.cpp +605 -0
  183. package/src/obs_interface.h +74 -0
  184. package/src/utils.cpp +80 -0
  185. package/src/utils.h +3 -0
@@ -0,0 +1,53 @@
1
+ /******************************************************************************
2
+ Copyright (C) 2019 by Dillon Pentz <dillon@vodbox.io>
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, see <http://www.gnu.org/licenses/>.
16
+ ******************************************************************************/
17
+
18
+ #pragma once
19
+
20
+ #include "util/c99defs.h"
21
+
22
+ #ifdef __cplusplus
23
+ extern "C" {
24
+ #endif
25
+
26
+ typedef void (*obs_missing_file_cb)(void *src, const char *new_path, void *data);
27
+
28
+ struct obs_missing_file;
29
+ struct obs_missing_files;
30
+ typedef struct obs_missing_file obs_missing_file_t;
31
+ typedef struct obs_missing_files obs_missing_files_t;
32
+
33
+ enum obs_missing_file_src { OBS_MISSING_FILE_SOURCE, OBS_MISSING_FILE_SCRIPT };
34
+
35
+ EXPORT obs_missing_files_t *obs_missing_files_create();
36
+ EXPORT obs_missing_file_t *obs_missing_file_create(const char *path, obs_missing_file_cb callback, int src_type,
37
+ void *src, void *data);
38
+
39
+ EXPORT void obs_missing_files_add_file(obs_missing_files_t *files, obs_missing_file_t *file);
40
+ EXPORT size_t obs_missing_files_count(obs_missing_files_t *files);
41
+ EXPORT obs_missing_file_t *obs_missing_files_get_file(obs_missing_files_t *files, int idx);
42
+ EXPORT void obs_missing_files_destroy(obs_missing_files_t *files);
43
+ EXPORT void obs_missing_files_append(obs_missing_files_t *dst, obs_missing_files_t *src);
44
+
45
+ EXPORT void obs_missing_file_issue_callback(obs_missing_file_t *file, const char *new_path);
46
+ EXPORT const char *obs_missing_file_get_path(obs_missing_file_t *file);
47
+ EXPORT const char *obs_missing_file_get_source_name(obs_missing_file_t *file);
48
+ EXPORT void obs_missing_file_release(obs_missing_file_t *file);
49
+ EXPORT void obs_missing_file_destroy(obs_missing_file_t *file);
50
+
51
+ #ifdef __cplusplus
52
+ }
53
+ #endif
@@ -0,0 +1,181 @@
1
+ /******************************************************************************
2
+ Copyright (C) 2023 by Lain Bailey <lain@obsproject.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, see <http://www.gnu.org/licenses/>.
16
+ ******************************************************************************/
17
+
18
+ #pragma once
19
+
20
+ #include "obs.h"
21
+
22
+ #ifdef __cplusplus
23
+ #define MODULE_EXPORT extern "C" EXPORT
24
+ #define MODULE_EXTERN extern "C"
25
+ #else
26
+ #define MODULE_EXPORT EXPORT
27
+ #define MODULE_EXTERN extern
28
+ #endif
29
+
30
+ /**
31
+ * @file
32
+ * @brief This file is used by modules for module declaration and module
33
+ * exports.
34
+ *
35
+ * @page modules_page Modules
36
+ * @brief Modules or plugins are libraries that can be loaded by libobs and
37
+ * subsequently interact with it.
38
+ *
39
+ * @section modules_overview_sec Overview
40
+ *
41
+ * Modules can provide a wide range of functionality to libobs, they for example
42
+ * can feed captured audio or video to libobs, or interface with an encoder to
43
+ * provide some codec to libobs.
44
+ *
45
+ * @section modules_basic_sec Creating a basic module
46
+ *
47
+ * In order to create a module for libobs you will need to build a shared
48
+ * library that implements a basic interface for libobs to interact with.
49
+ * The following code would create a simple source plugin without localization:
50
+ *
51
+ @code
52
+ #include <obs-module.h>
53
+
54
+ OBS_DECLARE_MODULE()
55
+
56
+ extern struct obs_source_info my_source;
57
+
58
+ bool obs_module_load(void)
59
+ {
60
+ obs_register_source(&my_source);
61
+ return true;
62
+ }
63
+ @endcode
64
+ *
65
+ * If you want to enable localization, you will need to also use the
66
+ * @ref OBS_MODULE_USE_DEFAULT_LOCALE() macro.
67
+ *
68
+ * Other module types:
69
+ * - @ref obs_register_encoder()
70
+ * - @ref obs_register_service()
71
+ * - @ref obs_register_output()
72
+ *
73
+ */
74
+
75
+ /** Required: Declares a libobs module. */
76
+ #define OBS_DECLARE_MODULE() \
77
+ static obs_module_t *obs_module_pointer; \
78
+ MODULE_EXPORT void obs_module_set_pointer(obs_module_t *module); \
79
+ void obs_module_set_pointer(obs_module_t *module) \
80
+ { \
81
+ obs_module_pointer = module; \
82
+ } \
83
+ obs_module_t *obs_current_module(void) \
84
+ { \
85
+ return obs_module_pointer; \
86
+ } \
87
+ MODULE_EXPORT uint32_t obs_module_ver(void); \
88
+ uint32_t obs_module_ver(void) \
89
+ { \
90
+ return LIBOBS_API_VER; \
91
+ }
92
+
93
+ /**
94
+ * Required: Called when the module is loaded. Use this function to load all
95
+ * the sources/encoders/outputs/services for your module, or anything else that
96
+ * may need loading.
97
+ *
98
+ * @return Return true to continue loading the module, otherwise
99
+ * false to indicate failure and unload the module
100
+ */
101
+ MODULE_EXPORT bool obs_module_load(void);
102
+
103
+ /** Optional: Called when the module is unloaded. */
104
+ MODULE_EXPORT void obs_module_unload(void);
105
+
106
+ /** Optional: Called when all modules have finished loading */
107
+ MODULE_EXPORT void obs_module_post_load(void);
108
+
109
+ /** Called to set the current locale data for the module. */
110
+ MODULE_EXPORT void obs_module_set_locale(const char *locale);
111
+
112
+ /** Called to free the current locale data for the module. */
113
+ MODULE_EXPORT void obs_module_free_locale(void);
114
+
115
+ /** Optional: Use this macro in a module to use default locale handling. */
116
+ #define OBS_MODULE_USE_DEFAULT_LOCALE(module_name, default_locale) \
117
+ lookup_t *obs_module_lookup = NULL; \
118
+ const char *obs_module_text(const char *val) \
119
+ { \
120
+ const char *out = val; \
121
+ text_lookup_getstr(obs_module_lookup, val, &out); \
122
+ return out; \
123
+ } \
124
+ bool obs_module_get_string(const char *val, const char **out) \
125
+ { \
126
+ return text_lookup_getstr(obs_module_lookup, val, out); \
127
+ } \
128
+ void obs_module_set_locale(const char *locale) \
129
+ { \
130
+ if (obs_module_lookup) \
131
+ text_lookup_destroy(obs_module_lookup); \
132
+ obs_module_lookup = obs_module_load_locale(obs_current_module(), default_locale, locale); \
133
+ } \
134
+ void obs_module_free_locale(void) \
135
+ { \
136
+ text_lookup_destroy(obs_module_lookup); \
137
+ obs_module_lookup = NULL; \
138
+ }
139
+
140
+ /** Helper function for looking up locale if default locale handler was used */
141
+ MODULE_EXTERN const char *obs_module_text(const char *lookup_string);
142
+
143
+ /** Helper function for looking up locale if default locale handler was used,
144
+ * returns true if text found, otherwise false */
145
+ MODULE_EXPORT bool obs_module_get_string(const char *lookup_string, const char **translated_string);
146
+
147
+ /** Helper function that returns the current module */
148
+ MODULE_EXTERN obs_module_t *obs_current_module(void);
149
+
150
+ /**
151
+ * Returns the location to a module data file associated with the current
152
+ * module. Free with bfree when complete. Equivalent to:
153
+ * obs_find_module_file(obs_current_module(), file);
154
+ */
155
+ #define obs_module_file(file) obs_find_module_file(obs_current_module(), file)
156
+
157
+ /**
158
+ * Returns the location to a module config file associated with the current
159
+ * module. Free with bfree when complete. Will return NULL if configuration
160
+ * directory is not set. Equivalent to:
161
+ * obs_module_get_config_path(obs_current_module(), file);
162
+ */
163
+ #define obs_module_config_path(file) obs_module_get_config_path(obs_current_module(), file)
164
+
165
+ /**
166
+ * Optional: Declares the author(s) of the module
167
+ *
168
+ * @param name Author name(s)
169
+ */
170
+ #define OBS_MODULE_AUTHOR(name) \
171
+ MODULE_EXPORT const char *obs_module_author(void); \
172
+ const char *obs_module_author(void) \
173
+ { \
174
+ return name; \
175
+ }
176
+
177
+ /** Optional: Returns the full name of the module */
178
+ MODULE_EXPORT const char *obs_module_name(void);
179
+
180
+ /** Optional: Returns a description of the module */
181
+ MODULE_EXPORT const char *obs_module_description(void);
@@ -0,0 +1,37 @@
1
+ /******************************************************************************
2
+ Copyright (C) 2023 by Lain Bailey <lain@obsproject.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, see <http://www.gnu.org/licenses/>.
16
+ ******************************************************************************/
17
+
18
+ #pragma once
19
+
20
+ #include "util/c99defs.h"
21
+
22
+ #ifdef __cplusplus
23
+ extern "C" {
24
+ #endif
25
+
26
+ enum {
27
+ OBS_NAL_PRIORITY_DISPOSABLE = 0,
28
+ OBS_NAL_PRIORITY_LOW = 1,
29
+ OBS_NAL_PRIORITY_HIGH = 2,
30
+ OBS_NAL_PRIORITY_HIGHEST = 3,
31
+ };
32
+
33
+ EXPORT const uint8_t *obs_nal_find_startcode(const uint8_t *p, const uint8_t *end);
34
+
35
+ #ifdef __cplusplus
36
+ }
37
+ #endif
@@ -0,0 +1,53 @@
1
+ /******************************************************************************
2
+ Copyright (C) 2019 by Jason Francis <cycl0ps@tuta.io>
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, see <http://www.gnu.org/licenses/>.
16
+ ******************************************************************************/
17
+
18
+ #pragma once
19
+
20
+ #include "util/c99defs.h"
21
+
22
+ #ifdef __cplusplus
23
+ extern "C" {
24
+ #endif
25
+
26
+ enum obs_nix_platform_type {
27
+ OBS_NIX_PLATFORM_INVALID,
28
+ OBS_NIX_PLATFORM_X11_EGL,
29
+ OBS_NIX_PLATFORM_WAYLAND,
30
+ };
31
+
32
+ /**
33
+ * Sets the Unix platform.
34
+ * @param platform The platform to select.
35
+ */
36
+ EXPORT void obs_set_nix_platform(enum obs_nix_platform_type platform);
37
+ /**
38
+ * Gets the host platform.
39
+ */
40
+ EXPORT enum obs_nix_platform_type obs_get_nix_platform(void);
41
+ /**
42
+ * Sets the host platform's display connection.
43
+ * @param display The host display connection.
44
+ */
45
+ EXPORT void obs_set_nix_platform_display(void *display);
46
+ /**
47
+ * Gets the host platform's display connection.
48
+ */
49
+ EXPORT void *obs_get_nix_platform_display(void);
50
+
51
+ #ifdef __cplusplus
52
+ }
53
+ #endif
@@ -0,0 +1,24 @@
1
+ /******************************************************************************
2
+ Copyright (C) 2019 by Jason Francis <cycl0ps@tuta.io>
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, see <http://www.gnu.org/licenses/>.
16
+ ******************************************************************************/
17
+
18
+ #pragma once
19
+
20
+ #include "obs-nix.h"
21
+
22
+ void obs_nix_wayland_log_info(void);
23
+
24
+ const struct obs_nix_hotkeys_vtable *obs_nix_wayland_get_hotkeys_vtable(void);
@@ -0,0 +1,22 @@
1
+ /******************************************************************************
2
+ Copyright (C) 2019 by Jason Francis <cycl0ps@tuta.io>
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
+ This program is distributed in the hope that it will be useful,
9
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ GNU General Public License for more details.
12
+ You should have received a copy of the GNU General Public License
13
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
14
+ ******************************************************************************/
15
+
16
+ #pragma once
17
+
18
+ #include "obs-nix.h"
19
+
20
+ void obs_nix_x11_log_info(void);
21
+
22
+ const struct obs_nix_hotkeys_vtable *obs_nix_x11_get_hotkeys_vtable(void);
@@ -0,0 +1,42 @@
1
+ /******************************************************************************
2
+ Copyright (C) 2020 by Georges Basile Stavracas Neto <georges.stavracas@gmail.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, see <http://www.gnu.org/licenses/>.
16
+ ******************************************************************************/
17
+
18
+ #pragma once
19
+
20
+ #ifdef __cplusplus
21
+ extern "C" {
22
+ #endif
23
+
24
+ #include "obs-internal.h"
25
+
26
+ struct obs_nix_hotkeys_vtable {
27
+ bool (*init)(struct obs_core_hotkeys *hotkeys);
28
+
29
+ void (*free)(struct obs_core_hotkeys *hotkeys);
30
+
31
+ bool (*is_pressed)(obs_hotkeys_platform_t *context, obs_key_t key);
32
+
33
+ void (*key_to_str)(obs_key_t key, struct dstr *dstr);
34
+
35
+ obs_key_t (*key_from_virtual_key)(int sym);
36
+
37
+ int (*key_to_virtual_key)(obs_key_t key);
38
+ };
39
+
40
+ #ifdef __cplusplus
41
+ }
42
+ #endif
@@ -0,0 +1,96 @@
1
+ /******************************************************************************
2
+ Copyright (C) 2023 by Lain Bailey <lain@obsproject.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, see <http://www.gnu.org/licenses/>.
16
+ ******************************************************************************/
17
+
18
+ #pragma once
19
+
20
+ #ifdef __cplusplus
21
+ extern "C" {
22
+ #endif
23
+
24
+ /* obs_output_info.flags definitions */
25
+ #define OBS_OUTPUT_VIDEO (1 << 0)
26
+ #define OBS_OUTPUT_AUDIO (1 << 1)
27
+ #define OBS_OUTPUT_AV (OBS_OUTPUT_VIDEO | OBS_OUTPUT_AUDIO)
28
+ #define OBS_OUTPUT_ENCODED (1 << 2)
29
+ #define OBS_OUTPUT_SERVICE (1 << 3)
30
+ #define OBS_OUTPUT_MULTI_TRACK (1 << 4)
31
+ #define OBS_OUTPUT_CAN_PAUSE (1 << 5)
32
+ #define OBS_OUTPUT_MULTI_TRACK_AUDIO OBS_OUTPUT_MULTI_TRACK
33
+ #define OBS_OUTPUT_MULTI_TRACK_VIDEO (1 << 6)
34
+ #define OBS_OUTPUT_MULTI_TRACK_AV (OBS_OUTPUT_MULTI_TRACK_AUDIO | OBS_OUTPUT_MULTI_TRACK_VIDEO)
35
+
36
+ #define MAX_OUTPUT_AUDIO_ENCODERS 6
37
+ #define MAX_OUTPUT_VIDEO_ENCODERS 10
38
+
39
+ struct encoder_packet;
40
+
41
+ struct obs_output_info {
42
+ /* required */
43
+ const char *id;
44
+
45
+ uint32_t flags;
46
+
47
+ const char *(*get_name)(void *type_data);
48
+
49
+ void *(*create)(obs_data_t *settings, obs_output_t *output);
50
+ void (*destroy)(void *data);
51
+
52
+ bool (*start)(void *data);
53
+ void (*stop)(void *data, uint64_t ts);
54
+
55
+ void (*raw_video)(void *data, struct video_data *frame);
56
+ void (*raw_audio)(void *data, struct audio_data *frames);
57
+
58
+ void (*encoded_packet)(void *data, struct encoder_packet *packet);
59
+
60
+ /* optional */
61
+ void (*update)(void *data, obs_data_t *settings);
62
+
63
+ void (*get_defaults)(obs_data_t *settings);
64
+
65
+ obs_properties_t *(*get_properties)(void *data);
66
+
67
+ void (*unused1)(void *data);
68
+
69
+ uint64_t (*get_total_bytes)(void *data);
70
+
71
+ int (*get_dropped_frames)(void *data);
72
+
73
+ void *type_data;
74
+ void (*free_type_data)(void *type_data);
75
+
76
+ float (*get_congestion)(void *data);
77
+ int (*get_connect_time_ms)(void *data);
78
+
79
+ /* only used with encoded outputs, separated with semicolon */
80
+ const char *encoded_video_codecs;
81
+ const char *encoded_audio_codecs;
82
+
83
+ /* raw audio callback for multi track outputs */
84
+ void (*raw_audio2)(void *data, size_t idx, struct audio_data *frames);
85
+
86
+ /* required if OBS_OUTPUT_SERVICE */
87
+ const char *protocols;
88
+ };
89
+
90
+ EXPORT void obs_register_output_s(const struct obs_output_info *info, size_t size);
91
+
92
+ #define obs_register_output(info) obs_register_output_s(info, sizeof(struct obs_output_info))
93
+
94
+ #ifdef __cplusplus
95
+ }
96
+ #endif