summaryrefslogtreecommitdiff
path: root/test/i965_jpeg_test_data.cpp
AgeCommit message (Collapse)AuthorFilesLines
2016-10-28test: use YUVImage in JPEG encode testsU. Artie Eoff1-163/+33
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>
2016-10-03test: jpeg/enc: add tests for Y800 inputsU. Artie Eoff1-0/+12
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>
2016-10-03test: jpeg/enc: add tests for YUY2 and UYVY inputsU. Artie Eoff1-11/+86
...plus optimize TestInput::toOutputFourcc() Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com> Reviewed-by: Sean V Kelley <seanvk@posteo.de>
2016-10-03test: jpeg/enc: return empty TestInput::Shared if fourcc not handledU. Artie Eoff1-40/+47
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>
2016-10-03test: jpeg/enc: improve random YUV data initializationU. Artie Eoff1-8/+9
Make initialization of YUV input for jpeg encode a little faster, esp. for larger resolution. Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com> Reviewed-by: Sean V Kelley <seanvk@posteo.de>
2016-10-03test: jpeg/enc: move YUV conversion to TestInput classU. Artie Eoff1-0/+25
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>
2016-10-03test: jpeg/enc: enable shared_from_this on TestInputU. Artie Eoff1-1/+7
...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>
2016-10-03test: jpeg/enc: move input creators to data fileU. Artie Eoff1-0/+64
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>
2016-10-03test: jpeg/enc: move TestInput impl to compilation unitU. Artie Eoff1-0/+89
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>
2016-09-28test: wrap jpeg decode tests and data in namespaceU. Artie Eoff1-0/+4
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>
2016-09-28test: split jpeg test data into header and cppU. Artie Eoff1-0/+762
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>