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

Side by Side Diff: tests/CodexTest.cpp

Issue 1092303003: Scanline decoding for jpeg (Closed) Base URL: https://skia.googlesource.com/skia.git@index-scanline
Patch Set: Created 5 years, 8 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
« src/codec/SkJpegCodec.cpp ('K') | « src/codec/SkJpegCodec.cpp ('k') | no next file » | 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 2015 Google Inc. 2 * Copyright 2015 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 "Resources.h" 8 #include "Resources.h"
9 #include "SkBitmap.h" 9 #include "SkBitmap.h"
10 #include "SkCodec.h" 10 #include "SkCodec.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 check(r, "color_wheel.ico", SkISize::Make(128, 128), false); 98 check(r, "color_wheel.ico", SkISize::Make(128, 128), false);
99 // Decodes an embedded PNG image 99 // Decodes an embedded PNG image
100 check(r, "google_chrome.ico", SkISize::Make(256, 256), false); 100 check(r, "google_chrome.ico", SkISize::Make(256, 256), false);
101 101
102 // GIF 102 // GIF
103 check(r, "box.gif", SkISize::Make(200, 55), false); 103 check(r, "box.gif", SkISize::Make(200, 55), false);
104 check(r, "color_wheel.gif", SkISize::Make(128, 128), false); 104 check(r, "color_wheel.gif", SkISize::Make(128, 128), false);
105 check(r, "randPixels.gif", SkISize::Make(8, 8), false); 105 check(r, "randPixels.gif", SkISize::Make(8, 8), false);
106 106
107 // JPG 107 // JPG
108 check(r, "CMYK.jpg", SkISize::Make(642, 516), false); 108 check(r, "CMYK.jpg", SkISize::Make(642, 516), true);
109 check(r, "color_wheel.jpg", SkISize::Make(128, 128), false); 109 check(r, "color_wheel.jpg", SkISize::Make(128, 128), true);
110 check(r, "grayscale.jpg", SkISize::Make(128, 128), false); 110 check(r, "grayscale.jpg", SkISize::Make(128, 128), true);
111 check(r, "mandrill_512_q075.jpg", SkISize::Make(512, 512), false); 111 check(r, "mandrill_512_q075.jpg", SkISize::Make(512, 512), true);
112 check(r, "randPixels.jpg", SkISize::Make(8, 8), false); 112 check(r, "randPixels.jpg", SkISize::Make(8, 8), true);
113 113
114 // PNG 114 // PNG
115 check(r, "arrow.png", SkISize::Make(187, 312), true); 115 check(r, "arrow.png", SkISize::Make(187, 312), true);
116 check(r, "baby_tux.png", SkISize::Make(240, 246), true); 116 check(r, "baby_tux.png", SkISize::Make(240, 246), true);
117 check(r, "color_wheel.png", SkISize::Make(128, 128), true); 117 check(r, "color_wheel.png", SkISize::Make(128, 128), true);
118 check(r, "half-transparent-white-pixel.png", SkISize::Make(1, 1), true); 118 check(r, "half-transparent-white-pixel.png", SkISize::Make(1, 1), true);
119 check(r, "mandrill_128.png", SkISize::Make(128, 128), true); 119 check(r, "mandrill_128.png", SkISize::Make(128, 128), true);
120 check(r, "mandrill_16.png", SkISize::Make(16, 16), true); 120 check(r, "mandrill_16.png", SkISize::Make(16, 16), true);
121 check(r, "mandrill_256.png", SkISize::Make(256, 256), true); 121 check(r, "mandrill_256.png", SkISize::Make(256, 256), true);
122 check(r, "mandrill_32.png", SkISize::Make(32, 32), true); 122 check(r, "mandrill_32.png", SkISize::Make(32, 32), true);
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // JPG 191 // JPG
192 test_dimensions(r, "CMYK.jpg"); 192 test_dimensions(r, "CMYK.jpg");
193 test_dimensions(r, "color_wheel.jpg"); 193 test_dimensions(r, "color_wheel.jpg");
194 test_dimensions(r, "grayscale.jpg"); 194 test_dimensions(r, "grayscale.jpg");
195 test_dimensions(r, "mandrill_512_q075.jpg"); 195 test_dimensions(r, "mandrill_512_q075.jpg");
196 test_dimensions(r, "randPixels.jpg"); 196 test_dimensions(r, "randPixels.jpg");
197 } 197 }
198 198
199 199
200 200
OLDNEW
« src/codec/SkJpegCodec.cpp ('K') | « src/codec/SkJpegCodec.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698