0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 21:13:04 +02:00
obs-studio/plugins/win-dshow/virtualcam-module
Richard Stanway 47fcbdb0c9 win-dshow: Fix virtual camera CPU usage, add more comments
My previous commits would rescale the placeholder for output on every
frame which was not CPU efficient. Now we store a copy of the scaled
placeholder and update it any time the resolution / FPS / format
changes.

A new function GetOutputBufferSize was added to allow calculating the
output size when needed. The existing code assumed a 12-bit format if
the placeholder didn't load, which could cause grey / green output.

An optimization was made to only load and scale the placeholder once
the virtual output starts, as many applications load and unload the
filter multiple times during enumeration of devices.

Various comments were also added to help clarify how the filter works.
2021-04-15 03:11:33 +02:00
..
CMakeLists.txt win-dshow: Use cmake-based GUID for virtualcam 2020-09-06 17:04:06 -07:00
placeholder.cpp win-dshow: Fix crashing when using a custom vcam placeholder 2021-03-31 02:36:16 -07:00
sleepto.c win-dshow: Add Virtual Camera (Windows) 2020-07-07 06:09:59 -07:00
sleepto.h win-dshow: Add Virtual Camera (Windows) 2020-07-07 06:09:59 -07:00
virtualcam-filter.cpp win-dshow: Fix virtual camera CPU usage, add more comments 2021-04-15 03:11:33 +02:00
virtualcam-filter.hpp win-dshow: Fix virtual camera CPU usage, add more comments 2021-04-15 03:11:33 +02:00
virtualcam-module.cpp win-dshow: Fix incorrect variable used in condition 2021-03-23 02:49:44 +01:00
virtualcam-module.def.in win-dshow: Add Virtual Camera (Windows) 2020-07-07 06:09:59 -07:00