From 8a2847dc4e2c8a0ddc759a278ad78584d20873f3 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Sat, 5 May 2018 09:15:26 -0700 Subject: [PATCH] Removed out of range characters from comments --- DirectXTex/DirectXTexConvert.cpp | 36 ++++++++++++++++---------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/DirectXTex/DirectXTexConvert.cpp b/DirectXTex/DirectXTexConvert.cpp index c8d4b09..73845d6 100644 --- a/DirectXTex/DirectXTexConvert.cpp +++ b/DirectXTex/DirectXTexConvert.cpp @@ -1281,13 +1281,13 @@ _Use_decl_annotations_ bool DirectX::_LoadScanline( // http://msdn.microsoft.com/en-us/library/windows/desktop/dd206750.aspx - // Y’ = Y - 16 - // Cb’ = Cb - 128 - // Cr’ = Cr - 128 + // Y' = Y - 16 + // Cb' = Cb - 128 + // Cr' = Cr - 128 - // R = 1.1644Y’ + 1.5960Cr’ - // G = 1.1644Y’ - 0.3917Cb’ - 0.8128Cr’ - // B = 1.1644Y’ + 2.0172Cb’ + // R = 1.1644Y' + 1.5960Cr' + // G = 1.1644Y' - 0.3917Cb' - 0.8128Cr' + // B = 1.1644Y' + 2.0172Cb' int r = (298 * y + 409 * v + 128) >> 8; int g = (298 * y - 100 * u - 208 * v + 128) >> 8; @@ -1317,13 +1317,13 @@ _Use_decl_annotations_ bool DirectX::_LoadScanline( // http://msdn.microsoft.com/en-us/library/windows/desktop/bb970578.aspx - // Y’ = Y - 64 - // Cb’ = Cb - 512 - // Cr’ = Cr - 512 + // Y' = Y - 64 + // Cb' = Cb - 512 + // Cr' = Cr - 512 - // R = 1.1678Y’ + 1.6007Cr’ - // G = 1.1678Y’ - 0.3929Cb’ - 0.8152Cr’ - // B = 1.1678Y’ + 2.0232Cb’ + // R = 1.1678Y' + 1.6007Cr' + // G = 1.1678Y' - 0.3929Cb' - 0.8152Cr' + // B = 1.1678Y' + 2.0232Cb' int r = static_cast((76533 * y + 104905 * v + 32768) >> 16); int g = static_cast((76533 * y - 25747 * u - 53425 * v + 32768) >> 16); @@ -1353,13 +1353,13 @@ _Use_decl_annotations_ bool DirectX::_LoadScanline( // http://msdn.microsoft.com/en-us/library/windows/desktop/bb970578.aspx - // Y’ = Y - 4096 - // Cb’ = Cb - 32768 - // Cr’ = Cr - 32768 + // Y' = Y - 4096 + // Cb' = Cb - 32768 + // Cr' = Cr - 32768 - // R = 1.1689Y’ + 1.6023Cr’ - // G = 1.1689Y’ - 0.3933Cb’ - 0.8160Cr’ - // B = 1.1689Y’+ 2.0251Cb’ + // R = 1.1689Y' + 1.6023Cr' + // G = 1.1689Y' - 0.3933Cb' - 0.8160Cr' + // B = 1.1689Y'+ 2.0251Cb' int r = static_cast((76607 * y + 105006 * v + 32768) >> 16); int g = static_cast((76607 * y - 25772 * u - 53477 * v + 32768) >> 16);