libobs: Allow transitions to mix CCCS sources
Wasn't sure if CCCS sources should be allowed, but it fits image source.master
parent
2a0d8d1c9c
commit
23396e21e5
|
@ -832,12 +832,8 @@ void obs_transition_video_render2(
|
||||||
static enum gs_color_space mix_spaces(enum gs_color_space a,
|
static enum gs_color_space mix_spaces(enum gs_color_space a,
|
||||||
enum gs_color_space b)
|
enum gs_color_space b)
|
||||||
{
|
{
|
||||||
assert((a == GS_CS_SRGB) || (a == GS_CS_SRGB_16F) ||
|
if ((a == GS_CS_709_EXTENDED) || (a == GS_CS_709_SCRGB) ||
|
||||||
(a == GS_CS_709_EXTENDED));
|
(b == GS_CS_709_EXTENDED) || (b == GS_CS_709_SCRGB))
|
||||||
assert((b == GS_CS_SRGB) || (b == GS_CS_SRGB_16F) ||
|
|
||||||
(b == GS_CS_709_EXTENDED));
|
|
||||||
|
|
||||||
if ((a == GS_CS_709_EXTENDED) || (b == GS_CS_709_EXTENDED))
|
|
||||||
return GS_CS_709_EXTENDED;
|
return GS_CS_709_EXTENDED;
|
||||||
if ((a == GS_CS_SRGB_16F) || (b == GS_CS_SRGB_16F))
|
if ((a == GS_CS_SRGB_16F) || (b == GS_CS_SRGB_16F))
|
||||||
return GS_CS_SRGB_16F;
|
return GS_CS_SRGB_16F;
|
||||||
|
|
Loading…
Reference in New Issue