Commit Graph

46 Commits

Author SHA1 Message Date
21886adb32 base: Fix generated header inclusion 2023-03-27 12:59:23 -04:00
f66080a031 Utils: Split Obs utils into individual files 2021-12-21 01:32:12 -08:00
a40e79e987 Utils/Obs: Fix build (again) 2021-12-17 15:48:59 -08:00
c4ab69481b Base: Move AutoRelease helpers to utils + build fix
- Moves the AutoRelease helpers to utils/Obs.h
- Fixes build using obsproject/obs-studio/pull/5580
2021-12-17 14:35:19 -08:00
29a5cfe2fe Utils: Include algorithm
Good thing to have
2021-12-14 18:02:13 -08:00
20426924cd Utils: [BREAKING CHANGE] Remove groups from GetSceneList + re-add order
- Removes the `isGroup` boolean field from the scene object, and does
not include any groups in the returned array.
- Reintroduces ordered results. Previous versions used a method which
did not return the scene list in the same order as the UI. This change
also means that this request is more susceptible to crashing OBS if
called during a scene collection change.
- Adds the `sceneIndex` number to the scene object. 0 being the bottom
of the scene list, just like in other requests like `GetSceneItemList`.
2021-12-14 17:37:06 -08:00
c95511eb5f Base: Remove UNUSED_PARAMETER() usages
I prefer to use undefined parameters instead.
2021-11-21 03:08:06 -08:00
4ca259b790 Base: Enforce -Wall and fix compiler warnings
That was *a lot* of warnings.
2021-11-20 02:34:48 -08:00
32a9e12f62 Base: Logging improvements
Use blog_debug() in place of almost all debug logging messages, and
change some log levels to be less verbose.
2021-11-20 01:50:49 -08:00
bd6c663775 Base: Add copyright header to source 2021-11-19 17:32:22 -08:00
01013c1b27 Base: Fix compile error
I literally could have sworn I remember json::null() being valid, but
I guess not. Oops
2021-11-17 02:58:11 -08:00
1dbb7a9686 Requests: Apply some code style changes 2021-11-17 02:14:13 -08:00
0f17d3d6f8 Utils/Obs: Update StringHelper function names
I hated having `String` appended to half of the utils since it was
extra
2021-11-17 01:23:23 -08:00
7403264d42 Requests/Utils: Modify utils naming/usage
A bit too niche to have a util that takes an output and returns a
timecode string. Let's just make it take a duration in milliseconds.
2021-11-17 01:07:04 -08:00
0671ded7d1 Requests: Add recording requests 2021-11-17 00:30:17 -08:00
5faadc12de Utils/Obs: Add scaleX and scaleY plus new util 2021-11-12 23:23:51 -08:00
af52a26e68 Utils: Add ability to specify transform/crop for scene item creation 2021-11-12 17:29:43 -08:00
181003af89 Utils: Use emplace_back instead of push_back
Saves copy operations
2021-09-25 19:34:05 -07:00
aa0ba78e46 Base: Use more refcounts
Use refcounts more effectively
2021-09-25 17:52:08 -07:00
4e0b8c5f11 Utils/Obs: Add GetSceneItemByName
Simple, didn't really need to be a util tbh. But I added it anyway
and there's nothing you can do to stop me
2021-09-25 17:21:00 -07:00
a5a19b9952 Utils/Crypto: Use QRandomGenerator instead of qrand()
qrand() is obsolete, and QRandomGenerator produces numbers seeded from
the platform's RNG source. Makes our authentication system way more
secure too.
2021-09-17 02:00:30 -07:00
3d2fb65357 Utils: Add GetSceneItemTransform 2021-09-03 15:58:34 -07:00
82d8a3d7ce Utils: Add stuff to Obs 2021-09-02 19:28:55 -07:00
8a45560297 Utils: Add GetSceneCount() 2021-09-01 10:43:24 -07:00
0547e1f2da Base: Lots of changes 2021-08-27 04:19:42 -07:00
64df33152a Utils: Switch to obs_enum_scenes() for GetSceneList
More threadsafe than `obs_frontend_get_scenes()`, not that either
are in any way threadsafe.
2021-08-26 22:46:53 -07:00
43a889c1d4 Utils: Refactor into dedicated components 2021-08-26 19:00:48 -07:00
306844e42d Utils: Add helper to get current profile file path 2021-08-26 18:41:53 -07:00
7f7651b405 Utils: Attempt fix output timecode string 2021-07-24 20:48:44 -07:00
7081824bbe Utils: Add includeDisabled in GetInputKindList 2021-07-22 17:38:32 -07:00
d0e05ae45c Requests: Add more requests
- GetStreamServiceSettings
- SetStreamServiceSettings
- CreateInput
- GetStreamStatus
- StartStream
- StopStream
2021-07-22 16:26:04 -07:00
4d271da541 Base: Code cleanup and add some requests 2021-07-22 03:24:53 -07:00
584be06398 Utils: Add CreateSceneItem and CreateInput 2021-06-21 15:26:59 -07:00
8ad009ba51 RequestHandler: Move GetInputList logic to Utils 2021-06-16 01:39:04 -07:00
4d77927ceb Utils: Add Obs::ListHelper::GetInputKindList() 2021-06-16 01:31:36 -07:00
5cc52ce704 Utils: Add isGroup to Obs::ListHelper::GetSceneList() 2021-06-16 00:57:18 -07:00
971dd6713b Utils: Flip index of GetSceneList()
OBS likes to start indexes with 0 at the bottom (eg. scene items),
so it's good to match that
2021-06-13 02:15:43 -07:00
10afbdfca0 Utils: Add scene item list helper 2021-06-13 02:10:04 -07:00
413b76d9a6 Utils: Minor nitpick 2021-06-12 22:17:55 -07:00
4503b6ed05 Utils: Add string helper to get last replay 2021-06-12 20:34:08 -07:00
e15acf9065 Utils: Add helpers to get some current data 2021-06-07 01:12:01 -07:00
2c018ca174 RequestHandler: Add some requests from the General category 2021-06-06 05:06:17 -07:00
9077ac911d EventHandler: Add some transition stuff
Transitions in OBS are implemented badly.
Not sure what will reasonably be possible with them.
I'll probably save implementing them for last
2021-05-14 03:59:00 -07:00
c8eac893f2 Utils: Add more OBS utils 2021-05-14 01:13:09 -07:00
23b6ce607c Utils: Add some Obs helpers 2021-05-10 18:25:15 -07:00
600505b60a Utils: Add Obs utils namespace 2021-05-08 00:54:35 -07:00