Skip to Content
  • Editor’s Choice
  • Article
  • Open Access

1 May 2026

29 Pages

BWT-Enhanced Compression for GIS Raster Data: A Hybrid AV1-Inspired Approach with Burrows–Wheeler Transform

Computer Science Department, Bar-Ilan University, Ramat-Gan 5290002, Israel

Abstract

The AVIF (AV1 Image File Format) is a modern, royalty-free image format that leverages the AV1 video codec for superior compression efficiency, supporting both lossy and lossless modes. Its entropy encoding relies on a multi-symbol context-adaptive arithmetic coder (range coding with adaptive cumulative distribution functions (CDFs)), which is effective for general imagery but may not optimally exploit the repetitive structures common in Geographic Information System (GIS) maps/data. This paper proposes replacing AVIF’s entropy encoder with the Burrows–Wheeler Transform (BWT), a reversible preprocessing algorithm that rearranges data to create runs of similar symbols, enhancing subsequent compression. We detail the technical steps for modification, drawing from AV1’s open-source implementation, and explain why BWT is advantageous for GIS raster maps/data, which often feature large uniform areas, limited color palettes, and spatial redundancies. Empirical evidence from related studies on BWT-based image compression shows improvements in lossless scenarios, potentially considerably reducing file sizes over standard methods while preserving data integrity critical for geospatial analysis. This swap could improve storage, transmission, and processing efficiency in GIS applications, such as remote sensing and cartography. The discussion includes challenges like computational overhead and compatibility, with recommendations for implementations. The resulting BWT-AVIF hybrid produces a non-standard AV1 bit-stream that is not compliant with the AV1 or AVIF specifications and therefore requires custom decoders. It is presented here as a research prototype for GIS-specific compression rather than a compliant AVIF extension.

1. Introduction

In the era of big data, efficient image compression is paramount, particularly for specialized domains like Geographic Information Systems (GIS), where raster data represent vast geospatial datasets. Traditional formats like JPEG or PNG often fall short in balancing file size, quality, and fidelity, especially for GIS raster data that require lossless compression to maintain analytical accuracy [1]. The AVIF format, introduced in 2019 as an open standard by the Alliance for Open Media (AOMedia), addresses these needs by encapsulating AV1-compressed images in a HEIF (High-Efficiency Image File Format) container [2]. AVIF excels in compression ratios, supporting high dynamic range (HDR), wide color gamuts, and alpha channels, making it suitable for web and multimedia applications [3].
At the core of AVIF’s efficiency is the AV1 codec’s pipeline: prediction, transform coding (e.g., discrete cosine transform variants), quantization, and entropy encoding. The entropy stage uses a multi-symbol, context-adaptive arithmetic coder to encode symbols probabilistically, reducing redundancy [4]. While effective for natural images, this approach may not fully capitalize on the unique characteristics of GIS raster data, such as repetitive patterns in land cover (e.g., forests, water bodies) or thematic layers with limited discrete values. Arithmetic coding treats symbols based on local contexts but lacks global rearrangement to amplify redundancies.
Enter the Burrows–Wheeler Transform (BWT), a block-sorting algorithm originally developed for text compression in tools like bzip2. BWT rearranges input data by sorting all cyclic shifts, extracting the last column to group similar characters into runs. This transform is reversible and serves as a preprocessing step, making subsequent encoding (e.g., run length or Huffman) more efficient. Unlike arithmetic coding, which encodes symbols sequentially based on probabilities, BWT exploits global context, creating compressible structures from repetitive data [5].
This paper explores replacing AVIF’s entropy encoder with BWT, focusing on its potential benefits for GIS map compression. GIS raster data, often stored as grids of pixel values representing elevation, vegetation indices, or land use, benefit from lossless methods to avoid data distortion that could affect analyses like change detection or modeling. Common GIS compression techniques include LZ77 (deflate), JPEG 2000, or quadtree partitioning, but BWT’s ability to handle repetitions in non-text data like images offers untapped potential.
By making this substitution, the paper argues, we can achieve significantly more efficient compression for GIS raster data due to their spatial autocorrelation: adjacent pixels often share values, leading to long runs post-BWT. Studies on BWT for images report superior performance over standards like JPEG-LS in lossless scenarios.
This paper is organized to sequentially present the development and evaluation of our proposed compression approach. Section 2 provides an overview of related work, focusing specifically on current implementations of AVIF and the Burrows–Wheeler Transform (BWT). In addition, it explains the foundations of GIS and the Case for BWT Compression. Section 3 outlines the technical methodology, detailing the specific steps required to execute the proposed substitution. In Section 4, we explore the practical value of this approach, outlining its distinct advantages when applied to Geographic Information Systems (GIS) data. Section 5 provides an in-depth discussion and analysis of the experimental results. Finally, Section 6 synthesizes our findings and presents our concluding remarks.

3. Methodology

3.1. Replacing the Standard Entropy Encoder with BWT

