CBOR: Fixes
This commit is contained in:
@@ -724,7 +724,7 @@ void CBORStream2Serializer::SerializeSequenceEnd(const EndMessage& message) {
|
||||
CBOR_ENC(mapEncoder, "rotation_lattice", message.rotation_lattice->GetVector());
|
||||
if (!message.rotation_extra_lattices.empty()) {
|
||||
CborEncoder arrayEncoder;
|
||||
cborErr(cbor_encode_text_stringz(&mapEncoder, "extra_lattices"));
|
||||
cborErr(cbor_encode_text_stringz(&mapEncoder, "rotation_extra_lattices"));
|
||||
cborErr(cbor_encoder_create_array(&mapEncoder, &arrayEncoder, message.rotation_extra_lattices.size()));
|
||||
for (const auto &el : message.rotation_extra_lattices)
|
||||
CBOR_ENC_FLOAT_ARRAY_NOKEY(arrayEncoder, el.GetVector());
|
||||
@@ -778,12 +778,11 @@ void CBORStream2Serializer::SerializeImageInternal(CborEncoder &mapEncoder, cons
|
||||
CBOR_ENC(mapEncoder, "az_int_profile_count", message.az_int_profile_count);
|
||||
|
||||
CBOR_ENC(mapEncoder, "indexing_result", message.indexing_result);
|
||||
CBOR_ENC(mapEncoder, "indexing_lattice_count", message.indexing_lattice_count);
|
||||
if (message.indexing_lattice)
|
||||
CBOR_ENC(mapEncoder, "indexing_lattice", message.indexing_lattice->GetVector());
|
||||
if (!message.indexing_extra_lattices.empty()) {
|
||||
CborEncoder arrayEncoder;
|
||||
cborErr(cbor_encode_text_stringz(&mapEncoder, "extra_lattices"));
|
||||
cborErr(cbor_encode_text_stringz(&mapEncoder, "indexing_extra_lattices"));
|
||||
cborErr(cbor_encoder_create_array(&mapEncoder, &arrayEncoder, message.indexing_extra_lattices.size()));
|
||||
for (const auto &el : message.indexing_extra_lattices)
|
||||
CBOR_ENC_FLOAT_ARRAY_NOKEY(arrayEncoder, el.GetVector());
|
||||
|
||||
Reference in New Issue
Block a user