mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-07-30 07:02:00 +08:00
Merge pull request #238 from google/spec_add_num_components
Spec: Add GetNumComponents function
This commit is contained in:
commit
f850fa4530
@ -46,6 +46,22 @@ void DecodeEdgebreakerConnectivityData() {
|
|||||||
~~~~~
|
~~~~~
|
||||||
{:.draco-syntax }
|
{:.draco-syntax }
|
||||||
|
|
||||||
|
### GetNumComponents()
|
||||||
|
|
||||||
|
~~~~~
|
||||||
|
int GetNumComponents() {
|
||||||
|
decoder_type = seq_att_dec_decoder_type[curr_att_dec][curr_att];
|
||||||
|
if (decoder_type == SEQUENTIAL_ATTRIBUTE_ENCODER_NORMALS) {
|
||||||
|
prediction_scheme = seq_att_dec_prediction_scheme[curr_att_dec][curr_att];
|
||||||
|
if (prediction_scheme == PREDICTION_DIFFERENCE) {
|
||||||
|
return 2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return att_dec_num_components[curr_att_dec][curr_att];
|
||||||
|
}
|
||||||
|
~~~~~
|
||||||
|
{:.draco-syntax }
|
||||||
|
|
||||||
|
|
||||||
### ProcessSplitData()
|
### ProcessSplitData()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user