decode.h: use size_t consistently

replaces mixed use of int/uint32_t for buffer sizes
further changes the API/ABI.

Change-Id: I91d70fd82ee3e1ac34b884b8ead9a114a9b1015a
This commit is contained in:
James Zern
2012-04-17 16:01:33 -07:00
parent dceb8b4d9a
commit 9b3d1f3a1b
12 changed files with 115 additions and 158 deletions

View File

@ -20,7 +20,7 @@
extern "C" {
#endif
static const int kHeaderBytes = 5;
static const size_t kHeaderBytes = 5;
static const uint32_t kImageSizeBits = 14;
static const int kCodeLengthLiterals = 16;
@ -94,7 +94,7 @@ static int ReadImageSize(VP8LBitReader* const br,
return 1;
}
int VP8LGetInfo(const uint8_t* data, int data_size,
int VP8LGetInfo(const uint8_t* data, size_t data_size,
int* width, int* height) {
if (data_size < kHeaderBytes) {
return 0; // not enough data