summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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>
2016-06-20tests: Add WPF flip update testsLaurent Pinchart
Test updating the vertical and horizontal flip controls during video streaming. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-20tests: Add WPF rotation and flip testsLaurent Pinchart
Test all combinations of horizontal flip, vertical flip and rotation. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-20tests: Add CLU and LUT testLaurent Pinchart
Test CLU and LUT operation in both RGB and YUV modes with different look up tables. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-20Add LUT generation scriptLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-20vsp-lib: Add support for pausing and resuming yavtaLaurent Pinchart
When the --pause argument to vsp_runner() is specified, the corresponding yavta instance will pause after capturing or outputting the given number of frames and wait for a signal before resuming. The new vsp_runner_wait() and vsp_runner_resume() functions can be used to respectively wait for yavta to pause and instruct it to resume. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-20vsp-lib: Replace vsp-runner script with a function from vsp-libLaurent Pinchart
This allows reusing variables internal to vsp-lib and getting rid of the mdev and format arguments to the vsp-runner invocations. As part of the transition, handle additional options with an explicit list of supported options instead of passing them straight to yavta. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-19vsp-lib: Add CLU and LUT pipelines supportLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-19vsp-lib: Add support for passing parameters to reference frame generatorLaurent Pinchart
The parameters currently supported are horizontal and vertical flipping, rotation, LUT and CLU. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-19vsp-lib: Store the scaling configuration internallyLaurent Pinchart
This allows deciding whether to compare output frames using the exact or fuzzy algorithm internally, removing the need for an explicit argument to the compare_frames function. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-19tests: Perform scaling verification in fuzzy modeLaurent Pinchart
The reference frame generator scaling algorithm doesn't match the VSP scaler in a pixel-perfect fashion, use fuzzy comparision of the result. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-19tests: Remove unneeded legacy pipeline configuration from HGO testLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-19tests: Use YUV444M instead of UYVY for YUV input formatsLaurent Pinchart
Depending on the test this lowers the conversion errors or ensures a pixel-perfect match between the reference frame generator and the hardware. In the latter case we can now use the faster exact output verification method. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-19tests: Add YUV422M and YUV444M support to YUV->YUV testLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-19tests: Split RPF->WPF testLaurent Pinchart
The VSP instance that supports the largest number of RPF might not be the same as the one that supports the largest number of WPF. To maximize test coverage, split the test into RPF and WPF tests that can use different VSP instances. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-19vsp-lib: Store the number of BRU inputs internallyLaurent Pinchart
Instead of getting the number of BRU inputs from an explicit argument to the compare_frames function, store it internally when configuring the pipeline. This simplifies the test scripts by removing the reftype argument to the compare_frames function. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-19vsp-lib: Don't pass WPF index and format to comparison functionsLaurent Pinchart
The information is already known to the pipeline configuration functions, store it internally and reuse it instead of having to pass it explicitly. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-19vsp-lib: Handle logging internallyLaurent Pinchart
Remove the need to pipe individual commands to the logger from the test scripts by moving all logging code internally to vsp-lib and vsp-runner. As an interesting side effect the removal of shell pipes from the test scripts avoids running functions in subshells. This makes it possible for the pipeline configuration functions to set variables that can be used later. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-19vsp-lib: Declare all local variables as localLaurent Pinchart
Stop the global namespace pollution. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-19vsp-lib: Add set control supportLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-19vsp-lib: Support controls as device featuresLaurent Pinchart
Enhance the feature checking code to allow checking for the presence of a particular control on a particular entity. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-19vsp-lib: Create a function to get subdev from entity nameLaurent Pinchart
And use the function in the vsp-runner script instead of duplicating the same code in multiple locations. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-19vsp-lib: Support optional features for testsLaurent Pinchart
Add a third argument to test_init() to pass a list of optional features. If more than one media device supports all the required features, select the one that supports the highest number of optional features. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-19vsp-lib: Add YUV422M and YUV444M supportLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-19vsp-lib: Use gen-image to generate frames at runtimeLaurent Pinchart
Replace the build time reference frames generation system by runtime generation of the frames. This saves a lot of disk space and allows tests to easily use new reference frames. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-19gen-image: Add horizontal and vertical flip supportLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-17gen-image: Add look up table supportLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-06-16Add gen-image toolLaurent Pinchart
The tool is used to generate test images in a variety of formats from a PNM input image. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-05-19Initial commitLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>