JPGImageLoader(3)

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

✨ 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 initialy
  • data β€” 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 array
  • data β€” the input of the image data
  • context β€” 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