The process of reading a JPEG image involves multiple steps, configuring structures, and running decompression. The processor writing a JPEG is similar, involving configuring structures and running compression. Once decompressed, JPEG data is available for manipulation in memory.
- [Instructor] Even with a lib jpeg library available, … reading and writing a jpeg image is a complex task … involving lots of variables, configuration, and process. … So it helps to break everything down into steps. … This code reads the sample jpeg file 05-02-image.1, … which is specified at line seven. … It decompresses the image data and then stores it in memory. … Now the seven steps to reading a jpeg file are: … Number one, open the input file at line 16, … which is just standard C code. … Number two at line 26 is to configure the dcinfo structure … for decompression. … Number three at line 35 is to decompress the file, … which is done by the jpeg_start_decompress function. … Next at line 38, some information about the image … is gathered and output. … At line 46, a data structure is created … to hold the raw image data read … from the decompressed image file. … At line 58, the raw data is read and stored … in the while loop. … At this point you can manipulate the image stored …
- Finding, installing, and linking libraries
- Accessing and generating XML data
- Working with JSON
- Working with the libcurl library
- Text programming
- Reading, writing, and manipulating JPEG images
- Working with PNG images
Skill Level Advanced
1. Setup and Configuration
2. Data Structures
3. Web Access
4. Text Programming
5. Computer Graphics
- 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.