From 7a8e814b57c114c0ee47a12149decaaa10c15098 Mon Sep 17 00:00:00 2001 From: James Zern Date: Fri, 8 Dec 2017 12:37:38 -0800 Subject: [PATCH] cosmetics: s/color_space/colorspace/ in webpinfo.c, quality_estimate.c. this form is used elsewhere in the codebase Change-Id: I40c8202db51a7356e6a14d7e9b25c68153548438 --- examples/webpinfo.c | 6 +++--- extras/quality_estimate.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/webpinfo.c b/examples/webpinfo.c index cc6a70f4..2dcd2775 100644 --- a/examples/webpinfo.c +++ b/examples/webpinfo.c @@ -340,7 +340,7 @@ static WebPInfoStatus ParseLossyHeader(const ChunkData* const chunk_data, WebPInfoStatus status = WEBP_INFO_OK; uint64_t bit_position = 0; uint64_t* const bit_pos = &bit_position; - int color_space, clamp_type; + int colorspace, clamp_type; printf(" Parsing lossy bitstream...\n"); // Calling WebPGetFeatures() in ProcessImageChunk() should ensure this. assert(chunk_data->size_ >= CHUNK_HEADER_SIZE + 10); @@ -381,9 +381,9 @@ static WebPInfoStatus ParseLossyHeader(const ChunkData* const chunk_data, LOG_ERROR("Bad partition length."); return WEBP_INFO_BITSTREAM_ERROR; } - GET_BITS(color_space, 1); + GET_BITS(colorspace, 1); GET_BITS(clamp_type, 1); - printf(" Color space: %d\n", color_space); + printf(" Color space: %d\n", colorspace); printf(" Clamp type: %d\n", clamp_type); status = ParseLossySegmentHeader(webp_info, data, data_size, bit_pos); if (status != WEBP_INFO_OK) return status; diff --git a/extras/quality_estimate.c b/extras/quality_estimate.c index f36783f1..17e98d96 100644 --- a/extras/quality_estimate.c +++ b/extras/quality_estimate.c @@ -73,7 +73,7 @@ int VP8EstimateQuality(const uint8_t* const data, size_t size) { pos += 4; bit_pos = pos * 8; - GET_BIT(2); // color_space + clamp type + GET_BIT(2); // colorspace + clamp type // Segment header if (GET_BIT(1)) { // use_segment_