JPGImageLoader(3)
β¨ JPGImageLoader(3) β¨
okay bestie, pull up a chair π«Ά this one lives in the Library Functions Manual, and it's literally the glow-up guide for loading JPGs. no cap.
πΈ NAME πΈ
JPGImageLoader β Loader class for JPG Image. that's it, that's the whole vibe. π
π SYNOPSIS π
#include <SILLYJPGImageLoader.h>
Inherits ImageLoader. yes she's a nepo baby, and she earned it. π
π¦ Public Member Functions π¦
void destroyContext (ImageContext *context)β Destroy the image context. poof, gone, no notes. πconst char * getIdentifierString () constβ Return the name of the loader. like a little name tag but for code. π·οΈImageContext * loadHeader (PixelFormat &header, DataSource *data)β Parse the header of the image and fill the header struct. β¨bool loadImageData (PixelOrigin origin, DataSource *data, ImageContext *context)β Parse the pixels data of the image and fill the header struct. the actual pixels bestie, the moment we've all been waiting for. π₯
π Detailed Description π
Loader class for JPG Image. iconic behaviour honestly. π
Definition at line 42 of file SILLYJPGImageLoader.h.
π Constructor & Destructor Documentation π
π JPGImageLoader ()
Definition at line 46 of file SILLYJPGImageLoader.cpp.
π ~JPGImageLoader ()
Definition at line 51 of file SILLYJPGImageLoader.cpp.
π« Member Function Documentation π«
π void destroyContext (ImageContext * context) [inherited]
Destroy the image context. it's giving cleanup era. π§Ή
Parameters
contextβ a pointer to the context
Definition at line 47 of file SILLYImageLoader.cpp.
π ImageContext * loadHeader (PixelFormat & formatSource, DataSource * data) [virtual]
Parse the header of the image and fill the header struct. she reads the vibe check at the top of the file first, obviously. π
Parameters
formatSourceβ this var should contains the pixel format used to store the image initialydataβ the input of the image data
Returns
Context for the rest of the parsing or 0 if an error occured
Implements ImageLoader.
Definition at line 56 of file SILLYJPGImageLoader.cpp.
π bool loadImageData (PixelOrigin origin, DataSource * data, ImageContext * context) [virtual]
Parse the pixels data of the image and fill the header struct. this is where the pixels actually get their moment, main character energy fr fr. π
Parameters
originβ the layout of the pixel in the resulting pixel arraydataβ the input of the image datacontextβ the data associated to the image parsing
Returns
true on success false on error
Implements ImageLoader.
Definition at line 90 of file SILLYJPGImageLoader.cpp.
π Author π
Generated automatically by Doxygen for Simple Image Loading LibrarY from the source code. so like, the docs wrote themselves. self-care. π
and that's the whole page bestie, slay π
this was Simple Image Loading LibrarY, Version 0.1.0, and the page itself is JPGImageLoader(3) β mwah, go load some JPEGs, ily π«Άβ¨
π¦ 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