[FFmpeg-devel] libavcodec/hapdec : add support for HapAphaOnly decoding

Tom Butterworth bangnoise at gmail.com
Wed Sep 27 12:27:58 EEST 2017


Hey Martin

> +        ctx->tex_fun = ctx->dxtc.rgtc1u_block;
> +        avctx->pix_fmt = AV_PIX_FMT_RGB0;

The rgtc1u_block function places the single channel value in every channel except the alpha channel
The pixel format you have chosen is one which disregards the alpha channel

The output of this alpha-only decoder should be in the alpha channel of a pixel format which carries alpha. Probably other channels should have zero values.

> On 23 Sep 2017, at 20:52, Martin Vignali <martin.vignali at gmail.com> wrote:
> 
> Sorry, i made a mistake in the previous patchs
> 
> Correct patchs in attach
> 
> Martin
> <0001-libavformat-add-mov-dataformat-tag-for-HapAlphaOnly-.patch><0002-libavcodec-hapdec-add-support-HapAlphaOnly.patch>_______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel



More information about the ffmpeg-devel mailing list