Altera_Forum
Honored Contributor
9 years agoHow to Parse a JPEG file instead of PPM
Hello,
I am currently using the sobel filter design example for OpenCL on FPGA application. I notice that there is two cpp files, one for the host and one which handles the parsing of a ppm file. I find the code quite difficult to understand, and don't want to plagiarise the code, and would therefore like to develop one similar that instead parses a jpeg file to improve my coding knowledge., and use that to load a jpeg file for the sobel filter application instead. How could that be achieved? I have attached the parsing cpp code to this thread, as txt file as cpp is invalid file format. Thanks. Thanks in advance OK