From efab1c3a8806c54b688c32d61b4063073dada799 Mon Sep 17 00:00:00 2001 From: minjaesong Date: Thu, 25 Sep 2025 18:27:46 +0900 Subject: [PATCH] TAV: more documentation --- terranmon.txt | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/terranmon.txt b/terranmon.txt index 92e6601..03f7223 100644 --- a/terranmon.txt +++ b/terranmon.txt @@ -898,6 +898,7 @@ transmission capability, and region-of-interest coding. uint16 Height: video height in pixels uint8 FPS: frames per second. Use 0x00 for still images uint32 Total Frames: number of video frames. Use 0xFFFFFFFF to denote still image (.im3 file) + - frame count of 0 is used to denote not-finalised video stream uint8 Wavelet Filter Type/File Role: - 0 = 5/3 reversible - 1 = 9/7 irreversible @@ -951,14 +952,24 @@ note: metadata packets must precede any non-metadata packets ## Block Data (per frame) uint8 Mode: encoding mode - 0x00 = SKIP (copy from previous frame) - 0x01 = INTRA (DWT-coded) - 0x02 = DELTA (DWT delta) - uint8 Quantiser override Y (use 0 to disable overriding) + 0x00 = SKIP (copy from previous frame) + 0x01 = INTRA (DWT-coded) + 0x02 = DELTA (DWT delta) + uint8 Quantiser override Y (use 0 to disable overriding; shared with A channel) uint8 Quantiser override Co (use 0 to disable overriding) uint8 Quantiser override Cg (use 0 to disable overriding) + int16 Y channel DWT coefficients[width * height + 4] + int16 Co channel DWT coefficients[width * height + 4] + int16 Cg channel DWT coefficients[width * height + 4] + int16 A channel DWT coefficients[width * height + 4] (only when the video has alpha) - ## DWT Coefficient Structure (per tile) + + int16 Y channel DWT coefficients[tile width * tile height + 4] + int16 Co channel DWT coefficients[tile width * tile height + 4] + int16 Cg channel DWT coefficients[tile width * tile height + 4] + ... (repeated per tile) + +### DWT Coefficient Structure (per tile) For each decomposition level L (from highest to lowest): uint16 LL_size: size of LL subband coefficients uint16 LH_size: size of LH subband coefficients