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:
jpark37 2022-01-25 02:30:34 -08:00 committed by Jim
parent 97d47b701b
commit 9f41531541

View file

@ -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 ||