Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
Jpeg2000JasperReader Class Reference
Collaboration diagram for Jpeg2000JasperReader:

Public Member Functions

 Jpeg2000JasperReader (QIODevice *iod, const SubFormat format=Jp2Format)
 ~Jpeg2000JasperReader ()
bool read (QImage *pImage)
bool write (const QImage &image, int quality)
 Opens the file data and attempts to decode it using the Jasper library.
 Jpeg2000JasperReader (QIODevice *iod, const SubFormat format=Jp2Format)
 ~Jpeg2000JasperReader ()
bool read (QImage *pImage)
bool write (const QImage &image, int quality)

Detailed Description

Definition at line 43 of file qjp2handler.cpp.

Constructor & Destructor Documentation

◆ Jpeg2000JasperReader() [1/2]

Jpeg2000JasperReader::Jpeg2000JasperReader ( QIODevice * iod,
const SubFormat format = Jp2Format )

Construct a Jpeg2000JasperReader using the provided imageIO. Note that currently the jasper library is initialized in this constructor, (and freed in the destructor) which means that:

  • Only one instance of this class may exist at one time
  • No thread safety

Definition at line 299 of file qjp2handler.cpp.

Referenced by QJp2Handler::read(), and QJp2Handler::write().

Here is the caller graph for this function:

◆ ~Jpeg2000JasperReader() [1/2]

Jpeg2000JasperReader::~Jpeg2000JasperReader ( )

Definition at line 328 of file qjp2handler.cpp.

◆ Jpeg2000JasperReader() [2/2]

Jpeg2000JasperReader::Jpeg2000JasperReader ( QIODevice * iod,
const SubFormat format = Jp2Format )

◆ ~Jpeg2000JasperReader() [2/2]

Jpeg2000JasperReader::~Jpeg2000JasperReader ( )

Member Function Documentation

◆ read() [1/2]

bool Jpeg2000JasperReader::read ( QImage * pImage)

Opens the file data and attempts to decode it using the Jasper library. Returns true if successful, false on failure

Definition at line 349 of file qjp2handler.cpp.

References ScopedJasperImage::ScopedJasperImage().

Referenced by QJp2Handler::read().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ read() [2/2]

bool Jpeg2000JasperReader::read ( QImage * pImage)

◆ write() [1/2]

bool Jpeg2000JasperReader::write ( const QImage & image,
int quality )

Opens the file data and attempts to decode it using the Jasper library.

Returns true on success, false on failure.

32-bit and color mapped color images are encoded as RGB images, color mapped grayscale images are encoded as grayscale images

Definition at line 758 of file qjp2handler.cpp.

References Jp2Format.

◆ write() [2/2]

bool Jpeg2000JasperReader::write ( const QImage & image,
int quality )

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