diff options
author | Aaron Gable <agable@chromium.org> | 2015-08-03 09:34:32 -0700 |
---|---|---|
committer | Aaron Gable <agable@chromium.org> | 2015-08-03 09:34:32 -0700 |
commit | c9c8755c326b42c8d0dc938ec3f0d1d648bd361a (patch) | |
tree | 7ebff33dec9b7cc37d65746e0d89f32cb74d141e /jpeglib.h | |
parent | 7a6ab4e9ce76b07ac406a20700eb97b7dd6d05f5 (diff) |
Add jpeg_skip_scanlines() API to libjpeg-turbo
jpeg_skip_scanlines() API, a subset decoding optimization
aimed at Android, was submitted upstream r1582. Pull that
change, and sundry fixes, into the Chromium repo.
This new API is targetted at Android devices, not Chrome,
and should have no affect on JPEG decode behavior or perf
of Chrome.
Chrome uses suspending data source JPEG decoding, and the
new API does not support such sources. Adding support for
suspending data sources is a future TODO, should the need
arise (refer to skbug.com/4036).
BUG=515694
BUG=468914
patch from issue 256280043 at patchset 50001 (http://crrev.com/256280043#ps50001)
R=agable@chromium.org
Review URL: https://codereview.chromium.org/1271803002 .
Diffstat (limited to 'jpeglib.h')
-rw-r--r-- | jpeglib.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -6,6 +6,7 @@ * Modified 2002-2009 by Guido Vollbeding. * Modifications: * Copyright (C) 2009-2011, 2013, D. R. Commander. + * Copyright (C) 2015, Google, Inc. * For conditions of distribution and use, see the accompanying README file. * * This file defines the application interface for the JPEG library. @@ -1089,6 +1090,8 @@ EXTERN(boolean) jpeg_start_decompress JPP((j_decompress_ptr cinfo)); EXTERN(JDIMENSION) jpeg_read_scanlines JPP((j_decompress_ptr cinfo, JSAMPARRAY scanlines, JDIMENSION max_lines)); +EXTERN(JDIMENSION) jpeg_skip_scanlines (j_decompress_ptr cinfo, + JDIMENSION num_lines); EXTERN(boolean) jpeg_finish_decompress JPP((j_decompress_ptr cinfo)); /* Replaces jpeg_read_scanlines when reading raw downsampled data. */ |