summaryrefslogtreecommitdiff
path: root/crc/main.c
AgeCommit message (Collapse)Author
2020-08-08crc: Add a utility to compute the CRC of a frameLaurent Pinchart
The discom-crc utility computes the CRC of a frame using the same algorithm as the DISCOM hardware block. This is useful to precompute CRC values and then compare them with the hardware-generated values. The utility computes the CRC on data stored in a file passed as a command line argument. It supports two optional arguments, --crop and --size, to specify the crop rectangle and the image size. The size only needs to be specified if a crop rectangle is set, it is deduced from the file size otherwise. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>