summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2022-02-28gen-image: Crop input image before format conversion to YUVLaurent Pinchart
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>
2022-02-28src: monotonic-ts: Monotonic timestamp loggingKieran Bingham
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>
2020-07-14gen-image: Replace copyright text with SPDX tagsLaurent Pinchart
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>
2020-07-14Add license and copyright informationLaurent Pinchart
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>
2017-03-03gen-image: Add generation of HGT reference frameNiklas Söderlund
Add a new histogram type HGT to be able to compute HGT histogram frame from RGB data. This is needed to test the HGT module together with the HST module in the VSP pipeline to convert a image from RGB to HSV. This also includes a new command line option to be able to specify the user configuration of the HGT hue areas. This is needed to verify that the HGT driver can operate with different hue area configurations. Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
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-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>
2016-09-16gen-image: Add conversion from RGB to HSV supportLaurent Pinchart
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-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>