mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-08-12 16:49:01 +08:00
parent
892ce53a54
commit
8870614628
@ -5,6 +5,8 @@
|
|||||||
* When bit reading is finished it will always pad the read to the current
|
* When bit reading is finished it will always pad the read to the current
|
||||||
byte.
|
byte.
|
||||||
|
|
||||||
|
* varUI32 and varUI64 types must be decoded by the DecodeVarint() function.
|
||||||
|
|
||||||
* Draco encoded mesh files are comprised of three main sections. This first
|
* Draco encoded mesh files are comprised of three main sections. This first
|
||||||
section is the header. The second section contains the connectivity data.
|
section is the header. The second section contains the connectivity data.
|
||||||
The third section contains the attribute data. The header must be decoded
|
The third section contains the attribute data. The header must be decoded
|
||||||
@ -22,9 +24,9 @@
|
|||||||
|
|
||||||
* Context data for the valence prediction
|
* 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.
|
decoded.
|
||||||
|
|
||||||
### Method of describing bitstream syntax
|
### Method of describing bitstream syntax
|
||||||
@ -39,9 +41,6 @@ from syntax elements values.
|
|||||||
|
|
||||||
{% comment %}
|
{% 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.
|
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
|
Syntax elements in the bitstream are represented in bold type. Each syntax
|
||||||
element is described by its name (using only lower case letters with
|
element is described by its name (using only lower case letters with
|
||||||
|
@ -8,7 +8,7 @@ void PredictionSchemeWrapTransformBase_ClampPredictedValue(predicted_val,
|
|||||||
num_components = GetNumComponents();
|
num_components = GetNumComponents();
|
||||||
min_value_ = pred_trasnform_wrap_min[curr_att_dec][curr_att];
|
min_value_ = pred_trasnform_wrap_min[curr_att_dec][curr_att];
|
||||||
max_value_ = pred_trasnform_wrap_max[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_)
|
if (predicted_val[i] > max_value_)
|
||||||
clamped_value_[i] = max_value_;
|
clamped_value_[i] = max_value_;
|
||||||
else if (predicted_val[i] < min_value_)
|
else if (predicted_val[i] < min_value_)
|
||||||
|
@ -46,7 +46,7 @@ void SequentialIntegerAttributeDecoder_DecodeIntegerValues() {
|
|||||||
if (seq_att_dec_prediction_transform_type[curr_att_dec][curr_att] ==
|
if (seq_att_dec_prediction_transform_type[curr_att_dec][curr_att] ==
|
||||||
PREDICTION_TRANSFORM_NORMAL_OCTAHEDRON_CANONICALIZED) {
|
PREDICTION_TRANSFORM_NORMAL_OCTAHEDRON_CANONICALIZED) {
|
||||||
decoded_symbols = seq_int_att_dec_decoded_values[curr_att_dec][curr_att];
|
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];
|
signed_vals[i] = decoded_symbols[i];
|
||||||
}
|
}
|
||||||
seq_int_att_dec_symbols_to_signed_ints[curr_att_dec][curr_att] = signed_vals;
|
seq_int_att_dec_symbols_to_signed_ints[curr_att_dec][curr_att] = signed_vals;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user