d3d11converter: Fix RGB to GRAY conversion
Fix typo in shader code Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1697>
This commit is contained in:
parent
a4b83810fe
commit
e3e23a2c84
@ -291,7 +291,7 @@ static const gchar templ_PACKED_YUV_TO_SEMI_PLANAR_CHROMA_BODY[] =
|
|||||||
static const gchar templ_RGB_to_GRAY_BODY[] =
|
static const gchar templ_RGB_to_GRAY_BODY[] =
|
||||||
" float4 sample, rgba;\n"
|
" float4 sample, rgba;\n"
|
||||||
" rgba.rgb = shaderTexture[0].Sample(samplerState, input.Texture).rgb;\n"
|
" rgba.rgb = shaderTexture[0].Sample(samplerState, input.Texture).rgb;\n"
|
||||||
" sample.x = rgb_to_yuv (sample.rgb).x;\n"
|
" sample.x = rgb_to_yuv (rgba.rgb).x;\n"
|
||||||
" sample.y = 0.0;\n"
|
" sample.y = 0.0;\n"
|
||||||
" sample.z = 0.0;\n"
|
" sample.z = 0.0;\n"
|
||||||
" sample.a = 0.0;\n"
|
" sample.a = 0.0;\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user