Skip to content

Commit b28bb42

Browse files
jpark37Lain-B
authored andcommitted
libobs: Use limited range for R10l output
DeckLink hardware seems to want the values in video range.
1 parent 64cb68a commit b28bb42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libobs/data/default.effect

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ float4 PSDrawAlphaDivideR10L(VertInOut vert_in) : TARGET
5151
rgba.rgb *= (rgba.a > 0.) ? (multiplier / rgba.a) : 0.;
5252
rgba.rgb = rec709_to_rec2020(rgba.rgb);
5353
rgba.rgb = linear_to_st2084(rgba.rgb);
54-
uint3 rgb1023 = uint3(mad(rgba.rgb, 1023., .5));
54+
uint3 rgb1023 = uint3(mad(rgba.rgb, 876., 64.5));
5555
uint b = (rgb1023.b & 0x3Fu) << 2;
5656
uint g = ((rgb1023.b & 0x3C0u) >> 6) | ((rgb1023.g & 0xFu) << 4);
5757
uint r = ((rgb1023.g & 0x3F0u) >> 4) | ((rgb1023.r & 0x3u) << 6);

0 commit comments

Comments
 (0)