[PATCH v4l-utils 0/1] test-media: Add a python script for rkisp1 tests

Dafna Hirschfeld dafna.hirschfeld at collabora.com
Tue Nov 10 06:35:21 EST 2020

I am adding the script I used to test the rkisp1 driver.

here is the help of the command:

# python3 ./test-rkisp1.py -h
usage: test-rkisp1.py [-h] [-v] [-s SENSOR] [-o OUTPUT] [-S] [-c] [-C]
                      [-P PIXELFORMAT [PIXELFORMAT ...]] [-p PATH [PATH ...]]
                      [--isp-dim ISP_DIM]
                      [--resizer-dim RESIZER_DIM [RESIZER_DIM ...]]

TL;DR: just run `python3 test-rkisp1.py`.

    This is a tests script for rkisp1 driver. There are two ways to run the script, either by using
    a hardcoded set of tests, or by giving parameters for a custom test (see 'customized test' options).

    To run a custom test, you should define all the parameters under the 'customized test' section.
    If both selfpath and mainpath are given in the '--path' option then the '--pixelformat' and '--resizer-dim'
    should also have two values, one for each path.
    For example:
    Configure selfpath to YUYV,640x480 and mainpath to NV12,800x600:

    python3 ./test-rkisp1.py -p selfpath mainpath -P YUYV NV12 --isp-dim 640x480 --resizer-dim 640x480 800x600 -S

    The script was developed for python version 3.7.6 and might not work with other versions.

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         verbose output, logs are printed to stdout and to
  -s SENSOR, --sensor SENSOR
                        sensor to use. If not given, then the first sensor
                        found is used
  -o OUTPUT, --output OUTPUT
                        directory to add output streams. Default is current
                        directory '.'
  -S, --store           store stream to output folder
  -c, --compliance      run compliance tests when streaming
  -C, --cam             also run some tests with the 'cam' command from

customized test:
  those options are for running specific tests of you own.

                        the pixelformat(s)
  -p PATH [PATH ...], --path PATH [PATH ...]
                        the stream path. Allowed values are 'selfpath',
  --isp-dim ISP_DIM     the {width}x{height} of the isp output.
  --resizer-dim RESIZER_DIM [RESIZER_DIM ...]
                        the {width}x{height} of the final image

Dafna Hirschfeld (1):
  test-media: Add a python script for rkisp1 tests

 contrib/test/test-rkisp1.py | 576 ++++++++++++++++++++++++++++++++++++
 contrib/test/v4l2lib.py     |  90 ++++++
 2 files changed, 666 insertions(+)
 create mode 100755 contrib/test/test-rkisp1.py
 create mode 100644 contrib/test/v4l2lib.py


More information about the Linux-rockchip mailing list