JPEG Compression
Requirements
No specific requirement. This example should run without issue on all chips/boards/OSes.
Description
This example generates synthetic 3 channels images (320x240) in software with horizontal and vertical white bands, compress them in jpeg and either writes them to file or streams them via UART to your PC. To stream images via UART set TO_FILE=n with Kconfig. Then use the python script uart_read_jpg.py to read them with your PC. When TO_FILE is enabled the images are simply written to files in your build folder.
NOTE: If you want to run the jpeg compression in FC (default in CLUSTER) you need to set the GAP LIB Comfiguration option in Kconfig Run Jpeg encoder on Cluster as OFF. This option simply set a DEFINE in the gcc postprocess arguments which is then used in main.c to enable the encoding on the cluster.