Last active
June 15, 2016 15:25
-
-
Save seven332/c707e281ead6f5cfdbb6c990eb932717 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOCAL_PATH := $(call my-dir) | |
JPEG_TURBO_SRC := \ | |
jaricom.c \ | |
jcapimin.c \ | |
jcapistd.c \ | |
jcarith.c \ | |
jccoefct.c \ | |
jccolor.c \ | |
jcdctmgr.c \ | |
jchuff.c \ | |
jcinit.c \ | |
jcmainct.c \ | |
jcmarker.c \ | |
jcmaster.c \ | |
jcomapi.c \ | |
jcparam.c \ | |
jcphuff.c \ | |
jcprepct.c \ | |
jcsample.c \ | |
jctrans.c \ | |
jdapimin.c \ | |
jdapistd.c \ | |
jdarith.c \ | |
jdatadst.c \ | |
jdatasrc.c \ | |
jdcoefct.c \ | |
jdcolor.c \ | |
jddctmgr.c \ | |
jdhuff.c \ | |
jdinput.c \ | |
jdmainct.c \ | |
jdmarker.c \ | |
jdmaster.c \ | |
jdmerge.c \ | |
jdphuff.c \ | |
jdpostct.c \ | |
jdsample.c \ | |
jdtrans.c \ | |
jerror.c \ | |
jfdctflt.c \ | |
jfdctfst.c \ | |
jfdctint.c \ | |
jidctflt.c \ | |
jidctfst.c \ | |
jidctint.c \ | |
jidctred.c \ | |
jquant1.c \ | |
jquant2.c \ | |
jutils.c \ | |
jmemmgr.c \ | |
jmemnobs.c | |
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a) | |
SMID_SRC := \ | |
simd/jsimd_arm.c \ | |
simd/jsimd_arm_neon.S | |
else ifeq ($(TARGET_ARCH_ABI), arm64-v8a) | |
SMID_SRC := \ | |
simd/jsimd_arm64.c \ | |
simd/jsimd_arm64_neon.S | |
else ifeq ($(TARGET_ARCH_ABI), x86) | |
SMID_SRC := \ | |
simd/jsimd_i386.c \ | |
simd/jsimdcpu.asm \ | |
simd/jfdctflt-3dn.asm \ | |
simd/jidctflt-3dn.asm \ | |
simd/jquant-3dn.asm \ | |
simd/jccolor-mmx.asm \ | |
simd/jcgray-mmx.asm \ | |
simd/jcsample-mmx.asm \ | |
simd/jdcolor-mmx.asm \ | |
simd/jdmerge-mmx.asm \ | |
simd/jdsample-mmx.asm \ | |
simd/jfdctfst-mmx.asm \ | |
simd/jfdctint-mmx.asm \ | |
simd/jidctfst-mmx.asm \ | |
simd/jidctint-mmx.asm \ | |
simd/jidctred-mmx.asm \ | |
simd/jquant-mmx.asm \ | |
simd/jfdctflt-sse.asm \ | |
simd/jidctflt-sse.asm \ | |
simd/jquant-sse.asm \ | |
simd/jccolor-sse2.asm \ | |
simd/jcgray-sse2.asm \ | |
simd/jchuff-sse2.asm \ | |
simd/jcsample-sse2.asm \ | |
simd/jdcolor-sse2.asm \ | |
simd/jdmerge-sse2.asm \ | |
simd/jdsample-sse2.asm \ | |
simd/jfdctfst-sse2.asm \ | |
simd/jfdctint-sse2.asm \ | |
simd/jidctflt-sse2.asm \ | |
simd/jidctfst-sse2.asm \ | |
simd/jidctint-sse2.asm \ | |
simd/jidctred-sse2.asm \ | |
simd/jquantf-sse2.asm \ | |
simd/jquanti-sse2.asm | |
SMID_ASMFLAGS := -DELF -DPIC | |
else ifeq ($(TARGET_ARCH_ABI), x86_64) | |
SMID_SRC := \ | |
simd/jsimd_x86_64.c \ | |
simd/jfdctflt-sse-64.asm \ | |
simd/jccolor-sse2-64.asm \ | |
simd/jcgray-sse2-64.asm \ | |
simd/jchuff-sse2-64.asm \ | |
simd/jcsample-sse2-64.asm \ | |
simd/jdcolor-sse2-64.asm \ | |
simd/jdmerge-sse2-64.asm \ | |
simd/jdsample-sse2-64.asm \ | |
simd/jfdctfst-sse2-64.asm \ | |
simd/jfdctint-sse2-64.asm \ | |
simd/jidctflt-sse2-64.asm \ | |
simd/jidctfst-sse2-64.asm \ | |
simd/jidctint-sse2-64.asm \ | |
simd/jidctred-sse2-64.asm \ | |
simd/jquantf-sse2-64.asm \ | |
simd/jquanti-sse2-64.asm | |
SMID_ASMFLAGS := -D__x86_64__ -DELF -DPIC | |
else ifeq ($(TARGET_ARCH_ABI), mips) | |
SMID_SRC := \ | |
simd/jsimd_mips.c \ | |
simd/jsimd_mips_dspr2.S | |
else ifeq ($(TARGET_ARCH_ABI), mips64) | |
SMID_SRC := \ | |
simd/jsimd_mips.c \ | |
simd/jsimd_mips_dspr2.S | |
endif | |
ifndef LIBRARY_STATIC | |
########################### | |
# | |
# JPEG-TURBO shared library | |
# | |
########################### | |
include $(CLEAR_VARS) | |
LOCAL_MODULE := jpeg-turbo | |
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH) | |
LOCAL_SRC_FILES := $(JPEG_TURBO_SRC) | |
ifdef SMID_SRC | |
LOCAL_SRC_FILES += ${SMID_SRC} | |
LOCAL_CFLAGS := -DWITH_SIMD | |
else | |
LOCAL_SRC_FILES += jsimd_none.c | |
endif # SMID_SRC | |
ifdef SMID_ASMFLAGS | |
LOCAL_ASMFLAGS := $(SMID_ASMFLAGS) | |
endif | |
include $(BUILD_SHARED_LIBRARY) | |
else # LIBRARY_STATIC | |
########################### | |
# | |
# JPEG-TURBO static library | |
# | |
########################### | |
include $(CLEAR_VARS) | |
LOCAL_MODULE := jpeg-turbo | |
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH) | |
LOCAL_SRC_FILES := $(JPEG_TURBO_SRC) | |
ifdef SMID_SRC | |
LOCAL_SRC_FILES += ${SMID_SRC} | |
LOCAL_CFLAGS := -DWITH_SIMD | |
else | |
LOCAL_SRC_FILES += jsimd_none.c | |
endif # SMID_SRC | |
ifdef SMID_ASMFLAGS | |
LOCAL_ASMFLAGS := $(SMID_ASMFLAGS) | |
endif | |
include $(BUILD_STATIC_LIBRARY) | |
endif # LIBRARY_STATIC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* jconfig.h. Generated from jconfig.h.in by configure. */ | |
/* Version ID for the JPEG library. | |
* Might be useful for tests like "#if JPEG_LIB_VERSION >= 60". | |
*/ | |
#define JPEG_LIB_VERSION 62 | |
/* libjpeg-turbo version */ | |
#define LIBJPEG_TURBO_VERSION 1.5.0 | |
/* libjpeg-turbo version in integer form */ | |
#define LIBJPEG_TURBO_VERSION_NUMBER 1005000 | |
/* Support arithmetic encoding */ | |
#define C_ARITH_CODING_SUPPORTED 1 | |
/* Support arithmetic decoding */ | |
#define D_ARITH_CODING_SUPPORTED 1 | |
/* | |
* Define BITS_IN_JSAMPLE as either | |
* 8 for 8-bit sample values (the usual setting) | |
* 12 for 12-bit sample values | |
* Only 8 and 12 are legal data precisions for lossy JPEG according to the | |
* JPEG standard, and the IJG code does not support anything else! | |
* We do not support run-time selection of data precision, sorry. | |
*/ | |
#define BITS_IN_JSAMPLE 8 /* use 8 or 12 */ | |
/* Define to 1 if you have the <locale.h> header file. */ | |
#define HAVE_LOCALE_H 1 | |
/* Define to 1 if you have the <stddef.h> header file. */ | |
#define HAVE_STDDEF_H 1 | |
/* Define to 1 if you have the <stdlib.h> header file. */ | |
#define HAVE_STDLIB_H 1 | |
/* Define to 1 if the system has the type `unsigned char'. */ | |
#define HAVE_UNSIGNED_CHAR 1 | |
/* Define to 1 if the system has the type `unsigned short'. */ | |
#define HAVE_UNSIGNED_SHORT 1 | |
/* Compiler does not support pointers to undefined structures. */ | |
/* #undef INCOMPLETE_TYPES_BROKEN */ | |
/* Support in-memory source/destination managers */ | |
#define MEM_SRCDST_SUPPORTED 1 | |
/* Define if you have BSD-like bzero and bcopy in <strings.h> rather than | |
memset/memcpy in <string.h>. */ | |
/* #undef NEED_BSD_STRINGS */ | |
/* Define if you need to include <sys/types.h> to get size_t. */ | |
#define NEED_SYS_TYPES_H 1 | |
/* Define if your (broken) compiler shifts signed values as if they were | |
unsigned. */ | |
/* #undef RIGHT_SHIFT_IS_UNSIGNED */ | |
/* Use accelerated SIMD routines. */ | |
/* Let Android.mk handle it */ | |
/* # undef WITH_SIMD */ | |
/* Define to 1 if type `char' is unsigned and you are not using gcc. */ | |
#ifndef __CHAR_UNSIGNED__ | |
/* # undef __CHAR_UNSIGNED__ */ | |
#endif | |
/* Define to empty if `const' does not conform to ANSI C. */ | |
/* #undef const */ | |
/* Define to `unsigned int' if <sys/types.h> does not define. */ | |
/* #undef size_t */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* jconfigint.h. Generated from jconfigint.h.in by configure. */ | |
/* libjpeg-turbo build number */ | |
#define BUILD "20160615" | |
/* How to obtain function inlining. */ | |
#define INLINE inline __attribute__((always_inline)) | |
/* Define to the full name of this package. */ | |
#define PACKAGE_NAME "libjpeg-turbo" | |
/* Version number of package */ | |
#define VERSION "1.5.0" | |
/* The size of `size_t', as computed by sizeof. */ | |
#define SIZEOF_SIZE_T __SIZEOF_SIZE_T__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; | |
; Automatically generated include file from jsimdcfg.inc.h | |
; | |
; | |
; -- jpeglib.h | |
; | |
%define DCTSIZE 8 | |
%define DCTSIZE2 64 | |
; | |
; -- jmorecfg.h | |
; | |
%define RGB_RED 0 | |
%define RGB_GREEN 1 | |
%define RGB_BLUE 2 | |
%define RGB_PIXELSIZE 3 | |
%define EXT_RGB_RED 0 | |
%define EXT_RGB_GREEN 1 | |
%define EXT_RGB_BLUE 2 | |
%define EXT_RGB_PIXELSIZE 3 | |
%define EXT_RGBX_RED 0 | |
%define EXT_RGBX_GREEN 1 | |
%define EXT_RGBX_BLUE 2 | |
%define EXT_RGBX_PIXELSIZE 4 | |
%define EXT_BGR_RED 2 | |
%define EXT_BGR_GREEN 1 | |
%define EXT_BGR_BLUE 0 | |
%define EXT_BGR_PIXELSIZE 3 | |
%define EXT_BGRX_RED 2 | |
%define EXT_BGRX_GREEN 1 | |
%define EXT_BGRX_BLUE 0 | |
%define EXT_BGRX_PIXELSIZE 4 | |
%define EXT_XBGR_RED 3 | |
%define EXT_XBGR_GREEN 2 | |
%define EXT_XBGR_BLUE 1 | |
%define EXT_XBGR_PIXELSIZE 4 | |
%define EXT_XRGB_RED 1 | |
%define EXT_XRGB_GREEN 2 | |
%define EXT_XRGB_BLUE 3 | |
%define EXT_XRGB_PIXELSIZE 4 | |
%define RGBX_FILLER_0XFF 1 | |
; Representation of a single sample (pixel element value). | |
; On this SIMD implementation, this must be 'unsigned char'. | |
; | |
%define JSAMPLE byte ; unsigned char | |
%define SIZEOF_JSAMPLE SIZEOF_BYTE ; sizeof(JSAMPLE) | |
%define CENTERJSAMPLE 128 | |
; Representation of a DCT frequency coefficient. | |
; On this SIMD implementation, this must be 'short'. | |
; | |
%define JCOEF word ; short | |
%define SIZEOF_JCOEF SIZEOF_WORD ; sizeof(JCOEF) | |
; Datatype used for image dimensions. | |
; On this SIMD implementation, this must be 'unsigned int'. | |
; | |
%define JDIMENSION dword ; unsigned int | |
%define SIZEOF_JDIMENSION SIZEOF_DWORD ; sizeof(JDIMENSION) | |
%define JSAMPROW POINTER ; JSAMPLE * (jpeglib.h) | |
%define JSAMPARRAY POINTER ; JSAMPROW * (jpeglib.h) | |
%define JSAMPIMAGE POINTER ; JSAMPARRAY * (jpeglib.h) | |
%define JCOEFPTR POINTER ; JCOEF * (jpeglib.h) | |
%define SIZEOF_JSAMPROW SIZEOF_POINTER ; sizeof(JSAMPROW) | |
%define SIZEOF_JSAMPARRAY SIZEOF_POINTER ; sizeof(JSAMPARRAY) | |
%define SIZEOF_JSAMPIMAGE SIZEOF_POINTER ; sizeof(JSAMPIMAGE) | |
%define SIZEOF_JCOEFPTR SIZEOF_POINTER ; sizeof(JCOEFPTR) | |
; | |
; -- jdct.h | |
; | |
; A forward DCT routine is given a pointer to a work area of type DCTELEM[]; | |
; the DCT is to be performed in-place in that buffer. | |
; To maximize parallelism, Type DCTELEM is changed to short (originally, int). | |
; | |
%define DCTELEM word ; short | |
%define SIZEOF_DCTELEM SIZEOF_WORD ; sizeof(DCTELEM) | |
%define float FP32 ; float | |
%define SIZEOF_FAST_FLOAT SIZEOF_FP32 ; sizeof(float) | |
; To maximize parallelism, Type short is changed to short. | |
; | |
%define ISLOW_MULT_TYPE word ; must be short | |
%define SIZEOF_ISLOW_MULT_TYPE SIZEOF_WORD ; sizeof(ISLOW_MULT_TYPE) | |
%define IFAST_MULT_TYPE word ; must be short | |
%define SIZEOF_IFAST_MULT_TYPE SIZEOF_WORD ; sizeof(IFAST_MULT_TYPE) | |
%define IFAST_SCALE_BITS 2 ; fractional bits in scale factors | |
%define FLOAT_MULT_TYPE FP32 ; must be float | |
%define SIZEOF_FLOAT_MULT_TYPE SIZEOF_FP32 ; sizeof(FLOAT_MULT_TYPE) | |
; | |
; -- jsimd.h | |
; | |
%define JSIMD_NONE 0x00 | |
%define JSIMD_MMX 0x01 | |
%define JSIMD_3DNOW 0x02 | |
%define JSIMD_SSE 0x04 | |
%define JSIMD_SSE2 0x08 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment