mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-07 03:53:38 +00:00
win-dshow: Use OBS_SOURCE_FRAME_LINEAR_ALPHA
This flag leads to a cheaper technique, "Draw" instead of "DrawNonlinearAlpha", and all the paths are opaque anyway.
This commit is contained in:
parent
97d47b701b
commit
9f41531541
|
@ -548,6 +548,7 @@ void DShowInput::OnVideoData(const VideoConfig &config, unsigned char *data,
|
|||
frame.height = cy_abs;
|
||||
frame.format = ConvertVideoFormat(config.format);
|
||||
frame.flip = flip;
|
||||
frame.flags = OBS_SOURCE_FRAME_LINEAR_ALPHA;
|
||||
|
||||
/* YUV DIBS are always top-down */
|
||||
if (config.format == VideoFormat::XRGB ||
|
||||
|
|
Loading…
Reference in a new issue