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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp

Issue 1849393002: Enable yuv decoding of progressive jpegs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Needs rebaseline Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp
diff --git a/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp b/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp
index 09cc8af1ae4938cfd5a1b40fc877a514dc0ee2e2..03b465d816bee7fc7762d1e9bd4b5d102df4c9d6 100644
--- a/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp
+++ b/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp
@@ -219,7 +219,6 @@ static yuv_subsampling yuvSubsampling(const jpeg_decompress_struct& info)
{
if ((DCTSIZE == 8)
&& (info.num_components == 3)
- && (info.comps_in_scan >= info.num_components)
&& (info.scale_denom <= 8)
&& (info.cur_comp_info[0])
&& (info.cur_comp_info[1])
@@ -856,7 +855,7 @@ static bool outputRawData(JPEGImageReader* reader, ImagePlanes* imagePlanes)
bufferraw[1] = &bufferraw2[16]; // U channel rows (8)
bufferraw[2] = &bufferraw2[24]; // V channel rows (8)
int yHeight = info->output_height;
- int v = info->cur_comp_info[0]->v_samp_factor;
+ int v = info->comp_info[0].v_samp_factor;
IntSize uvSize = reader->uvSize();
int uvHeight = uvSize.height();
JSAMPROW outputY = static_cast<JSAMPROW>(imagePlanes->plane(0));
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698