Commit Graph

111 Commits

Author SHA1 Message Date
Georg Hagen
21c5f26869 Handle images with invalid resolution 2025-03-03 18:51:06 +01:00
ohyzha
21c49ee91d remove some redundant stuff 2025-02-18 11:07:13 +02:00
ohyzha
475442e086 do not prefix filenames with slash if in archive directory is empty 2025-02-18 11:07:13 +02:00
Georg Hagen
5aba239af1 Merge branch 'master' of git.madvoxel.net:OpenVulkano/OpenVulkano 2025-02-12 23:45:50 +01:00
Georg Hagen
5cce011710 Merge branch 'master' into using_std_fs_path 2025-02-12 17:56:02 +01:00
Georg Hagen
453c42755a Update formatting 2025-02-12 14:42:36 +01:00
Georg Hagen
4da64d2d42 Silence warnings and fix bugs 2025-02-12 13:21:30 +01:00
Vladyslav Baranovskyi
08229c3be6 Forgot this line... 2025-02-11 17:54:26 +02:00
Vladyslav Baranovskyi
3c7a883ee8 Moved deprecated attr at beginning of functions 2025-02-11 17:34:12 +02:00
Vladyslav Baranovskyi
e976515d82 Marked all (probably) functions that take regular string instead of std::fs::path as deprecated 2025-02-11 16:15:05 +02:00
Georg Hagen
c41acb47c2 Attempt to fix windows build issue 2025-02-11 00:22:25 +01:00
Georg Hagen
5fd18bf70b Make written bytes observable 2025-02-09 23:56:13 +01:00
Georg Hagen
5c7c961c46 More windows fixes 2025-02-09 22:57:02 +01:00
Georg Hagen
d2c86ede73 More rework to switch to std::filesystem::path over cstrings 2025-02-09 20:26:36 +01:00
Georg Hagen
23ba703471 Another windows build fix 2025-02-09 18:58:39 +01:00
Georg Hagen
8bbb22bd64 Fix some Windows issues 2025-02-09 18:30:32 +01:00
Georg Hagen
5c132ecd77 Add callback option for extract all 2025-02-09 17:32:19 +01:00
Georg Hagen
ba475e6696 Expand archive reader 2025-02-09 02:13:09 +01:00
Georg Hagen
afd2c8043e Silence some warnings 2025-02-08 16:16:03 +01:00
Georg Hagen
acd73f6cfb Add helper functions 2025-02-06 18:53:10 +01:00
Georg Hagen
7a965a7767 Add password support for archive reader 2025-02-06 17:15:43 +01:00
Georg Hagen
3a32197cc3 Add optional password for archive writer 2025-02-05 23:23:23 +01:00
Georg Hagen
c50711308d Small path update for MacOS 2025-02-02 20:14:20 +01:00
Georg Hagen
a2d4d61bc9 Bugfix 2025-01-30 00:13:35 +01:00
Georg Hagen
6f53811b52 Fix typos 2025-01-29 23:38:55 +01:00
Georg Hagen
2a6fe2741c Update path handling for MacOS 2025-01-29 23:19:26 +01:00
ohyzha
5852aac273 minor refactoring 2024-12-22 13:54:01 +02:00
ohyzha
d3750f2b8a code review refactoring 2024-12-21 17:19:01 +02:00
ohyzha
40d2a3ff8e add possibility to explicitly specify archive type for ArchiveReader 2024-12-21 17:19:01 +02:00
Georg Hagen
d745616244 Switch depth buffer compression to zstd 2024-12-04 21:38:05 +01:00
Vladyslav_Baranovskyi_EXT
1abfb22b08 Merge pull request 'WriteObjAsZip and WriteAsUSDZ MeshWriter methods' (#166) from mesh_exporter_with_textures into master
Reviewed-on: https://git.madvoxel.net/OpenVulkano/OpenVulkano/pulls/166
Reviewed-by: Georg Hagen <georg.hagen@madvoxel.com>
2024-12-02 16:49:44 +01:00
Vladyslav Baranovskyi
ba9d37cc6f Added operator bool for ZipWriter, filling centralDirSize, padding zip via extraField 2024-11-28 16:48:22 +02:00
Vladyslav Baranovskyi
34bfebbdd3 Summary:
- Changes in Cat functions
- Using gmtime_s and gmtime_r as a thread-safe functions
- ZFill() that is used for padding
- Option for ZipWriter to pad LocalFileHeaders(it is used to properly run tests)
- ZipWriter::IsOpen()
- Moved material creation away from WriteObjContents
- Using MemMappedFile instead of ReadFile
- Scoping files and adding them to archive
- UsdEncoder refactoring
2024-11-27 20:21:14 +02:00
Vladyslav Baranovskyi
7ede43d1c2 NtfsExtraField constructor & helper static method, Cat refactoring, writing zip archive in destructor, using MemMappedFile 2024-11-25 19:32:53 +02:00
Vladyslav Baranovskyi
2a331011d5 Changed order of includes, uint32_t as index for Geometry::GetIndex(), minor changes 2024-11-22 16:36:41 +02:00
Vladyslav Baranovskyi
ac843c0fe3 Summary:
- Removed ReadEntireFile
- ZipWriter now writes directly to a file when possible
- Added GetIndex to geometry
- Moved Usd and Obj generators to different files
- Removed unused procedures
- Deduplicated obj generators
- Updated tests for ZipWriter
2024-11-22 15:45:57 +02:00
Vladyslav Baranovskyi
6aa8a265c1 Using gmtime instead of localtime 2024-11-20 21:22:07 +02:00
Vladyslav Baranovskyi
a9fd85e9b3 ZipWriter implementation + tests 2024-11-20 19:36:29 +02:00
ohyzha
c1588fc550 warning when use count != 1 2024-11-14 17:37:08 +02:00
ohyzha
656615e5a7 get rid of internal Close() method 2024-11-13 10:24:34 +02:00
ohyzha
d88addd858 nullify everything on close 2024-11-11 21:17:16 +02:00
ohyzha
a133641900 make it possible to close memmapped file before dctor 2024-11-11 20:24:58 +02:00
Georg Hagen
839efa5509 Compress depth data in ar recordings 2024-10-26 16:45:44 +02:00
Georg Hagen
8bc6de33ce Add default constructor 2024-10-15 21:18:56 +02:00
Vladyslav Baranovskyi
b476563698 Simplified empty string comparison, added logger reporting error 2024-10-14 15:20:39 +03:00
Vladyslav Baranovskyi
9ccfb2badd Fixed bug with opening a file with empty name string 2024-10-14 12:58:33 +03:00
Vladyslav Baranovskyi
5c19eb964c Throwing an exception if the file does not exist 2024-10-14 12:57:42 +03:00
Vladyslav Baranovskyi
18c02d268f Fixed bug with adding file in ArchiveWriter::AddFile() with uninitted create/mod times 2024-10-14 12:57:05 +03:00
Vladyslav Baranovskyi
7db6169a6f Added tests for DeleteEmptyFilesAndDirs(), GetDirFileAndDirCount(), + bugfixes 2024-10-10 21:15:30 +03:00
Georg Hagen
8e9d3cdc85 Merge branch 'master' of git.madvoxel.net:OpenVulkano/OpenVulkano 2024-10-10 18:38:04 +02:00