| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/gfx/color_space.h" | 5 #include "ui/gfx/color_space.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <sstream> | 8 #include <sstream> |
| 9 | 9 |
| 10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 primaries.fGX = 0.29505f; | 450 primaries.fGX = 0.29505f; |
| 451 primaries.fGY = 0.60498f; | 451 primaries.fGY = 0.60498f; |
| 452 primaries.fBX = 0.15501f; | 452 primaries.fBX = 0.15501f; |
| 453 primaries.fBY = 0.07701f; | 453 primaries.fBY = 0.07701f; |
| 454 primaries.fWX = 0.3127f; | 454 primaries.fWX = 0.3127f; |
| 455 primaries.fWY = 0.3290f; | 455 primaries.fWY = 0.3290f; |
| 456 break; | 456 break; |
| 457 | 457 |
| 458 case ColorSpace::PrimaryID::WIDE_GAMUT_COLOR_SPIN: | 458 case ColorSpace::PrimaryID::WIDE_GAMUT_COLOR_SPIN: |
| 459 primaries.fRX = 0.01f; | 459 primaries.fRX = 0.01f; |
| 460 primaries.fRY = 0.01f; | 460 primaries.fRY = 0.98f; |
| 461 primaries.fGX = 0.98f; | 461 primaries.fGX = 0.01f; |
| 462 primaries.fGY = 0.01f; | 462 primaries.fGY = 0.01f; |
| 463 primaries.fBX = 0.01f; | 463 primaries.fBX = 0.98f; |
| 464 primaries.fBY = 0.98f; | 464 primaries.fBY = 0.01f; |
| 465 primaries.fWX = 0.3127f; | 465 primaries.fWX = 0.3127f; |
| 466 primaries.fWY = 0.3290f; | 466 primaries.fWY = 0.3290f; |
| 467 break; | 467 break; |
| 468 | 468 |
| 469 case ColorSpace::PrimaryID::FILM: | 469 case ColorSpace::PrimaryID::FILM: |
| 470 primaries.fRX = 0.681f; | 470 primaries.fRX = 0.681f; |
| 471 primaries.fRY = 0.319f; | 471 primaries.fRY = 0.319f; |
| 472 primaries.fGX = 0.243f; | 472 primaries.fGX = 0.243f; |
| 473 primaries.fGY = 0.692f; | 473 primaries.fGY = 0.692f; |
| 474 primaries.fBX = 0.145f; | 474 primaries.fBX = 0.145f; |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 758 matrix->postTranslate(-16.0f/219.0f, -15.5f/224.0f, -15.5f/224.0f); | 758 matrix->postTranslate(-16.0f/219.0f, -15.5f/224.0f, -15.5f/224.0f); |
| 759 break; | 759 break; |
| 760 } | 760 } |
| 761 } | 761 } |
| 762 | 762 |
| 763 std::ostream& operator<<(std::ostream& out, const ColorSpace& color_space) { | 763 std::ostream& operator<<(std::ostream& out, const ColorSpace& color_space) { |
| 764 return out << color_space.ToString(); | 764 return out << color_space.ToString(); |
| 765 } | 765 } |
| 766 | 766 |
| 767 } // namespace gfx | 767 } // namespace gfx |
| OLD | NEW |