summaryrefslogtreecommitdiff
path: root/test/i965_jpeg_test_data.h
Commit message (Collapse)AuthorAgeFilesLines
* test: add virtual dtor to abstract classesU. Artie Eoff2018-02-021-0/+4
| | | | | | | | Abstract classes should have virtual destructors. Missing virtual dtor's can be detected with -Wnon-virtual-dtor compiler flag, too. Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
* test/jpege: skip >4k res test cases on CHV/BSWU. Artie Eoff2017-05-031-3/+5
| | | | | | | | Only Gen9+ supports res > 4K for JPEG encoding. Fixes #149 Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
* test: use YUVImage in JPEG encode testsU. Artie Eoff2016-10-281-22/+4
| | | | | | | | The YUVImage class allows for more efficient (faster) operations on the YUV input/output of these tests. Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com> Reviewed-by: Sean V Kelley <seanvk@posteo.de>
* test: jpeg/enc: add tests for Y800 inputsU. Artie Eoff2016-10-031-0/+8
| | | | | | | Add support for Y800 input data for jpeg encode tests. Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com> Reviewed-by: Sean V Kelley <seanvk@posteo.de>
* test: jpeg/enc: add tests for YUY2 and UYVY inputsU. Artie Eoff2016-10-031-0/+8
| | | | | | | ...plus optimize TestInput::toOutputFourcc() Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com> Reviewed-by: Sean V Kelley <seanvk@posteo.de>
* test: jpeg/enc: return empty TestInput::Shared if fourcc not handledU. Artie Eoff2016-10-031-1/+1
| | | | | | | | | | Move JPEG::Encode::TestInput member initialization to its static "create" routine so that an empty/invalid Shared can be returned if the input fourcc is not handled/implemented. This will allow a caller/test to react appropriately. Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com> Reviewed-by: Sean V Kelley <seanvk@posteo.de>
* test: jpeg/enc: move YUV conversion to TestInput classU. Artie Eoff2016-10-031-0/+1
| | | | | | | | | Let the ::JPEG::Encode::TestInput class deal with converting from its input fourcc to its expected output fourcc. Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com> Reviewed-by: Sean V Kelley <seanvk@posteo.de>
* test: jpeg/enc: enable shared_from_this on TestInputU. Artie Eoff2016-10-031-1/+5
| | | | | | | | ...and make the constructor private so that only Shared instances can be created. Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com> Reviewed-by: Sean V Kelley <seanvk@posteo.de>
* test: jpeg/enc: move input creators to data fileU. Artie Eoff2016-10-031-0/+45
| | | | | | | | Move the ::JPEG::Encode::TestInputCreator's to the i965_jpeg_test_data[.h|.cpp] files. Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com> Reviewed-by: Sean V Kelley <seanvk@posteo.de>
* test: jpeg/enc: move TestInput impl to compilation unitU. Artie Eoff2016-10-031-94/+7
| | | | | | | | | Move the implementation of JPEG::Encode::TestInput to the compilation unit file (.cpp). This helps reduce the number of include headers needed in the header file. Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com> Reviewed-by: Sean V Kelley <seanvk@posteo.de>
* test: jpeg/enc: fix TestInput::SharedConst typedefU. Artie Eoff2016-10-031-1/+1
| | | | | | | | | The ::JPEG::Encode::TestInput::SharedConst typedef should actually use a 'const TestInput' template parameter for the std::shared_ptr. Hence, the name. Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com> Reviewed-by: Sean V Kelley <seanvk@posteo.de>
* test: add some jpeg encode testsU. Artie Eoff2016-09-281-4/+194
| | | | | | | | | | | | | | | | | | 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>
* test: wrap jpeg decode tests and data in namespaceU. Artie Eoff2016-09-281-55/+26
| | | | | | | | Put the JPEG decode tests and test data into its own namespace so that it can be distinguished from encode. Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
* test: split jpeg test data into header and cppU. Artie Eoff2016-09-281-734/+2
| | | | | | | | | | | | Move static definitions of JPEG TestPatternData into the .cpp so that multiple files can include the i965_jpeg_test_data.h header file. Otherwise, there will be "multiple definition" compiler errors. Also, change generateSolid to be inline for the same reason. Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
* test: add some JPEG decode test casesU. Artie Eoff2016-09-071-0/+1085
Test that the driver properly decodes JPEG data that is encoded in various fourcc formats. Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com> Reviewed-by: Sean V Kelley <seanvk@posteo.de>