renesas/vsp-tests.git, branch master VSP test framework tests: Add RPF cropping test for YUV formats 2022-02-28T12:38:37+00:00 Laurent Pinchart laurent.pinchart@ideasonboard.com 2022-02-28T11:13:49+00:00 9a37e24c2456103d146e0251765ae43df6f72f7e YUV formats can be subsampled, which interact with cropping. Add a test to verify that the VSP driver handles this correctly. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
YUV formats can be subsampled, which interact with cropping. Add a test
to verify that the VSP driver handles this correctly.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
gen-image: Crop input image before format conversion to YUV 2022-02-28T12:38:33+00:00 Laurent Pinchart laurent.pinchart@ideasonboard.com 2022-02-28T11:02:44+00:00 2daa93772354ff0824f2366b5a1141533fa2333d When converting the input image to a subsampled YUV format, chroma components are averaged horizontally to emulate the VSP internal conversion to YUV444. If the image is subsequently cropped to emulate the RPF cropping, the edge chroma values end up effectively taking into account pixels outside of the crop rectangle. This doesn't match the hardware mode of operation which crops the image when reading it through DMA, before performing any other operation. Fix this by cropping the image just after reading it, before format conversion. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
When converting the input image to a subsampled YUV format, chroma
components are averaged horizontally to emulate the VSP internal
conversion to YUV444. If the image is subsequently cropped to emulate
the RPF cropping, the edge chroma values end up effectively taking into
account pixels outside of the crop rectangle. This doesn't match the
hardware mode of operation which crops the image when reading it through
DMA, before performing any other operation.

Fix this by cropping the image just after reading it, before format
conversion.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
tests: Add SPDX headers to vsp-unit-test-0026.sh 2022-02-28T11:58:07+00:00 Laurent Pinchart laurent.pinchart@ideasonboard.com 2022-02-28T09:35:53+00:00 e4c152de7a4ee1822dfa7abfaa5789ef2032e415 vsp-unit-test-0026.sh is missing SPDX headers. Add them. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
vsp-unit-test-0026.sh is missing SPDX headers. Add them.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
scripts/logger: Use new monotonic-ts tool 2022-02-28T11:12:38+00:00 Kieran Bingham kieran.bingham@ideasonboard.com 2020-09-17T14:04:50+00:00 2e98a1bf774bc8516aa8027411a2fd511e52561c Utilise the new monotonic timestamping tool to remove the manual parsing of timestamps via /proc/timer_list which can only be read by root. This also simplifies the processing required and contains all timestamping actions within a single process space. 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>
Utilise the new monotonic timestamping tool to remove the manual parsing of
timestamps via /proc/timer_list which can only be read by root.

This also simplifies the processing required and contains all timestamping
actions within a single process space.

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>
src: monotonic-ts: Monotonic timestamp logging 2022-02-28T11:12:36+00:00 Kieran Bingham kieran.bingham@ideasonboard.com 2020-09-17T14:04:49+00:00 56d5364fced642aa203bd74b9d92798985d3ca5c Introduce a new utility which prefixes a monotonic timestamp rendered in the same format as the kernel logs to all lines fed in through stdin. 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>
Introduce a new utility which prefixes a monotonic timestamp rendered in the
same format as the kernel logs to all lines fed in through stdin.

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>
gen-lut: Update for python3 2022-02-28T11:12:33+00:00 Kieran Bingham kieran.bingham@ideasonboard.com 2020-09-17T14:04:48+00:00 d797d5cc5fef90a9fc913b81087308815a126ce5 Python2 has now gone end-of-life and is discontinued. Update the gen-lut utility to use python3 directly, converting xrange usages to range, and using bytearray to store the tables and write them directly removing the discontinued file object. 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>
Python2 has now gone end-of-life and is discontinued.

Update the gen-lut utility to use python3 directly, converting xrange
usages to range, and using bytearray to store the tables and write them
directly removing the discontinued file object.

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>
tests: Provide {un,}bind testing 2020-09-16T14:16:19+00:00 Kieran Bingham kieran.bingham@ideasonboard.com 2020-05-25T13:13:23+00:00 e78b1cf6da1b3fed44e7aebb2671ea0f847b209e Perform unbind-bind testing of the VSP devices to validate successful removal of the drivers. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Perform unbind-bind testing of the VSP devices to validate
successful removal of the drivers.

Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
gen-image: Replace copyright text with SPDX tags 2020-07-14T09:12:28+00:00 Laurent Pinchart laurent.pinchart@ideasonboard.com 2020-07-11T14:37:34+00:00 4426496af89f6c52c4f54650100ec5ee907c8604 Standardize on the usage of SPDX tags. No change in copyright is included. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Standardize on the usage of SPDX tags. No change in copyright is
included.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Add license and copyright information 2020-07-14T09:12:02+00:00 Laurent Pinchart laurent.pinchart@ideasonboard.com 2020-07-11T14:35:23+00:00 46018778d2494189cb8d9f49966ca64cf82e70bc Add SPDX tags to describe license and copyright information to all files in the repository. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Add SPDX tags to describe license and copyright information to all files
in the repository.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Remove dependency on a particular yavta branch 2019-02-23T20:09:45+00:00 Laurent Pinchart laurent.pinchart@ideasonboard.com 2019-02-22T10:00:58+00:00 6d0da32ad190069976c1744b5fa189730e216941 All the changes required by the VSP test suite have been integrated in the master branch of yavta. There is no need to depend on the vsp branch anymore, remove the corresponding paragraph from the documentation. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
All the changes required by the VSP test suite have been integrated in
the master branch of yavta. There is no need to depend on the vsp branch
anymore, remove the corresponding paragraph from the documentation.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>