summaryrefslogtreecommitdiffstatshomepage
path: root/hlsl/yiq_decode.fx
diff options
context:
space:
mode:
authorGravatarGravatar Ryan Holtz <rholtz@batcountryentertainment.com>2011-06-03 14:38:59 +0000
committerGravatarGravatar Ryan Holtz <rholtz@batcountryentertainment.com>2011-06-03 14:38:59 +0000
commit771b77142fe1ac7e7ced80234de8e0579b881e3d (patch)
treebed9b96c3f5045d96b9569368894da77d0711cf2 /hlsl/yiq_decode.fx
parentd059d832c3a5ebbbc220497daf35405166c4219d (diff)
Fix for performance regression and slider regression in HLSL, also re-enabling pixel prescaling in yiq_encode.fx. No whatsnew.
Diffstat (limited to 'hlsl/yiq_decode.fx')
-rw-r--r--hlsl/yiq_decode.fx4
1 files changed, 2 insertions, 2 deletions
diff --git a/hlsl/yiq_decode.fx b/hlsl/yiq_decode.fx
index c25d9d5405c..61ba590717a 100644
--- a/hlsl/yiq_decode.fx
+++ b/hlsl/yiq_decode.fx
@@ -74,7 +74,7 @@ VS_OUTPUT vs_main(VS_INPUT Input)
Output.Position.x -= 0.5f;
Output.Position.y -= 0.5f;
Output.Position *= float4(2.0f, 2.0f, 1.0f, 1.0f);
- Output.Coord0.xy = Input.TexCoord + 0.5f / float2(RawWidth, RawHeight);
+ Output.Coord0.xy = Input.TexCoord;
Output.Coord0.zw = float2(1.0f / RawWidth, 0.0f);
return Output;
@@ -122,7 +122,7 @@ float4 ps_main(PS_INPUT Input) : COLOR
float4 CoordX = Input.Coord0.x + Input.Coord0.z * n4 * 0.25f;
float4 CoordY = Input.Coord0.y;
float2 TexCoord = float2(CoordX.r, CoordY.r);
- float4 C = tex2D(CompositeSampler, TexCoord + float2(0.125f, 0.0f) / RawDims) * CRange + MinC;
+ float4 C = tex2D(CompositeSampler, TexCoord + float2(0.625f, 0.4f) / RawDims) * CRange + MinC;
float4 WT = W * (CoordX * WidthRatio + AValue * CoordY * 2.0f * (RawHeight / HeightRatio) + BValue) + OValue;
float4 SincYIn = PI2 * Fc_y * n4;