Join Bill Weinman for an in-depth discussion in this video My solution: Using libjpeg, part of Code Clinic: C++.
The first part of the problem is to read a jpeg file…and prepare it for the comparison.…For this purpose I chose to use a version…of the standard live jpeg library called "lib jpeg turbo."…You can find this library at libjpeg-turbo.org.…This library is derived from the original…standard lib jpeg library, but it's modified…to use hardware acceleration where available.…In other words it works exactly the same, it's just faster.…Here I have the code for my solution open in Xcode.…This is standard C++11, so you can use any compiler…or IDE that supports standard C++11.…
You do not need to use Xcode.…The read jpeg method here in the jpeg data class…is really the only place where I use the lib jpeg library.…We'll find this down here.…As I usually do with a reference library, I start…with the reference implementation from the documentation…and I make small adjustments from there.…Here I just basically just took that reference function…from the reference code and I pasted it into here,…and then I modified from there to make it fit in my class.…
Bill introduces challenges and 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#, Java, PHP, Python, and Ruby.
Skill Level Intermediate
Problem One: Exploring Lake Pend Oreille
Solution overview2m 51s
Problem Two: Image Analysis
Problem Three: Eight Queens
Problem Four: Accessing Peripherals
Problem Five: Recursion and Directories
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.