diff --git a/src/dsp/lossless.h b/src/dsp/lossless.h index e4da705f..8c7551c9 100644 --- a/src/dsp/lossless.h +++ b/src/dsp/lossless.h @@ -56,24 +56,20 @@ extern VP8LConvertFunc VP8LConvertBGRAToRGB565; extern VP8LConvertFunc VP8LConvertBGRAToBGR; // Expose some C-only fallback functions -extern void VP8LTransformColor_C(const VP8LMultipliers* const m, +void VP8LTransformColor_C(const VP8LMultipliers* const m, + uint32_t* data, int num_pixels); +void VP8LTransformColorInverse_C(const VP8LMultipliers* const m, uint32_t* data, int num_pixels); -extern void VP8LTransformColorInverse_C(const VP8LMultipliers* const m, - uint32_t* data, int num_pixels); -extern void VP8LConvertBGRAToRGB_C(const uint32_t* src, - int num_pixels, uint8_t* dst); -extern void VP8LConvertBGRAToRGBA_C(const uint32_t* src, - int num_pixels, uint8_t* dst); -extern void VP8LConvertBGRAToRGBA4444_C(const uint32_t* src, - int num_pixels, uint8_t* dst); -extern void VP8LConvertBGRAToRGB565_C(const uint32_t* src, - int num_pixels, uint8_t* dst); -extern void VP8LConvertBGRAToBGR_C(const uint32_t* src, - int num_pixels, uint8_t* dst); -extern void VP8LSubtractGreenFromBlueAndRed_C(uint32_t* argb_data, - int num_pixels); -extern void VP8LAddGreenToBlueAndRed_C(uint32_t* data, int num_pixels); +void VP8LConvertBGRAToRGB_C(const uint32_t* src, int num_pixels, uint8_t* dst); +void VP8LConvertBGRAToRGBA_C(const uint32_t* src, int num_pixels, uint8_t* dst); +void VP8LConvertBGRAToRGBA4444_C(const uint32_t* src, + int num_pixels, uint8_t* dst); +void VP8LConvertBGRAToRGB565_C(const uint32_t* src, + int num_pixels, uint8_t* dst); +void VP8LConvertBGRAToBGR_C(const uint32_t* src, int num_pixels, uint8_t* dst); +void VP8LSubtractGreenFromBlueAndRed_C(uint32_t* argb_data, int num_pixels); +void VP8LAddGreenToBlueAndRed_C(uint32_t* data, int num_pixels); // Must be called before calling any of the above methods. void VP8LDspInit(void); diff --git a/src/enc/cost.h b/src/enc/cost.h index 5d107569..4e558952 100644 --- a/src/enc/cost.h +++ b/src/enc/cost.h @@ -42,7 +42,7 @@ typedef void (*VP8SetResidualCoeffsFunc)(const int16_t* const coeffs, VP8Residual* const res); extern VP8SetResidualCoeffsFunc VP8SetResidualCoeffs; -extern void VP8SetResidualCoeffsInit(void); // must be called first +void VP8SetResidualCoeffsInit(void); // must be called first int VP8RecordCoeffs(int ctx, const VP8Residual* const res); @@ -59,7 +59,7 @@ static WEBP_INLINE int VP8BitCost(int bit, uint8_t proba) { typedef int (*VP8GetResidualCostFunc)(int ctx0, const VP8Residual* const res); extern VP8GetResidualCostFunc VP8GetResidualCost; -extern void VP8GetResidualCostInit(void); // must be called first +void VP8GetResidualCostInit(void); // must be called first // Level cost calculations extern const uint16_t VP8LevelCodes[MAX_VARIABLE_LEVEL][2];