mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-07 19:51:51 +09:00
TAV-DT: no Zstd
This commit is contained in:
@@ -33,18 +33,20 @@ static inline int tad32_quality_to_max_index(int quality) {
|
||||
* @param max_index Maximum quantisation index (7=3bit, 15=4bit, 31=5bit, 63=6bit, 127=7bit)
|
||||
* @param quantiser_scale Quantiser scaling factor (1.0=baseline, 2.0=2x coarser quantisation)
|
||||
* Higher values = more aggressive quantisation = smaller files
|
||||
* @param zstd_level Zstd compression level (1-22). Use negative value to disable compression.
|
||||
* When disabled, MSB of payload_size is set to indicate uncompressed data.
|
||||
* @param output Output buffer (must be large enough)
|
||||
* @return Number of bytes written to output, or 0 on error
|
||||
*
|
||||
* Output format:
|
||||
* uint16 sample_count (samples per channel)
|
||||
* uint8 max_index (maximum quantisation index)
|
||||
* uint32 payload_size (bytes in payload)
|
||||
* * payload (encoded M/S data, Zstd-compressed with 2-bit twobitmap)
|
||||
* uint32 payload_size (bytes in payload; MSB=1 indicates uncompressed)
|
||||
* * payload (encoded M/S data, optionally Zstd-compressed)
|
||||
*/
|
||||
size_t tad32_encode_chunk(const float *pcm32_stereo, size_t num_samples,
|
||||
int max_index,
|
||||
float quantiser_scale, uint8_t *output);
|
||||
float quantiser_scale, int zstd_level, uint8_t *output);
|
||||
|
||||
/**
|
||||
* Print accumulated coefficient statistics
|
||||
|
||||
@@ -27,6 +27,7 @@ typedef struct {
|
||||
uint8_t quantiser_cg; // Base quantiser index for Cg/Cp
|
||||
uint8_t encoder_preset; // Encoder preset flags (sports, anime, etc.)
|
||||
int monoblock; // 1=single tile (monoblock), 0=multi-tile
|
||||
int no_zstd; // 1=packets are uncompressed (Video Flags bit 4), 0=Zstd compressed
|
||||
} tav_video_params_t;
|
||||
|
||||
// Create video decoder context
|
||||
|
||||
Reference in New Issue
Block a user