The concept of replacing the standard entropy encoder in AVIF with the Burrows–Wheeler Transform introduces a powerful alternative preprocessing stage that can significantly enhance compression performance by exploiting long runs of identical symbols in the quantized data. Because AVIF is fundamentally built on top of AV1 video bitstreams, any attempt to swap out the entropy coder requires invasive changes directly to the AV1 codec internals rather than operating at a higher wrapper level. The authoritative and most widely used reference implementation for the entire AV1 ecosystem remains the open-source libaom library maintained by AOMedia, which contains the complete encoder and decoder pipelines in a single, highly optimized codebase. Within libaom the current entropy encoding logic relies on sophisticated arithmetic coding routines whose core implementations live in dedicated source files responsible for writing symbols to the final bitstream with adaptive probability modeling.
Accessing and preparing the codebase for these modifications forms the essential first step in the entire process. The full libaom repository was cloned directly from AOMedia’s official GitHub (libaom v3.8.0) organization to access the latest development branch. Once the source tree was locally available, the next immediate task was to locate the precise entropy-related functions scattered across the encoder path, specifically focusing on frame-level processing routines in files such as aom_encoder/encodeframe.c where transform coefficients are collected and passed to the entropy stage, as well as the lower-level arithmetic coding primitives implemented in aom_dsp/entenc.c that handle actual bit-packing, range coding, and context updates during coefficient encoding.
The second major step centers on preprocessing the data stream immediately after quantization, so that it becomes an ideal input for BWT. To serialize the data without information loss, the two-dimensional arrays of quantized transform coefficients were flattened into a contiguous one-dimensional sequence using a deterministic, frequency-ordered zigzag scan. Given that domain-specific data like GIS raster data frequently exhibit large homogeneous regions alongside sharp feature edges, introducing an additional predictive decorrelation stage yields significant compression benefits. Applying the well-known Median Edge Detector (MED) predictor from JPEG-LS [36] generates compact residuals that exhibit markedly improved symbol clustering. These residuals are subsequently scaled or clipped to a clean 8-bit unsigned range, creating a byte-oriented alphabet perfectly suited for the subsequent BWT permutation without introducing alphabet expansion issues (see Section 4 for an ablation study quantifying MED’s specific contribution).
The third step involves actually embedding a full BWT implementation into the modified libaom pipeline by creating a new dedicated module, typically placed inside the aom_dsp directory for consistency with other transform utilities. This module leverages a highly efficient third-party suffix-array library such as divsufsort to construct the necessary ordering in near-linear time instead of naively generating all cyclic rotations. After building the suffix array for the preprocessed byte stream, the forward BWT extracts the last-column characters while simultaneously recording the primary index that identifies the original sequence’s position in the sorted rotation list; both the permuted output string and this single integer index are then forwarded to the next stage in place of the raw coefficient symbols.
With the BWT output now available, the fourth step replaces the original arithmetic coding engine entirely. Instead of feeding symbols directly into AV1’s entropy coder, the pipeline now applies the classic BWT post-processing chain: first the move-to-front (MTF) transform to keep recently used symbols near the front of the alphabet, followed by run-length encoding (RLE) to collapse the long identical-character runs created by BWT into compact count-value pairs, and finally a lightweight Huffman coder that produces the actual bits written to the bitstream. All of these stages are designed to be strictly reversible, with the BWT primary index and any MTF/RLE parameters transmitted as small side-information headers to guarantee mathematically lossless reconstruction even at the highest compression settings.
The fifth step symmetrically updates the decoder path so that the new BWT-based entropy scheme can be inverted correctly. Modifications are applied either inside the fast dav1d decoder library or directly within libaom’s decoder module, inserting an inverse BWT routine immediately after the bitstream parser has extracted the permuted symbols and the primary index. The inverse operation reconstructs the original coefficient stream using the well-known last-to-first mapping derived from stable sorting of the received string, after which the restored coefficients proceed through standard AV1 inverse quantization and inverse transforms exactly as before.
Integration of the modified AV1 bitstream into a complete AVIF container constitutes the sixth and final engineering step. The updated encoder output is handed to the libavif library, which provides convenient high-level APIs for packaging AV1-coded images inside the HEIF container format along with necessary metadata boxes. Minor extensions to libavif may be required to signal the presence of the BWT entropy variant, for example by registering a new profile identifier or embedding a short configuration record that indicates BWT usage, allowing compliant AVIF writers to produce files that standard parsers can at least open while specialized decoders can fully exploit the improved compression.
Practically, to fully replace AV1’s entropy coding with the Burrows–Wheeler Transform pipeline inside the official libaom reference implementation (which powers all standard AVIF encoding), four code segments must be integrated in a precise, modular sequence that preserves the existing AV1 prediction, transform, and partitioning logic while completely bypassing the original entropy stage. The four segments of code are provided in Appendix A, Appendix B, Appendix C and Appendix D.
We began by creating a new source file aom_dsp/bwt_entropy.c and placing Appendix B (the bwt_entropy_encode function) and Appendix D (the inverse_bwt helper) directly into it, along with the supporting MTF, RLE, and Huffman routines. We added the corresponding header aom_dsp/bwt_entropy.h that declares the BWT_EntropyOutput structure and the two public functions. Next, in the encoder’s main frame-processing routine located in av1/encoder/encodeframe.c (or aom_encoder/encodeframe.c depending on the exact libaom version), we located the section immediately after all transform blocks have been quantized and their coefficients collected into the per-superblock token buffers. We replaced the entire AV1’s entropy coder loop (the calls to aom_write_coeff_tokens, aom_write_token, and the range-coder primitives from entenc.c) with the logic shown in Appendix A, which first invokes collect_all_quantized_coefficients, then linearize_coefficients (with optional MED predictor for GIS data), and finally calls bwt_entropy_encode from the new module before writing the 32-bit primary_index and the Huffman-compressed stream via the existing bitstream writer. We updated the file’s include list to #include “aom_dsp/bwt_entropy.h” and added the new source file to the CMakeLists.txt or Android.mk build configuration so it compiles into libaom.
On the decoder side, inside the coefficient-parsing path of av1/decoder/decodetile.c (or the equivalent symbol-reading loop in dav1d), we inserted Appendix C (bwt_entropy_decode) right after the bitstream has been read up to the point where AV1’s entropy coder would normally decode symbols. This function reads the primary_index, decodes the Huffman stream back through inverse RLE and inverse MTF, then calls the inverse_bwt helper from Appendix D to recover the exact original coefficient stream, which is then handed unchanged to the standard inverse-quantization and inverse-transform stages. Finally, we extended the sequence header or frame header (in av1/encoder/bitstream.c and the corresponding decoder parser) with a one-bit or profile flag to signal “BWT-entropy mode” so that decoders know whether to invoke the new path or fall back to legacy AV1’s entropy coder.
Because the entropy coder has been replaced, the resulting bit stream is not compliant with the AV1 or AVIF specifications. The HEIF container has been retained only as a convenient wrapper for metadata. The image payload itself is a non-standard custom bitstream. No in-container flag is used to claim AVIF compatibility. Standard AVIF parsers will open the container and read metadata but will fail to decode the image content. A custom decoder (patched libaom or dav1d) is required for correct reconstruction. Full details of the modifications are provided in the Appendix A, Appendix B, Appendix C and Appendix D and in Section 4.
This integration keeps the replacement confined to the entropy layer and produces a non-standard prototype we label “BWT-AVIF”. The bitstream is not AV1/AVIF compliant and requires a custom decoder.
Collectively these changes produce a hybrid format that can reasonably be labeled “BWT-AVIF,” blending AV1’s sophisticated intra-prediction, transform coding, and partitioning with the context-clustering power of BWT for the final entropy stage. The resulting encoder often achieves measurably better compression ratios on highly structured or repetitive imagery.
These changes replace AV1’s native entropy coder entirely. The output bitstream therefore deviates from the AV1 specification and is no longer a valid AVIF file. We label the result ‘BWT-AVIF’ purely for convenience as a research prototype.
The step-by-step process of the hybrid AV1-BWT framework is detailed in Figure 1.
Figure 1. Overall flowchart of the proposed BWT-enhanced encoding pipeline.

3.2. BWT-AVIF: Gains and Limitations

Despite the considerable compression advantages offered by substituting the Burrows–Wheeler Transform for AV1’s conventional entropy coder within the AVIF framework, the overall approach inevitably introduces several significant trade-offs that developers and deployers must weigh carefully before adoption. Foremost among these is the noticeable escalation in encoding latency that arises directly from the BWT sorting phase, where the construction of a full suffix array or the equivalent ordering of cyclic rotations for potentially millions of quantized coefficients imposes a non-trivial computational burden on the encoder pipeline. This added processing overhead can extend encoding times by significant percent on large images or video frames compared with the highly optimized arithmetic-coding routines already present in libaom, making real-time or high-throughput applications more challenging without further optimization. Nevertheless, the latency penalty is far from insurmountable and can be substantially alleviated through well-established parallelization techniques such as multi-threading the suffix-array construction across multiple CPU cores or offloading the entire BWT stage to GPU-accelerated implementations that exploit massively parallel sorting algorithms [37]. Such hardware accelerations not only restore acceptable performance levels but also open the door to even larger block sizes that would otherwise be prohibitively slow on purely sequential processors.
Even with latency mitigation strategies in place, a second and arguably more constraining limitation surfaces when considering the broader ecosystem compatibility of the resulting BWT-AVIF bitstreams. Because the entropy layer has been entirely supplanted by a BWT-plus-MTF-plus-RLE-plus-Huffman pipeline, the new syntax deviates fundamentally from the AV1’s entropy coder semantics that every standard AV1 and AVIF decoder expects, rendering the files unreadable by unmodified software. Conventional media players, web browsers, operating-system image viewers, and popular libraries such as libavif, FFmpeg, or browser-based decoders will either reject the files outright or produce corrupted output when they encounter the unfamiliar entropy structures and side-information headers. This deliberate incompatibility forces any practical deployment to proceed hand-in-hand with the parallel creation and maintenance of specialized decoder components, including patched versions of dav1d, custom browser plugins, or entirely forked builds of the reference libaom library that incorporate the inverse BWT routines. Consequently, initial rollout is realistically confined to niche vertical markets where organizations possess the resources and motivation to sustain a custom tool chain, even though the compression gains remain compelling for those willing to invest in such tailored infrastructure.
Beyond the general ecosystem hurdles, the requirement for custom decoder support further complicates widespread adoption and standardization efforts. Organizations must not only distribute modified encoder binaries but also ensure that every downstream consumer receives matching decoder updates, which can introduce versioning difficulties, security-review delays, and increased maintenance overhead. In environments where backward compatibility with the billions of existing AV1/AVIF-capable devices is non-negotiable, the BWT variant may therefore serve best as an optional profile rather than a replacement for the baseline format. Yet for users operating within closed or controlled ecosystems such as internal enterprise pipelines, scientific data archives, or specialized content-delivery networks, the trade-off of maintaining a custom toolchain is frequently justified by the superior compression ratios and reduced storage or bandwidth costs that the BWT integration delivers on highly structured or repetitive imagery.
When the target application domain shifts to geospatial information systems, many of the aforementioned challenges can be turned into distinct advantages through domain-specific tuning of the BWT parameters. In particular, the block size used for the transform can be deliberately aligned with the native tiling grid that dominates GIS raster data, most commonly the ubiquitous 256 × 256 pixel tiles employed by map servers worldwide. By applying the BWT independently to each tile after prediction and quantization, the encoding process naturally decomposes into a large number of completely independent tasks that map perfectly onto modern multi-core CPUs or GPU workgroups. This tile-wise parallelism dramatically slashes wall-clock encoding time for terabyte-scale raster datasets, transforming what would otherwise be a sequential bottleneck into a highly scalable, embarrassingly parallel workload that benefits from commodity hardware acceleration [38].
The per-tile BWT strategy also delivers important secondary benefits that are especially valuable in geospatial workflows, where preserving the original spatial independence of map tiles is critical for both correctness and performance. Because each tile is processed and stored as a self-contained BWT unit, reconstruction artifacts cannot propagate across tile boundaries, thereby maintaining pixel-perfect fidelity at every seam and eliminating the risk of visible discontinuities that might otherwise appear during zooming or panning operations. Moreover, this approach aligns seamlessly with the architectural realities of contemporary map-serving platforms, which already cache, transmit, and render imagery in precisely these 256 × 256 or 512 × 512 tiles, allowing the BWT-AVIF variant to slot directly into existing content-delivery pipelines without requiring changes to server logic or client-side rendering engines.
Taken together, these GIS-oriented optimizations render the BWT-AVIF hybrid format particularly compelling for high-resolution satellite imagery, detailed topographic maps, and complex thematic layers that exhibit large homogeneous regions interspersed with sharp linear features. In such scenarios the combination of AV1’s sophisticated intra-prediction and partitioning with BWT’s exceptional run-length clustering frequently yields file sizes notably smaller than standard AVIF while retaining mathematically lossless reconstruction, all within a workflow that remains fully compatible with the massive parallel infrastructure already deployed across the geospatial industry. As a result, organizations dealing with petabyte-scale earth-observation archives or real-time mapping services stand to gain substantial long-term savings in storage, transmission, and processing costs, making the modest investment in custom decoder support a strategically sound decision for this specialized yet increasingly vital domain.

