summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-03-03gen-image: Add option to specify histogram typeNiklas Söderlund
The VSP hardware can compute both 1D (HGO) and 2D (HGT) histograms. The gen-image utility needs to know which histogram type it should generate a reference frame for. Add a command line option which allows the user to set the type. Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-03-03vsp-lib: Fix typo in commentLaurent Pinchart
HSV is not written HSB. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-02-22scripts: bin2png.sh: Fix POSIX shell complianceKieran Bingham
The string manipulations of the form ${VAR/search/replace} are not posix compliant. Use string deletion, and append instead. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-02-14README: List the stress tool as an optional dependencyLaurent Pinchart
The tool is required to run tests vsp-unit-test-0021.sh and vsp-unit-test-0022.sh. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-02-13tests: Add extended stress testingKieran Bingham
Duplicate the functionality of vsp-unit-test-0020, to provide a longer duration task for the hardware to run, whilst we load the system using the 'stress' utility. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-02-13tests: Add basic stress testingKieran Bingham
Duplicate the functionality of vsp-unit-test-0001, to provide a set of work for the hardware to run, whilst we load the system using the 'stress' utility. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-02-13tests: Test suspend/resume on active pipelinesKieran Bingham
Provide a test to verify the hardware completes a functional test whilst performing a suspend resume cycle in parallel. Make use of the /sys/power/pm_test functionality provided by CONFIG_PM_DEBUG to perform the testing Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-02-13tests: Test suspend/resume on idle pipelinesKieran Bingham
Provide a test to verify the hardware is functional both before and after entering a suspend / resume cycle. Make use of the /sys/power/pm_test functionality provided by CONFIG_PM_DEBUG to perform the testing Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-02-13logger: Log to the FTrace buffer if tracing is enabledKieran Bingham
Extend the logger such that it will detect the tracing system, and also append print statement to this ring buffer. This provides the relevant logging output interspersed in the ftrace logs for an effective solution to identifying the actions that caused the traces to occur Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-02-13scripts: bin2png: Support conversion of all files in a directoryLaurent Pinchart
When the first argument is a directory name instead of a file name, convert all test script output binaries in that directory. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-02-13scripts: Provide bin2png.sh helperKieran Bingham
Identify the size and format from the test output filename, and pass to raw2rgbpnm for conversion to a PNM file. From there we can convert easily to a PNG output file. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-02-13scripts: Add statistics to test suite runnerLaurent Pinchart
Print the number of passed, failed and skipped tests. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-02-13scripts: Test suite runnerKieran Bingham
Provide a utility script to execute all vsp unit tests, as well as the option to execute multiple iterations of the suite. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-02-13vsp-lib: Add sru-uds and uds-sru pipelinesLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-02-13vsp-lib: Add pipeline description to the frame file nameLaurent Pinchart
If different pipelines from the same test generate the same output frame size and format from the same input format, the frame binary file names will collide. To avoid overwriting output files, add the pipeline description to the file name. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-02-13vsp-lib: Initialize __vsp_wpf_index to default value in pipe_reset()Laurent Pinchart
This avoids having to store the index in all pipe configuration functions, as the vast majority of them use WPF.0. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-02-13vsp-lib: Fix reference frame generation for HSV input formatsLaurent Pinchart
gen-image doesn't support processing HSV input frames. Fortunately the HSV tests don't require it either, when they take an HSV input frame they just pass it straight to the WPF. We can thus set the input format to RGB for reference frame generation. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-02-12tests: Add RPF cropping testKieran Bingham
Test both the input cropping size and position Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-02-12vsp-lib: Support RPF frame croppingKieran Bingham
Pass the optional '--crop (X,Y)/WxH' parameter through reference_frame allowing the input to be cropped for comparison Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-02-12gen-image: Implement option to parse an input cropKieran Bingham
Allow the user to specify an input crop in the form (X,Y)/WxH Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-02-12vsp-lib: Filter non-filesystem regular charactersKieran Bingham
Parameters can contain characters not suited to use in filenames. Add '=','(', and ')' to the filtering, and replace with '_' This reduces extra escaping, and quoting when working with the output filenames of failed tests and VSP_KEEP_FRAMES=1 Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-02-10vsp-lib: sort output frames correctlyKieran Bingham
In the event of failed frames, or VSP_KEEP_FRAMES being set, the output file names do not sort such that the reference frame is next to the failed frame. This can make comparing reference frames and the relevant output frames tedious and difficult. Re-arrange the output filenames such that the sort order will match the option parameters correctly, followed by either the reference frame identifier, or the frame number at the end of the filename string Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-10-24tests: Add YVU 3-planar formats in RGB and WPF testsLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-16tests: Add HSV capture and conversion testLaurent Pinchart
Test conversion from RGB to HSV with output in both HSV24 and HSV32 formats as well as HSV to HSV pass-through. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-16vsp-lib: Add support for RPF-HST-WPF pipelineLaurent Pinchart
This will be used to test RGB to HSV conversion. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-16gen-image: Add conversion from RGB to HSV supportLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-16tests: Skip VYUY tests on Gen3 platformsLaurent Pinchart
The Gen3 platforms don't support VYUY, skip the related tests. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-14vsp-lib: Print a message when a test can't be runLaurent Pinchart
Tests that can't be run due to lack of mandatory features are currently silent, make them print a message to avoid confusing the user. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-14vsp-lib: Fix fuzzy comparisonLaurent Pinchart
A typo caused fuzzy comparison to be used in all tests. Fix it, and make sure the fuzzy comparison gets properly enabled when using rotation. Fixes: ccd867a84863 ("vsp-lib: SRU and rotation are not perfectly emulated by gen-image") Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-13vsp-lib: SRU and rotation are not perfectly emulated by gen-imageLaurent Pinchart
Turn on fuzzy comparison for rotation and for the SRU regardless of the scaling ratio. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-13tests: Add flipping/rotation test with UDSLaurent Pinchart
Insert a UDS in the pipeline to force image partitioning on Gen3 hardware and test all flipping and rotation combinations. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-13tests: Provide SRU unit testKieran Bingham
Provide a pipeline configuration in vsp-lib, and simple tests for the SRU processing unit Signed-off-by: Kieran Bingham <kieran@bingham.xyz> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-13tests: Make local variables localLaurent Pinchart
Avoid interfering with the vsp-lib namespace by making local variables local. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-13tests: Test identity scaling in UDS testLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-13tests: Add RPF unpacking tests in RGB and YUVLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-13tests: Lower flip test resolutionLaurent Pinchart
Testing all combinations of flipping and rotation is time consuming, speed it up by lowering the resolution to 640x480. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-13tests: Don't convert formats in flip testsLaurent Pinchart
Use the same input and output formats to disable format conversion as the purpose of the tests is to test flipping. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-13tests: Reset the rotation control before running the flip testsLaurent Pinchart
The rotation control can be set to a non-default value by a previously run test, reset it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-13vsp-lib: Add option to keep all frames when tests succeedLaurent Pinchart
When the environment variable VSP_KEEP_FRAMES is set to 1, all frames will be kept regardless of the test results. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-13vsp-lib: Don't average chroma when generating test input framesLaurent Pinchart
This avoids double-averaging due to chroma interpolation at the RPF. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-13vsp-lib: Use the gen-image -i argumentLaurent Pinchart
Replace the now defunct -y argument with -i. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-13vsp-lib: Fix alpha value handlingLaurent Pinchart
Take both the input and output formats into account to compute the alpha value effectively output by the hardware. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-13vsp-lib: Use both input and output formats to name frame filesLaurent Pinchart
Tests can run with a single output format and different input formats. If multiple failures are recorded the frame files overwrite each others. Fix this by naming them with both the input and output formats. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-13gen-image: Subsample YUV chroma on inputLaurent Pinchart
When the input format is YUV, subsample the chroma during RGB to YUV conversion based on the YUV format parameters. This matches the RGB to YUV conversion performed to generate the test input frame fed to the RPF. A better fix would be to add support for unpacking all RGB and YUV formats instead of converting the .pnm reference frames. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-13gen-image: Add -C argument to disable chroma averaging on outputLaurent Pinchart
gen-image averages consecutive chroma values when subsampling chroma horizontally. This matches the hardware behaviour, but isn't desired to produce test input frames in subsampled formats as otherwise the hardware will average the values a second time in the RPF to interpolate missing chroma components. Add a -C argument to disable chroma averaging on output, to be used to generate test input frames. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-13gen-image: Add input format configurationLaurent Pinchart
Replace the -y argument with a more flexible -i argument that allows specifying the input format. This is useful to generate reference frames based on an RGB pipeline input format that uses less than 8 bits per pixel. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-07Do not use for loop in data/frames/MakefileNiklas Söderlund
This construct depends on the shell used and do not work for all shells. Instead use make rules to find and extract all *.pnm.gz frames. Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-07Don't try to install non-existent script file vsp1.shNiklas Söderlund
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-26vsp-lib: Only remove binaries related to current testLaurent Pinchart
Removing all .bin files when starting a test removes not only the result of previous runs of the current test as desired, but also the result of all tests run previously. Fix it by only removing binaries related to the current test. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-21vsp-lib: Write frames to temporary directory by defaultLaurent Pinchart
This speeds up tests by avoiding the need to access flash memory or, worse, NFS. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>