You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
520 KiB

// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2024 Intel Corporation. All Rights Reserved.
// This file is auto-generated from d435.obj using rs-embed tool version: 0.0.0.2
// Generation time: 03/14/2024 11:16:13.
#pragma once
static uint32_t d435_obj_data [] { 0xaf6c48f5,0x2b3f41bc,0xa3d640d6,0x2df8bff8,0xf81cc201,0x1eb54126,0x5e1ac135,0xf8e34155,0xd7084037,0x3672bff3,0x967e41ea,0xd5d6c141,0x2f8dc12b,0x403e420b,0x147c40f2,0x42f2bf4e,0x2851c1ed,0x69a1412f,0xcb83c18f,0x8904c1dc,0x96974145,0x85e3c18e,0xf400186a,0x4a468eff,0xc18d,0xb8fec136,0x2e1ac15b,0xa6ad420f,0xd708bfad,0x9101bff3,0x418d,0x785ec130,0xc18f,0x5b363f40,0xc88e412d,0x2d32c17c,0xd904c1d4,0x73dc412f,0x305cc15c,0xcecec21f,0xa3c3f34,0x6ff3bff7,0x91eb4212,0x53440db,0x9a8ab4c7,0xda77c214,0xd708402b,0xcbf8bff3,0x40cc4223,0xa62940cf,0x48b1c16e,0xff994208,0xd708405e,0x9da2bff3,0x3334c194,0xf756c141,0x7df5c128,0xac424206,0xd868c12a,0x2b74c177,0xd498422b,0xe2dec027,0xea7cc0e5,0x5182c212,0xeb7bc11d,0x5fc9c169,0xc050,0xca16c148,0x74b9c144,0xc0b5,0x97a9c136,0x8902c15d,0xea03c227,0x73f7bfa7,0xf1c1bd62,0xc0d0,0x49d5c130,0x6002c18e,0x9a8d4118,0xd70940af,0x66c9bff7,0xb281c02b,0xea02412f,0x1e4bc15a,0xdcc5c1ad,0x750b412f,0xa40cc15e,0xcd364203,0xd709c062,0xb64ebff5,0xcec24219,0x534c0ab,0x1016b4c7,0x590241ff,0xd708c058,0x11c5bff3,0x8d1941a5,0xb5c04139,0x815c127,0xed93c1e8,0x5d2cc12f,0xe912c19c,0xc611c0b2,0x6e294137,0x9999c127,0xbe00c17d,0xf9c44141,0xb410c162,0x89cec20e,0x147cc081,0x1bdebf4e,0x98354054,0x94fd412a,0xc18fc15a,0x88534119,0x8c654145,0xac43c18e,0x5510c1a4,0xa6294139,0x3333c127,0xbe00c0db,0xf9c44141,0xd023c162,0x6184419e,0x147cc08f,0xbc7bf4e,0x1bcc0b5,0x76666744,0x310060c0,0xb0bd5d2e,0xa929f401,0xdfc15d97,0xc2414b5d,0x65413c11,0x89c12874,0x88c22cea,0xb8beded8,0x29c1351e,0xbd41a2b0,0xe4414584,0x2fc18e56,0x63c2175d,0x703f0fb5,0x27bffa3d,0x8419293,0x84423101,0x75004808,0xc15bb467,0x1c799704,0x75c37102,0x9ae64205,0x44025860,0xc1d31f38,0x55f400b4,0xc1c36430,0xc1466667,0xc18f5522,0xc20585fb,0x4117e642,0xbd3b4f40,0x4177a262,0x4138de8e,0xc127a310,0x4106dd87,0xc1413334,0xc128fd9b,0x41b6ba5e,0x3f0fb563,0xbff3d708,0x41b21c93,0x40fa7380,0xbff8a3d6,0x41598a17,0x4060f580,0xbff570a2,0x41b42fe4,0xbf1c25a1,0xbff3d708,0xc1640000,0x19f40264,0xc21e865c,0x40ea4c12,0xc1351eac,0x4165cde7,0x413b4566,0xc15f4140,0x421bb077,0x409888b3,0xbf4e147c,0x41a13333,0x1cf10114,0x41bdf74d,0x412f2c05,0xc18f9a67,0x4209dd4b,0x4111a88f,0xbd48ef67,0xc0d27477,0xc0cbf364,0xbf4e147c,0xc21720c4,0x908fb563,0xf024f500,0x83c1f572,0x21412e42,0x50c16889,0x393f51a9,0x8c0aa3d,0x2abff3d7,0x78422020,0x6c402c45,0x87bece14,0xc4c20852,0xc441233c,0xf0c043de,0x330bd42,0x144ad871,0xb9a87741,0x9df40120,0x420aae75,0xc1136212,0xbd47286d,0x41aef315,0xc04b237a,0xbffa3d70,0x3f802001,0xc0b4f7e1,0xbff8a3d6,0x41cc0001,0x40c33ce7,0xbff570a2,0xc1169da6,0xc13c0001,0xc128609d,0xc1c3aa17,0xc0bcdd9f,0xbff63d6f,0x41c80adb,0x412e93ff,0xc189194b,0x4219c5a4,0x406efdcb,0xbff3d708,0x3f3ef71a,0xc0a38f72,0xbffa3d70,0x42197c1d,0xc12c8ba0,0xc1827a33,0x42278180,0xb704eff2,0xbd5826c9,0xc0c83759,0x40c5846f,0xbf4e147c,0xc14a910e,0x412e3511,0xc186435c,0xc1efb00d,0x40b16ecd,0xbff4a3d5,0xc1f6cccd,0xf1012c,0x41ac3c70,0xc1300000,0xc18e49d5,0xc70b127,0x6704f100,0xc0c15bb4,0x9ec215cb,0x940bea5,0x3bff5d7,0x21c1845,0xd7fd59f4,0xa5b0c15c,0x184fc226,0x1eb1c09d,0x6181c135,0x6667c18b,0x8b4cc146,0x85cec128,0x66674193,0xba3ac146,0x3633c18f,0xcb0941ad,0xbeaf4138,0x47a2c12a,0x19aac22a,0x85c409d,0x4c03c0f5,0xaee2414c,0x147cbfe5,0xc9b5bf4e,0xb2813ea4,0xea02412f,0xb4bec15a,0x341ec067,0xba58c12c,0xb779c124,0xb441a2,0x1affda71,0xa38f7241,0x1f4018c,0x41c34daf,0x412b3252,0xc160e240,0xc16af909,0x1f40348,0xc2210863,0xc0e8489e,0xc169eb7b,0xc1dd4886,0xe244003c,0xecc18362,0x10d64401,0x18bf29,0x3f001cf1,0x8e9ac216,0x147c3f6c,0x4cbabf4e,0x6d64c1ca,0xd70833ef,0x3590bff3,0x9e57422b,0x2982400d,0xed91c123,0xfc1541ab,0xf501d465,0xb4dc4f24,0xd46c2741,0xf70a3cbf,0xb2573bf,0x3842dac1,0x275f5d41,0x792abc1,0xeadd9c42,0xf570a2c0,0xaa6401bf,0x300000c1,0x8fa4fbc1,0x8d7c84c1,0x35009c,0x2c40400,0x51940471,0x2a8b3c41,0x18f502ac,0x410dd35c,0x40bf01d6,0xbff7d709,0xc2258f98,0x405c7f44,0xbd473678,0x420f84b7,0x3fa40f34,0xbfad70a0,0x643a85e3,0x69547102,0x91754144,0x7100840c,0x420ebeb4,0x9c0cc151,0x3f04f100,0x98c08c5f,0x6fc0f0ea,0x22bff63d,0x27c111fa,0x270e9e8,0xad49ad31,0xc4840378,0xb5c12afa,0xe041eae1,0x7adb7104,0xba634210,0xf103fca
#include <lz4.h>
#include <vector>
inline void uncompress_d435_obj(std::vector<float3>& vertex_data, std::vector<float3>& normals, std::vector<short3>& index_data)
{
std::vector<char> uncompressed(0x35640, 0);
(void)LZ4_decompress_safe((const char*)d435_obj_data, uncompressed.data(), 0x30c6e, 0x35640);
const int vertex_size = 0x22a6 * sizeof(float3);
const int index_size = 0x4914 * sizeof(short3);
vertex_data.resize(0x22a6);
memcpy(vertex_data.data(), uncompressed.data(), vertex_size);
index_data.resize(0x4914);
memcpy(index_data.data(), uncompressed.data() + vertex_size, index_size);
//normals.resize(0x22a6);
//memcpy(normals.data(), uncompressed.data() + vertex_size + index_size, vertex_size);
}