mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-26 05:38:22 +01:00
dsp/argb*.c: rework WEBP_USE_<arch> ifdef
add a dummy init rather than repeating the '#ifdef WEBP_USE_...' pattern. Change-Id: I46b89909a0279172d37dbda70f731c7b9f052dad
This commit is contained in:
parent
80ff38130e
commit
29fd6f90c0
@ -93,16 +93,19 @@ static void PackRGB(const uint8_t* r, const uint8_t* g, const uint8_t* b,
|
||||
);
|
||||
}
|
||||
|
||||
#endif // WEBP_USE_MIPS_DSP_R2
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Entry point
|
||||
|
||||
extern void VP8EncDspARGBInitMIPSdspR2(void);
|
||||
|
||||
WEBP_TSAN_IGNORE_FUNCTION void VP8EncDspARGBInitMIPSdspR2(void) {
|
||||
#if defined(WEBP_USE_MIPS_DSP_R2)
|
||||
VP8PackARGB = PackARGB;
|
||||
VP8PackRGB = PackRGB;
|
||||
#endif // WEBP_USE_MIPS_DSP_R2
|
||||
}
|
||||
|
||||
#else // !WEBP_USE_MIPS_DSP_R2
|
||||
|
||||
extern void VP8EncDspARGBInitMIPSdspR2(void);
|
||||
WEBP_TSAN_IGNORE_FUNCTION void VP8EncDspARGBInitMIPSdspR2(void) {}
|
||||
|
||||
#endif // WEBP_USE_MIPS_DSP_R2
|
||||
|
@ -51,12 +51,18 @@ static void PackARGB(const uint8_t* a, const uint8_t* r, const uint8_t* g,
|
||||
}
|
||||
}
|
||||
|
||||
#endif // WEBP_USE_SSE2
|
||||
//------------------------------------------------------------------------------
|
||||
// Entry point
|
||||
|
||||
extern void VP8EncDspARGBInitSSE2(void);
|
||||
|
||||
WEBP_TSAN_IGNORE_FUNCTION void VP8EncDspARGBInitSSE2(void) {
|
||||
#if defined(WEBP_USE_SSE2)
|
||||
VP8PackARGB = PackARGB;
|
||||
#endif
|
||||
}
|
||||
|
||||
#else // !WEBP_USE_SSE2
|
||||
|
||||
extern void VP8EncDspARGBInitSSE2(void);
|
||||
WEBP_TSAN_IGNORE_FUNCTION void VP8EncDspARGBInitSSE2(void) {}
|
||||
|
||||
#endif // WEBP_USE_SSE2
|
||||
|
Loading…
Reference in New Issue
Block a user