Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add precision for matrix compressor #59

Merged
merged 8 commits into from
Mar 1, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update docs
  • Loading branch information
atimin committed Feb 28, 2023
commit 8a87568e481fd0137ad208e57e2acc34f6251339
3 changes: 2 additions & 1 deletion sources/wavelet_buffer_serializer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ WaveletBufferSerializerLegacy::Parse(const std::string& blob) {
if (sf_compression == 0) {
arch << subband;
} else {
auto data = matrix_compressor::BlazeCompressor().Compress(subband, 33 - sf_compression);
auto data = matrix_compressor::BlazeCompressor().Compress(
subband, 33 - sf_compression);
if (!data.is_valid) {
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion wavelet_buffer/wavelet_buffer_serializer.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class IWaveletBufferSerializer {
* Serialize the buffer into the blob for saving in a file or sending via
* network
* @param blob the blob to serialize
* @param sf_compression - 0 - switch off, 16 - max compression(bfloat).
* @param sf_compression - 0 - switch off, 31 - max compression(2-bits).
* @return return true if it has no error
*/
[[nodiscard]] virtual bool Serialize(const WaveletBuffer& buffer,
Expand Down