diff options
author | dcommander <dcommander@632fc199-4ca6-4c93-a231-07263d6284db> | 2013-10-31 07:11:39 +0000 |
---|---|---|
committer | dcommander <dcommander@632fc199-4ca6-4c93-a231-07263d6284db> | 2013-10-31 07:11:39 +0000 |
commit | 4ccda2858318610749021aaab545603246b24ba8 (patch) | |
tree | 8fcb151bd3b8852f5b11dee2d03ef5a031138ad4 /turbojpeg.h | |
parent | df0eaff9787d50fb831c0f71f38f571f5d26b012 (diff) |
Deprecate and undocument the FORCE{MMX|SSE|SSE2|SSE3} flags. These were originally introduced in TurboJPEG/IPP as a way to override the automatic CPU selection in the underlying IPP codec, which was closed source. They are not meaningful anymore, since libjpeg-turbo provides environment variables to accomplish the same thing and since it no longer necessarily uses x86 SIMD code behind the scenes.
git-svn-id: svn://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1072 632fc199-4ca6-4c93-a231-07263d6284db
Diffstat (limited to 'turbojpeg.h')
-rw-r--r-- | turbojpeg.h | 27 |
1 files changed, 7 insertions, 20 deletions
diff --git a/turbojpeg.h b/turbojpeg.h index b6597f1..0dfafeb 100644 --- a/turbojpeg.h +++ b/turbojpeg.h @@ -323,26 +323,6 @@ enum TJCS */ #define TJFLAG_BOTTOMUP 2 /** - * Turn off CPU auto-detection and force TurboJPEG to use MMX code (if the - * underlying codec supports it.) - */ -#define TJFLAG_FORCEMMX 8 -/** - * Turn off CPU auto-detection and force TurboJPEG to use SSE code (if the - * underlying codec supports it.) - */ -#define TJFLAG_FORCESSE 16 -/** - * Turn off CPU auto-detection and force TurboJPEG to use SSE2 code (if the - * underlying codec supports it.) - */ -#define TJFLAG_FORCESSE2 32 -/** - * Turn off CPU auto-detection and force TurboJPEG to use SSE3 code (if the - * underlying codec supports it.) - */ -#define TJFLAG_FORCESSE3 128 -/** * When decompressing an image that was compressed using chrominance * subsampling, use the fastest chrominance upsampling algorithm available in * the underlying codec. The default is to use smooth upsampling, which @@ -1056,6 +1036,13 @@ DLLEXPORT void DLLCALL tjFree(unsigned char *buffer); DLLEXPORT char* DLLCALL tjGetErrorStr(void); +/* Deprecated functions and macros */ +#define TJFLAG_FORCEMMX 8 +#define TJFLAG_FORCESSE 16 +#define TJFLAG_FORCESSE2 32 +#define TJFLAG_FORCESSE3 128 + + /* Backward compatibility functions and macros (nothing to see here) */ #define NUMSUBOPT TJ_NUMSAMP #define TJ_444 TJSAMP_444 |