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
515 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 d415.obj using rs-embed tool version: 0.0.0.2
// Generation time: 03/14/2024 11:16:12.
#pragma once
static uint32_t d415_obj_data [] { 0x3b64fdf4,0xcccd4125,0xf082c12c,0xa6a0c0bf,0xd7974236,0x3197c0a3,0x875bbdbd,0x3b454230,0xb28c0d8,0xef8abd60,0xe54c4238,0x319dc078,0xa80bd3d,0x687c423c,0x3565bfe5,0xac13bda7,0xd02423c,0x2a0199bf,0x4fb7bd69,0x45c840ec,0xc48a4125,0xc4fec0bf,0xdf6840fd,0x5e844125,0x91b8c0c3,0xcccd4103,0x7ce64124,0x7af3c10f,0x3506422c,0x3197c0f5,0x5671bdbd,0x4e69423b,0x319d400d,0xbd3d,0x40a04104,0x77fb412c,0x1b67c102,0x3ad34226,0x3197c108,0xc2f9bdbd,0xe30a40ec,0x4d334133,0xd4e6c150,0x59c44220,0x319dc10d,0xeb5bd3d,0xb67f423a,0x31974061,0xbdbd,0x40a0c1c6,0x77fb412c,0xba5dc102,0xcccdc1c6,0x423c4124,0xcf41c10d,0xe30ac1cc,0x4d334133,0x433fc150,0x7d604103,0xc2424126,0x42eac0cf,0x12d4104,0x59184135,0xe2a8c149,0x711541f6,0x2c51c121,0xde8bc03f,0x18c1c5,0xe0a904c3,0x24cccd40,0x8f14541,0xf10114c1,0x31974005,0xc8dbbdbd,0xcccdc1d1,0x2cff4124,0x5946c0d2,0x710024d8,0xc1102a03,0xcd9f095,0x240df300,0x69c0d04f,0xdc423307,0x2840c43a,0x8bd600b,0x6c242b3,0x9abfbe9a,0xcc0d999,0x3f35f100,0xc0d9999a,0xc2249997,0xc0b61fe1,0xbf4e1480,0xc240129e,0xc078635a,0xc0d9999a,0xc1d013d7,0x4126b9d5,0xc0c59996,0xc200e141,0xc1256f9e,0xc084d4e8,0xc1d1e752,0x4128e277,0xc0d42bed,0x6cf89a05,0x45a0b100,0xc23ac107,0x9d71c237,0xc3003ce7,0xc1cba4fb,0x4125b3d3,0xc0bf38f3,0xb4010168,0xa618f100,0xf240da9a,0x1b412841,0xcdc0ce3b,0xa5c22b27,0x9ac119e0,0xc7c0d999,0x72c1c809,0x67412602,0x41c0c493,0xd8e02a,0x8f14571,0x900000c1,0x9d840060,0xc10608,0x98420100,0x4d554401,0x48411d,0xcf1,0xfc05c218,0xb1e2c12f,0x859dc104,0x2df4c1c6,0x57844128,0x1006c0cd,0x71003c79,0xc10c15ec,0x54e459e2,0x4f04f100,0x38c105dc,0xc2c20ace,0xa2c1352b,0xb3c13471,0x18e908,0xcb8a984,0xc1edac1,0x220138c0,0x1bc3725,0xd22cff71,0xde97b7c0,0x2cf10024,0xc0ce3271,0xc2090165,0xc1363815,0xc1437c28,0xc202abc1,0xc12d8f1e,0xc0d82dd2,0x41c53468,0x412b6c4b,0xc0caffba,0xc2054107,0xc1376d35,0xc14d9380,0x412ac49c,0xd034cccd,0x7215f302,0x27c2193a,0x53c121ac,0xc9c05ca6,0xb7c2061f,0x71c12b6f,0xc1263d,0x26c21800,0xb4c112e5,0x14bd841e,0x9a415301,0x50c0d999,0x9a405301,0x98c0d999,0xc0101,0xf51704f1,0x7f40c1f9,0xc5cbc120,0x54acc03f,0x84f7c21b,0x4401bcfd,0x411d2f6f,0xba4400a8,0x40420110,0x45a42202,0x3c710228,0xc10d42,0xe49000,0x89d35f4,0xc8d6c106,0x829ec21f,0xa01dc128,0x86c7c0ca,0xd23b4182,0x97f04129,0x3538c0b8,0xff30c208,0xb148c12b,0x2b0dc172,0xfffcc237,0x14803fd3,0xbf4e,0xbf334218,0x2863c12f,0xf74cc104,0x13841de,0x26617c44,0x31031841,0xc04d2f6f,0x9f04f503,0xf3c10d7f,0x68c082de,0x7a4125df,0x52c0c308,0x234b9e7,0xf1005403,0x1480bf05,0x8899bf4e,0x1a834203,0xa4e9c131,0xffffc104,0xf400c0e3,0x6089d05,0x24fe45c1,0x25bec041,0xbfee9d41,0x742cebc0,0x4401d4c0,0xc1b4cf41,0x8e35006c,0xb4550d,0x365b00f5,0xb476c230,0x8cd4c101,0x3469c05c,0xf1018c95,0x3b813d00,0x9b3f29c2,0x5c8cd4c0,0x532a8cc0,0xdf2009c,0xc106e101,0x423ccd76,0x408ff9c7,0xc130cccd,0x420298f0,0xc1198725,0xc1139e2e,0x2c910144,0xce3271c1,0x32d093c0,0x71710030,0x81c0ce32,0xc2054,0x8f14571,0x1bbfec1,0x29f4000c,0xc0cb5f0a,0x40fac016,0xc134cccd,0xc14f0aa0,0xc0fac016,0xc12ccccd,0xc0c1eac1,0xc0d8dc94,0xc134cccd,0xc0d22cff,0x418975c6,0x411e81d3,0xc148baf3,0xc1253b64,0xf104e0,0xc15f4253,0xc134cccd,0xc0c3e500,0xcc94ffb,0xc104f100,0x98c0c1ea,0xc3c1cf0b,0x6411844,0x64c1075a,0x30553b,0x65ea842,0x1103f0c1,0x3100542c,0x1889c8db,0x2cff3300,0x202acd2,0x4922000c,0x71001868,0xc10d7f9f,0x24b14ffb,0xeac17500,0xb005c0c1,0x31000c9e,0x6c9c0000,0xc910f500,0xfcc1505d,0xd8406fff,0x9a411b7d,0xc121eb,0x29c11c00,0x6b411c41,0x89c12b2b,0xb402eb,0x1e4d01f4,0x96874077,0x25cf411e,0xae28c14a,0xcc400b,0xda28eb44,0x44000cc0,0xc0100001,0x89350048,0x3c32eb,0xfdd800f5,0xbd214106,0xbc39411f,0xb98c166,0x4400d8e7,0xc11d1476,0x2cf1003c,0xc19f59e0,0x411ed092,0xc14e4694,0xc204999a,0x411d2856,0xc1352c01,0xc19a4257,0x411ee5b1,0xc14fdf46,0xc163bb80,0x411e6047,0xc1467a5c,0xc10253c6,0x411e8dfc,0x3c49977c,0x5908f503,0xa1411645,0x20c0f3c7,0x8bc205f3,0xd04114ef,0xe0c0e12b,0xc120c,0x447818f5,0xf79fc1e8,0xc1344136,0xa9ffc150,0x7166c1c9,0x46f4135,0x3c70c151,0x17e2c209,0xbcd84136,0xa9ffc141,0x44001881,0x419e5601,0x8f10024,0x40d79676,0x413509b3,0xc149b632,0x41b2d363,0x41357bc3,0x7851b966,0xfc05c400,0xb1e2412f,0xcb3ac104,0x24417b
#include <lz4.h>
#include <vector>
inline void uncompress_d415_obj(std::vector<float3>& vertex_data, std::vector<float3>& normals, std::vector<short3>& index_data)
{
std::vector<char> uncompressed(0x34278, 0);
(void)LZ4_decompress_safe((const char*)d415_obj_data, uncompressed.data(), 0x2f457, 0x34278);
const int vertex_size = 0x21ba * sizeof(float3);
const int index_size = 0x47a0 * sizeof(short3);
vertex_data.resize(0x21ba);
memcpy(vertex_data.data(), uncompressed.data(), vertex_size);
index_data.resize(0x47a0);
memcpy(index_data.data(), uncompressed.data() + vertex_size, index_size);
//normals.resize(0x21ba);
//memcpy(normals.data(), uncompressed.data() + vertex_size + index_size, vertex_size);
}