diff options
author | Aaron Gable <agable@chromium.org> | 2015-08-06 09:54:48 -0700 |
---|---|---|
committer | Aaron Gable <agable@chromium.org> | 2015-08-06 09:54:48 -0700 |
commit | feec46f80444b8eed4126a86a2c0e2cffe1c9673 (patch) | |
tree | 8bb36e3f61e201cb718af143ea8409ace64d6e4d /jsimd.h | |
parent | c9c8755c326b42c8d0dc938ec3f0d1d648bd361a (diff) |
Add support for decoding to 565 to libjpeg_turbo
It was submitted upstream at libjpeg_turbo as r1295 plus
sundry fixes and SIMD optimizations (r1385, r1386, r1398,
and r1402). Now cherry pick the change into
third_party/libjpeg-turbo.
At this time, this new capability is intended for Android
devices, not Chrome, and should have no affect on JPEG
decode behavior or perf of Chrome.
BUG=516761
R=noel@chromium.org
Review URL: https://codereview.chromium.org/1270213002 .
Diffstat (limited to 'jsimd.h')
-rw-r--r-- | jsimd.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -2,7 +2,7 @@ * jsimd.h * * Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB - * Copyright 2011 D. R. Commander + * Copyright 2011, 2014 D. R. Commander * * Based on the x86 SIMD extension for IJG JPEG library, * Copyright (C) 1999-2006, MIYASAKA Masaru. @@ -40,6 +40,7 @@ EXTERN(int) jsimd_can_rgb_ycc JPP((void)); EXTERN(int) jsimd_can_rgb_gray JPP((void)); EXTERN(int) jsimd_can_ycc_rgb JPP((void)); +EXTERN(int) jsimd_can_ycc_rgb565 JPP((void)); EXTERN(void) jsimd_rgb_ycc_convert JPP((j_compress_ptr cinfo, @@ -53,6 +54,9 @@ EXTERN(void) jsimd_ycc_rgb_convert JPP((j_decompress_ptr cinfo, JSAMPIMAGE input_buf, JDIMENSION input_row, JSAMPARRAY output_buf, int num_rows)); +EXTERN(void) jsimd_ycc_rgb565_convert + JPP((j_decompress_ptr cinfo, JSAMPIMAGE input_buf, JDIMENSION input_row, + JSAMPARRAY output_buf, int num_rows)); EXTERN(int) jsimd_can_h2v2_downsample JPP((void)); EXTERN(int) jsimd_can_h2v1_downsample JPP((void)); |