mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-08-12 16:09:01 +08:00
commit
2f1f963498
@ -47,14 +47,22 @@ section is the header. The second section contains the metadata. This section is
|
|||||||
* 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.
|
||||||
|
|
||||||
|
* I16, UI16, I32, UI32, I64, UI64, and Float values must be little endian.
|
||||||
|
|
||||||
* varUI32 and varUI64 types must be decoded by the LEB128() function.
|
* varUI32 and varUI64 types must be decoded by the LEB128() function.
|
||||||
|
|
||||||
* varUI32 can represent vaules in the range 0 to 2^32 - 1.
|
* varUI32 can represent values in the range 0 to 2^32 - 1.
|
||||||
* E.g. 0x10000000 will be stored using 5 bytes.
|
* E.g. 0x10000000 will be stored using 5 bytes.
|
||||||
|
|
||||||
* varUI64 can represent vaules in the range 0 to 2^64 - 1.
|
* varUI64 can represent values in the range 0 to 2^64 - 1.
|
||||||
* E.g. 0x100000000000000 will be stored using 9 bytes.
|
* E.g. 0x100000000000000 will be stored using 9 bytes.
|
||||||
|
|
||||||
|
* Metadata keys per metadata element must be unique.
|
||||||
|
|
||||||
|
* att_metadata_id values must be unique.
|
||||||
|
|
||||||
|
* All values of att_metadata_id must equal a value stored in att_dec_unique_id.
|
||||||
|
|
||||||
|
|
||||||
### General Conventions
|
### General Conventions
|
||||||
|
|
||||||
|
@ -21,12 +21,12 @@ void ParseEdgebreakerConnectivityData() {
|
|||||||
|
|
||||||
~~~~~
|
~~~~~
|
||||||
void ParseTopologySplitEvents() {
|
void ParseTopologySplitEvents() {
|
||||||
num_topologoy_splits varUI32
|
num_topology_splits varUI32
|
||||||
for (i = 0; i < num_topologoy_splits; ++i) {
|
for (i = 0; i < num_topology_splits; ++i) {
|
||||||
source_id_delta[i] varUI32
|
source_id_delta[i] varUI32
|
||||||
split_id_delta[i] varUI32
|
split_id_delta[i] varUI32
|
||||||
}
|
}
|
||||||
for (i = 0; i < num_topologoy_splits; ++i) {
|
for (i = 0; i < num_topology_splits; ++i) {
|
||||||
split_edge_bit[i] f[1]
|
split_edge_bit[i] f[1]
|
||||||
source_edge_bit[i] f[1]
|
source_edge_bit[i] f[1]
|
||||||
}
|
}
|
||||||
|
@ -120,7 +120,7 @@
|
|||||||
* Number of encoded EdgeBreaker split symbols
|
* Number of encoded EdgeBreaker split symbols
|
||||||
* encoded_connectivity_size
|
* encoded_connectivity_size
|
||||||
* Size of encoded connectivity data in bytes
|
* Size of encoded connectivity data in bytes
|
||||||
* num_topologoy_splits
|
* num_topology_splits
|
||||||
* source_id_delta
|
* source_id_delta
|
||||||
* Array of delta encoded source symbol ids
|
* Array of delta encoded source symbol ids
|
||||||
* split_id_delta
|
* split_id_delta
|
||||||
|
Loading…
x
Reference in New Issue
Block a user