-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdoc.go
More file actions
20 lines (16 loc) · 736 Bytes
/
doc.go
File metadata and controls
20 lines (16 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// SPDX-License-Identifier: MIT
// Copyright (c) 2026 WoozyMasta
// Source: github.com/woozymasta/bcn
/*
Package bcn provides BCn/DXT block compression encode/decode and container I/O.
The package focuses on practical texture workflows:
- Encode/decode BC1/DXT1, BC2/DXT3, BC3/DXT5, BC4, BC5
- Read/write DDS and KTX v1 containers
- Optional mipmap generation with sRGB-aware downscaling
The core encode/decode APIs operate on NRGBA byte layout (R,G,B,A per pixel).
For best results, ensure inputs are in the expected color space (typically sRGB)
and pick an appropriate QualityLevel in EncodeOptions.
DDS BGRA pixels are converted to RGBA on decode. Uncompressed DDS supports
RGBA and BGRA input when writing.
*/
package bcn