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

(-)webkit-1.8.3/Source/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp (-5 / +5 lines)
Lines 234-240 Link Here
234
        switch (m_state) {
234
        switch (m_state) {
235
        case JPEG_HEADER:
235
        case JPEG_HEADER:
236
            // Read file parameters with jpeg_read_header().
236
            // Read file parameters with jpeg_read_header().
237
            if (jpeg_read_header(&m_info, true) == JPEG_SUSPENDED)
237
            if (jpeg_read_header(&m_info, TRUE) == JPEG_SUSPENDED)
238
                return false; // I/O suspension.
238
                return false; // I/O suspension.
239
239
240
            switch (m_info.jpeg_color_space) {
240
            switch (m_info.jpeg_color_space) {
Lines 295-303 Link Here
295
            // of progressive JPEG.
295
            // of progressive JPEG.
296
            m_info.dct_method = dctMethod();
296
            m_info.dct_method = dctMethod();
297
            m_info.dither_mode = JDITHER_FS;
297
            m_info.dither_mode = JDITHER_FS;
298
            m_info.do_fancy_upsampling = true;
298
            m_info.do_fancy_upsampling = TRUE;
299
            m_info.enable_2pass_quant = false;
299
            m_info.enable_2pass_quant = FALSE;
300
            m_info.do_block_smoothing = true;
300
            m_info.do_block_smoothing = TRUE;
301
301
302
            // Start decompressor.
302
            // Start decompressor.
303
            if (!jpeg_start_decompress(&m_info))
303
            if (!jpeg_start_decompress(&m_info))
Lines 420-426 Link Here
420
    // Our decode step always sets things up properly, so if this method is ever
420
    // Our decode step always sets things up properly, so if this method is ever
421
    // called, then we have hit the end of the buffer.  A return value of false
421
    // called, then we have hit the end of the buffer.  A return value of false
422
    // indicates that we have no data to supply yet.
422
    // indicates that we have no data to supply yet.
423
    return false;
423
    return FALSE;
424
}
424
}
425
425
426
void term_source(j_decompress_ptr jd)
426
void term_source(j_decompress_ptr jd)

Return to bug 481688