Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Side by Side Diff: dm/DM.cpp

Issue 2174493002: Add color space xform support to SkJpegCodec (includes F16!) (Closed) Base URL: https://skia.googlesource.com/skia.git@drop
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "CrashHandler.h" 8 #include "CrashHandler.h"
9 #include "DMJsonWriter.h" 9 #include "DMJsonWriter.h"
10 #include "DMSrcSink.h" 10 #include "DMSrcSink.h"
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 push_src("image", "color_codec_HPZR30w", src); 748 push_src("image", "color_codec_HPZR30w", src);
749 // TODO (msarett): 749 // TODO (msarett):
750 // Should we test this Dst in F16 mode (even though the Dst gamma is 2.2 instead of sRGB)? 750 // Should we test this Dst in F16 mode (even though the Dst gamma is 2.2 instead of sRGB)?
751 751
752 src = new ColorCodecSrc(colorImage, ColorCodecSrc::kDst_sRGB_Mode, kN32_ SkColorType); 752 src = new ColorCodecSrc(colorImage, ColorCodecSrc::kDst_sRGB_Mode, kN32_ SkColorType);
753 push_src("image", "color_codec_sRGB_kN32", src); 753 push_src("image", "color_codec_sRGB_kN32", src);
754 src = new ColorCodecSrc(colorImage, ColorCodecSrc::kDst_sRGB_Mode, kRGBA _F16_SkColorType); 754 src = new ColorCodecSrc(colorImage, ColorCodecSrc::kDst_sRGB_Mode, kRGBA _F16_SkColorType);
755 push_src("image", "color_codec_sRGB_kF16", src); 755 push_src("image", "color_codec_sRGB_kF16", src);
756 756
757 #if defined(SK_TEST_QCMS) 757 #if defined(SK_TEST_QCMS)
758 src = new ColorCodecSrc(colorImage, ColorCodecSrc::kQCMS_HPZR30w_Mode, k N32_SkColorType); 758 src = new ColorCodecSrc(colorImage, ColorCodecSrc::kQCMS_HPZR30w_Mode,
759 kRGBA_8888_SkColorType);
759 push_src("image", "color_codec_QCMS_HPZR30w", src); 760 push_src("image", "color_codec_QCMS_HPZR30w", src);
760 #endif 761 #endif
761 } 762 }
762 763
763 return true; 764 return true;
764 } 765 }
765 766
766 static void push_sink(const SkCommandLineConfig& config, Sink* s) { 767 static void push_sink(const SkCommandLineConfig& config, Sink* s) {
767 SkAutoTDelete<Sink> sink(s); 768 SkAutoTDelete<Sink> sink(s);
768 769
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after
1408 #endif 1409 #endif
1409 } 1410 }
1410 } // namespace skiatest 1411 } // namespace skiatest
1411 1412
1412 #if !defined(SK_BUILD_FOR_IOS) 1413 #if !defined(SK_BUILD_FOR_IOS)
1413 int main(int argc, char** argv) { 1414 int main(int argc, char** argv) {
1414 SkCommandLineFlags::Parse(argc, argv); 1415 SkCommandLineFlags::Parse(argc, argv);
1415 return dm_main(); 1416 return dm_main();
1416 } 1417 }
1417 #endif 1418 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698