XenevaOS
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | List of all members
Jpeg::Decoder Class Reference

#include <nanojpg.h>

Public Types

enum  DecodeResult {
  OK = 0 , NotAJpeg , Unsupported , OutOfMemory ,
  InternalError , SyntaxError , Internal_Finished
}
 

Public Member Functions

 Decoder (const unsigned char *data, uint32_t size, void *(*allocFunc)(uint32_t), void(*freeFunc)(void *))
 
 ~Decoder ()
 
DecodeResult GetResult () const
 
int GetWidth () const
 
int GetHeight () const
 
bool IsColor () const
 
unsigned char * GetImage () const
 
uint32_t GetImageSize () const
 

Member Enumeration Documentation

◆ DecodeResult

Enumerator
OK 
NotAJpeg 
Unsupported 
OutOfMemory 
InternalError 
SyntaxError 
Internal_Finished 

Constructor & Destructor Documentation

◆ Decoder()

Jpeg::Decoder::Decoder ( const unsigned char *  data,
uint32_t  size,
void *(*)(uint32_t allocFunc,
void(*)(void *)  freeFunc 
)
inline

◆ ~Decoder()

Jpeg::Decoder::~Decoder ( )
inline

Member Function Documentation

◆ GetHeight()

int Jpeg::Decoder::GetHeight ( ) const
inline

◆ GetImage()

unsigned char * Jpeg::Decoder::GetImage ( ) const
inline

◆ GetImageSize()

uint32_t Jpeg::Decoder::GetImageSize ( void  ) const
inline

◆ GetResult()

Decoder::DecodeResult Jpeg::Decoder::GetResult ( ) const
inline

◆ GetWidth()

int Jpeg::Decoder::GetWidth ( ) const
inline

◆ IsColor()

bool Jpeg::Decoder::IsColor ( ) const
inline

The documentation for this class was generated from the following file: