summaryrefslogtreecommitdiff
path: root/src/gen-image.c
AgeCommit message (Collapse)Author
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>