new experimental video codec, BTIC1C...
Published September 19, 2013
[font='-moz-fixed']
Reused text...
[/font]
[font='-moz-fixed']
Once again, it is a codec intended for quickly decoding into DXT for use in animated textures and video-mapped textures.
[/font]
[font='-moz-fixed']
It is a direct continuation of my effort to implement Apple Video, but with a slight rename.
[/font]
[font='-moz-fixed']
I ended up calling it BTIC1C as it is (despite being based on Apple Video), still within the same general "family" as my other BTIC1 formats, as otherwise I probably would have needed to call it "BTIC3" or something.
[/font]
[font='-moz-fixed']
There may also be a Deflate-compressed variant, which will increase compression at some cost in terms of decoding performance.
[/font]
ADD:
Test of using codec for video capture...
[font='-moz-fixed']
----
[/font]
[font='-moz-fixed']
basically, created a newer video codec experiment I am calling BTIC1C:
http://cr88192.dyndns.org:8080/wiki/index.php/BTIC1C
it is basically a modified Apple Video / RPZA with a few more features glued on.
the idea is based on the observation that the RPZA and DXT block structures are sufficiently similar that it is possible to convert between them at reasonably high speeds (mostly by feeding bytes through tables and similar).
this is basically how my current implementation works, basically directly transcoding to/from DXT, and using some of my existing DXT related logic to handle conversions to/from RGBA space, and also things like lossy block quantization.
this then allows the decoder to operate at around 450-480 Mpix/s (for a single-threaded decoder, decoding to DXT). though, granted, the image quality isn't particularly great (slightly worse than DXT at best).
my additions were mostly adding support for alpha transparency, and LZ77 based dictionary compression.
the alpha transparency is basically compatible with existing decoders (seems to be compatible with FFmpeg, which displays an opaque version of the image).
there is support for blended-alpha transparency, but this will not work correctly if decoded by a decoder which expects RPZA (so non-blended transparency is needed).
the LZ77 support is not compatible with existing (RPZA) decoders, but results in a modest increase in compression (in my tests, a 25-50% size reduction with some of the clips tested). this does not add any real cost in terms of decoding speed. the dictionary compression is done in terms of runs of blocks (rather than bytes).
compressed file sizes are "competitive" with M-JPEG, though with M-JPEG generally able to deliver higher image quality (for pretty much anything above around 75% quality), and compressing better with clips which don't effectively utilize the abilities of the codec (it is most effective at compressing images with little movement and large flat-colored areas).
for clips though with mostly static background images and large flat-colored areas, such as "cartoon" graphics, the codec seems particularly effective, and does much better than M-JPEG in terms of size/quality (it requires setting the JPEG quality very low, resulting in an awful-looking mess).
additional competitiveness is added by being around 6-7 times faster than my current M-JPEG decoder (currently does around 70-90 Mpix/s with a single-threaded decoder, when decoding directly to DXT).
comparison between this and a prior format, BTIC1A, is that this format compresses better, but has lower decode speeds.
tests have implied that Huffman compression would likely help with compression (based on a few experiments deflate-compressing the frames), but would likely hurt performance regarding the decode speeds.
I have not done tests here for multi-threaded decoding.
or such...
[/font]
You certainly love developing codecs :)