ImageLoader(3)
π ImageLoader(3) π
okay so bestie, welcome to the Library Functions Manual entry for ImageLoader β she's an abstract class and she's the blueprint energy of the whole squad, no cap. π¦
β¨ NAME β¨
ImageLoader β this is an abstract class that defines the interface of all image loaders. she doesn't do the work herself, she just tells everyone else what work needs doing. main character energy fr. π
πΈ SYNOPSIS πΈ
#include <SILLYImageLoader.h>
Inherited by JPGImageLoader, PNGImageLoader, and TGAImageLoader. the girls are all her daughters π
π Public Member Functions π
void destroyContext (ImageContext *context)β Destroy the image context. bye bye context π«Άconst char * getIdentifierString () constβ Return the name of the loader. like a name tag but for a class β¨virtual ImageContext * loadHeader (PixelFormat &formatSource, DataSource *data)=0β Parse the header of the image and fill the header struct. (pure virtual, so she's not doing it herself β her kids have to π)virtual bool loadImageData (PixelOrigin origin, DataSource *data, ImageContext *context)=0β Parse the pixels data of the image and fill the header struct. also pure virtual, also a group project πvirtual ~ImageLoader ()β Destructor. she's logging off, respectfully π
π Protected Member Functions π
ImageLoader (const char *name)β Constructor. protected, so only the family gets to call it π
π§ Detailed Description π§
This is an abstract class that define the interface of all image loader.
In order to add support for new image format one have to inherits this class and implement all required function. that's it, that's the whole vibe check β inherit and implement, periodt. π
Definition at line 46 of file SILLYImageLoader.h.
β Member Function Documentation β
π void destroyContext (ImageContext * context)
Destroy the image context. literally just clean up after yourself bestie, it's giving basic hygiene π§Ό
Parameters
- context β a pointer to the context
Definition at line 47 of file SILLYImageLoader.cpp.
π¦ virtual ImageContext * loadHeader (PixelFormat & formatSource, DataSource * data) [pure virtual]
Parse the header of the image and fill the header struct. this is the little sneak peek before the whole picture shows up, iykyk π
Parameters
- formatSource β this var should contains the pixel format used to store the image initialy
- data β the input of the image data
Returns
- Context for the rest of the parsing or
0if an error occured
Implemented in JPGImageLoader, PNGImageLoader, and TGAImageLoader. all three of them ate π₯
πΈ virtual bool loadImageData (PixelOrigin origin, DataSource * data, ImageContext * context) [pure virtual]
Parse the pixels data of the image and fill the header struct. this is the actual pixels, the moment we've all been waiting for β¨
Parameters
- origin β the layout of the pixel in the resulting pixel array
- data β the input of the image data
- context β the data associated to the image parsing
Returns
trueon successfalseon error
Implemented in JPGImageLoader, PNGImageLoader, and TGAImageLoader. iconic behavior from all of them π
π Author π
Generated automatically by Doxygen for Simple Image Loading LibrarY from the source code. not a human wrote this, a robot did, and honestly? she slayed. π€π
okay that's the whole page, bestie π β and just so you know, this was the ImageLoader(3) page from Simple Image Loading LibrarY, Version 0.1.0, so go forth and inherit responsibly. 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
- fedora 44: SILLY-devel 0.1.0-44.fc44 Β· MIT
- fedora 44: SILLY-devel 0.1.0-44.fc44 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms