[libav-devel] [PATCH] swscale: support gray to 9bit and 10bit formats

2012-10-27 Thread Luca Barbato
--- Some more fixes thanks to Kostya reviewing and tracking the bug, now only fate-lavfi-pixfmts_scale fails randomly. libswscale/swscale.c | 38 -- libswscale/swscale_unscaled.c | 32 ++-- tests/ref/lavfi/pixdesc |

Re: [libav-devel] [PATCH] swscale: support gray to 9bit and 10bit formats

2012-10-25 Thread Luca Barbato
On 10/15/2012 02:22 AM, Luca Barbato wrote: --- Some code duplication, still not solving all the issues with yuva. libswscale/swscale.c | 37 +++-- libswscale/swscale_unscaled.c | 32 ++-- 2 files changed, 65

Re: [libav-devel] [PATCH] swscale: support gray to 9bit and 10bit formats

2012-10-25 Thread Ronald S. Bultje
Hi, On Sun, Oct 14, 2012 at 5:22 PM, Luca Barbato lu_z...@gentoo.org wrote: +if (isPlanar(dstFormat) isALPHA(dstFormat) !alpPixBuf) { +int length = dstW; +int height = dstY - lastDstY; +if (is9_OR_10BPS(dstFormat)) { +const AVPixFmtDescriptor *desc =

[libav-devel] [PATCH] swscale: support gray to 9bit and 10bit formats

2012-10-14 Thread Luca Barbato
--- libswscale/swscale_unscaled.c | 32 ++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c index 70eff72..e6ec7b5 100644 --- a/libswscale/swscale_unscaled.c +++

[libav-devel] [PATCH] swscale: support gray to 9bit and 10bit formats

2012-10-14 Thread Luca Barbato
--- Some code duplication, still not solving all the issues with yuva. libswscale/swscale.c | 37 +++-- libswscale/swscale_unscaled.c | 32 ++-- 2 files changed, 65 insertions(+), 4 deletions(-) diff --git