From 8f9117a9f04afd47906314efd64937a62bc03c78 Mon Sep 17 00:00:00 2001 From: Pascal Massimino Date: Wed, 23 May 2012 12:45:05 -0700 Subject: [PATCH] cosmetics: signature fixes Change-Id: Id0e1026d43c0a6928dd740c88117df638bfb6db6 --- src/dec/vp8l.c | 4 ++-- src/dec/vp8li.h | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/dec/vp8l.c b/src/dec/vp8l.c index f3d80bd2..5364d001 100644 --- a/src/dec/vp8l.c +++ b/src/dec/vp8l.c @@ -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(); diff --git a/src/dec/vp8li.h b/src/dec/vp8li.h index 79233eb3..2a0c4b44 100644 --- a/src/dec/vp8li.h +++ b/src/dec/vp8li.h @@ -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);