Mercurial > libavcodec.hg
diff dsputil.h @ 10878:a8620b001ed3 libavcodec
Implement alpha channel decoding for BGR HuffYUV.
Since BGR24 is decoded as BGR32, fill its alpha channel with 255
using the appropriate predictors.
author | astrange |
---|---|
date | Thu, 14 Jan 2010 01:32:49 +0000 |
parents | 3d011a01a6a0 |
children | 0985f1f7ab72 |
line wrap: on
line diff
--- a/dsputil.h Wed Jan 13 16:46:39 2010 +0000 +++ b/dsputil.h Thu Jan 14 01:32:49 2010 +0000 @@ -350,7 +350,7 @@ void (*sub_hfyu_median_prediction)(uint8_t *dst, const uint8_t *src1, const uint8_t *src2, int w, int *left, int *left_top); void (*add_hfyu_median_prediction)(uint8_t *dst, const uint8_t *top, const uint8_t *diff, int w, int *left, int *left_top); int (*add_hfyu_left_prediction)(uint8_t *dst, const uint8_t *src, int w, int left); - void (*add_hfyu_left_prediction_bgr32)(uint8_t *dst, const uint8_t *src, int w, int *red, int *green, int *blue); + void (*add_hfyu_left_prediction_bgr32)(uint8_t *dst, const uint8_t *src, int w, int *red, int *green, int *blue, int *alpha); /* this might write to dst[w] */ void (*add_png_paeth_prediction)(uint8_t *dst, uint8_t *src, uint8_t *top, int w, int bpp); void (*bswap_buf)(uint32_t *dst, const uint32_t *src, int w);