[FFmpeg-devel] libavcodec/hapenc : add support for hap alpha only encoding

Martin Vignali martin.vignali at gmail.com
Sun Sep 24 00:41:35 EEST 2017


In attach patch for Hap Alpha encoding

Patch 1 : 0004-libavcodec-texturedspenc-add-rgtc1u-encoding
Add rgtc1u encoding in the texture dsp enc

Patch 2 : 0005-libavcodec-hapenc-add-support-for-hap-alpha-only-enc
enable hap alpha only encoding in hapenc (and doc)
Ratio need to be 8 for RGTC1 otherwise, only ffmpeg can decode the frame
(the official hap lib failed to read the frame)

To test :
FFmpeg need to be compile with snappy library (--enable-libsnappy)

./ffmpeg -i fileRgba -c:v hap -format hap_alpha_only res.mov

I test the result in the 3 hap mode (with ffmpeg (with previous patch for
hap alpha only decoding decoding) and HapInAVFoundation test app (in OpenGL

compressor None
compressor snappy 1 chunk
compressor snappy 16 chunks

Jokyo Images
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-libavcodec-texturedspenc-add-rgtc1u-encoding.patch
Type: application/octet-stream
Size: 1282 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170923/f612c54a/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-libavcodec-hapenc-add-support-for-hap-alpha-only-enc.patch
Type: application/octet-stream
Size: 2787 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170923/f612c54a/attachment-0001.obj>

More information about the ffmpeg-devel mailing list