Forum Discussion
Altera_Forum
Honored Contributor
8 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 fil...
Altera_Forum
Honored Contributor
8 years agoa jpeg image is a compressed image. this means you need to decode the image first. This is more complicated than using the uncompressed ppm format. Decoding the jpeg takes time, so if speed is your goal, you might want this to run on the fpga as well. But if you might be able to only pass the image data (not the encoder data) if the encoder data will be unchanged. The steps you will need to run though are
jpeg file -> decode -> run filter -> do other stuff