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
367 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 d455.obj using rs-embed tool version: 0.0.0.2
// Generation time: 03/14/2024 11:16:15.
#pragma once
static uint32_t d455_obj_data [] { 0xf64804f1,0xad4f4155,0x3d71bffa,0x9dd7c07a,0xe9c94153,0x4000ce7,0x14f10018,0xc07c28f6,0x415311bb,0xbfe388e3,0xc07c28f6,0x40d66666,0x80000000,0xc0855e70,0x40d0a915,0x30a11983,0xb900f100,0x2940dcc4,0x70bf9078,0x9ac0855e,0x24c999,0x3d7114f1,0xfff3c07a,0x7e3140e4,0x3d71c017,0x1b11c07a,0xc1b940ef,0x5e70c007,0x189cc085,0x5e464102,0x7100184c,0x4105999a,0x1836e792,0x4304f100,0xa0411542,0x71c068de,0xd5c07a3d,0xce4116d4,0x184ffd,0x29b3dc71,0x69991341,0x2b350018,0x18292b,0x3c711c82,0x4c46e941,0x15009cc0,0x7100483a,0x413cfd39,0x304e775c,0x57d67100,0xe38a4145,0x44002433,0x41487278,0xe3710084,0x57414cf8,0x18155f,0x519da344,0x7100c041,0x4157c9d1,0xd89e73de,0x57427100,0xc943415a,0x44000c20,0x4154cccd,0x333100fc,0xc5b33,0x7a3d7135,0xdf350114,0x1088d4f,0x8d4fdf35,0xdf3500f0,0xe48d4f,0x8d4fdf35,0xdf3500d8,0xcc8d4f,0x8d4fdf35,0xdf3500c0,0xa88d4f,0x8d4fdf35,0xdf35009c,0x848d4f,0x4fdf08f1,0x976bc08d,0x2d774108,0x4fdfbfdf,0x7637c08d,0xab3b4100,0xf8000c91,0x138b6a10,0x8e24841,0x8d4fdfc0,0xf845a8c0,0xca5c5f40,0x8d4fdfbe,0x200000c0,0x11ab3641,0x3e170018,0x3f8500b4,0xc08d4fdf,0x3c2c7496,0x540300,0x3001801,0x408501bc,0xc08d4fdf,0x78376895,0x840300,0x35002401,0x843f89c9,0xf00300,0x3003001,0xc010090,0xdd2c4400,0x904143,0x101e003,0x9c030018,0xc0100,0x1002403,0x2003009c,0x180101,0x1009c03,0x1403000c,0x780801,0x3000c01,0x24010144,0xa80300,0x3001801,0x180101f8,0x3c0400,0x855e7034,0x40440168,0x80855e70,0xc0101,0x34007804,0xb0855e70,0x180101,0x3400d804,0xe0855e70,0x180101,0xf101f803,0x5e703f15,0xa13bc085,0xfb164157,0x3d713fa1,0x598fc07a,0x364c414d,0x3d714018,0x999ac07a,0x1327413d,0x71000c4d,0x412a47ac,0xc6933d7,0xb8543500,0x35000c15,0x24026666,0x4ce44400,0x3c40e5,0xd0bd8a44,0x71005440,0x40e076e0,0xdc20993d,0xde0d7102,0x50b94100,0x71000c58,0x40cabe7d,0xacaaee6c,0x44397102,0xe1374115,0x35001875,0x90c33333,0xf69a6203,0xb7aa412a,0xf3710018,0x8c40cab9,0xa8aabc,0x3f55aa71,0x57d91f41,0xcd710030,0x9740e065,0x9c2070,0xcccd71,0x5828f241,0xed71000c,0xa415a99,0x60ab84,0x5d716771,0x2e2ff141,0x1371000c,0xd941152a,0x2475ce,0x5e666635,0xed350318,0x182ad5,0x5aa30744,0x35006c41,0x543f3333,0xcd1a4400,0x6c414f,0xf1008404,0x7c28f608,0x4fc490c0,0x20993d41,0x7c28f6c0,0x482650c0,0x3f124041,0xcc04000c,0x4fdf3400,0x200c08d,0xb4020318,0x2dc0100,0x100b403,0x9c03000c,0xc0100,0x1009003,0x8403000c,0xc0100,0x1008403,0xa803000c,0x540100,0xb100cc04,0xc08d4fdf,0x408a9058,0x24b56fa8,0xb7d54400,0xc417a,0x1001803,0x90030258,0x2700100,0x1014404,0x4403009c,0x900701,0x3003001,0xc010048,0x780300,0x3003c01,0x18010090,0xa80300,0x3000c01,0xc0100c0,0x3c0400,0x26a7f044,0xf10084c1,0x26a7f004,0x596666c1,0xeccccdc2,0x26a9c2c0,0x5b6666c1,0x52c6000c,0x33c126a8,0x33c25633,0xcc10b33,0x306f500,0x26a9c2c1,0x54adf5c1,0xb56faac2,0x26a7f0c0,0x27520bc1,0x3002000c,0x41032200,0x54010048,0x30401400,0x6c0400,0x45002402,0xa852410b,0x9f1006c,0x26a85240,0x160000c1,0x733333c2,0x26a1cbc0,0x14999ac1,0x84cccdc2,0x3326000c,0x71000c33,0xc2160000,0x186ccccd,0xf7373900,0x31003014,0x18790d0b,0x999a7100,0x6666c214,0x35000c56,0x3014f737,0x999a7100,0xf2f5c214,0x35001866,0x3c12cccd,0xd5963500,0x26000c13,0x483333,0x12cccd35,0x3326003c,0x26005433,0x483333,0x13d59635,0x10f10024,0xc21db53c,0xbee93bc1,0xc126ac08,0xc21d05ab,0xbf208249,0xc126ac08,0xc21e25f5,0x18753c58,0x28707100,0xb08ec21c,0xf100183c,0x1b33330c,0x466666c2,0x26aa36bf,0x1e4ccdc1,0xc2,0x26ac0800,0x18cccdc1,0x8750018,0x90c126ac,0x3017d7,0x16fa5535,0xc4350054,0x6c164a,0x15da0b35,0x33350060,0x4815b3,0x27520b35,0x4f10174,0xc21d111d,0x3f1e63fa,0xc126ac08,0xc21c3a6c,0xc3b2b34,0xc504f100,0x42c21dba,0x83ee560,0x69c126ac,0x80c21e27,0xc70b7,0xc1014403,0x26a1cb40,0x17d7cbc1,0x3cb546c2,0x7b710030,0x9c216fa,0xc2089,0xa8cd1a21,0x363f3500,0x10198aa,0xf0620030,0x8ec21b4a,0x3001859,0x18010138,0x4ad67100,0x4813c216,0x710060e9,0xc215da0f,0xc754b06,0x1f80300,0x3002401,0xc0101b0,0x1b00300,0x3000c01,0xc010168,0x1800300,0x3000c01,0xc010228,0x2100300,0x21000c01,0x1c8999a,0x3000c01,0xc0101c8,0x24c0300,0x4000c05,0x4030024,0x180102,0x1021c03,0xea53000c,0xa8c1895b,0xc0302e8,0x33c0300,0x5cc0ba24,0xc0301,0x3030c01,0xc010354,0x147b7100,0x7ae14199,0x3000cc8,0xc010378,0x147
#include <lz4.h>
#include <vector>
inline void uncompress_d455_obj(std::vector<float3>& vertex_data, std::vector<float3>& normals, std::vector<short3>& index_data)
{
std::vector<char> uncompressed(0x28770, 0);
(void)LZ4_decompress_safe((const char*)d455_obj_data, uncompressed.data(), 0x21d3f, 0x28770);
const int vertex_size = 0x1ae7 * sizeof(float3);
const int index_size = 0x361a * sizeof(short3);
vertex_data.resize(0x1ae7);
memcpy(vertex_data.data(), uncompressed.data(), vertex_size);
index_data.resize(0x361a);
memcpy(index_data.data(), uncompressed.data() + vertex_size, index_size);
//normals.resize(0x1ae7);
//memcpy(normals.data(), uncompressed.data() + vertex_size + index_size, vertex_size);
}