d3d11converter: Fix RGB to GRAY conversion
authorSeungha Yang <seungha@centricular.com>
Mon, 14 Feb 2022 17:26:46 +0000 (02:26 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 14 Feb 2022 17:49:54 +0000 (17:49 +0000)
Fix typo in shader code

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1697>

subprojects/gst-plugins-bad/sys/d3d11/gstd3d11converter.cpp

index 1d22a00..e995d06 100644 (file)
@@ -291,7 +291,7 @@ static const gchar templ_PACKED_YUV_TO_SEMI_PLANAR_CHROMA_BODY[] =
 static const gchar templ_RGB_to_GRAY_BODY[] =
     "  float4 sample, rgba;\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.z = 0.0;\n"
     "  sample.a = 0.0;\n"