mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 00:57:44 -04:00
73ff53f01d
- Can make the event buffer larger or smaller - UI shows the current event index / size, so you know how fast it's filling up - Can save compressed, 10x reduction in filesize and Windows 11 explorer actually supports ZSTD natively now so this isn't inconvenient at all ![Screenshot 2024-06-22 000343](https://github.com/open-goal/jak-project/assets/13153231/2f7dfa41-d931-4170-a848-840cbed9be9f) > An example of almost 1 million events. Results in a 4mb file.
13 lines
377 B
C++
13 lines
377 B
C++
#pragma once
|
|
|
|
#include <cstddef>
|
|
#include <vector>
|
|
|
|
#include "common/common_types.h"
|
|
namespace compression {
|
|
// compress and decompress data with zstd
|
|
std::vector<u8> compress_zstd(const void* data, size_t size);
|
|
std::vector<u8> decompress_zstd(const void* data, size_t size);
|
|
std::vector<u8> compress_zstd_no_header(const void* data, size_t size);
|
|
} // namespace compression
|