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

Side by Side Diff: dm/DM.cpp

Issue 2341143002: YUV and color xforms
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | src/codec/SkJpegCodec.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "DMJsonWriter.h" 8 #include "DMJsonWriter.h"
9 #include "DMSrcSink.h" 9 #include "DMSrcSink.h"
10 #include "DMSrcSinkAndroid.h" 10 #include "DMSrcSinkAndroid.h"
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 push_brd_srcs(image); 752 push_brd_srcs(image);
753 } 753 }
754 } 754 }
755 755
756 SkTArray<SkString> colorImages; 756 SkTArray<SkString> colorImages;
757 if (!CollectImages(FLAGS_colorImages, &colorImages)) { 757 if (!CollectImages(FLAGS_colorImages, &colorImages)) {
758 return false; 758 return false;
759 } 759 }
760 760
761 for (auto colorImage : colorImages) { 761 for (auto colorImage : colorImages) {
762 ColorCodecSrc* src = new ColorCodecSrc(colorImage, ColorCodecSrc::kBasel ine_Mode, 762 //ColorCodecSrc* src = new ColorCodecSrc(colorImage, ColorCodecSrc::kBas eline_Mode,
763 kN32_SkColorType); 763 // kN32_SkColorType);
764 push_src("colorImage", "color_codec_baseline", src); 764 //push_src("colorImage", "color_codec_baseline", src);
765 765
766 src = new ColorCodecSrc(colorImage, ColorCodecSrc::kDst_HPZR30w_Mode, kN 32_SkColorType); 766 //src = new ColorCodecSrc(colorImage, ColorCodecSrc::kDst_HPZR30w_Mode, kN32_SkColorType);
767 push_src("colorImage", "color_codec_HPZR30w", src); 767 //push_src("colorImage", "color_codec_HPZR30w", src);
768 // TODO (msarett): 768 // TODO (msarett):
769 // Should we test this Dst in F16 mode (even though the Dst gamma is 2.2 instead of sRGB)? 769 // Should we test this Dst in F16 mode (even though the Dst gamma is 2.2 instead of sRGB)?
770 770
771 src = new ColorCodecSrc(colorImage, ColorCodecSrc::kDst_sRGB_Mode, kN32_ SkColorType); 771 ColorCodecSrc* src = new ColorCodecSrc(colorImage, ColorCodecSrc::kDst_s RGB_Mode, kN32_SkColorType);
772 push_src("colorImage", "color_codec_sRGB_kN32", src); 772 push_src("colorImage", "color_codec_sRGB_kN32", src);
773 src = new ColorCodecSrc(colorImage, ColorCodecSrc::kDst_sRGB_Mode, kRGBA _F16_SkColorType); 773 //src = new ColorCodecSrc(colorImage, ColorCodecSrc::kDst_sRGB_Mode, kRG BA_F16_SkColorType);
774 push_src("colorImage", "color_codec_sRGB_kF16", src); 774 //push_src("colorImage", "color_codec_sRGB_kF16", src);
775 775
776 #if defined(SK_TEST_QCMS) 776 #if defined(SK_TEST_QCMS)
777 src = new ColorCodecSrc(colorImage, ColorCodecSrc::kQCMS_HPZR30w_Mode, 777 //src = new ColorCodecSrc(colorImage, ColorCodecSrc::kQCMS_HPZR30w_Mode,
778 kRGBA_8888_SkColorType); 778 // kRGBA_8888_SkColorType);
779 push_src("colorImage", "color_codec_QCMS_HPZR30w", src); 779 //push_src("colorImage", "color_codec_QCMS_HPZR30w", src);
780 #endif 780 #endif
781 } 781 }
782 782
783 return true; 783 return true;
784 } 784 }
785 785
786 static void push_sink(const SkCommandLineConfig& config, Sink* s) { 786 static void push_sink(const SkCommandLineConfig& config, Sink* s) {
787 SkAutoTDelete<Sink> sink(s); 787 SkAutoTDelete<Sink> sink(s);
788 788
789 // Try a simple Src as a canary. If it fails, skip this sink. 789 // Try a simple Src as a canary. If it fails, skip this sink.
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
1421 #endif 1421 #endif
1422 } 1422 }
1423 } // namespace skiatest 1423 } // namespace skiatest
1424 1424
1425 #if !defined(SK_BUILD_FOR_IOS) 1425 #if !defined(SK_BUILD_FOR_IOS)
1426 int main(int argc, char** argv) { 1426 int main(int argc, char** argv) {
1427 SkCommandLineFlags::Parse(argc, argv); 1427 SkCommandLineFlags::Parse(argc, argv);
1428 return dm_main(); 1428 return dm_main();
1429 } 1429 }
1430 #endif 1430 #endif
OLDNEW
« no previous file with comments | « no previous file | src/codec/SkJpegCodec.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698