mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-20 12:28: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 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) {
|
if (data == NULL || data_size < kHeaderBytes) {
|
||||||
return 0; // not enough data
|
return 0; // not enough data
|
||||||
} else {
|
} else {
|
||||||
@ -971,7 +971,7 @@ static void ExtractAlphaRows(VP8LDecoder* const dec, int row) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int VP8LDecodeAlphaImageStream(int width, int height, const uint8_t* const data,
|
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;
|
VP8Io io;
|
||||||
int ok = 0;
|
int ok = 0;
|
||||||
VP8LDecoder* const dec = VP8LNew();
|
VP8LDecoder* const dec = VP8LNew();
|
||||||
|
@ -102,16 +102,15 @@ typedef struct {
|
|||||||
// Validates the VP8L data-header and retrieves basic header information viz
|
// Validates the VP8L data-header and retrieves basic header information viz
|
||||||
// width and height. Returns 0 in case of formatting error. width/height
|
// width and height. Returns 0 in case of formatting error. width/height
|
||||||
// can be passed NULL.
|
// can be passed NULL.
|
||||||
int VP8LGetInfo(const uint8_t* data,
|
int VP8LGetInfo(const uint8_t* data, size_t data_size, // data available so far
|
||||||
size_t data_size, // data available so far
|
int* const width, int* const height);
|
||||||
int *width, int *height);
|
|
||||||
|
|
||||||
|
|
||||||
// Decodes a raw image stream (without header) and store the alpha data
|
// 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
|
// into *output, which must be of size width x height. Returns false in case
|
||||||
// of error.
|
// of error.
|
||||||
int VP8LDecodeAlphaImageStream(int width, int height, const uint8_t* const data,
|
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.
|
// Allocates and initialize a new lossless decoder instance.
|
||||||
VP8LDecoder* VP8LNew(void);
|
VP8LDecoder* VP8LNew(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user