|
Blender V5.0
|
Functions | |
| template<typename T> | |
| void | filter_compress (const Span< T > src, Vector< std::byte > &filter_buffer, Vector< std::byte > &compress_buffer) |
| template<typename T> | |
| void | filter_decompress (const Span< std::byte > src, Vector< std::byte > &buffer, Vector< T > &dst) |
| template void | filter_compress< float3 > (Span< float3 >, Vector< std::byte > &, Vector< std::byte > &) |
| template void | filter_compress< int > (Span< int >, Vector< std::byte > &, Vector< std::byte > &) |
| template void | filter_decompress< float3 > (Span< std::byte >, Vector< std::byte > &, Vector< float3 > &) |
| template void | filter_decompress< int > (Span< std::byte >, Vector< std::byte > &, Vector< int > &) |
| void blender::ed::sculpt_paint::undo::compression::filter_compress | ( | const Span< T > | src, |
| Vector< std::byte > & | filter_buffer, | ||
| Vector< std::byte > & | compress_buffer ) |
Compress a span, using a prefiltering step that can improve compression speed and ratios for certain float data types.
Compress a span with ZSTD, using a prefiltering step that can improve compression speed and ratios for certain data.
Definition at line 296 of file sculpt_undo.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::clear(), blender::Span< T >::data(), blender::Vector< T, InlineBufferCapacity, Allocator >::data(), blender::filter_transpose_delta(), blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::Span< T >::size(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::Span< T >::size_in_bytes(), and T.
Referenced by blender::ed::sculpt_paint::undo::PositionUndoStorage::compress_fn().
| template void blender::ed::sculpt_paint::undo::compression::filter_compress< int > | ( | Span< int > | , |
| Vector< std::byte > & | , | ||
| Vector< std::byte > & | ) |
Referenced by blender::ed::sculpt_paint::undo::tests::TEST_F().
| void blender::ed::sculpt_paint::undo::compression::filter_decompress | ( | const Span< std::byte > | src, |
| Vector< std::byte > & | buffer, | ||
| Vector< T > & | dst ) |
Decompress data compressed with filter_compress.
Definition at line 324 of file sculpt_undo.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::clear(), blender::Span< T >::data(), blender::Vector< T, InlineBufferCapacity, Allocator >::data(), ELEM, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), result, blender::Span< T >::size(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), T, and blender::unfilter_transpose_delta().
| template void blender::ed::sculpt_paint::undo::compression::filter_decompress< int > | ( | Span< std::byte > | , |
| Vector< std::byte > & | , | ||
| Vector< int > & | ) |