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 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 primaries.fRX = 0.63002f; | 448 primaries.fRX = 0.63002f; |
449 primaries.fRY = 0.34000f; | 449 primaries.fRY = 0.34000f; |
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: |
| 459 primaries.fRX = 0.01f; |
| 460 primaries.fRY = 0.01f; |
| 461 primaries.fGX = 0.98f; |
| 462 primaries.fGY = 0.01f; |
| 463 primaries.fBX = 0.01f; |
| 464 primaries.fBY = 0.98f; |
| 465 primaries.fWX = 0.3127f; |
| 466 primaries.fWY = 0.3290f; |
| 467 break; |
| 468 |
458 case ColorSpace::PrimaryID::FILM: | 469 case ColorSpace::PrimaryID::FILM: |
459 primaries.fRX = 0.681f; | 470 primaries.fRX = 0.681f; |
460 primaries.fRY = 0.319f; | 471 primaries.fRY = 0.319f; |
461 primaries.fGX = 0.243f; | 472 primaries.fGX = 0.243f; |
462 primaries.fGY = 0.692f; | 473 primaries.fGY = 0.692f; |
463 primaries.fBX = 0.145f; | 474 primaries.fBX = 0.145f; |
464 primaries.fBY = 0.049f; | 475 primaries.fBY = 0.049f; |
465 primaries.fWX = 0.310f; | 476 primaries.fWX = 0.310f; |
466 primaries.fWY = 0.136f; | 477 primaries.fWY = 0.136f; |
467 break; | 478 break; |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
747 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); |
748 break; | 759 break; |
749 } | 760 } |
750 } | 761 } |
751 | 762 |
752 std::ostream& operator<<(std::ostream& out, const ColorSpace& color_space) { | 763 std::ostream& operator<<(std::ostream& out, const ColorSpace& color_space) { |
753 return out << color_space.ToString(); | 764 return out << color_space.ToString(); |
754 } | 765 } |
755 | 766 |
756 } // namespace gfx | 767 } // namespace gfx |
OLD | NEW |