Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include
File: jmorecfg.h
/*
[0] Fix | Delete
* jmorecfg.h
[1] Fix | Delete
*
[2] Fix | Delete
* This file was part of the Independent JPEG Group's software:
[3] Fix | Delete
* Copyright (C) 1991-1997, Thomas G. Lane.
[4] Fix | Delete
* Modified 1997-2009 by Guido Vollbeding.
[5] Fix | Delete
* libjpeg-turbo Modifications:
[6] Fix | Delete
* Copyright (C) 2009, 2011, 2014-2015, D. R. Commander.
[7] Fix | Delete
* For conditions of distribution and use, see the accompanying README.ijg
[8] Fix | Delete
* file.
[9] Fix | Delete
*
[10] Fix | Delete
* This file contains additional configuration options that customize the
[11] Fix | Delete
* JPEG software for special applications or support machine-dependent
[12] Fix | Delete
* optimizations. Most users will not need to touch this file.
[13] Fix | Delete
*/
[14] Fix | Delete
[15] Fix | Delete
[16] Fix | Delete
/*
[17] Fix | Delete
* Maximum number of components (color channels) allowed in JPEG image.
[18] Fix | Delete
* To meet the letter of the JPEG spec, set this to 255. However, darn
[19] Fix | Delete
* few applications need more than 4 channels (maybe 5 for CMYK + alpha
[20] Fix | Delete
* mask). We recommend 10 as a reasonable compromise; use 4 if you are
[21] Fix | Delete
* really short on memory. (Each allowed component costs a hundred or so
[22] Fix | Delete
* bytes of storage, whether actually used in an image or not.)
[23] Fix | Delete
*/
[24] Fix | Delete
[25] Fix | Delete
#define MAX_COMPONENTS 10 /* maximum number of image components */
[26] Fix | Delete
[27] Fix | Delete
[28] Fix | Delete
/*
[29] Fix | Delete
* Basic data types.
[30] Fix | Delete
* You may need to change these if you have a machine with unusual data
[31] Fix | Delete
* type sizes; for example, "char" not 8 bits, "short" not 16 bits,
[32] Fix | Delete
* or "long" not 32 bits. We don't care whether "int" is 16 or 32 bits,
[33] Fix | Delete
* but it had better be at least 16.
[34] Fix | Delete
*/
[35] Fix | Delete
[36] Fix | Delete
/* Representation of a single sample (pixel element value).
[37] Fix | Delete
* We frequently allocate large arrays of these, so it's important to keep
[38] Fix | Delete
* them small. But if you have memory to burn and access to char or short
[39] Fix | Delete
* arrays is very slow on your hardware, you might want to change these.
[40] Fix | Delete
*/
[41] Fix | Delete
[42] Fix | Delete
#if BITS_IN_JSAMPLE == 8
[43] Fix | Delete
/* JSAMPLE should be the smallest type that will hold the values 0..255.
[44] Fix | Delete
* You can use a signed char by having GETJSAMPLE mask it with 0xFF.
[45] Fix | Delete
*/
[46] Fix | Delete
[47] Fix | Delete
#ifdef HAVE_UNSIGNED_CHAR
[48] Fix | Delete
[49] Fix | Delete
typedef unsigned char JSAMPLE;
[50] Fix | Delete
#define GETJSAMPLE(value) ((int) (value))
[51] Fix | Delete
[52] Fix | Delete
#else /* not HAVE_UNSIGNED_CHAR */
[53] Fix | Delete
[54] Fix | Delete
typedef char JSAMPLE;
[55] Fix | Delete
#ifdef __CHAR_UNSIGNED__
[56] Fix | Delete
#define GETJSAMPLE(value) ((int) (value))
[57] Fix | Delete
#else
[58] Fix | Delete
#define GETJSAMPLE(value) ((int) (value) & 0xFF)
[59] Fix | Delete
#endif /* __CHAR_UNSIGNED__ */
[60] Fix | Delete
[61] Fix | Delete
#endif /* HAVE_UNSIGNED_CHAR */
[62] Fix | Delete
[63] Fix | Delete
#define MAXJSAMPLE 255
[64] Fix | Delete
#define CENTERJSAMPLE 128
[65] Fix | Delete
[66] Fix | Delete
#endif /* BITS_IN_JSAMPLE == 8 */
[67] Fix | Delete
[68] Fix | Delete
[69] Fix | Delete
#if BITS_IN_JSAMPLE == 12
[70] Fix | Delete
/* JSAMPLE should be the smallest type that will hold the values 0..4095.
[71] Fix | Delete
* On nearly all machines "short" will do nicely.
[72] Fix | Delete
*/
[73] Fix | Delete
[74] Fix | Delete
typedef short JSAMPLE;
[75] Fix | Delete
#define GETJSAMPLE(value) ((int) (value))
[76] Fix | Delete
[77] Fix | Delete
#define MAXJSAMPLE 4095
[78] Fix | Delete
#define CENTERJSAMPLE 2048
[79] Fix | Delete
[80] Fix | Delete
#endif /* BITS_IN_JSAMPLE == 12 */
[81] Fix | Delete
[82] Fix | Delete
[83] Fix | Delete
/* Representation of a DCT frequency coefficient.
[84] Fix | Delete
* This should be a signed value of at least 16 bits; "short" is usually OK.
[85] Fix | Delete
* Again, we allocate large arrays of these, but you can change to int
[86] Fix | Delete
* if you have memory to burn and "short" is really slow.
[87] Fix | Delete
*/
[88] Fix | Delete
[89] Fix | Delete
typedef short JCOEF;
[90] Fix | Delete
[91] Fix | Delete
[92] Fix | Delete
/* Compressed datastreams are represented as arrays of JOCTET.
[93] Fix | Delete
* These must be EXACTLY 8 bits wide, at least once they are written to
[94] Fix | Delete
* external storage. Note that when using the stdio data source/destination
[95] Fix | Delete
* managers, this is also the data type passed to fread/fwrite.
[96] Fix | Delete
*/
[97] Fix | Delete
[98] Fix | Delete
#ifdef HAVE_UNSIGNED_CHAR
[99] Fix | Delete
[100] Fix | Delete
typedef unsigned char JOCTET;
[101] Fix | Delete
#define GETJOCTET(value) (value)
[102] Fix | Delete
[103] Fix | Delete
#else /* not HAVE_UNSIGNED_CHAR */
[104] Fix | Delete
[105] Fix | Delete
typedef char JOCTET;
[106] Fix | Delete
#ifdef __CHAR_UNSIGNED__
[107] Fix | Delete
#define GETJOCTET(value) (value)
[108] Fix | Delete
#else
[109] Fix | Delete
#define GETJOCTET(value) ((value) & 0xFF)
[110] Fix | Delete
#endif /* __CHAR_UNSIGNED__ */
[111] Fix | Delete
[112] Fix | Delete
#endif /* HAVE_UNSIGNED_CHAR */
[113] Fix | Delete
[114] Fix | Delete
[115] Fix | Delete
/* These typedefs are used for various table entries and so forth.
[116] Fix | Delete
* They must be at least as wide as specified; but making them too big
[117] Fix | Delete
* won't cost a huge amount of memory, so we don't provide special
[118] Fix | Delete
* extraction code like we did for JSAMPLE. (In other words, these
[119] Fix | Delete
* typedefs live at a different point on the speed/space tradeoff curve.)
[120] Fix | Delete
*/
[121] Fix | Delete
[122] Fix | Delete
/* UINT8 must hold at least the values 0..255. */
[123] Fix | Delete
[124] Fix | Delete
#ifdef HAVE_UNSIGNED_CHAR
[125] Fix | Delete
typedef unsigned char UINT8;
[126] Fix | Delete
#else /* not HAVE_UNSIGNED_CHAR */
[127] Fix | Delete
#ifdef __CHAR_UNSIGNED__
[128] Fix | Delete
typedef char UINT8;
[129] Fix | Delete
#else /* not __CHAR_UNSIGNED__ */
[130] Fix | Delete
typedef short UINT8;
[131] Fix | Delete
#endif /* __CHAR_UNSIGNED__ */
[132] Fix | Delete
#endif /* HAVE_UNSIGNED_CHAR */
[133] Fix | Delete
[134] Fix | Delete
/* UINT16 must hold at least the values 0..65535. */
[135] Fix | Delete
[136] Fix | Delete
#ifdef HAVE_UNSIGNED_SHORT
[137] Fix | Delete
typedef unsigned short UINT16;
[138] Fix | Delete
#else /* not HAVE_UNSIGNED_SHORT */
[139] Fix | Delete
typedef unsigned int UINT16;
[140] Fix | Delete
#endif /* HAVE_UNSIGNED_SHORT */
[141] Fix | Delete
[142] Fix | Delete
/* INT16 must hold at least the values -32768..32767. */
[143] Fix | Delete
[144] Fix | Delete
#ifndef XMD_H /* X11/xmd.h correctly defines INT16 */
[145] Fix | Delete
typedef short INT16;
[146] Fix | Delete
#endif
[147] Fix | Delete
[148] Fix | Delete
/* INT32 must hold at least signed 32-bit values.
[149] Fix | Delete
*
[150] Fix | Delete
* NOTE: The INT32 typedef dates back to libjpeg v5 (1994.) Integers were
[151] Fix | Delete
* sometimes 16-bit back then (MS-DOS), which is why INT32 is typedef'd to
[152] Fix | Delete
* long. It also wasn't common (or at least as common) in 1994 for INT32 to be
[153] Fix | Delete
* defined by platform headers. Since then, however, INT32 is defined in
[154] Fix | Delete
* several other common places:
[155] Fix | Delete
*
[156] Fix | Delete
* Xmd.h (X11 header) typedefs INT32 to int on 64-bit platforms and long on
[157] Fix | Delete
* 32-bit platforms (i.e always a 32-bit signed type.)
[158] Fix | Delete
*
[159] Fix | Delete
* basetsd.h (Win32 header) typedefs INT32 to int (always a 32-bit signed type
[160] Fix | Delete
* on modern platforms.)
[161] Fix | Delete
*
[162] Fix | Delete
* qglobal.h (Qt header) typedefs INT32 to int (always a 32-bit signed type on
[163] Fix | Delete
* modern platforms.)
[164] Fix | Delete
*
[165] Fix | Delete
* This is a recipe for conflict, since "long" and "int" aren't always
[166] Fix | Delete
* compatible types. Since the definition of INT32 has technically been part
[167] Fix | Delete
* of the libjpeg API for more than 20 years, we can't remove it, but we do not
[168] Fix | Delete
* use it internally any longer. We instead define a separate type (JLONG)
[169] Fix | Delete
* for internal use, which ensures that internal behavior will always be the
[170] Fix | Delete
* same regardless of any external headers that may be included.
[171] Fix | Delete
*/
[172] Fix | Delete
[173] Fix | Delete
#ifndef XMD_H /* X11/xmd.h correctly defines INT32 */
[174] Fix | Delete
#ifndef _BASETSD_H_ /* Microsoft defines it in basetsd.h */
[175] Fix | Delete
#ifndef _BASETSD_H /* MinGW is slightly different */
[176] Fix | Delete
#ifndef QGLOBAL_H /* Qt defines it in qglobal.h */
[177] Fix | Delete
typedef long INT32;
[178] Fix | Delete
#endif
[179] Fix | Delete
#endif
[180] Fix | Delete
#endif
[181] Fix | Delete
#endif
[182] Fix | Delete
[183] Fix | Delete
/* Datatype used for image dimensions. The JPEG standard only supports
[184] Fix | Delete
* images up to 64K*64K due to 16-bit fields in SOF markers. Therefore
[185] Fix | Delete
* "unsigned int" is sufficient on all machines. However, if you need to
[186] Fix | Delete
* handle larger images and you don't mind deviating from the spec, you
[187] Fix | Delete
* can change this datatype. (Note that changing this datatype will
[188] Fix | Delete
* potentially require modifying the SIMD code. The x86-64 SIMD extensions,
[189] Fix | Delete
* in particular, assume a 32-bit JDIMENSION.)
[190] Fix | Delete
*/
[191] Fix | Delete
[192] Fix | Delete
typedef unsigned int JDIMENSION;
[193] Fix | Delete
[194] Fix | Delete
#define JPEG_MAX_DIMENSION 65500L /* a tad under 64K to prevent overflows */
[195] Fix | Delete
[196] Fix | Delete
[197] Fix | Delete
/* These macros are used in all function definitions and extern declarations.
[198] Fix | Delete
* You could modify them if you need to change function linkage conventions;
[199] Fix | Delete
* in particular, you'll need to do that to make the library a Windows DLL.
[200] Fix | Delete
* Another application is to make all functions global for use with debuggers
[201] Fix | Delete
* or code profilers that require it.
[202] Fix | Delete
*/
[203] Fix | Delete
[204] Fix | Delete
/* a function called through method pointers: */
[205] Fix | Delete
#define METHODDEF(type) static type
[206] Fix | Delete
/* a function used only in its module: */
[207] Fix | Delete
#define LOCAL(type) static type
[208] Fix | Delete
/* a function referenced thru EXTERNs: */
[209] Fix | Delete
#define GLOBAL(type) type
[210] Fix | Delete
/* a reference to a GLOBAL function: */
[211] Fix | Delete
#define EXTERN(type) extern type
[212] Fix | Delete
[213] Fix | Delete
[214] Fix | Delete
/* Originally, this macro was used as a way of defining function prototypes
[215] Fix | Delete
* for both modern compilers as well as older compilers that did not support
[216] Fix | Delete
* prototype parameters. libjpeg-turbo has never supported these older,
[217] Fix | Delete
* non-ANSI compilers, but the macro is still included because there is some
[218] Fix | Delete
* software out there that uses it.
[219] Fix | Delete
*/
[220] Fix | Delete
[221] Fix | Delete
#define JMETHOD(type,methodname,arglist) type (*methodname) arglist
[222] Fix | Delete
[223] Fix | Delete
[224] Fix | Delete
/* libjpeg-turbo no longer supports platforms that have far symbols (MS-DOS),
[225] Fix | Delete
* but again, some software relies on this macro.
[226] Fix | Delete
*/
[227] Fix | Delete
[228] Fix | Delete
#undef FAR
[229] Fix | Delete
#define FAR
[230] Fix | Delete
[231] Fix | Delete
[232] Fix | Delete
/*
[233] Fix | Delete
* On a few systems, type boolean and/or its values FALSE, TRUE may appear
[234] Fix | Delete
* in standard header files. Or you may have conflicts with application-
[235] Fix | Delete
* specific header files that you want to include together with these files.
[236] Fix | Delete
* Defining HAVE_BOOLEAN before including jpeglib.h should make it work.
[237] Fix | Delete
*/
[238] Fix | Delete
[239] Fix | Delete
#ifndef HAVE_BOOLEAN
[240] Fix | Delete
typedef int boolean;
[241] Fix | Delete
#endif
[242] Fix | Delete
#ifndef FALSE /* in case these macros already exist */
[243] Fix | Delete
#define FALSE 0 /* values of boolean */
[244] Fix | Delete
#endif
[245] Fix | Delete
#ifndef TRUE
[246] Fix | Delete
#define TRUE 1
[247] Fix | Delete
#endif
[248] Fix | Delete
[249] Fix | Delete
[250] Fix | Delete
/*
[251] Fix | Delete
* The remaining options affect code selection within the JPEG library,
[252] Fix | Delete
* but they don't need to be visible to most applications using the library.
[253] Fix | Delete
* To minimize application namespace pollution, the symbols won't be
[254] Fix | Delete
* defined unless JPEG_INTERNALS or JPEG_INTERNAL_OPTIONS has been defined.
[255] Fix | Delete
*/
[256] Fix | Delete
[257] Fix | Delete
#ifdef JPEG_INTERNALS
[258] Fix | Delete
#define JPEG_INTERNAL_OPTIONS
[259] Fix | Delete
#endif
[260] Fix | Delete
[261] Fix | Delete
#ifdef JPEG_INTERNAL_OPTIONS
[262] Fix | Delete
[263] Fix | Delete
[264] Fix | Delete
/*
[265] Fix | Delete
* These defines indicate whether to include various optional functions.
[266] Fix | Delete
* Undefining some of these symbols will produce a smaller but less capable
[267] Fix | Delete
* library. Note that you can leave certain source files out of the
[268] Fix | Delete
* compilation/linking process if you've #undef'd the corresponding symbols.
[269] Fix | Delete
* (You may HAVE to do that if your compiler doesn't like null source files.)
[270] Fix | Delete
*/
[271] Fix | Delete
[272] Fix | Delete
/* Capability options common to encoder and decoder: */
[273] Fix | Delete
[274] Fix | Delete
#define DCT_ISLOW_SUPPORTED /* slow but accurate integer algorithm */
[275] Fix | Delete
#define DCT_IFAST_SUPPORTED /* faster, less accurate integer method */
[276] Fix | Delete
#define DCT_FLOAT_SUPPORTED /* floating-point: accurate, fast on fast HW */
[277] Fix | Delete
[278] Fix | Delete
/* Encoder capability options: */
[279] Fix | Delete
[280] Fix | Delete
#define C_MULTISCAN_FILES_SUPPORTED /* Multiple-scan JPEG files? */
[281] Fix | Delete
#define C_PROGRESSIVE_SUPPORTED /* Progressive JPEG? (Requires MULTISCAN)*/
[282] Fix | Delete
#define ENTROPY_OPT_SUPPORTED /* Optimization of entropy coding parms? */
[283] Fix | Delete
/* Note: if you selected 12-bit data precision, it is dangerous to turn off
[284] Fix | Delete
* ENTROPY_OPT_SUPPORTED. The standard Huffman tables are only good for 8-bit
[285] Fix | Delete
* precision, so jchuff.c normally uses entropy optimization to compute
[286] Fix | Delete
* usable tables for higher precision. If you don't want to do optimization,
[287] Fix | Delete
* you'll have to supply different default Huffman tables.
[288] Fix | Delete
* The exact same statements apply for progressive JPEG: the default tables
[289] Fix | Delete
* don't work for progressive mode. (This may get fixed, however.)
[290] Fix | Delete
*/
[291] Fix | Delete
#define INPUT_SMOOTHING_SUPPORTED /* Input image smoothing option? */
[292] Fix | Delete
[293] Fix | Delete
/* Decoder capability options: */
[294] Fix | Delete
[295] Fix | Delete
#define D_MULTISCAN_FILES_SUPPORTED /* Multiple-scan JPEG files? */
[296] Fix | Delete
#define D_PROGRESSIVE_SUPPORTED /* Progressive JPEG? (Requires MULTISCAN)*/
[297] Fix | Delete
#define SAVE_MARKERS_SUPPORTED /* jpeg_save_markers() needed? */
[298] Fix | Delete
#define BLOCK_SMOOTHING_SUPPORTED /* Block smoothing? (Progressive only) */
[299] Fix | Delete
#define IDCT_SCALING_SUPPORTED /* Output rescaling via IDCT? */
[300] Fix | Delete
#undef UPSAMPLE_SCALING_SUPPORTED /* Output rescaling at upsample stage? */
[301] Fix | Delete
#define UPSAMPLE_MERGING_SUPPORTED /* Fast path for sloppy upsampling? */
[302] Fix | Delete
#define QUANT_1PASS_SUPPORTED /* 1-pass color quantization? */
[303] Fix | Delete
#define QUANT_2PASS_SUPPORTED /* 2-pass color quantization? */
[304] Fix | Delete
[305] Fix | Delete
/* more capability options later, no doubt */
[306] Fix | Delete
[307] Fix | Delete
[308] Fix | Delete
/*
[309] Fix | Delete
* The RGB_RED, RGB_GREEN, RGB_BLUE, and RGB_PIXELSIZE macros are a vestigial
[310] Fix | Delete
* feature of libjpeg. The idea was that, if an application developer needed
[311] Fix | Delete
* to compress from/decompress to a BGR/BGRX/RGBX/XBGR/XRGB buffer, they could
[312] Fix | Delete
* change these macros, rebuild libjpeg, and link their application statically
[313] Fix | Delete
* with it. In reality, few people ever did this, because there were some
[314] Fix | Delete
* severe restrictions involved (cjpeg and djpeg no longer worked properly,
[315] Fix | Delete
* compressing/decompressing RGB JPEGs no longer worked properly, and the color
[316] Fix | Delete
* quantizer wouldn't work with pixel sizes other than 3.) Further, since all
[317] Fix | Delete
* of the O/S-supplied versions of libjpeg were built with the default values
[318] Fix | Delete
* of RGB_RED, RGB_GREEN, RGB_BLUE, and RGB_PIXELSIZE, many applications have
[319] Fix | Delete
* come to regard these values as immutable.
[320] Fix | Delete
*
[321] Fix | Delete
* The libjpeg-turbo colorspace extensions provide a much cleaner way of
[322] Fix | Delete
* compressing from/decompressing to buffers with arbitrary component orders
[323] Fix | Delete
* and pixel sizes. Thus, we do not support changing the values of RGB_RED,
[324] Fix | Delete
* RGB_GREEN, RGB_BLUE, or RGB_PIXELSIZE. In addition to the restrictions
[325] Fix | Delete
* listed above, changing these values will also break the SIMD extensions and
[326] Fix | Delete
* the regression tests.
[327] Fix | Delete
*/
[328] Fix | Delete
[329] Fix | Delete
#define RGB_RED 0 /* Offset of Red in an RGB scanline element */
[330] Fix | Delete
#define RGB_GREEN 1 /* Offset of Green */
[331] Fix | Delete
#define RGB_BLUE 2 /* Offset of Blue */
[332] Fix | Delete
#define RGB_PIXELSIZE 3 /* JSAMPLEs per RGB scanline element */
[333] Fix | Delete
[334] Fix | Delete
#define JPEG_NUMCS 17
[335] Fix | Delete
[336] Fix | Delete
#define EXT_RGB_RED 0
[337] Fix | Delete
#define EXT_RGB_GREEN 1
[338] Fix | Delete
#define EXT_RGB_BLUE 2
[339] Fix | Delete
#define EXT_RGB_PIXELSIZE 3
[340] Fix | Delete
[341] Fix | Delete
#define EXT_RGBX_RED 0
[342] Fix | Delete
#define EXT_RGBX_GREEN 1
[343] Fix | Delete
#define EXT_RGBX_BLUE 2
[344] Fix | Delete
#define EXT_RGBX_PIXELSIZE 4
[345] Fix | Delete
[346] Fix | Delete
#define EXT_BGR_RED 2
[347] Fix | Delete
#define EXT_BGR_GREEN 1
[348] Fix | Delete
#define EXT_BGR_BLUE 0
[349] Fix | Delete
#define EXT_BGR_PIXELSIZE 3
[350] Fix | Delete
[351] Fix | Delete
#define EXT_BGRX_RED 2
[352] Fix | Delete
#define EXT_BGRX_GREEN 1
[353] Fix | Delete
#define EXT_BGRX_BLUE 0
[354] Fix | Delete
#define EXT_BGRX_PIXELSIZE 4
[355] Fix | Delete
[356] Fix | Delete
#define EXT_XBGR_RED 3
[357] Fix | Delete
#define EXT_XBGR_GREEN 2
[358] Fix | Delete
#define EXT_XBGR_BLUE 1
[359] Fix | Delete
#define EXT_XBGR_PIXELSIZE 4
[360] Fix | Delete
[361] Fix | Delete
#define EXT_XRGB_RED 1
[362] Fix | Delete
#define EXT_XRGB_GREEN 2
[363] Fix | Delete
#define EXT_XRGB_BLUE 3
[364] Fix | Delete
#define EXT_XRGB_PIXELSIZE 4
[365] Fix | Delete
[366] Fix | Delete
static const int rgb_red[JPEG_NUMCS] = {
[367] Fix | Delete
-1, -1, RGB_RED, -1, -1, -1, EXT_RGB_RED, EXT_RGBX_RED,
[368] Fix | Delete
EXT_BGR_RED, EXT_BGRX_RED, EXT_XBGR_RED, EXT_XRGB_RED,
[369] Fix | Delete
EXT_RGBX_RED, EXT_BGRX_RED, EXT_XBGR_RED, EXT_XRGB_RED,
[370] Fix | Delete
-1
[371] Fix | Delete
};
[372] Fix | Delete
[373] Fix | Delete
static const int rgb_green[JPEG_NUMCS] = {
[374] Fix | Delete
-1, -1, RGB_GREEN, -1, -1, -1, EXT_RGB_GREEN, EXT_RGBX_GREEN,
[375] Fix | Delete
EXT_BGR_GREEN, EXT_BGRX_GREEN, EXT_XBGR_GREEN, EXT_XRGB_GREEN,
[376] Fix | Delete
EXT_RGBX_GREEN, EXT_BGRX_GREEN, EXT_XBGR_GREEN, EXT_XRGB_GREEN,
[377] Fix | Delete
-1
[378] Fix | Delete
};
[379] Fix | Delete
[380] Fix | Delete
static const int rgb_blue[JPEG_NUMCS] = {
[381] Fix | Delete
-1, -1, RGB_BLUE, -1, -1, -1, EXT_RGB_BLUE, EXT_RGBX_BLUE,
[382] Fix | Delete
EXT_BGR_BLUE, EXT_BGRX_BLUE, EXT_XBGR_BLUE, EXT_XRGB_BLUE,
[383] Fix | Delete
EXT_RGBX_BLUE, EXT_BGRX_BLUE, EXT_XBGR_BLUE, EXT_XRGB_BLUE,
[384] Fix | Delete
-1
[385] Fix | Delete
};
[386] Fix | Delete
[387] Fix | Delete
static const int rgb_pixelsize[JPEG_NUMCS] = {
[388] Fix | Delete
-1, -1, RGB_PIXELSIZE, -1, -1, -1, EXT_RGB_PIXELSIZE, EXT_RGBX_PIXELSIZE,
[389] Fix | Delete
EXT_BGR_PIXELSIZE, EXT_BGRX_PIXELSIZE, EXT_XBGR_PIXELSIZE, EXT_XRGB_PIXELSIZE,
[390] Fix | Delete
EXT_RGBX_PIXELSIZE, EXT_BGRX_PIXELSIZE, EXT_XBGR_PIXELSIZE, EXT_XRGB_PIXELSIZE,
[391] Fix | Delete
-1
[392] Fix | Delete
};
[393] Fix | Delete
[394] Fix | Delete
/* Definitions for speed-related optimizations. */
[395] Fix | Delete
[396] Fix | Delete
/* On some machines (notably 68000 series) "int" is 32 bits, but multiplying
[397] Fix | Delete
* two 16-bit shorts is faster than multiplying two ints. Define MULTIPLIER
[398] Fix | Delete
* as short on such a machine. MULTIPLIER must be at least 16 bits wide.
[399] Fix | Delete
*/
[400] Fix | Delete
[401] Fix | Delete
#ifndef MULTIPLIER
[402] Fix | Delete
#ifndef WITH_SIMD
[403] Fix | Delete
#define MULTIPLIER int /* type for fastest integer multiply */
[404] Fix | Delete
#else
[405] Fix | Delete
#define MULTIPLIER short /* prefer 16-bit with SIMD for parellelism */
[406] Fix | Delete
#endif
[407] Fix | Delete
#endif
[408] Fix | Delete
[409] Fix | Delete
[410] Fix | Delete
/* FAST_FLOAT should be either float or double, whichever is done faster
[411] Fix | Delete
* by your compiler. (Note that this type is only used in the floating point
[412] Fix | Delete
* DCT routines, so it only matters if you've defined DCT_FLOAT_SUPPORTED.)
[413] Fix | Delete
*/
[414] Fix | Delete
[415] Fix | Delete
#ifndef FAST_FLOAT
[416] Fix | Delete
#define FAST_FLOAT float
[417] Fix | Delete
#endif
[418] Fix | Delete
[419] Fix | Delete
#endif /* JPEG_INTERNAL_OPTIONS */
[420] Fix | Delete
[421] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function