diff options
Diffstat (limited to 'apps/plugins/sdl/SDL_image/IMG_webp.c')
-rw-r--r-- | apps/plugins/sdl/SDL_image/IMG_webp.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/apps/plugins/sdl/SDL_image/IMG_webp.c b/apps/plugins/sdl/SDL_image/IMG_webp.c index 94727ce195..a13af15a9c 100644 --- a/apps/plugins/sdl/SDL_image/IMG_webp.c +++ b/apps/plugins/sdl/SDL_image/IMG_webp.c | |||
@@ -30,8 +30,8 @@ | |||
30 | 30 | ||
31 | /*============================================================================= | 31 | /*============================================================================= |
32 | File: SDL_webp.c | 32 | File: SDL_webp.c |
33 | Purpose: A WEBP loader for the SDL library | 33 | Purpose: A WEBP loader for the SDL library |
34 | Revision: | 34 | Revision: |
35 | Created by: Michael Bonfils (Murlock) (26 November 2011) | 35 | Created by: Michael Bonfils (Murlock) (26 November 2011) |
36 | murlock42@gmail.com | 36 | murlock42@gmail.com |
37 | 37 | ||
@@ -53,14 +53,14 @@ static struct { | |||
53 | } lib; | 53 | } lib; |
54 | 54 | ||
55 | #ifdef LOAD_WEBP_DYNAMIC | 55 | #ifdef LOAD_WEBP_DYNAMIC |
56 | int IMG_InitWEBP() | 56 | int IMG_InitWEBP(void) |
57 | { | 57 | { |
58 | if ( lib.loaded == 0 ) { | 58 | if ( lib.loaded == 0 ) { |
59 | lib.handle = SDL_LoadObject(LOAD_WEBP_DYNAMIC); | 59 | lib.handle = SDL_LoadObject(LOAD_WEBP_DYNAMIC); |
60 | if ( lib.handle == NULL ) { | 60 | if ( lib.handle == NULL ) { |
61 | return -1; | 61 | return -1; |
62 | } | 62 | } |
63 | lib.webp_get_features_internal = | 63 | lib.webp_get_features_internal = |
64 | ( int (*) (const uint8_t *, uint32_t, WebPBitstreamFeatures* const, int) ) | 64 | ( int (*) (const uint8_t *, uint32_t, WebPBitstreamFeatures* const, int) ) |
65 | SDL_LoadFunction(lib.handle, "WebPGetFeaturesInternal" ); | 65 | SDL_LoadFunction(lib.handle, "WebPGetFeaturesInternal" ); |
66 | if ( lib.webp_get_features_internal == NULL ) { | 66 | if ( lib.webp_get_features_internal == NULL ) { |
@@ -68,7 +68,7 @@ int IMG_InitWEBP() | |||
68 | return -1; | 68 | return -1; |
69 | } | 69 | } |
70 | 70 | ||
71 | lib.webp_decode_rgb_into = | 71 | lib.webp_decode_rgb_into = |
72 | ( uint8_t* (*) (const uint8_t*, uint32_t, uint8_t*, int, int ) ) | 72 | ( uint8_t* (*) (const uint8_t*, uint32_t, uint8_t*, int, int ) ) |
73 | SDL_LoadFunction(lib.handle, "WebPDecodeRGBInto" ); | 73 | SDL_LoadFunction(lib.handle, "WebPDecodeRGBInto" ); |
74 | if ( lib.webp_decode_rgb_into == NULL ) { | 74 | if ( lib.webp_decode_rgb_into == NULL ) { |
@@ -76,7 +76,7 @@ int IMG_InitWEBP() | |||
76 | return -1; | 76 | return -1; |
77 | } | 77 | } |
78 | 78 | ||
79 | lib.webp_decode_rgba_into = | 79 | lib.webp_decode_rgba_into = |
80 | ( uint8_t* (*) (const uint8_t*, uint32_t, uint8_t*, int, int ) ) | 80 | ( uint8_t* (*) (const uint8_t*, uint32_t, uint8_t*, int, int ) ) |
81 | SDL_LoadFunction(lib.handle, "WebPDecodeRGBInto" ); | 81 | SDL_LoadFunction(lib.handle, "WebPDecodeRGBInto" ); |
82 | if ( lib.webp_decode_rgba_into == NULL ) { | 82 | if ( lib.webp_decode_rgba_into == NULL ) { |
@@ -88,7 +88,7 @@ int IMG_InitWEBP() | |||
88 | 88 | ||
89 | return 0; | 89 | return 0; |
90 | } | 90 | } |
91 | void IMG_QuitWEBP() | 91 | void IMG_QuitWEBP(void) |
92 | { | 92 | { |
93 | if ( lib.loaded == 0 ) { | 93 | if ( lib.loaded == 0 ) { |
94 | return; | 94 | return; |
@@ -99,7 +99,7 @@ void IMG_QuitWEBP() | |||
99 | --lib.loaded; | 99 | --lib.loaded; |
100 | } | 100 | } |
101 | #else | 101 | #else |
102 | int IMG_InitWEBP() | 102 | int IMG_InitWEBP(void) |
103 | { | 103 | { |
104 | if ( lib.loaded == 0 ) { | 104 | if ( lib.loaded == 0 ) { |
105 | lib.webp_get_features_internal = WebPGetFeaturesInternal; | 105 | lib.webp_get_features_internal = WebPGetFeaturesInternal; |
@@ -110,7 +110,7 @@ int IMG_InitWEBP() | |||
110 | 110 | ||
111 | return 0; | 111 | return 0; |
112 | } | 112 | } |
113 | void IMG_QuitWEBP() | 113 | void IMG_QuitWEBP(void) |
114 | { | 114 | { |
115 | if ( lib.loaded == 0 ) { | 115 | if ( lib.loaded == 0 ) { |
116 | return; | 116 | return; |
@@ -207,7 +207,7 @@ SDL_Surface *IMG_LoadWEBP_RW(SDL_RWops *src) | |||
207 | error = "Failed to read WEBP"; | 207 | error = "Failed to read WEBP"; |
208 | goto error; | 208 | goto error; |
209 | } | 209 | } |
210 | 210 | ||
211 | #if 0 | 211 | #if 0 |
212 | // extract size of picture, not interesting since we don't know about alpha channel | 212 | // extract size of picture, not interesting since we don't know about alpha channel |
213 | int width = -1, height = -1; | 213 | int width = -1, height = -1; |
@@ -270,13 +270,13 @@ error: | |||
270 | 270 | ||
271 | #else | 271 | #else |
272 | 272 | ||
273 | int IMG_InitWEBP() | 273 | int IMG_InitWEBP(void) |
274 | { | 274 | { |
275 | IMG_SetError("WEBP images are not supported"); | 275 | IMG_SetError("WEBP images are not supported"); |
276 | return(-1); | 276 | return(-1); |
277 | } | 277 | } |
278 | 278 | ||
279 | void IMG_QuitWEBP() | 279 | void IMG_QuitWEBP(void) |
280 | { | 280 | { |
281 | } | 281 | } |
282 | 282 | ||