OSDN Git Service

test: add some jpeg encode tests
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Mon, 26 Sep 2016 20:11:48 +0000 (13:11 -0700)
committerXiang, Haihao <haihao.xiang@intel.com>
Mon, 31 Oct 2016 02:00:08 +0000 (10:00 +0800)
commit5ce9588287b5aa1ba98517b4e1ea96fac8d1b5ed
treecc7708f45c391851b3fd484258a0c0498cded0d8
parent78f5a27d03cbfc47323f982d2c11c6ec46ad914e
test: add some jpeg encode tests

Add JPEG encode tests that encode raw I420 and NV12 data
at quality 100 and then decodes them to verify proper
encoding.

Currently, the 7680x4320 I420 test fails because ~40-60
Y-values (i.e. plane 0) in each line from the decoded
bitstream are off by more than 2 of the original raw
I420 values.  It is not clear why only this resolution
exhibits this problem.

v2: don't create any input data in test fixture if
jpeg encoding is not supported.

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit 6ee403d2576d85c62a51ce291a1e37ef14858d1a)
test/Makefile.am
test/i965_jpeg_encode_test.cpp [new file with mode: 0644]
test/i965_jpeg_test_data.h
test/i965_test_fixture.h