[FFmpeg-devel,1/5] lavu/pixfmt: add Y210/AYUV/Y410 pixel formats

Submitted by Michael Niedermayer on June 27, 2019, 8:01 p.m.

Details

Message ID 20190627200107.GS3118@michaelspb
State New
Headers show

Commit Message

Michael Niedermayer June 27, 2019, 8:01 p.m.
On Thu, Jun 27, 2019 at 10:26:46PM -0400, Linjie Fu wrote:
> Previously, media driver provided planar format(like 420 8 bit), but
> for HEVC Range Extension (422/444 8/10 bit), the decoded image is
> produced in packed format.
> 
> Y210/AYUV/Y410 are packed formats which are needed in HEVC Rext decoding
> for both VAAPI and QSV:
>     - Y210: 422 10 BIT
>     - AYUV: 444  8 BIT
>     - Y410: 444 10 BIT
> 
> Signed-off-by: Linjie Fu <linjie.fu@intel.com>
> ---
>  libavutil/pixdesc.c | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++
>  libavutil/pixfmt.h  |  6 ++++++
>  libavutil/version.h |  2 +-
>  3 files changed, 69 insertions(+), 1 deletion(-)

this breaks 
TEST    pixelutils
Test pixelutils failed. Look at tests/data/fate/pixelutils.err for details.
make: *** [fate-pixelutils] Error 134

[...]

Patch hide | download patch | download mbox

--- ./tests/ref/fate/pixelutils	2019-06-27 21:08:23.873241529 +0200
+++ tests/data/fate/pixelutils	2019-06-27 21:58:45.501332809 +0200
@@ -1,60 +0,0 @@ 
-[OK] [UU] SAD [random] 2x2=409 ref=409
-[OK] [UU] SAD [random] 4x4=1370 ref=1370
-[OK] [UU] SAD [random] 8x8=5178 ref=5178
-[OK] [UU] SAD [random] 16x16=20946 ref=20946
-[OK] [UU] SAD [random] 32x32=83150 ref=83150
-[OK] [AU] SAD [random] 2x2=320 ref=320
-[OK] [AU] SAD [random] 4x4=1522 ref=1522
-[OK] [AU] SAD [random] 8x8=5821 ref=5821
-[OK] [AU] SAD [random] 16x16=21951 ref=21951
-[OK] [AU] SAD [random] 32x32=86983 ref=86983
-[OK] [AA] SAD [random] 2x2=276 ref=276
-[OK] [AA] SAD [random] 4x4=1521 ref=1521
-[OK] [AA] SAD [random] 8x8=5130 ref=5130
-[OK] [AA] SAD [random] 16x16=20775 ref=20775
-[OK] [AA] SAD [random] 32x32=83402 ref=83402
-[OK] [UU] SAD [max] 2x2=1020 ref=1020
-[OK] [UU] SAD [max] 4x4=4080 ref=4080
-[OK] [UU] SAD [max] 8x8=16320 ref=16320
-[OK] [UU] SAD [max] 16x16=65280 ref=65280
-[OK] [UU] SAD [max] 32x32=261120 ref=261120
-[OK] [AU] SAD [max] 2x2=1020 ref=1020
-[OK] [AU] SAD [max] 4x4=4080 ref=4080
-[OK] [AU] SAD [max] 8x8=16320 ref=16320
-[OK] [AU] SAD [max] 16x16=65280 ref=65280
-[OK] [AU] SAD [max] 32x32=261120 ref=261120
-[OK] [AA] SAD [max] 2x2=1020 ref=1020
-[OK] [AA] SAD [max] 4x4=4080 ref=4080
-[OK] [AA] SAD [max] 8x8=16320 ref=16320
-[OK] [AA] SAD [max] 16x16=65280 ref=65280
-[OK] [AA] SAD [max] 32x32=261120 ref=261120
-[OK] [UU] SAD [min] 2x2=0 ref=0
-[OK] [UU] SAD [min] 4x4=0 ref=0
-[OK] [UU] SAD [min] 8x8=0 ref=0
-[OK] [UU] SAD [min] 16x16=0 ref=0
-[OK] [UU] SAD [min] 32x32=0 ref=0
-[OK] [AU] SAD [min] 2x2=0 ref=0
-[OK] [AU] SAD [min] 4x4=0 ref=0
-[OK] [AU] SAD [min] 8x8=0 ref=0
-[OK] [AU] SAD [min] 16x16=0 ref=0
-[OK] [AU] SAD [min] 32x32=0 ref=0
-[OK] [AA] SAD [min] 2x2=0 ref=0
-[OK] [AA] SAD [min] 4x4=0 ref=0
-[OK] [AA] SAD [min] 8x8=0 ref=0
-[OK] [AA] SAD [min] 16x16=0 ref=0
-[OK] [AA] SAD [min] 32x32=0 ref=0
-[OK] [UU] SAD [small] 2x2=400 ref=400
-[OK] [AU] SAD [small] 2x2=384 ref=384
-[OK] [AA] SAD [small] 2x2=409 ref=409
-[OK] [UU] SAD [small] 4x4=1144 ref=1144
-[OK] [AU] SAD [small] 4x4=1156 ref=1156
-[OK] [AA] SAD [small] 4x4=1086 ref=1086
-[OK] [UU] SAD [small] 8x8=6510 ref=6510
-[OK] [AU] SAD [small] 8x8=5755 ref=5755
-[OK] [AA] SAD [small] 8x8=6156 ref=6156
-[OK] [UU] SAD [small] 16x16=19490 ref=19490
-[OK] [AU] SAD [small] 16x16=21037 ref=21037
-[OK] [AA] SAD [small] 16x16=22986 ref=22986
-[OK] [UU] SAD [small] 32x32=86550 ref=86550
-[OK] [AU] SAD [small] 32x32=83656 ref=83656
-[OK] [AA] SAD [small] 32x32=85164 ref=85164