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…
x
Reference in New Issue
Block a user