mirror of
				https://github.com/webmproject/libwebp.git
				synced 2025-10-31 02:15:42 +01:00 
			
		
		
		
	make use of 'extern' consistent in function declarations
Change-Id: I18e050db3111e52acfe97da09cdf1860f3e15936
This commit is contained in:
		| @@ -89,8 +89,8 @@ static WEBP_INLINE uint32_t VP8LSubSampleSize(uint32_t size, | |||||||
| #define LOG_LOOKUP_IDX_MAX 256 | #define LOG_LOOKUP_IDX_MAX 256 | ||||||
| extern const float kLog2Table[LOG_LOOKUP_IDX_MAX]; | extern const float kLog2Table[LOG_LOOKUP_IDX_MAX]; | ||||||
| extern const float kSLog2Table[LOG_LOOKUP_IDX_MAX]; | extern const float kSLog2Table[LOG_LOOKUP_IDX_MAX]; | ||||||
| extern float VP8LFastLog2Slow(int v); | float VP8LFastLog2Slow(int v); | ||||||
| extern float VP8LFastSLog2Slow(int v); | float VP8LFastSLog2Slow(int v); | ||||||
| static WEBP_INLINE float VP8LFastLog2(int v) { | static WEBP_INLINE float VP8LFastLog2(int v) { | ||||||
|   return (v < LOG_LOOKUP_IDX_MAX) ? kLog2Table[v] : VP8LFastLog2Slow(v); |   return (v < LOG_LOOKUP_IDX_MAX) ? kLog2Table[v] : VP8LFastLog2Slow(v); | ||||||
| } | } | ||||||
|   | |||||||
| @@ -245,20 +245,20 @@ void VP8YUVInit(void); | |||||||
|  |  | ||||||
| #if defined(WEBP_USE_SSE2) | #if defined(WEBP_USE_SSE2) | ||||||
|  |  | ||||||
| #ifdef FANCY_UPSAMPLING | #if defined(FANCY_UPSAMPLING) | ||||||
| // Process 32 pixels and store the result (24b or 32b per pixel) in *dst. | // Process 32 pixels and store the result (24b or 32b per pixel) in *dst. | ||||||
| extern void VP8YuvToRgba32(const uint8_t* y, const uint8_t* u, const uint8_t* v, | void VP8YuvToRgba32(const uint8_t* y, const uint8_t* u, const uint8_t* v, | ||||||
|                            uint8_t* dst); |                     uint8_t* dst); | ||||||
| extern void VP8YuvToRgb32(const uint8_t* y, const uint8_t* u, const uint8_t* v, | void VP8YuvToRgb32(const uint8_t* y, const uint8_t* u, const uint8_t* v, | ||||||
|                           uint8_t* dst); |                    uint8_t* dst); | ||||||
| extern void VP8YuvToBgra32(const uint8_t* y, const uint8_t* u, const uint8_t* v, | void VP8YuvToBgra32(const uint8_t* y, const uint8_t* u, const uint8_t* v, | ||||||
|                            uint8_t* dst); |                     uint8_t* dst); | ||||||
| extern void VP8YuvToBgr32(const uint8_t* y, const uint8_t* u, const uint8_t* v, | void VP8YuvToBgr32(const uint8_t* y, const uint8_t* u, const uint8_t* v, | ||||||
|                           uint8_t* dst); |                    uint8_t* dst); | ||||||
| #endif  // FANCY_UPSAMPLING | #endif  // FANCY_UPSAMPLING | ||||||
|  |  | ||||||
| // Must be called to initialize tables before using the functions. | // Must be called to initialize tables before using the functions. | ||||||
| extern void VP8YUVInitSSE2(void); | void VP8YUVInitSSE2(void); | ||||||
|  |  | ||||||
| #endif    // WEBP_USE_SSE2 | #endif    // WEBP_USE_SSE2 | ||||||
|  |  | ||||||
|   | |||||||
| @@ -49,8 +49,8 @@ extern const WebPFilterFunc WebPFilters[WEBP_FILTER_LAST]; | |||||||
| extern const WebPUnfilterFunc WebPUnfilters[WEBP_FILTER_LAST]; | extern const WebPUnfilterFunc WebPUnfilters[WEBP_FILTER_LAST]; | ||||||
|  |  | ||||||
| // Fast estimate of a potentially good filter. | // Fast estimate of a potentially good filter. | ||||||
| extern WEBP_FILTER_TYPE EstimateBestFilter(const uint8_t* data, | WEBP_FILTER_TYPE EstimateBestFilter(const uint8_t* data, | ||||||
|                                            int width, int height, int stride); |                                     int width, int height, int stride); | ||||||
|  |  | ||||||
| #if defined(__cplusplus) || defined(c_plusplus) | #if defined(__cplusplus) || defined(c_plusplus) | ||||||
| }    // extern "C" | }    // extern "C" | ||||||
|   | |||||||
| @@ -31,7 +31,7 @@ typedef struct { | |||||||
| } VP8Random; | } VP8Random; | ||||||
|  |  | ||||||
| // Initializes random generator with an amplitude 'dithering' in range [0..1]. | // Initializes random generator with an amplitude 'dithering' in range [0..1]. | ||||||
| extern void VP8InitRandom(VP8Random* const rg, float dithering); | void VP8InitRandom(VP8Random* const rg, float dithering); | ||||||
|  |  | ||||||
| // Returns a centered pseudo-random number with 'num_bits' amplitude. | // Returns a centered pseudo-random number with 'num_bits' amplitude. | ||||||
| // (uses D.Knuth's Difference-based random generator) | // (uses D.Knuth's Difference-based random generator) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user