Maria GDK 5.0.0.738
Documentation of native code in develop branch
Loading...
Searching...
No Matches
STK::ImageStbIO Class Reference

#include <StkImageStbIO.h>

Inheritance diagram for STK::ImageStbIO:
STK::ImageIO

Public Member Functions

 ImageStbIO (std::string filename="")
 
 ImageStbIO (const std::vector< uint8_t > &buffer)
 
void setQuality (int q)
 Set JPEG compression quality (0-100).
 
int getQuality () const
 
bool load (Image &img) override
 
bool save (const Image &img) override
 
bool readHeader (Image &img) override
 
bool open (OpenMode mode=READ) override
 
bool close () override
 
- Public Member Functions inherited from STK::ImageIO
 ImageIO (const std::string &filename, const char *opts=nullptr)
 
void setFilename (const std::string &filename)
 
const std::string & getFilename () const
 
virtual bool readSubImage (const Image &hdr, Image &img, int startx, int starty, int width, int height)
 
virtual bool load (Image &img)=0
 
virtual bool save (const Image &img)=0
 
virtual bool readHeader (Image &img)=0
 
virtual bool open (OpenMode mode=READ)=0
 
virtual bool close ()=0
 
virtual void setOptions (const char *)
 

Additional Inherited Members

- Public Types inherited from STK::ImageIO
enum  OpenMode { READ = 0 , WRITE }
 
- Static Public Member Functions inherited from STK::ImageIO
static std::unique_ptr< ImageIOcreate (const std::string &filename, const char *opts=nullptr)
 
static std::unique_ptr< ImageIOcreate (const std::vector< uint8_t > &imageBuffer)
 
- Protected Attributes inherited from STK::ImageIO
std::string filename_
 

Detailed Description

ImageStbIO - Read/Write image data using the STB API.

Member Function Documentation

◆ close()

bool STK::ImageStbIO::close ( )
overridevirtual

Implements STK::ImageIO.

◆ load()

bool STK::ImageStbIO::load ( Image img)
overridevirtual

Implements STK::ImageIO.

◆ open()

bool STK::ImageStbIO::open ( OpenMode  mode = READ)
overridevirtual

Implements STK::ImageIO.

◆ readHeader()

bool STK::ImageStbIO::readHeader ( Image img)
overridevirtual

Implements STK::ImageIO.

◆ save()

bool STK::ImageStbIO::save ( const Image img)
overridevirtual

Implements STK::ImageIO.


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