obs-studio/plugins/win-dshow
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
..
data win-dshow: Add autorotation toggle 2021-02-07 21:12:48 -08:00
libdshowcapture@5d27ca0e50 win-dshow: Fix libdshowcapture formatting 2021-04-06 12:00:12 -07:00
virtualcam-module win-dshow: Fix virtual camera CPU usage, add more comments 2021-04-15 03:11:33 +02:00
CMakeLists.txt win-dshow: Add VirtualCam installer scripts 2020-09-06 18:04:44 -07:00
dshow-plugin.cpp win-dshow: Use cmake-based GUID for virtualcam 2020-09-06 17:04:06 -07:00
encode-dstr.hpp clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
ffmpeg-decode.c win-dshow: Fix memory leak caused by using incorrect API 2021-03-22 13:59:22 -07:00
ffmpeg-decode.h win-dshow: Fix color range when using FFmpeg decode 2019-09-14 17:12:29 -07:00
shared-memory-queue.c win-dshow: Check return values for memory allocation functions 2021-03-23 03:07:22 +01:00
shared-memory-queue.h win-dshow: Add Virtual Camera (Windows) 2020-07-07 06:09:59 -07:00
tiny-nv12-scale.c win-dshow: Add support for YUY2 in virtualcam 2020-11-14 04:25:39 -08:00
tiny-nv12-scale.h win-dshow: Add support for YUY2 in virtualcam 2020-11-14 04:25:39 -08:00
virtualcam-guid.h.in win-dshow: Use cmake-based GUID for virtualcam 2020-09-06 17:04:06 -07:00
virtualcam-install.bat.in win-dshow: Set current working directory in VirtualCam scripts 2020-09-15 19:58:02 +10:00
virtualcam-uninstall.bat.in win-dshow: Set current working directory in VirtualCam scripts 2020-09-15 19:58:02 +10:00
virtualcam.c win-dshow: Add Virtual Camera (Windows) 2020-07-07 06:09:59 -07:00
win-dshow-encoder.cpp clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
win-dshow.cpp win-dshow: Add autorotation toggle 2021-02-07 21:12:48 -08:00