From 01d7d378d152b75ffe0901be863f7affb12b9494 Mon Sep 17 00:00:00 2001 From: James Zern Date: Tue, 2 Aug 2022 19:03:51 -0700 Subject: [PATCH] webp-lossless-bitstream-spec: number all sections this makes the structure more consistent Change-Id: Ie6c8b42506be73e565cfc4d39108eb4d8c038003 --- doc/webp-lossless-bitstream-spec.txt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/webp-lossless-bitstream-spec.txt b/doc/webp-lossless-bitstream-spec.txt index 906d7efc..0edb768b 100644 --- a/doc/webp-lossless-bitstream-spec.txt +++ b/doc/webp-lossless-bitstream-spec.txt @@ -229,7 +229,7 @@ depends on the transform type. Next we describe the transform data for different types. -### Predictor Transform +### 4.1 Predictor Transform The predictor transform can be used to reduce entropy by exploiting the fact that neighboring pixels are often correlated. In the predictor @@ -376,7 +376,7 @@ the modes \[0..13\] just like pixels not on the border, but the leftmost pixel on the same row as the current pixel is instead used as the TR-pixel. -### Color Transform +### 4.2 Color Transform \[AMENDED2\] @@ -488,7 +488,7 @@ void InverseTransform(uint8 red, uint8 green, uint8 blue, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -### Subtract Green Transform +### 4.3 Subtract Green Transform The subtract green transform subtracts green values from red and blue values of each pixel. When this transform is present, the decoder needs @@ -510,7 +510,7 @@ the subtract green transform can be coded using fewer bits than a full-blown color transform. -### Color Indexing Transform +### 4.4 Color Indexing Transform If there are not many unique pixel values, it may be more efficient to create a color index array and replace the pixel values by the array's @@ -1079,7 +1079,7 @@ all details. End-of-image (EOI) is only implicitly coded into the number of pixels (xsize * ysize). -#### Basic Structure +#### 7.1 Basic Structure ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ::= @@ -1087,7 +1087,7 @@ of pixels (xsize * ysize). ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -#### Structure of Transforms +#### 7.2 Structure of Transforms ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ::= (1-bit value 1; ) | @@ -1104,7 +1104,7 @@ of pixels (xsize * ysize). ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -#### Structure of the Image Data +#### 7.3 Structure of the Image Data \[AMENDED2\]