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

Unified Diff: simd/jsimd_arm.c

Issue 10386084: Update libjpeg-turbo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libjpeg_turbo/
Patch Set: Created 8 years, 7 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 | « simd/jsimd.h ('k') | simd/jsimd_arm_neon.S » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: simd/jsimd_arm.c
===================================================================
--- simd/jsimd_arm.c (revision 134206)
+++ simd/jsimd_arm.c (working copy)
@@ -104,7 +104,7 @@
int bufsize = 1024; /* an initial guess for the line buffer size limit */
#endif
- if (simd_support != ~0)
+ if (simd_support != ~0U)
return;
simd_support = 0;
@@ -338,6 +338,15 @@
{
init_simd();
+ /* The code is optimised for these values only */
+ if (BITS_IN_JSAMPLE != 8)
+ return 0;
+ if (sizeof(JDIMENSION) != 4)
+ return 0;
+
+ if (simd_support & JSIMD_ARM_NEON)
+ return 1;
+
return 0;
}
@@ -355,6 +364,9 @@
JSAMPARRAY input_data,
JSAMPARRAY * output_data_ptr)
{
+ if (simd_support & JSIMD_ARM_NEON)
+ jsimd_h2v1_fancy_upsample_neon(cinfo->max_v_samp_factor,
+ compptr->downsampled_width, input_data, output_data_ptr);
}
GLOBAL(int)
« no previous file with comments | « simd/jsimd.h ('k') | simd/jsimd_arm_neon.S » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698