mirror of https://github.com/PCSX2/pcsx2.git
IPU: Typo in threshold alpha for YUV->RGBA conversion. Don't know what games use this.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3105 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
15ac11b82e
commit
11c526e94f
|
@ -1167,14 +1167,14 @@ void __fastcall ipu_csc(macroblock_8 *mb8, macroblock_rgb32 *rgb32, int sgn)
|
|||
if ((p[0] < s_thresh[0]) && (p[1] < s_thresh[0]) && (p[2] < s_thresh[0]))
|
||||
*(u32*)p = 0;
|
||||
else
|
||||
p[3] = ((p[1] < s_thresh[1]) && (p[2] < s_thresh[1]) && (p[3] < s_thresh[1])) ? 0x40 : 0x80;
|
||||
p[3] = ((p[0] < s_thresh[1]) && (p[1] < s_thresh[1]) && (p[2] < s_thresh[1])) ? 0x40 : 0x80;
|
||||
}
|
||||
}
|
||||
else if (s_thresh[1] > 0)
|
||||
{
|
||||
for (i = 0; i < 64*4; i++, p += 4)
|
||||
{
|
||||
p[3] = ((p[1] < s_thresh[1]) && (p[2] < s_thresh[1]) && (p[3] < s_thresh[1])) ? 0x40 : 0x80;
|
||||
p[3] = ((p[0] < s_thresh[1]) && (p[1] < s_thresh[1]) && (p[2] < s_thresh[1])) ? 0x40 : 0x80;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue