mirror of
https://github.com/webmproject/libwebp.git
synced 2025-04-11 11:26:47 +02:00
cosmetics after 9523f2a
spelling, indent and other style conformance Change-Id: Iad720c0d85f2147676e302439d57628712d3b109
This commit is contained in:
parent
38bd5bb524
commit
eda520a92e
@ -77,8 +77,8 @@ static WebPEncodingError PutVP8XHeader(const VP8Encoder* const enc) {
|
|||||||
|
|
||||||
PutLE32(vp8x + TAG_SIZE, VP8X_CHUNK_SIZE);
|
PutLE32(vp8x + TAG_SIZE, VP8X_CHUNK_SIZE);
|
||||||
PutLE32(vp8x + CHUNK_HEADER_SIZE, flags);
|
PutLE32(vp8x + CHUNK_HEADER_SIZE, flags);
|
||||||
PutLE32(vp8x + CHUNK_HEADER_SIZE + 4 , pic->width);
|
PutLE32(vp8x + CHUNK_HEADER_SIZE + 4, pic->width);
|
||||||
PutLE32(vp8x + CHUNK_HEADER_SIZE + 8 , pic->height);
|
PutLE32(vp8x + CHUNK_HEADER_SIZE + 8, pic->height);
|
||||||
if(!pic->writer(vp8x, sizeof(vp8x), pic)) {
|
if(!pic->writer(vp8x, sizeof(vp8x), pic)) {
|
||||||
return VP8_ENC_ERROR_BAD_WRITE;
|
return VP8_ENC_ERROR_BAD_WRITE;
|
||||||
}
|
}
|
||||||
@ -132,6 +132,7 @@ static WebPEncodingError PutVP8FrameHeader(const WebPPicture* const pic,
|
|||||||
return VP8_ENC_ERROR_PARTITION0_OVERFLOW;
|
return VP8_ENC_ERROR_PARTITION0_OVERFLOW;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Paragraph 9.1.
|
||||||
bits = 0 // keyframe (1b)
|
bits = 0 // keyframe (1b)
|
||||||
| (profile << 1) // profile (3b)
|
| (profile << 1) // profile (3b)
|
||||||
| (1 << 4) // visible (1b)
|
| (1 << 4) // visible (1b)
|
||||||
@ -375,7 +376,7 @@ int VP8EncWrite(VP8Encoder* const enc) {
|
|||||||
pad = vp8_size & 1;
|
pad = vp8_size & 1;
|
||||||
vp8_size += pad;
|
vp8_size += pad;
|
||||||
|
|
||||||
// Computer RIFF size
|
// Compute RIFF size
|
||||||
// At the minimum it is: "WEBPVP8 nnnn" + VP8 data size.
|
// At the minimum it is: "WEBPVP8 nnnn" + VP8 data size.
|
||||||
riff_size = TAG_SIZE + CHUNK_HEADER_SIZE + vp8_size;
|
riff_size = TAG_SIZE + CHUNK_HEADER_SIZE + vp8_size;
|
||||||
if (IsVP8XNeeded(enc)) { // Add size for: VP8X header + data.
|
if (IsVP8XNeeded(enc)) { // Add size for: VP8X header + data.
|
||||||
|
@ -73,7 +73,7 @@ typedef struct {
|
|||||||
// prediction modes coding (0=no degradation, 100=full)
|
// prediction modes coding (0=no degradation, 100=full)
|
||||||
int alpha_compression; // Algorithm for encoding the alpha plane (0 = none,
|
int alpha_compression; // Algorithm for encoding the alpha plane (0 = none,
|
||||||
// 1 = Backward reference counts encoded with
|
// 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).
|
int alpha_quality; // Between 0 (smallest size) and 100 (lossless).
|
||||||
// Default is 100.
|
// Default is 100.
|
||||||
} WebPConfig;
|
} WebPConfig;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user