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

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: Return a reference to ImageInfo Created 5 years, 7 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 | « 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 test_empty(r, "empty_images/zero-embedded.ico"); 212 test_empty(r, "empty_images/zero-embedded.ico");
213 test_empty(r, "empty_images/zero-width.bmp"); 213 test_empty(r, "empty_images/zero-width.bmp");
214 test_empty(r, "empty_images/zero-height.bmp"); 214 test_empty(r, "empty_images/zero-height.bmp");
215 test_empty(r, "empty_images/zero-width.jpg"); 215 test_empty(r, "empty_images/zero-width.jpg");
216 test_empty(r, "empty_images/zero-height.jpg"); 216 test_empty(r, "empty_images/zero-height.jpg");
217 test_empty(r, "empty_images/zero-width.png"); 217 test_empty(r, "empty_images/zero-width.png");
218 test_empty(r, "empty_images/zero-height.png"); 218 test_empty(r, "empty_images/zero-height.png");
219 test_empty(r, "empty_images/zero-width.wbmp"); 219 test_empty(r, "empty_images/zero-width.wbmp");
220 test_empty(r, "empty_images/zero-height.wbmp"); 220 test_empty(r, "empty_images/zero-height.wbmp");
221 } 221 }
OLDNEW
« no previous file with comments | « src/codec/SkJpegCodec.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698