JPGImageContext(3)
π 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 askedPixelFormat getPixelFormat () constβ gets you the pixel formatsize_t getWidth () constβ gets you the width, slayvoid 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 formatvoid setImageSize ()β sets the image size, periodtvoid setNextPixel (byte red, byte green, byte bleu, byte alpha)β hand over the next pixel of the image. yes the parameter is spelledbleu, we do not fix what Doxygen has blessed, we love her for it π¦
π Public Attributes π
jpeg_decompress_struct cinfojpeg_error_mgr d_error_mgrDataSource * d_sourcejmp_buf setjmp_bufferjpeg_source_mgr src_mgr
π§ Protected Member Functions π§
void setHeight (size_t height)β set the height, but make it protectedvoid 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
- fedora 43: SILLY-devel 0.1.0-42.fc43 Β· MIT
- fedora 43: SILLY-devel 0.1.0-42.fc43 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms