JPGImageContext(3)

πŸ“¦
version 0.1.0 Β· 2 versions
, in fedora 43

πŸ’– JPGImageContext πŸ’–

okay so bestie, welcome to the JPGImageContext(3) glow-up β€” straight out of the Library Functions Manual section 3, the one for library functions, and it's literally all about the Image Context for the JPG image loader. sit down, hydrate, and let's get into it 🫢


✨ NAME ✨

JPGImageContext β€” the Image Context for the JPG image loader. that's the whole name, that's the whole vibe πŸ’…


🌸 SYNOPSIS 🌸

#include <SILLYJPGImageContext.h>

it Inherits ImageContext. yes ma'am, it's giving legacy, it's giving lineage πŸ‘‘

πŸŽ€ Public Member Functions πŸŽ€

  • bool flipVertically () β€” flip the pixel ordering. (inherited, and yes it's as iconic as it sounds)
  • size_t getHeight () const β€” gets you the height, no questions asked
  • PixelFormat getPixelFormat () const β€” gets you the pixel format
  • size_t getWidth () const β€” gets you the width, slay
  • void setDestination (byte *pixels, size_t length, PixelFormat format) β€” set where the loading is gonna drop its pixels, how long that run is, and in what format
  • void setImageSize () β€” sets the image size, periodt
  • void setNextPixel (byte red, byte green, byte bleu, byte alpha) β€” hand over the next pixel of the image. yes the parameter is spelled bleu, we do not fix what Doxygen has blessed, we love her for it πŸ¦‹

🌈 Public Attributes 🌈

  • jpeg_decompress_struct cinfo
  • jpeg_error_mgr d_error_mgr
  • DataSource * d_source
  • jmp_buf setjmp_buffer
  • jpeg_source_mgr src_mgr

🧚 Protected Member Functions 🧚

  • void setHeight (size_t height) β€” set the height, but make it protected
  • void setWidth (size_t width) β€” same energy, but width

πŸ’… Detailed Description πŸ’…

okay so, real talk: this is the Image Context for JPG image loader. that's the assignment and she ate πŸ”₯

Most of the code of this loader is taken from Corona and adapted to our image loading framework β€” so yeah, credit where credit is due, bestie.

Multiple loading is not handle yet. no cap, that's literally what it says. do not come for me, come for the codebase 😭

Definition at line 56 of file SILLYJPGImageContext.h. β€” noted, screenshot, archived πŸ“Έ


πŸŽ€ Constructor & Destructor Documentation πŸŽ€

JPGImageContext ()

Definition at line 90 of file SILLYJPGImageContext.cpp. πŸ’–

~JPGImageContext ()

Definition at line 109 of file SILLYJPGImageContext.cpp. πŸ’€ the destructor said goodbye and meant it


πŸ¦‹ Member Function Documentation πŸ¦‹

bool flipVertically () [inherited]

flip pixel ordering. that's it, that's the function, and she understood the assignment 🌸

Returns

true on success, false otherwise.

Definition at line 45 of file SILLYImageContext.cpp.

void setImageSize ()

Definition at line 115 of file SILLYJPGImageContext.cpp.


⭐ Member Data Documentation ⭐

jpeg_decompress_struct cinfo

Definition at line 66 of file SILLYJPGImageContext.h.

jpeg_error_mgr d_error_mgr

Definition at line 68 of file SILLYJPGImageContext.h.

DataSource* d_source

Definition at line 70 of file SILLYJPGImageContext.h.

jmp_buf setjmp_buffer

Definition at line 69 of file SILLYJPGImageContext.h.

jpeg_source_mgr src_mgr

Definition at line 65 of file SILLYJPGImageContext.h.


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for Simple Image Loading LibrarY from the source code. like, the robots wrote this one, we just gave it a personality πŸ’œ


and that's the whole page, bestie πŸ’–βœ¨ this little masterpiece is brought to you by the Simple Image Loading LibrarY, Version 0.1.0, and it's stamped with the name JPGImageContext(3) β€” go forth and load those JPGs, mwah πŸŽ€πŸ«ΆπŸŒˆ

πŸ“¦ where this page comes from