cosmetics after 9523f2a

spelling, indent and other style conformance

Change-Id: Iad720c0d85f2147676e302439d57628712d3b109
This commit is contained in:
James Zern 2011-12-01 13:05:31 -08:00
parent 38bd5bb524
commit eda520a92e
3 changed files with 12 additions and 11 deletions

@ -77,8 +77,8 @@ static WebPEncodingError PutVP8XHeader(const VP8Encoder* const enc) {
PutLE32(vp8x + TAG_SIZE, VP8X_CHUNK_SIZE);
PutLE32(vp8x + CHUNK_HEADER_SIZE, flags);
PutLE32(vp8x + CHUNK_HEADER_SIZE + 4 , pic->width);
PutLE32(vp8x + CHUNK_HEADER_SIZE + 8 , pic->height);
PutLE32(vp8x + CHUNK_HEADER_SIZE + 4, pic->width);
PutLE32(vp8x + CHUNK_HEADER_SIZE + 8, pic->height);
if(!pic->writer(vp8x, sizeof(vp8x), pic)) {
return VP8_ENC_ERROR_BAD_WRITE;
}
@ -132,6 +132,7 @@ static WebPEncodingError PutVP8FrameHeader(const WebPPicture* const pic,
return VP8_ENC_ERROR_PARTITION0_OVERFLOW;
}
// Paragraph 9.1.
bits = 0 // keyframe (1b)
| (profile << 1) // profile (3b)
| (1 << 4) // visible (1b)
@ -375,7 +376,7 @@ int VP8EncWrite(VP8Encoder* const enc) {
pad = vp8_size & 1;
vp8_size += pad;
// Computer RIFF size
// Compute RIFF size
// At the minimum it is: "WEBPVP8 nnnn" + VP8 data size.
riff_size = TAG_SIZE + CHUNK_HEADER_SIZE + vp8_size;
if (IsVP8XNeeded(enc)) { // Add size for: VP8X header + data.

@ -73,7 +73,7 @@ typedef struct {
// prediction modes coding (0=no degradation, 100=full)
int alpha_compression; // Algorithm for encoding the alpha plane (0 = none,
// 1 = Backward reference counts encoded with
// Arithmetic encoder). Default is 1.
// arithmetic encoder). Default is 1.
int alpha_quality; // Between 0 (smallest size) and 100 (lossless).
// Default is 100.
} WebPConfig;