Join Dan Gookin for an in-depth discussion in this video Reading JPEG files in C, part of Code Clinic: C.
- 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…
Author
Updated
6/25/2015Released
4/23/2015Dan 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.
Visit other courses in the series to see how to solve the exact same challenges in languages like C++, C#, JavaScript, PHP, Python, R, Ruby, and Swift.
Skill Level Beginner
Duration
Views
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.
Related Courses
-
Code Clinic: C++
with Bill Weinman2h 4m Intermediate -
Code Clinic: C#
with David Gassner3h 14m Intermediate -
Code Clinic: PHP
with David Powers4h 44m Intermediate -
Code Clinic: Ruby
with Kevin Skoglund5h 42m Intermediate
-
Introduction
-
Welcome1m 12s
-
-
1. Problem One: Exploring Lake Pend Oreille
-
Exploring Lake Pend Oreille3m 49s
-
Solution overview2m 48s
-
-
2. Problem Two: Image Analysis
-
Image analysis2m 59s
-
Solution overview1m 57s
-
Reading JPEG files in C3m 35s
-
Scanning for image data4m 40s
-
Doing a file round-robin1m 37s
-
-
3. Problem Three: Eight Queens
-
Eight queens1m 46s
-
Solution overview1m 51s
-
Failing the first time3m 10s
-
-
4. Problem Four: Accessing Peripherals
-
Accessing peripherals1m 21s
-
Solution overview1m 55s
-
Playing with sound in C3m 12s
-
-
5. Problem Five: Recursion and Directories
-
Recursion and directories2m 12s
-
Solution overview2m 19s
-
Hunting for EXIF data3m 27s
-
-
6. Problem Six: Building the Web
-
Building the web1m 34s
-
Solution overview1m 42s
-
- 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.
CancelTake 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.
Share this video
Embed this video
Video: Reading JPEG files in C