Join Dan Gookin for an in-depth discussion in this video Reading JPEG files in C, part of Code Clinic: C (2015).
- I think the most intimidating thing…about this challenge, for me, was to read a JPEG file.…I know that JPEG's an image file format…and that it's data is compressed.…You just can't examine raw bytes in a JPEG file.…The file must be properly handled.…I was in need of a JPEG library…to augment the C language's abilities.…After exhaustively searching the internet…for nearly three full minutes,…I determined that the libjpeg library was what I needed.…You can obtain a copy of the library from sourceforge.net.…
I also checked out the libjpeg turbo version,…which I probably didn't need, but I used anyway.…You can check it out at libjpegturbo.org.…If you're using cygwin on a PC,…then use the cyg package manager to install libjpeg.…I began this challenge not by writing the file code,…but just to ensure that I could successfully…read a JPEG file into memory.…Examples of such code are provided on the internet,…such as this one by Windower on GitHub.…
My first effort was a program I called duplicate.…Its job was to read in a JPEG file…
Dan introduces challenges and then provides an overview of his solutions in C. Challenges include topics such as statistical analysis, searching directories for images, and accessing peripheral devices.
Skill Level Beginner
Q: I am unable to access the Lake Pend Oreille data from outside the U.S.
A: A static copy of this data is provided here for lynda.com members outside of the U.S.
1. Problem One: Exploring Lake Pend Oreille
2. Problem Two: Image Analysis
3. Problem Three: Eight Queens
4. Problem Four: Accessing Peripherals
5. Problem Five: Recursion and Directories
6. Problem Six: Building the Web
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.