shun-iwasawa 82a8f5
/*
shun-iwasawa 82a8f5
 * This file generates the include file for the assembly
shun-iwasawa 82a8f5
 * implementations by abusing the C preprocessor.
shun-iwasawa 82a8f5
 *
shun-iwasawa 82a8f5
 * Note: Some things are manually defined as they need to
shun-iwasawa 82a8f5
 * be mapped to NASM types.
shun-iwasawa 82a8f5
 */
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
;
shun-iwasawa 82a8f5
; Automatically generated include file from jsimdcfg.inc.h
shun-iwasawa 82a8f5
;
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
#define JPEG_INTERNALS
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
#include "../jpeglib.h"
shun-iwasawa 82a8f5
#include "../jconfig.h"
shun-iwasawa 82a8f5
#include "../jmorecfg.h"
shun-iwasawa 82a8f5
#include "jsimd.h"
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
;
shun-iwasawa 82a8f5
; -- jpeglib.h
shun-iwasawa 82a8f5
;
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
%define _cpp_protection_DCTSIZE   DCTSIZE
shun-iwasawa 82a8f5
%define _cpp_protection_DCTSIZE2  DCTSIZE2
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
;
shun-iwasawa 82a8f5
; -- jmorecfg.h
shun-iwasawa 82a8f5
;
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
%define _cpp_protection_RGB_RED             RGB_RED
shun-iwasawa 82a8f5
%define _cpp_protection_RGB_GREEN           RGB_GREEN
shun-iwasawa 82a8f5
%define _cpp_protection_RGB_BLUE            RGB_BLUE
shun-iwasawa 82a8f5
%define _cpp_protection_RGB_PIXELSIZE       RGB_PIXELSIZE
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
%define _cpp_protection_EXT_RGB_RED         EXT_RGB_RED
shun-iwasawa 82a8f5
%define _cpp_protection_EXT_RGB_GREEN       EXT_RGB_GREEN
shun-iwasawa 82a8f5
%define _cpp_protection_EXT_RGB_BLUE        EXT_RGB_BLUE
shun-iwasawa 82a8f5
%define _cpp_protection_EXT_RGB_PIXELSIZE   EXT_RGB_PIXELSIZE
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
%define _cpp_protection_EXT_RGBX_RED        EXT_RGBX_RED
shun-iwasawa 82a8f5
%define _cpp_protection_EXT_RGBX_GREEN      EXT_RGBX_GREEN
shun-iwasawa 82a8f5
%define _cpp_protection_EXT_RGBX_BLUE       EXT_RGBX_BLUE
shun-iwasawa 82a8f5
%define _cpp_protection_EXT_RGBX_PIXELSIZE  EXT_RGBX_PIXELSIZE
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
%define _cpp_protection_EXT_BGR_RED         EXT_BGR_RED
shun-iwasawa 82a8f5
%define _cpp_protection_EXT_BGR_GREEN       EXT_BGR_GREEN
shun-iwasawa 82a8f5
%define _cpp_protection_EXT_BGR_BLUE        EXT_BGR_BLUE
shun-iwasawa 82a8f5
%define _cpp_protection_EXT_BGR_PIXELSIZE   EXT_BGR_PIXELSIZE
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
%define _cpp_protection_EXT_BGRX_RED        EXT_BGRX_RED
shun-iwasawa 82a8f5
%define _cpp_protection_EXT_BGRX_GREEN      EXT_BGRX_GREEN
shun-iwasawa 82a8f5
%define _cpp_protection_EXT_BGRX_BLUE       EXT_BGRX_BLUE
shun-iwasawa 82a8f5
%define _cpp_protection_EXT_BGRX_PIXELSIZE  EXT_BGRX_PIXELSIZE
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
%define _cpp_protection_EXT_XBGR_RED        EXT_XBGR_RED
shun-iwasawa 82a8f5
%define _cpp_protection_EXT_XBGR_GREEN      EXT_XBGR_GREEN
shun-iwasawa 82a8f5
%define _cpp_protection_EXT_XBGR_BLUE       EXT_XBGR_BLUE
shun-iwasawa 82a8f5
%define _cpp_protection_EXT_XBGR_PIXELSIZE  EXT_XBGR_PIXELSIZE
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
%define _cpp_protection_EXT_XRGB_RED        EXT_XRGB_RED
shun-iwasawa 82a8f5
%define _cpp_protection_EXT_XRGB_GREEN      EXT_XRGB_GREEN
shun-iwasawa 82a8f5
%define _cpp_protection_EXT_XRGB_BLUE       EXT_XRGB_BLUE
shun-iwasawa 82a8f5
%define _cpp_protection_EXT_XRGB_PIXELSIZE  EXT_XRGB_PIXELSIZE
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
%define RGBX_FILLER_0XFF  1
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
; Representation of a single sample (pixel element value).
shun-iwasawa 82a8f5
; On this SIMD implementation, this must be 'unsigned char'.
shun-iwasawa 82a8f5
;
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
%define JSAMPLE            byte            ; unsigned char
shun-iwasawa 82a8f5
%define SIZEOF_JSAMPLE     SIZEOF_BYTE     ; sizeof(JSAMPLE)
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
%define _cpp_protection_CENTERJSAMPLE  CENTERJSAMPLE
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
; Representation of a DCT frequency coefficient.
shun-iwasawa 82a8f5
; On this SIMD implementation, this must be 'short'.
shun-iwasawa 82a8f5
;
shun-iwasawa 82a8f5
%define JCOEF              word            ; short
shun-iwasawa 82a8f5
%define SIZEOF_JCOEF       SIZEOF_WORD     ; sizeof(JCOEF)
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
; Datatype used for image dimensions.
shun-iwasawa 82a8f5
; On this SIMD implementation, this must be 'unsigned int'.
shun-iwasawa 82a8f5
;
shun-iwasawa 82a8f5
%define JDIMENSION         dword           ; unsigned int
shun-iwasawa 82a8f5
%define SIZEOF_JDIMENSION  SIZEOF_DWORD    ; sizeof(JDIMENSION)
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
%define JSAMPROW           POINTER         ; JSAMPLE *     (jpeglib.h)
shun-iwasawa 82a8f5
%define JSAMPARRAY         POINTER         ; JSAMPROW *    (jpeglib.h)
shun-iwasawa 82a8f5
%define JSAMPIMAGE         POINTER         ; JSAMPARRAY *  (jpeglib.h)
shun-iwasawa 82a8f5
%define JCOEFPTR           POINTER         ; JCOEF *       (jpeglib.h)
shun-iwasawa 82a8f5
%define SIZEOF_JSAMPROW    SIZEOF_POINTER  ; sizeof(JSAMPROW)
shun-iwasawa 82a8f5
%define SIZEOF_JSAMPARRAY  SIZEOF_POINTER  ; sizeof(JSAMPARRAY)
shun-iwasawa 82a8f5
%define SIZEOF_JSAMPIMAGE  SIZEOF_POINTER  ; sizeof(JSAMPIMAGE)
shun-iwasawa 82a8f5
%define SIZEOF_JCOEFPTR    SIZEOF_POINTER  ; sizeof(JCOEFPTR)
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
;
shun-iwasawa 82a8f5
; -- jdct.h
shun-iwasawa 82a8f5
;
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
; A forward DCT routine is given a pointer to a work area of type DCTELEM[];
shun-iwasawa 82a8f5
; the DCT is to be performed in-place in that buffer.
shun-iwasawa 82a8f5
; To maximize parallelism, Type DCTELEM is changed to short (originally, int).
shun-iwasawa 82a8f5
;
shun-iwasawa 82a8f5
%define DCTELEM                 word         ; short
shun-iwasawa 82a8f5
%define SIZEOF_DCTELEM          SIZEOF_WORD  ; sizeof(DCTELEM)
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
%define FAST_FLOAT              FP32         ; float
shun-iwasawa 82a8f5
%define SIZEOF_FAST_FLOAT       SIZEOF_FP32  ; sizeof(FAST_FLOAT)
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
; To maximize parallelism, Type MULTIPLIER is changed to short.
shun-iwasawa 82a8f5
;
shun-iwasawa 82a8f5
%define ISLOW_MULT_TYPE         word         ; must be short
shun-iwasawa 82a8f5
%define SIZEOF_ISLOW_MULT_TYPE  SIZEOF_WORD  ; sizeof(ISLOW_MULT_TYPE)
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
%define IFAST_MULT_TYPE         word         ; must be short
shun-iwasawa 82a8f5
%define SIZEOF_IFAST_MULT_TYPE  SIZEOF_WORD  ; sizeof(IFAST_MULT_TYPE)
shun-iwasawa 82a8f5
%define IFAST_SCALE_BITS        2            ; fractional bits in scale factors
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
%define FLOAT_MULT_TYPE         FP32         ; must be float
shun-iwasawa 82a8f5
%define SIZEOF_FLOAT_MULT_TYPE  SIZEOF_FP32  ; sizeof(FLOAT_MULT_TYPE)
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
;
shun-iwasawa 82a8f5
; -- jsimd.h
shun-iwasawa 82a8f5
;
shun-iwasawa 82a8f5
shun-iwasawa 82a8f5
%define _cpp_protection_JSIMD_NONE   JSIMD_NONE
shun-iwasawa 82a8f5
%define _cpp_protection_JSIMD_MMX    JSIMD_MMX
shun-iwasawa 82a8f5
%define _cpp_protection_JSIMD_3DNOW  JSIMD_3DNOW
shun-iwasawa 82a8f5
%define _cpp_protection_JSIMD_SSE    JSIMD_SSE
shun-iwasawa 82a8f5
%define _cpp_protection_JSIMD_SSE2   JSIMD_SSE2
shun-iwasawa 82a8f5
%define _cpp_protection_JSIMD_AVX2   JSIMD_AVX2