Merge pull request #207 from google/fix_up_spec

A few small fixes for the spec.
This commit is contained in:
FrankGalligan 2017-10-01 15:57:39 -07:00 committed by GitHub
commit 99733e7431
3 changed files with 6 additions and 7 deletions

View File

@ -5,6 +5,8 @@
* When bit reading is finished it will always pad the read to the current
byte.
* varUI32 and varUI64 types must be decoded by the DecodeVarint() function.
* Draco encoded mesh files are comprised of three main sections. This first
section is the header. The second section contains the connectivity data.
The third section contains the attribute data. The header must be decoded
@ -22,9 +24,9 @@
* Context data for the valence prediction
* Hole and Split data
* Split data
* The hole and split data must be decoded before the EdgeBreaker symbols are
* The split data must be decoded before the EdgeBreaker symbols are
decoded.
### Method of describing bitstream syntax
@ -39,9 +41,6 @@ from syntax elements values.
{% comment %}
**FIXME: This section is borrowed from AV1, and should be modified for the Draco
spec.**
The description style of the syntax is similar to the C++ programming language.
Syntax elements in the bitstream are represented in bold type. Each syntax
element is described by its name (using only lower case letters with

View File

@ -8,7 +8,7 @@ void PredictionSchemeWrapTransformBase_ClampPredictedValue(predicted_val,
num_components = GetNumComponents();
min_value_ = pred_trasnform_wrap_min[curr_att_dec][curr_att];
max_value_ = pred_trasnform_wrap_max[curr_att_dec][curr_att];
for (int i = 0; i < num_components; ++i) {
for (i = 0; i < num_components; ++i) {
if (predicted_val[i] > max_value_)
clamped_value_[i] = max_value_;
else if (predicted_val[i] < min_value_)

View File

@ -46,7 +46,7 @@ void SequentialIntegerAttributeDecoder_DecodeIntegerValues() {
if (seq_att_dec_prediction_transform_type[curr_att_dec][curr_att] ==
PREDICTION_TRANSFORM_NORMAL_OCTAHEDRON_CANONICALIZED) {
decoded_symbols = seq_int_att_dec_decoded_values[curr_att_dec][curr_att];
for (int i = 0; i < decoded_symbols.size(); ++i) {
for (i = 0; i < decoded_symbols.size(); ++i) {
signed_vals[i] = decoded_symbols[i];
}
seq_int_att_dec_symbols_to_signed_ints[curr_att_dec][curr_att] = signed_vals;