Merge pull request #254 from google/spec_add_named_constants

Spec: Add some named constants
This commit is contained in:
FrankGalligan 2017-10-20 15:05:29 -07:00 committed by GitHub
commit b10db3568f
3 changed files with 11 additions and 4 deletions

View File

@ -6,9 +6,9 @@
~~~~~
void DecodeSymbols(num_symbols, num_components, out_values) {
scheme UI8
if (scheme == 0) {
if (scheme == TAGGED_SYMBOLS) {
DecodeTaggedSymbols(num_symbols, num_components, out_values);
} else if (scheme == 1) {
} else if (scheme == RAW_SYMBOLS) {
DecodeRawSymbols(num_symbols, out_values);
}
}

View File

@ -114,9 +114,9 @@ void DecodeSequentialCompressedIndices() {
~~~~~
void DecodeSequentialConnectivityData() {
ParseSequentialConnectivityData();
if (connectivity_method == 0) {
if (connectivity_method == SEQUENTIAL_COMPRESSED_INDICES) {
DecodeSequentialCompressedIndices();
} else if (connectivity_method == 1) {
} else if (connectivity_method == SEQUENTIAL_UNCOMPRESSED_INDICES) {
DecodeSequentialIndices();
}
}

View File

@ -15,6 +15,10 @@
* 2: SEQUENTIAL_ATTRIBUTE_ENCODER_QUANTIZATION
* 3: SEQUENTIAL_ATTRIBUTE_ENCODER_NORMALS
* Sequential indices encoding methods
* 0: SEQUENTIAL_COMPRESSED_INDICES
* 1: SEQUENTIAL_UNCOMPRESSED_INDICES
* Prediction encoding methods
* -2: PREDICTION_NONE
* 0: PREDICTION_DIFFERENCE
@ -66,6 +70,9 @@
* 256: IO_BASE
* 4096: L_RANS_BASE
* Symbol encoding methods
* 0: TAGGED_SYMBOLS
* 1: RAW_SYMBOLS
### Variables