diff options
author | bunnei <bunneidev@gmail.com> | 2015-01-01 20:54:45 -0500 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-01-01 20:54:45 -0500 |
commit | 7c8f6ca0511b35c8a56dce466df01f6364728581 (patch) | |
tree | bd1fa3b50c090786dd0f91669702ebf010d2a900 /src/video_core/utils.h | |
parent | fa4cc502e7f30d496d757ef7c52ecee89266a89f (diff) | |
parent | bc187be0c13f66b1a714d868ab8aa18214550bdc (diff) |
Merge pull request #358 from neobrain/pica_progress2
pica_progress followups
Diffstat (limited to 'src/video_core/utils.h')
-rw-r--r-- | src/video_core/utils.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/video_core/utils.h b/src/video_core/utils.h index 63ebccbde..6fd640425 100644 --- a/src/video_core/utils.h +++ b/src/video_core/utils.h @@ -8,32 +8,6 @@ #include "common/common_types.h" -namespace FormatPrecision { - -/// Adjust RGBA8 color with RGBA6 precision -static inline u32 rgba8_with_rgba6(u32 src) { - u32 color = src; - color &= 0xFCFCFCFC; - color |= (color >> 6) & 0x03030303; - return color; -} - -/// Adjust RGBA8 color with RGB565 precision -static inline u32 rgba8_with_rgb565(u32 src) { - u32 color = (src & 0xF8FCF8); - color |= (color >> 5) & 0x070007; - color |= (color >> 6) & 0x000300; - color |= 0xFF000000; - return color; -} - -/// Adjust Z24 depth value with Z16 precision -static inline u32 z24_with_z16(u32 src) { - return (src & 0xFFFF00) | (src >> 16); -} - -} // namespace - namespace VideoCore { /// Structure for the TGA texture format (for dumping) |