mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-17 06:19:54 +02:00
dsp/cost*.c: rework WEBP_USE_<arch> ifdef
add a dummy init rather than repeating the '#ifdef WEBP_USE_...' pattern. Change-Id: Ie9bee5eaf9daebe0909ab1dda1cf1aa4ee1ef03e
This commit is contained in:
@ -137,18 +137,19 @@ static void SetResidualCoeffs(const int16_t* const coeffs,
|
||||
res->coeffs = coeffs;
|
||||
}
|
||||
|
||||
#endif // WEBP_USE_MIPS32
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Entry point
|
||||
|
||||
extern void VP8EncDspCostInitMIPS32(void);
|
||||
|
||||
WEBP_TSAN_IGNORE_FUNCTION void VP8EncDspCostInitMIPS32(void) {
|
||||
#if defined(WEBP_USE_MIPS32)
|
||||
VP8GetResidualCost = GetResidualCost;
|
||||
VP8SetResidualCoeffs = SetResidualCoeffs;
|
||||
#endif // WEBP_USE_MIPS32
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#else // !WEBP_USE_MIPS32
|
||||
|
||||
extern void VP8EncDspCostInitMIPS32(void);
|
||||
WEBP_TSAN_IGNORE_FUNCTION void VP8EncDspCostInitMIPS32(void) {}
|
||||
|
||||
#endif // WEBP_USE_MIPS32
|
||||
|
Reference in New Issue
Block a user