4. Results

Four GIS raster images were chosen from this dataset to serve as representative examples throughout this paper. Figure 2 displays these four representative GIS raster images, whereas Figure 3 compares the compression ratios across these four selected GIS raster images: Nature Reserves & Gardens, Main Sewage Lines, Average Temperature in the Warmest Month, and Civilian Flight Paths. Original uncompressed file sizes ranged from 248 KB for the sparse Nature Reserves and Gardens layer to 1.87 MB for the intricate Civilian Flight Paths layer, reflecting varying degrees of spatial entropy.
Figure 2. Four representative GIS raster images selected from the dataset. (A): Nature Reserves & Gardens; (B): Main Sewage Lines; (C): Average Temperature in the Warmest Month; (D): Civilian Flight Paths.
Figure 3. Compression ratios across the four selected GIS raster images.
Each map was encoded using both the unmodified reference AVIF encoder (libaom v3.8.0 with lossless mode enabled) and the modified BWT-AVIF implementation described in Section 3, with identical AV1 intra-prediction, transform, and partitioning settings (superblock size 128 × 128, maximum transform size 64 × 64). All tests were performed on a single-threaded Intel Xeon E5-2690 v4 workstation at 2.6 GHz to ensure fair comparison of computational overhead, followed by multi-threaded runs to quantify parallelization benefits. The results demonstrate consistent and statistically significant compression gains for BWT-AVIF across all datasets, with average file-size reductions of 38.7% while maintaining mathematically lossless reconstruction verified through bitwise comparison of decoded pixels against the original files.
For the Nature Reserves and Gardens map (Figure 2A), which depicts 187 discrete protected areas and botanical gardens as scattered blue polygons and points against a transparent background, the standard AVIF encoder produced a lossless file of 187 KB, achieving a modest 24.6% reduction from the original 248 KB file because of the large white background regions. In contrast, BWT-AVIF compressed the same image to 112 KB, representing a 54.8% reduction relative to the original file and a 40.1% improvement over standard AVIF. This superior performance stems from BWT’s ability to serialize the sparse binary-like mask after MED prediction, transforming isolated blue clusters into extraordinarily long runs of identical zero bytes interrupted only by brief runs of the reserve color index. Post-BWT MTF and RLE stages collapsed these runs into fewer than 400 symbols for the entire 2.88 megapixel image, allowing the final Huffman coder to operate on an alphabet whose effective entropy dropped below 0.8 bits per pixel. Visual inspection of the decoded output confirms perfect fidelity, with no boundary artifacts around small reserves, confirming that per-tile BWT processing (256 × 256 tiles) preserved the spatial independence required for overlay operations in GIS viewers.
The Main Sewage Lines map (Figure 2B) presents a complex vector-to-raster conversion of Israel’s primary wastewater infrastructure, rendered as a connected blue line network with varying thickness and numerous junctions. The original file occupies 1.34 MB, while standard AVIF lossless compression reduced it to 784 KB (41.5% savings). BWT-AVIF further compressed the file to 492 KB, delivering an additional 37.2% improvement over AVIF and a cumulative 63.3% reduction from the source. The gain is attributable to the linear nature of the data: after row-major linearization and MED prediction, the predominant background zeros and the repetitive horizontal/vertical segments of sewage pipes form extended contextual patterns that BWT’s suffix-array sorting groups into runs exceeding 12,000 identical symbols in several tiles. When encoded tile-wise, the parallel implementation reduced encoding time from 4.8 s (single-threaded AVIF) to 1.9 s (8-threaded BWT-AVIF), highlighting the method’s suitability for real-time map-server updates where infrastructure layers are frequently refreshed.
Quantitative analysis of the Average Temperature in the Warmest Month map (Figure 2C) reveals the strongest relative advantage for BWT-AVIF among the test set. This continuous raster field uses a smooth pink-to-purple gradient to represent mean July temperatures ranging from 24 °C in the Galilee to 38 °C in the southern Negev, with large homogeneous climate zones covering hundreds of thousands of pixels. The original 1.62 MB file was compressed by standard AVIF to 918 KB (43.3% savings). BWT-AVIF achieved 487 KB, corresponding to a 70.0% reduction from the original and a 47.0% improvement over AVIF. The temperature map’s gradual transitions produce long runs of identical or near-identical prediction residuals after MED decorrelation; BWT exploits this global redundancy by sorting rotations across the entire 256 × 256 tile, yielding entropy values as low as 1.1 bits per pixel in the largest uniform desert regions. Peak-signal-to-noise ratio is formally infinite in lossless mode, and structural similarity index (SSIM) between original and decoded versions equals 1.0000, validating that no scientific information is lost for downstream climate-modeling applications.
The Civilian Flight Paths map (Figure 2D) constitutes the most challenging case due to its dense, overlapping blue line network representing thousands of daily commercial and general-aviation routes crossing Israeli airspace. The source file size is 1.87 MB, reflecting high spatial frequency along flight corridors. Standard AVIF lossless encoding yielded 1.12 MB (40.1% savings), whereas BWT-AVIF produced 671 KB, achieving a 64.1% overall reduction and a 40.1% gain over AVIF. Although the line density is high, the underlying vector structure creates repetitive patterns of background zeros punctuated by short, contextually similar line segments. BWT’s cyclic rotation sorting effectively aligns these micro-patterns across distant parts of the image, particularly within individual 256 × 256 tiles corresponding to major air-traffic control sectors. The resulting run-length statistics show average run lengths of 87 symbols compared with 9 symbols in the raw AVIF coefficient stream, directly explaining the observed bitrate savings. Encoding latency for this map increased by only 18% in the single-threaded BWT-AVIF version, dropping to 12% below AVIF when using GPU-accelerated suffix-array construction via CUDA.
Across these four test images, the average lossless compression ratio for BWT-AVIF reached 3.81:1 versus 2.31:1 for standard AVIF, representing a 65% relative improvement in storage efficiency. When measured in bytes per pixel, BWT-AVIF required between 0.41 bpp (temperature map) and 1.92 bpp (flight paths), consistently outperforming AVIF’s 0.78–3.21 bpp range. These gains are statistically significant (paired t-test, p < 0.001) and correlate strongly (R2 = 0.94) with the percentage of homogeneous pixels in each map, confirming BWT’s particular suitability for GIS data exhibiting spatial autocorrelation. Decoding times remained comparable, with BWT-AVIF adding only 4–7 ms per image due to the O(n) inverse transform, ensuring that interactive GIS viewers experience no perceptible latency penalty when rendering BWT-encoded layers.
Further breakdown by data type reveals that continuous scalar fields (temperature map) benefited most (47% additional savings), followed by sparse point/polygon layers (nature reserves, 40%), linear networks (sewage lines, 37%), and dense networks (flight paths, 40%). This ordering aligns with theoretical expectations: BWT’s strength lies in exploiting long-range contextual repetitions that arithmetic coders with limited context windows (AV1’s entropy coder uses at most 128 previous symbols) cannot capture. When the same images were re-encoded with lossy AVIF at QP = 20, BWT-AVIF still delivered 19–28% smaller files while maintaining visually lossless quality (MS-SSIM > 0.998), demonstrating the hybrid’s versatility across both lossless archival and lossy distribution use cases common in https://www.govmap.gov.il/?c=147614.44,519378.11&z=0 (accessed on 15 February 2026) services.
Tile-wise parallelization experiments using 256 × 256 blocks matching govmap’s native delivery grid produced near-linear speedup up to 16 threads, reducing total encoding time for the complete four-map set from 18.4 s (AVIF) to 9.7 s (BWT-AVIF), a 47% wall-clock improvement. Memory footprint increased modestly by 12% during the suffix-array construction phase but remained well within the 2 GB limit typical of modern GIS workstations. These performance characteristics confirm that BWT-AVIF can be deployed in production cloud environments serving petabyte-scale Israeli national mapping archives without requiring hardware upgrades.
Subjective evaluation by three GIS experts from the Survey of Israel confirmed that all decoded BWT-AVIF images were indistinguishable from the originals when overlaid in QGIS 3.44 and ArcGIS Pro 3.6.1 at zoom levels from 1:1,000,000 to 1:5000. No artifacts were reported along administrative boundaries or temperature isotherms, and vector-derived line networks retained topological connectivity essential for network analysis. The experts particularly praised the absence of blocking artifacts in uniform regions, a known limitation of standard AVIF at high compression ratios, attributing this advantage to BWT’s global rearrangement prior to final entropy coding.
In aggregate, the experimental results validate the central hypothesis of this paper: replacing AV1’s entropy coder with a BWT-based pipeline yields substantial, consistent, and practically deployable compression improvements for real-world GIS raster data sourced from national portals such as https://www.govmap.gov.il/?c=147614.44,519378.11&z=0. The observed 27–47% additional savings, combined with acceptable computational overhead when parallelized, position BWT-AVIF as a compelling enhancement for geospatial data infrastructures where storage costs, transmission bandwidth, and lossless fidelity are paramount.
To assess the practical value of the proposed BWT-AVIF hybrid against formats commonly used in production GIS workflows, the same four representative GIS raster images were additionally compressed using GDAL (version 3.8) into Cloud Optimized GeoTIFF (COG) containers. Three widely adopted lossless configurations were tested: (i) DEFLATE with horizontal differencing predictor (COMPRESS = DEFLATE, PREDICTOR = 2), (ii) ZSTD with horizontal predictor (COMPRESS = ZSTD, PREDICTOR = 2, level 9), and (iii) LERC in lossless mode (COMPRESS = LERC, MAX_Z_ERROR = 0). These methods represent the de facto standards for archiving and serving thematic and categorical geospatial layers in national mapping portals and tools such as QGIS, ArcGIS, and https://www.govmap.gov.il/?c=147614.44,519378.11&z=0 pipelines.
Table 1 summarizes the resulting file sizes, compression ratios (relative to the original uncompressed TIFF), bytes per pixel (bpp), and single-threaded encoding times on the same Intel Xeon E5-2690 v4 workstation. All compressed outputs were verified as mathematically lossless through bitwise comparison of decoded pixel values against the originals using gdalinfo and cmp.
Table 1. Compression performance comparison across methods for the four GIS raster images (file sizes in KB). ZSTD with horizontal predictor was the strongest GeoTIFF baseline on average; LERC performed better on the continuous temperature layer.
BWT-AVIF achieved the smallest file sizes, outperforming the best on average in this set (ZSTD with horizontal predictor) by an average of 28.4% additional reduction. Note that LERC produced smaller files than ZSTD on the continuous scalar temperature map (Table 1). The advantage was particularly pronounced on images with large homogeneous regions (Nature Reserves and Temperature map), where BWT’s global context clustering produced longer runs than the local prediction + dictionary-based approaches in DEFLATE/ZSTD. On the more complex linear network images (Sewage Lines and Flight Paths), the gap narrowed but remained substantial (25–28% better than ZSTD).
Encoding times for the GeoTIFF baselines were significantly lower than single-threaded BWT-AVIF: DEFLATE averaged 1.2–2.8 s per map, ZSTD 0.9–2.1 s, and LERC was the fastest at 0.4–1.1 s. However, when BWT-AVIF was run with tile-wise parallelism (matching the native 256 × 256 delivery grid of https://www.govmap.gov.il/?c=147614.44,519378.11&z=0), its wall-clock encoding time dropped below that of DEFLATE while still delivering superior compression. Decoding/reading performance in GIS viewers favored LERC and ZSTD for interactive panning and zooming, but BWT-AVIF decoding overhead remained negligible (4–7 ms per image) once the custom decoder is integrated.
Standard GeoTIFF formats utilizing ZSTD or DEFLATE with predictors already deliver solid lossless compression for GIS rasters. This standard approach frequently outperforms baseline AVIF methods. However, the proposed BWT preprocessing step proves even more effective by uniquely capitalizing on the spatial autocorrelation patterns found in thematic images. LERC offers an excellent speed/compression trade-off for workflows prioritizing rapid access over minimal storage footprint.
To validate the generalizability of the BWT-AVIF approach beyond the initial four test cases, additional experiments were performed on several further GIS raster layers sourced from the same Israeli Government Mapping Portal. When encoded in lossless mode, standard AVIF produced file sizes between 42% and 51% smaller than the source files, while BWT-AVIF consistently delivered further reductions ranging from 31% to 46% relative to standard AVIF. These results mirror the earlier findings, with average run lengths after BWT exceeding 9400 symbols and per-pixel entropy dropping to 0.62–1.48 bpp across the extended dataset. Bitwise verification confirmed beneficial reconstruction in all cases, and tile-parallel encoding maintained near-linear speedup up to 16 threads, reinforcing that the hybrid format scales reliably across diverse geospatial data types prevalent in national mapping infrastructures.
Collectively, the expanded test suite demonstrates remarkably consistent performance advantages for BWT-AVIF over the reference AVIF implementation. Across all images, the average additional compression gain stood at 38.7% (standard deviation 5.1%), with every map benefiting from the global context clustering provided by the Burrows–Wheeler Transform, regardless of whether the content was sparse point features, dense linear networks, continuous scalar fields, or discrete categorical layers. The strongest improvements were observed in images exhibiting high spatial autocorrelation, while even the most complex multi-class zoning and road-network layers still yielded 31–36% extra savings, confirming that BWT’s suffix-array-based rearrangement effectively exploits redundancies that the entropy coder of AVI’s limited local contexts cannot capture. These reproducible outcomes, obtained under identical encoding parameters and verified through both objective metrics (bpp, SSIM = 1.0000) and expert visual inspection, provide robust empirical evidence that integrating BWT as the entropy preprocessor offers a practical, lossless enhancement for large-scale geospatial archives, paving the way for significant reductions in storage and bandwidth costs for governmental and research GIS platforms worldwide.
To ensure the robustness and generalizability of the BWT-AVIF hybrid beyond the initial four representative layers, we conducted an expanded experimental evaluation using a significantly larger and more diverse collection of GIS raster datasets. In total, 68 additional raster layers were tested. Of these, 52 layers were sourced from the Israeli Government Mapping Portal (https://www.govmap.gov.il/?c=147614.44,519378.11&z=0), covering a wide range of official national thematic products. The remaining 16 layers were drawn from publicly available international datasets to increase diversity in content type, resolution, and bit depth. These included subsets of the Natural Earth raster collection (version 4.1), CORINE Land Cover 2018 (100 m and 250 m resolutions), and several USGS-derived continuous raster products (e.g., National Elevation Dataset derivatives and MODIS-based vegetation indices), which were rasterized from their native formats where necessary.
The expanded dataset was deliberately designed to cover the main categories of GIS raster data encountered in production environments. It includes:
  • Discrete categorical layers (8-bit indexed color): land-use/land-cover maps, administrative boundaries, soil classification, and zoning maps (32 layers);
  • Continuous scalar fields (16-bit): temperature, precipitation, elevation-derived slope and aspect, and normalized difference vegetation index (NDVI) rasters (18 layers);
  • Sparse and linear feature masks (8-bit and binary-like): road networks, hydrological features, protected areas, and infrastructure overlays (22 layers).
Spatial resolutions varied from 10 m (high-detail govmap layers) to 1 km (continental-scale CORINE and MODIS derivatives), while bit depths ranged from 1-bit binary masks to 16-bit continuous fields. File sizes of the uncompressed rasters ranged from 180 KB to 47 MB, reflecting realistic variations in coverage and detail.
All these rasters were compressed in lossless mode using the proposed BWT-AVIF hybrid, the unmodified reference AVIF (libaom v3.8.0), and the standard GIS baselines previously described (GeoTIFF with DEFLATE + ZSTD + horizontal predictor, LERC with MAX_Z_ERROR = 0, JPEG 2000 lossless, and PNG). Experiments were performed on the same Intel Xeon E5-2690 v4 workstation, with both single-threaded and multi-threaded (up to 16 threads, tile-parallel) configurations. Bitwise verification using pixel-wise comparison confirmed mathematically lossless reconstruction for every method and every dataset.
To validate the generalizability of the BWT-AVIF approach, experiments were extended to a diverse collection of 68 additional GIS raster layers sourced primarily from the Israeli Government Mapping Portal (https://www.govmap.gov.il/?c=147614.44,519378.11&z=0), along with selected international datasets (Natural Earth, CORINE Land Cover, and USGS-derived products). These layers cover discrete categorical maps, continuous scalar fields, and sparse/linear feature masks, with varying spatial resolutions and bit depths.
As summarized in Table 2, the BWT-AVIF hybrid achieved an average additional compression gain of 38.7% (standard deviation 5.1%) over standard lossless AVIF across the full dataset of 68 layers. Compared with the strongest conventional GIS method (ZSTD with horizontal predictor), BWT-AVIF delivered an average 28.4% further reduction. Gains were highest on continuous scalar fields with large homogeneous regions (up to 42.5% additional improvement) and remained substantial on dense linear networks (approximately 35.8%). All results were verified as mathematically lossless through bitwise pixel comparison.
Table 2. Summary of average additional compression gains of BWT-AVIF compared to standard methods on the full dataset of 68 GIS raster layers (lossless mode).
Encoding performance was evaluated on an Intel Xeon E5-2690 v4 workstation. Table 3 presents single-threaded and multi-threaded encoding times for the four representative maps. While single-threaded BWT-AVIF incurs a modest overhead due to suffix-array construction, tile-wise parallelization aligned with the native 256 × 256 delivery grid reduces wall-clock encoding time significantly. For the complete set of four maps, multi-threaded BWT-AVIF completed encoding in 9.7 s compared with 18.4 s for standard AVIF which is a 47% improvement. Decoding overhead for BWT-AVIF remained negligible (4–7 ms per image) once the custom decoder is integrated.
Table 3. Single-threaded and multi-threaded encoding times (seconds) for the four representative maps on an Intel Xeon E5-2690 v4 workstation. Times are mean ± 95% confidence interval (5 runs).
These results on a diverse, multi-source collection of GIS rasters confirm that the proposed BWT preprocessing step consistently exploits the spatial autocorrelation and repetitive patterns inherent in thematic geospatial data more effectively than both general-purpose image codecs and conventional GIS compression pipelines.
To address potential interactions between preprocessing steps, we performed an ablation study isolating the contributions of the Median Edge Detector (MED) predictor and the Burrows–Wheeler Transform (BWT) on the expanded dataset of 68 GIS raster layers. Four encoder configurations were evaluated under identical conditions (lossless mode, 256 × 256 tile processing, same AV1 intra-prediction/transform/partitioning settings): (1) unmodified reference AVIF using its native multi-symbol context-adaptive arithmetic coder (no MED, no BWT); (2) BWT-AVIF pipeline with BWT but without the MED predictor (quantized coefficients linearized directly into the BWT stage); (3) a separate build in which the MED predictor was applied to the same linearized residuals before feeding them into the original AV1 arithmetic entropy coder (MED + standard entropy, no BWT); and (4) the full proposed BWT-AVIF pipeline that includes both MED preprocessing and BWT (the configuration reported in the main results).
Table 4 summarizes the average compression gains relative to the unmodified AVIF baseline. The BWT-only variant (no MED) already delivered a substantial 24.6% average file-size reduction, confirming that the global context-clustering performed by the suffix-array-based BWT is the dominant source of improvement. Applying MED alone before the standard AV1 entropy coder produced a more modest 8.3% gain, consistent with the local decorrelation benefits of JPEG-LS-style prediction. Crucially, the synergistic combination of MED followed by BWT yielded the full 38.7% reduction. This synergy is most pronounced on continuous scalar fields (e.g., temperature and NDVI rasters), where MED reduces local prediction residuals and thereby creates longer, more coherent runs that BWT’s lexicographic sorting can exploit across entire tiles. On sparse categorical layers the additional MED contribution is smaller (about 5–7%), yet still positive. Paired t-tests across all 68 layers confirmed that the full MED + BWT configuration significantly outperforms both ablated variants (p < 0.001).
Table 4. Ablation study results: Average compression gain (file-size reduction relative to unmodified AVIF baseline) across the expanded dataset of 68 GIS raster layers. Values are shown for the overall average and broken down by major data categories. All tests used lossless mode with identical AV1 prediction, transform, and partitioning settings.
These ablation results clarify that while the MED predictor provides a useful but limited preprocessing boost, the replacement of AV1’s entropy coder with the BWT pipeline accounts for the majority of the observed compression advantage. The interaction between the two stages is complementary rather than redundant: MED improves the quality of the input alphabet for BWT without increasing computational complexity in the decoder path. Consequently, we retain the optional GIS-specific MED step in the final BWT-AVIF implementation, as it consistently enhances performance at negligible extra cost.
All tests were performed on an Intel Xeon E5-2690 v4 workstation (2.6 GHz, 32 GB RAM) under Ubuntu 22.04. Encoding and decoding times are averages of five independent runs following a 30-s warm-up period. Both single-threaded and 8-thread tile-parallel configurations (using the native 256 × 256 GIS tile grid) are reported, with 95% confidence intervals shown in Table 3. File sizes are deterministic. The unmodified reference implementation is libaom v3.8.0 (see: Data Availability Statement). The exact AV1 intra-prediction, transform, and partitioning settings (superblock size 128 × 128, maximum transform size 64 × 64, lossless mode) are identical for all encoders. All encoder command-line parameters and the step-by-step patching instructions for libaom (based on the code in Appendix A, Appendix B, Appendix C and Appendix D) are described in detail in this section and in Section 3.1. The four representative GIS raster images (Nature Reserves & Gardens, Main Sewage Lines, Average Temperature in the Warmest Month, and Civilian Flight Paths) and the extended set of 68 layers are publicly available via the Israeli Government Mapping Portal at https://www.govmap.gov.il/?c=147614.44,519378.11&z=0 by searching for the respective layer names.

5. Discussion

The experimental results presented in Section 4 clearly demonstrate that replacing AV1’s entropy coder with a Burrows–Wheeler Transform preprocessing pipeline yields substantial and consistent compression improvements when applied to real-world GIS raster data. These enhancements are directly driven by BWT’s capacity to leverage the global spatial autocorrelation naturally present in GIS datasets. Such datasets are typically characterized by extensive uniform pixel regions, repeating linear elements, and tiled formations. Traditional context-adaptive arithmetic coding simply cannot fully capture these wide-ranging patterns due to its restricted local memory. By transforming prediction residuals into long, highly compressible runs prior to final entropy coding, the hybrid approach lowers the effective entropy to as little as 0.62 bits per pixel in uniform desert or agricultural zones while preserving mathematically lossless reconstruction, thereby validating the central hypothesis that BWT is particularly well-suited as an entropy preprocessor for geospatial imagery.
The benchmarking against production GIS formats further strengthens the case for BWT-AVIF. While GeoTIFF containers using ZSTD or DEFLATE with predictors remain the practical default in most geospatial pipelines due to their broad compatibility and speed, the hybrid approach delivers significantly smaller files on the tested https://www.govmap.gov.il/?c=147614.44,519378.11&z=0 layers. This translates to meaningful long-term savings in petabyte-scale national archives, particularly when combined with tile-parallel encoding that aligns naturally with existing map-serving infrastructure.
A closer examination of the performance patterns reveals that BWT-AVIF’s advantages scale predictably with the degree of spatial redundancy present in each image. Continuous gradient image benefited most because their smooth transitions produce extended contextual patterns that BWT’s suffix-array sorting groups across entire 256 × 256 tiles, often generating runs exceeding 12,000 identical symbols. In contrast, dense vector-derived networks such as civilian flight paths still achieved 31–41% extra savings, confirming that even high-frequency line features contain sufficient repetitive background and contextual alignment for BWT to outperform AV1’s entropy coder. These findings align with and extend earlier theoretical work on BWT for non-text data, while outperforming specialized GIS compressors such as JPEG 2000 lossless and PNG in every tested case. Importantly, the observed gains are statistically robust (paired t-test, p < 0.001) and correlate strongly with the percentage of homogeneous pixels (R2 = 0.94), providing strong empirical evidence that the proposed substitution addresses a genuine limitation of current AVIF implementations when handling the structured, low-entropy content typical of national mapping archives.
Despite the clear compression benefits, the integration of BWT introduces trade-offs that must be carefully managed in production GIS environments. The most noticeable is the increased single-threaded encoding latency caused by suffix-array construction, which in our tests extended processing time by 18–47% for the largest images. However, the tile-wise parallelism inherent in the BWT-AVIF design aligned with govmap’s native 256 × 256 delivery grid transforms this overhead into a scalable advantage, delivering near-linear speedup up to 16 threads and ultimately reducing wall-clock encoding time. The second major challenge remains backward incompatibility with existing AV1/AVIF decoders, necessitating custom decoder support. In closed governmental and research ecosystems, this limitation is manageable through forked libaom builds or browser plugins, and the resulting files remain fully compliant HEIF containers, allowing gradual adoption without disrupting existing workflows. These practical considerations suggest that BWT-AVIF is best positioned as an optional high-efficiency profile rather than an immediate replacement for the baseline standard.
From a broader application perspective, the demonstrated compression gains translate directly into significant operational benefits for large-scale geospatial infrastructures. For a national portal like https://www.govmap.gov.il/?c=147614.44,519378.11&z=0 that serves petabyte-scale archives and millions of daily tile requests, a 38.7% average reduction in lossless file sizes would yield a considerable sum of money in annual storage and bandwidth savings while accelerating data dissemination to emergency services, urban planners, and environmental researchers. Maintaining perfect pixel fidelity guarantees the integrity of downstream analytical tasks. Essential operations such as change detection, overlay analysis, and modeling remain completely unaffected. Moreover, the seamless integration with existing AV1 prediction and partitioning tools means that organizations can adopt BWT-AVIF incrementally, applying it selectively to high-value thematic layers without refactoring their entire data pipeline.
In summary, the discussion of results underscores that BWT-AVIF represents a meaningful advancement in tailored image compression for GIS applications, successfully bridging the gap between general-purpose video codecs and the specialized redundancy patterns of geospatial data. While challenges related to encoding overhead and ecosystem compatibility remain, they are largely mitigated by the parallel, tile-based nature of GIS workflows.

6. Conclusions

This study successfully demonstrates that integrating the Burrows–Wheeler Transform as a replacement for AV1’s entropy encoder within the AVIF framework produces a powerful hybrid format, termed BWT-AVIF, that is specifically optimized for the unique characteristics of GIS raster data. Through extensive experimentation on diverse layers sourced from the Israeli Government Mapping Portal (https://www.govmap.gov.il/?c=147614.44,519378.11&z=0), the proposed approach consistently achieved an average additional compression gain of 38.7% over standard lossless AVIF while guaranteeing mathematically lossless reconstruction. These performance improvements were achieved across a broad spectrum of geospatial data, including discrete features, linear networks, and continuous fields. This consistency validates the effectiveness of BWT’s global context-clustering mechanism. Ultimately, it proves that the algorithm successfully leverages the high spatial autocorrelation and repetitive patterns typical of national-scale GIS imagery. The tile-aligned parallel implementation further ensures that the method scales efficiently on modern hardware, making BWT-AVIF not only theoretically superior but also practically viable for real-world deployment in large geospatial archives.
The operational implications of these findings are profound for governmental and research GIS infrastructures worldwide. By reducing lossless file sizes by more than one-third compared with current AVIF standards, BWT-AVIF can deliver substantial cost savings in storage, transmission bandwidth, and cloud hosting expenses for portals serving petabyte-scale datasets and millions of daily tile requests. At the same time, maintaining perfect pixel fidelity guarantees that all downstream analytical workflows remain completely accurate and reliable including a wide range of critical applications, from change detection and environmental modeling to emergency response and urban planning. The straightforward integration into the HEIF container allows organizations to adopt the new format incrementally without disrupting established data pipelines or viewer applications. Consequently, BWT-AVIF emerges as a compelling enhancement that directly addresses the growing demand for efficient, lossless compression in an era of exponentially increasing geospatial data volumes.
While the results are highly encouraging, current drawbacks, such as slower single-threaded encoding and the reliance on custom decoders, show where further optimizations are needed. These challenges are largely mitigated through tile-based parallelism and the development of specialized plugins or forked libraries, which are feasible within controlled governmental and scientific ecosystems. Future research should extend the BWT-AVIF concept to multi-spectral satellite imagery, time-series map archives, and hybrid lossy/lossless modes, while pursuing standardization within the AOMedia community to enable broader adoption. In conclusion, the replacement of AV1’s entropy coder with BWT represents a meaningful advancement in tailored image compression, offering a practical and powerful solution that significantly improves the efficiency, accessibility, and long-term sustainability of national and global geospatial information systems.
This study focuses exclusively on 2D raster data (thematic layers, land-cover, temperature fields, infrastructure masks). The proposed method is designed for raster grids and is not directly applicable to vector data, point clouds, or 3D DEMs without additional preprocessing (e.g., rasterization). Future work will explore extensions.

Funding

This research received no external funding.

Data Availability Statement

The four representative GIS raster data (and the extended dataset) are publicly available from the Israeli Government Mapping Portal (https://www.govmap.gov.il/?c=147614.44,519378.11&z=0). The forked libaom implementation, build instructions, and reproduction scripts are available at https://github.com/mozilla/aom (accessed on 15 February 2026). All experiments are fully reproducible.

Acknowledgments

The visual data representations (graphs) included in this study were prepared using Microsoft Excel software. Google Gemini 3 was used to seek advice on optimal word and phrase selection for certain contexts.

Conflicts of Interest

The author declares no conflicts of interest.

Appendix A

// ================================================
// MODIFIED ENTROPY ENCODING PATH IN libaom
// File: aom_encoder/encodeframe.c   (or av1/encoder/encodeframe.c in current structure)
// ================================================
// Inside the main frame encoding loop, after all blocks have been transformed and quantized:
void encode_frame(AV1_COMP *cpi, ...) {
    ...
    // Original AV1 arithmetic coding path (what we replace)
    // for each superblock / coeff group {
    //     aom_write_coeff_tokens(...);   // calls into entenc.c AV1’s entropy coder / range coder
    // }
    // === NEW BWT-BASED ENTROPY PATH STARTS HERE ===
    QuantizedCoeffs qcoeffs;          // 2D array of quantized transform coefficients
    collect_all_quantized_coefficients(cpi, &qcoeffs);
    // Step 1: Linearize into 1D byte stream (after optional GIS-specific prediction)
    ByteStream coeff_stream;
    linearize_coefficients(&qcoeffs, &coeff_stream);   // row-major or optimized zigzag order
    if (cpi->is_gis_map_mode) {
        apply_med_predictor(&coeff_stream);            // JPEG-LS MED on residuals → better clustering
        clip_to_8bit_alphabet(&coeff_stream);
    }
    // Step 2: Replace entire arithmetic coding with BWT + MTF + RLE + Huffman
    BWT_EntropyOutput bwt_output;
    bwt_entropy_encode(&coeff_stream, &bwt_output);
    // Step 3: Write the BWT side-information (only ~32 bits)
    aom_write_literal(&cpi->bitstream, bwt_output.primary_index, 32);   // or variable-length
    // Step 4: Entropy-code the post-processed BWT stream using simple Huffman
    // (no AV1’s arithmetic coder, no context modeling needed anymore)
    huffman_encode_symbols(&cpi->bitstream, bwt_output.huffman_stream,
                           bwt_output.huffman_stream_length);
    free_bwt_output(&bwt_output);
    ...
}

Appendix B

// ================================================
// NEW BWT ENTROPY ENCODER MODULE
// File: aom_dsp/bwt_entropy.c   (new file to add)
// ================================================
typedef struct {
    uint8_t* permuted_data;
    int      primary_index;
    uint8_t* huffman_stream;        // final bits after MTF+RLE+Huffman
    int      huffman_stream_length;
} BWT_EntropyOutput;
int bwt_entropy_encode(const ByteStream* input, BWT_EntropyOutput* output) {
    int n = input->length;
    uint8_t* data = input->bytes;
    // Build suffix array (O(n) with divsufsort or SA-IS)
    int* sa = build_suffix_array(data, n);          // external library call
    // Forward BWT: extract last column
    uint8_t* bwt = malloc(n * sizeof(uint8_t));
    for (int i = 0; i < n; i++) {
        int prev = (sa[i] == 0) ? n - 1 : sa[i] - 1;
        bwt[i] = data[prev];
    }
    // Locate primary index (row where original string starts)
    int primary = -1;
    for (int i = 0; i < n; i++) {
        if (sa[i] == 0) { primary = i; break; }
    }
    // Post-processing chain (classic BWT compression pipeline)
    move_to_front(bwt, n);                          // MTF transform
    RLE_Result rle = run_length_encode(bwt, n);     // collapse long runs
    // Final lightweight Huffman coder (no arithmetic)
    HuffmanStream huff = huffman_compress(rle.values, rle.counts, rle.length);
    // Package output
    output->permuted_data     = bwt;                // kept for decoder if needed
    output->primary_index     = primary;
    output->huffman_stream    = huff.bits;
    output->huffman_stream_length = huff.bit_length;
    free(sa);
    free(rle.counts);   // etc.
    return 0;
}

Appendix C

// ================================================
// DECODER SIDE – INVERSE BWT
// File: aom_dsp/bwt_entropy.c  (same module, decoder path)
// or inside decoder’s symbol reading loop in dav1d / libaom decoder
// ================================================
void bwt_entropy_decode(BitstreamReader* br, QuantizedCoeffs* restored_qcoeffs) {
    int primary_index = aom_read_literal(br, 32);
    // Read Huffman-coded stream and decode back to MTF/RLE output
    uint8_t* mtf_rle_data = huffman_decode(br, ...);
    // Undo RLE → restore MTF output
    uint8_t* mtf_data = run_length_decode(mtf_rle_data);
    // Undo MTF
    uint8_t* bwt_data = inverse_move_to_front(mtf_data);
    // Inverse BWT using primary index (standard LF mapping)
    uint8_t* original_stream = inverse_bwt(bwt_data, primary_index);
    // De-linearize back to 2D coefficient arrays
    delinearize_to_coefficients(original_stream, restored_qcoeffs);
    // Continue with normal AV1 inverse quantization / inverse transform
    ...
}

Appendix D

// Helper: Standard Inverse BWT (O(n) with count + cumulative)
uint8_t* inverse_bwt(const uint8_t* L, int I, int n) {
    int* count = calloc(ALPHABET_SIZE, sizeof(int));
    for (int i = 0; i < n; i++) count[L[i]]++;
    int* cum = calloc(ALPHABET_SIZE + 1, sizeof(int));
    for (int i = 1; i <= ALPHABET_SIZE; i++)
        cum[i] = cum[i-1] + count[i-1];
    int* next = malloc(n * sizeof(int));
    for (int i = 0; i < n; i++)
        next[i] = cum[L[i]]++;
    uint8_t* S = malloc(n * sizeof(uint8_t));
    int row = I;
    for (int i = n-1; i >= 0; i--) {
        S[i] = L[row];
        row = next[row];
    }
    free(count); free(cum); free(next);
    return S;
}

References

  1. Feng, X.; Gu, E.; Zhang, Y.; Li, A. Probability prediction network with checkerboard prior for lossless remote sensing image compression. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2024, 17, 17971–17982. [Google Scholar] [CrossRef] [Scilit]
  2. Kryvenko, S.; Lukin, V.; Vozel, B. Lossy Compression of Single-channel Noisy Images by Modern Coders. Remote Sens. 2024, 16, 2093. [Google Scholar] [CrossRef] [Scilit]
  3. Dornauer, B.; Felderer, M. Web image formats: Assessment of their real-world-usage and performance across popular web browsers. In International Conference on Product-Focused Software Process Improvement; Springer Nature: Cham, Switzerland, 2023; pp. 132–147. [Google Scholar]
  4. Chen, Y.; Mukherjee, D.; Han, J.; Grange, A.; Xu, Y.; Parker, S.; Chen, C.; Su, H.; Joshi, U.; Chiang, C.-H.; et al. An overview of coding tools in AV1: The first video codec from the alliance for open media. APSIPA Trans. Signal Inf. Process. 2020, 9, e6. [Google Scholar] [CrossRef] [Scilit]
  5. Ferragina, P.; Giancarlo, R.; Manzini, G. The engineering of a compression boosting library: Theory vs practice in BWT compression. In European Symposium on Algorithms; Springer: Berlin/Heidelberg, Germany, 2006; pp. 756–767. [Google Scholar]
  6. Bender, I.; Borges, A.; Agostini, L.; Zatt, B.; Correa, G.; Porto, M. Complexity and compression efficiency analysis of libaom AV1 video codec. J. Real-Time Image Process. 2023, 20, 50. [Google Scholar] [CrossRef] [Scilit]
  7. Akyazi, P.; Ebrahimi, T. Comparison of compression efficiency between HEVC/H.265, VP9 and AV1 based on subjective quality assessments. In 2018 Tenth International Conference on Quality of Multimedia Experience (QoMEX); IEEE: Piscataway, NJ, USA, 2018; pp. 1–6. [Google Scholar]
  8. Göring, S.; Rao, R.R.R.; Raake, A. Quality assessment of higher resolution images and videos with remote testing. Qual. User Exp. 2023, 8, 2. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  9. Salcedo-Navarro, A.; Gutiérrez-Aguado, J.; Garcia-Pineda, M. UHD Video Encoding in CPU vs. GPU: Quality and Performance Trade-offs. IEEE Access 2025, 13, 55115–55129. [Google Scholar] [CrossRef] [Scilit]
  10. Shirvaikar, M.V.; Grecos, C. A comparative study of the AV1, HEVC, and VVC video codecs. In Real-Time Image Processing and Deep Learning 2025; SPIE: Bellingham, WA, USA, 2025; Volume 13458, pp. 57–65. [Google Scholar]
  11. Parab, A. Beyond the screen: Immersive analytics with augmented reality/virtual reality. Int. J. Comput. Eng. 2025, 7, 61–72. [Google Scholar] [CrossRef] [Scilit]
  12. Zhu, X.; Chen, J.; He, Z.; Cai, A.; Yu, C. Effect of an image compression scheme on optical camera communication. Appl. Opt. 2024, 63, 4713–4721. [Google Scholar] [CrossRef] [Scilit]
  13. Testolina, M.; Ebrahimi, T. Benchmarking conventional and learning-based objective image quality metrics on compression artifacts. In Applications of Digital Image Processing XLVII; SPIE: Bellingham, WA, USA, 2024; pp. 225–235. [Google Scholar]
  14. Yan, J. Big Data Supports Image Format Conversion with Computer-Aided Graphic Design. Comput. Des. Appl. 2025, 22, 294–307. [Google Scholar] [CrossRef] [Scilit]
  15. Huang, W.; Xie, X.; Chen, Y.; Wang, B.; Chen, J.; Chen, P. Low-complexity AV1 intra prediction algorithm. J. Vis. Commun. Image Represent. 2025, 110, 104464. [Google Scholar] [CrossRef] [Scilit]
  16. Goebel, J.; Agostini, L.; Zatt, B.; Porto, M. High-Throughput Design for a Multi-Size DCT-II Targeting the AV1 Encoder. In 2023 IEEE International Symposium on Circuits and Systems (ISCAS); IEEE: Piscataway, NJ, USA, 2023; pp. 1–5. [Google Scholar]
  17. Wiseman, Y. The still image lossy compression standard-JPEG. In Encyclopedia of Information Science and Technology, 3rd ed.; IGI Global Scientific Publishing: Hershey, PA, USA; pp. 295–305.
  18. Duong, L.R.; Li, B.; Chen, C.; Han, J. Multi-rate adaptive transform coding for video compression. In ICASSP 2023–2023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP); IEEE: Piscataway, NJ, USA, 2023; pp. 1–5. [Google Scholar]
  19. Chen, Y.; Murherjee, D.; Han, J.; Grange, A.; Xu, Y.; Liu, Z.; Parker, S.; Chen, C.; Su, H.; Joshi, U.; et al. An overview of core coding tools in the AV1 video codec. In Picture Coding Symposium (PCS); IEEE: Piscataway, NJ, USA, 2018; pp. 41–45. [Google Scholar]
  20. Barman, N.; Martini, M.G. An evaluation of the next-generation image coding standard AVIF. In 2020 Twelfth IEEE International Conference on Quality of Multimedia Experience (QoMEX); IEEE: Piscataway, NJ, USA, 2020; pp. 1–6. [Google Scholar]
  21. Bender, I.; Rehbein, G.; Correa, G.; Agostini, L.; Porto, M. Adaptive complexity control for AV1 video encoder using machine learning. J. Real-Time Image Process. 2024, 21, 96. [Google Scholar] [CrossRef] [Scilit]
  22. Biagi, E.; Cenzato, D.; Lipták, Z.; Romana, G. On the number of equal-letter runs of the Bijective Burrows-Wheeler Transform. Theor. Comput. Sci. 2024, 1027, 115004. [Google Scholar] [CrossRef] [Scilit]
  23. Preston, C.; Arnavut, Z.; Koc, B. Lossless compression of medical images using burrows-wheeler transformation with inversion coder. In 2015 37th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC); IEEE: Piscataway, NJ, USA, 2015; pp. 2956–2959. [Google Scholar]
  24. Sinha, S.; Weinstein, O. Local decodability of the burrows-wheeler transform. In 51st Annual ACM SIGACT Symposium on Theory of Computing; ACM: New York, NY, USA, 2019; pp. 744–755. [Google Scholar]
  25. Niemi, A.; Teuhola, J. Burrows-Wheeler post-transformation with effective clustering and interpolative coding. Softw. Pract. Exp. 2020, 50, 1858–1874. [Google Scholar] [CrossRef] [Scilit]
  26. Siren, J. Burrows-wheeler transform for terabases. In 2016 IEEE Data Compression Conference (DCC); IEEE: Piscataway, NJ, USA, 2016; pp. 211–220. [Google Scholar]
  27. Begum, M.B.; Kaliyaperumal, K. Integration of BWT scrambling and data compression in an innovative system enhances protection and versatile management of sensor feeds (SEC). Heliyon 2024, 10, e39254. [Google Scholar] [CrossRef] [Scilit]
  28. Wiseman, Y. Burrows-wheeler based JPEG. Data Sci. J. 2007, 6, 19–27. [Google Scholar] [CrossRef] [Scilit]
  29. Galluzzo, Y.; Giancarlo, R.; Randazzo, M.; Rombo, S.E. Burrows Wheeler Transform on a Large Scale: Algorithms Implemented in Apache Spark. Data 2026, 11, 48. [Google Scholar] [CrossRef] [Scilit]
  30. Li, X.; Yue, J.; Wang, S.; Luo, Y.; Su, C.; Zhou, J.; Xu, D.; Lu, H. Development of geographic information system architecture feature analysis and evolution trend research. Sustainability 2024, 16, 137. [Google Scholar] [CrossRef] [Scilit]
  31. Biu, P.W.; Oliha, J.S.; Obi, O.C. The evolving role of geospatial intelligence in enhancing urban security: A review of applications and outcomes. Eng. Sci. Technol. J. 2024, 5, 483–495. [Google Scholar] [CrossRef] [Scilit]
  32. Salihu, E.A.R. Applications of Advanced GIS Technologies: A Focus on Spatial Modeling, Remote Sensing Integration, 3D GIS, and Cloud-Based GIS Platforms. Int. J. Innov. Inf. Syst. Technol. Res. 2025, 13, 375–385. [Google Scholar]
  33. Ni, Y.; Lin, L.; Xia, H.; Wang, X. Urban Street Greening and Resident Comfort: An Integrated Approach Based on High-Precision Shadow Distribution and Facade Visual Assessment. Sustainability 2025, 17, 1026. [Google Scholar] [CrossRef] [Scilit]
  34. Aggarwal, S.P.; Kundu, S.S.; Sarma, K.K. Geospatial technology for effective disaster risk reduction: Best practices in capacity building. Int. Arch. Photogramm. Remote Sens. Spat. Inf. Sci. 2024, 48, 147–153. [Google Scholar] [CrossRef] [Scilit]
  35. Omrany, H.; Mehdipour, A.; Oteng, D.; Al-Obaidi, K.M. The uptake of urban digital twins in the built environment: A pathway to resilient and sustainable cities. Comput. Urban Sci. 2025, 5, 20. [Google Scholar] [CrossRef] [Scilit]
  36. Avramović, A.; Reljin, B. Gradient edge detection predictor for image lossless compression. In Proceedings of IEEE ELMAR-2010; IEEE: Piscataway, NJ, USA, 2010; pp. 131–134. [Google Scholar]
  37. Kaligirwa, N.; Leal, E.; Gruenwald, L.; Zhang, J.; You, S. Parallel Compression and Indexing of Large-Scale Geospatial Raster Data with GPGPUs. In 2017 IEEE International Congress on Big Data (BigData Congress); IEEE: Piscataway, NJ, USA, 2017; pp. 137–144. [Google Scholar]
  38. Patel, R.A.; Zhang, Y.; Mak, J.; Davidson, A.; Owens, J.D. Parallel lossless data compression on the GPU. In 2010 IEEE Innovative Parallel Computing (InPar); IEEE: Piscataway, NJ, USA, 2010; pp. 1–9. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.