mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
cosmetics
vp8.[hc]:fix '*' placement in pointer types vp8l.c: remove trailing ',' from enum decode.h: fix stray WebPINew() Change-Id: Id6749a14a12ed0a090649f28ef4267fda45a37a8
This commit is contained in:
parent
e38602d2ad
commit
126e160672
@ -73,7 +73,7 @@ void VP8Delete(VP8Decoder* const dec) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int VP8SetError(VP8Decoder* const dec,
|
int VP8SetError(VP8Decoder* const dec,
|
||||||
VP8StatusCode error, const char * const msg) {
|
VP8StatusCode error, const char* const msg) {
|
||||||
dec->status_ = error;
|
dec->status_ = error;
|
||||||
dec->error_msg_ = msg;
|
dec->error_msg_ = msg;
|
||||||
dec->ready_ = 0;
|
dec->ready_ = 0;
|
||||||
|
@ -288,7 +288,7 @@ struct VP8Decoder {
|
|||||||
|
|
||||||
// in vp8.c
|
// in vp8.c
|
||||||
int VP8SetError(VP8Decoder* const dec,
|
int VP8SetError(VP8Decoder* const dec,
|
||||||
VP8StatusCode error, const char * const msg);
|
VP8StatusCode error, const char* const msg);
|
||||||
|
|
||||||
// Validates the VP8 data-header and retrieves basic header information viz
|
// Validates the VP8 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
|
||||||
|
@ -45,7 +45,7 @@ typedef enum {
|
|||||||
RED = 1,
|
RED = 1,
|
||||||
BLUE = 2,
|
BLUE = 2,
|
||||||
ALPHA = 3,
|
ALPHA = 3,
|
||||||
DIST = 4,
|
DIST = 4
|
||||||
} HuffIndex;
|
} HuffIndex;
|
||||||
|
|
||||||
static const uint16_t kAlphabetSize[HUFFMAN_CODES_PER_META_CODE] = {
|
static const uint16_t kAlphabetSize[HUFFMAN_CODES_PER_META_CODE] = {
|
||||||
|
@ -188,7 +188,7 @@ typedef enum {
|
|||||||
// WebPInitDecBuffer(&buffer);
|
// WebPInitDecBuffer(&buffer);
|
||||||
// buffer.colorspace = mode;
|
// buffer.colorspace = mode;
|
||||||
// ...
|
// ...
|
||||||
// WebPIDecoder* const idec = WebPINew(&buffer);
|
// WebPIDecoder* const idec = WebPINewDecoder(&buffer);
|
||||||
// while (has_more_data) {
|
// while (has_more_data) {
|
||||||
// // ... (get additional data)
|
// // ... (get additional data)
|
||||||
// status = WebPIAppend(idec, new_data, new_data_size);
|
// status = WebPIAppend(idec, new_data, new_data_size);
|
||||||
|
Loading…
Reference in New Issue
Block a user