diff options
| author | Scott Mansell <phiren@gmail.com> | 2013-08-23 00:07:21 +1200 |
|---|---|---|
| committer | Scott Mansell <phiren@gmail.com> | 2013-08-23 00:07:21 +1200 |
| commit | 2abcc32bbd0ba350ea552925b04b0522d78e56fe (patch) | |
| tree | 4d922ad13932a6b0df987a9b6ddcc0de0b2e27d5 /Source/Plugins/Plugin_VideoSoftware/Src/EfbInterface.cpp | |
| parent | 38de5bdd4af037ca53f075dc29b9f31c292bbe66 (diff) | |
Fixed a few issues bought up in code review.
Diffstat (limited to 'Source/Plugins/Plugin_VideoSoftware/Src/EfbInterface.cpp')
| -rw-r--r-- | Source/Plugins/Plugin_VideoSoftware/Src/EfbInterface.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Plugins/Plugin_VideoSoftware/Src/EfbInterface.cpp b/Source/Plugins/Plugin_VideoSoftware/Src/EfbInterface.cpp index 26c48bdd3d..446d9d8495 100644 --- a/Source/Plugins/Plugin_VideoSoftware/Src/EfbInterface.cpp +++ b/Source/Plugins/Plugin_VideoSoftware/Src/EfbInterface.cpp @@ -536,13 +536,13 @@ namespace EfbInterface { // YU pixel xfb_in_ram[x].Y = scanline[i].Y; - // U[i] = 1/4 * U[i-1] + 1/2 * U[i] + 1/4 U[i+1] - // we add in 10 bit space so it will round more accurately + // we mix our color difrences in 10 bit space so it will round more accurately + // U[i] = 1/4 * U[i-1] + 1/2 * U[i] + 1/4 * U[i+1] xfb_in_ram[x].UV = 128 + ((scanline[i-1].U + (scanline[i].U << 1) + scanline[i+1].U) >> 2); // YV pixel xfb_in_ram[x+1].Y = scanline[i+1].Y; - // V[i] = 1/4 * V[i-1] + 1/2 * V[i] + 1/4 V[i+1] + // V[i] = 1/4 * V[i-1] + 1/2 * V[i] + 1/4 * V[i+1] xfb_in_ram[x+1].UV = 128 + ((scanline[i].V + (scanline[i+1].V << 1) + scanline[i+2].V) >> 2); } xfb_in_ram += 640; |
