create a separate libwebpdsp under src/dsp

Gathers all DSP-related function (and SSE2 implementations).
Clean-up some unwanted symbolic dependencies so that webp_encode,
webp_decode and webp_dsp are truly independent libraries.

+ opportunistic clean-up:
  * remove unneeded VP8DspInitTables(), now integrated in VP8DspInit()
  * make consistent use of VP8GetCPUInfo() in the various DspInit() funcs
  * change OUT macro to DST
This commit is contained in:
Pascal Massimino
2011-09-02 21:30:08 +00:00
committed by James Zern
parent ebeb412aa5
commit e06ac0887f
28 changed files with 2217 additions and 500 deletions

View File

@ -54,7 +54,7 @@ DEFINE_GUID(GUID_WICPixelFormat32bppRGBA,
#include "webp/encode.h"
#include "stopwatch.h"
#ifndef WEBP_DLL
extern void* VP8EncGetCPUInfo; // opaque forward declaration.
extern void* VP8GetCPUInfo; // opaque forward declaration.
#endif
//------------------------------------------------------------------------------
@ -829,7 +829,7 @@ int main(int argc, const char *argv[]) {
resize_h = strtol(argv[++c], NULL, 0);
#ifndef WEBP_DLL
} else if (!strcmp(argv[c], "-noasm")) {
VP8EncGetCPUInfo = NULL;
VP8GetCPUInfo = NULL;
#endif
} else if (!strcmp(argv[c], "-version")) {
const int version = WebPGetEncoderVersion();

View File

@ -46,7 +46,7 @@ extern "C" {
static int verbose = 0;
#ifndef WEBP_DLL
extern void* VP8DecGetCPUInfo; // opaque forward declaration.
extern void* VP8GetCPUInfo; // opaque forward declaration.
#endif
//------------------------------------------------------------------------------
@ -389,7 +389,7 @@ int main(int argc, const char *argv[]) {
verbose = 1;
#ifndef WEBP_DLL
} else if (!strcmp(argv[c], "-noasm")) {
VP8DecGetCPUInfo = NULL;
VP8GetCPUInfo = NULL;
#endif
} else if (argv[c][0] == '-') {
printf("Unknown option '%s'\n", argv[c]);