mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-20 04:18:26 +01:00
cosmetics: signature fixes
Change-Id: Id0e1026d43c0a6928dd740c88117df638bfb6db6
This commit is contained in:
parent
39bf5d6497
commit
8f9117a9f0
@ -96,7 +96,7 @@ static int ReadImageSize(VP8LBitReader* const br,
|
||||
}
|
||||
|
||||
int VP8LGetInfo(const uint8_t* data, size_t data_size,
|
||||
int* width, int* height) {
|
||||
int* const width, int* const height) {
|
||||
if (data == NULL || data_size < kHeaderBytes) {
|
||||
return 0; // not enough data
|
||||
} else {
|
||||
@ -971,7 +971,7 @@ static void ExtractAlphaRows(VP8LDecoder* const dec, int row) {
|
||||
}
|
||||
|
||||
int VP8LDecodeAlphaImageStream(int width, int height, const uint8_t* const data,
|
||||
const size_t data_size, uint8_t* const output) {
|
||||
size_t data_size, uint8_t* const output) {
|
||||
VP8Io io;
|
||||
int ok = 0;
|
||||
VP8LDecoder* const dec = VP8LNew();
|
||||
|
@ -102,16 +102,15 @@ typedef struct {
|
||||
// Validates the VP8L data-header and retrieves basic header information viz
|
||||
// width and height. Returns 0 in case of formatting error. width/height
|
||||
// can be passed NULL.
|
||||
int VP8LGetInfo(const uint8_t* data,
|
||||
size_t data_size, // data available so far
|
||||
int *width, int *height);
|
||||
int VP8LGetInfo(const uint8_t* data, size_t data_size, // data available so far
|
||||
int* const width, int* const height);
|
||||
|
||||
|
||||
// Decodes a raw image stream (without header) and store the alpha data
|
||||
// into *output, which must be of size width x height. Returns false in case
|
||||
// of error.
|
||||
int VP8LDecodeAlphaImageStream(int width, int height, const uint8_t* const data,
|
||||
const size_t data_size, uint8_t* const output);
|
||||
size_t data_size, uint8_t* const output);
|
||||
|
||||
// Allocates and initialize a new lossless decoder instance.
|
||||
VP8LDecoder* VP8LNew(void);
|
||||
|
Loading…
Reference in New Issue
Block a user