Skip to content
/ icbc Public
forked from castano/icbc

A High Quality SIMD BC1 Encoder

License

Notifications You must be signed in to change notification settings

clayne/icbc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ICBC - A High Quality SIMD BC1 Encoder

This is the BC1 texture block encoder used by NVTT, extracted as an easy to use single header file library.

Since its initial release I've improved quality and performance. I've added support for multiple quality levels that allow reducing compression time at the cost of some quality, and I've vectorized some of the algorithms to take advantage of the vector units in modern CPUs.

vector-scaling

This work was inspired by Rich Geldreich's RGBCX, which is a close competitor and most likely a better choice if you are looking for a well supported and actively developed library.

Results

The following chart shows the average PSNR of different BC1 compressors and different configurations on the Kodim and Waterloo image sets plotted against the time it took to encode them:

kodim-chart

  • ICBC is version 1.03 with three_color_mode and three_color_black set to true.
  • RGBCx is version 1.12 levels 0 to 18 with allow_3color and use_transparent_texels_for_black enabled.
  • stb is stb_dxt version 1.09 with various improvements that Rich and I have proposed.
  • squish is version 1.15
  • CMP is AMD's CMP_Core V4.0.4855

References

ICBC implements several algorithms:

About

A High Quality SIMD BC1 Encoder

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 89.4%
  • Objective-C 10.4%
  • Batchfile 0.2%