Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 481688 | Differences between
and this patch

Collapse All | Expand All

(-)webkitgtk-2.0.4/Source/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp (-5 / +5 lines)
Lines 342-348 Link Here
342
        switch (m_state) {
342
        switch (m_state) {
343
        case JPEG_HEADER:
343
        case JPEG_HEADER:
344
            // Read file parameters with jpeg_read_header().
344
            // Read file parameters with jpeg_read_header().
345
            if (jpeg_read_header(&m_info, true) == JPEG_SUSPENDED)
345
            if (jpeg_read_header(&m_info, TRUE) == JPEG_SUSPENDED)
346
                return false; // I/O suspension.
346
                return false; // I/O suspension.
347
347
348
            switch (m_info.jpeg_color_space) {
348
            switch (m_info.jpeg_color_space) {
Lines 428-436 Link Here
428
            // of progressive JPEG.
428
            // of progressive JPEG.
429
            m_info.dct_method = dctMethod();
429
            m_info.dct_method = dctMethod();
430
            m_info.dither_mode = ditherMode();
430
            m_info.dither_mode = ditherMode();
431
            m_info.do_fancy_upsampling = doFancyUpsampling();
431
            m_info.do_fancy_upsampling = doFancyUpsampling() ? TRUE : FALSE;
432
            m_info.enable_2pass_quant = false;
432
            m_info.enable_2pass_quant = FALSE;
433
            m_info.do_block_smoothing = true;
433
            m_info.do_block_smoothing = TRUE;
434
434
435
            // Start decompressor.
435
            // Start decompressor.
436
            if (!jpeg_start_decompress(&m_info))
436
            if (!jpeg_start_decompress(&m_info))
Lines 581-587 Link Here
581
    // Our decode step always sets things up properly, so if this method is ever
581
    // Our decode step always sets things up properly, so if this method is ever
582
    // called, then we have hit the end of the buffer.  A return value of false
582
    // called, then we have hit the end of the buffer.  A return value of false
583
    // indicates that we have no data to supply yet.
583
    // indicates that we have no data to supply yet.
584
    return false;
584
    return FALSE;
585
}
585
}
586
586
587
void term_source(j_decompress_ptr jd)
587
void term_source(j_decompress_ptr jd)

Return to bug 481688