1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-11-21 20:10:05 +00:00

Removed out of range characters from comments

This commit is contained in:
Chuck Walbourn 2018-05-05 09:15:26 -07:00
parent 459ec9b933
commit 8a2847dc4e

View File

@ -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<int>((76533 * y + 104905 * v + 32768) >> 16);
int g = static_cast<int>((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<int>((76607 * y + 105006 * v + 32768) >> 16);
int g = static_cast<int>((76607 * y - 25772 * u - 53477 * v + 32768) >> 16);