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
fxcodec::ProgressiveDecoder Class Referencefinal

#include <progressive_decoder.h>

+ Inheritance diagram for fxcodec::ProgressiveDecoder:
+ Collaboration diagram for fxcodec::ProgressiveDecoder:

Public Types

enum  FXCodec_Format {
  FXCodec_Invalid = 0 , FXCodec_1bppGray = 0x101 , FXCodec_1bppRgb = 0x001 , FXCodec_8bppGray = 0x108 ,
  FXCodec_8bppRgb = 0x008 , FXCodec_Rgb = 0x018 , FXCodec_Rgb32 = 0x020 , FXCodec_Argb = 0x220 ,
  FXCodec_Cmyk = 0x120
}
 

Public Member Functions

 ProgressiveDecoder ()
 
virtual ~ProgressiveDecoder ()
 
FXCODEC_STATUS LoadImageInfo (RetainPtr< IFX_SeekableReadStream > pFile, FXCODEC_IMAGE_TYPE imageType, CFX_DIBAttribute *pAttribute, bool bSkipImageTypeCheck)
 
FXCODEC_IMAGE_TYPE GetType () const
 
int32_t GetWidth () const
 
int32_t GetHeight () const
 
int32_t GetBitsPerPixel () const
 
void SetClipBox (FX_RECT *clip)
 
std::pair< FXCODEC_STATUS, size_t > GetFrames ()
 
FXCODEC_STATUS StartDecode (const RetainPtr< CFX_DIBitmap > &pDIBitmap, int start_x, int start_y, int size_x, int size_y)
 
FXCODEC_STATUS ContinueDecode ()
 

Detailed Description

Definition at line 47 of file progressive_decoder.h.

Member Enumeration Documentation

◆ FXCodec_Format

Enumerator
FXCodec_Invalid 
FXCodec_1bppGray 
FXCodec_1bppRgb 
FXCodec_8bppGray 
FXCodec_8bppRgb 
FXCodec_Rgb 
FXCodec_Rgb32 
FXCodec_Argb 
FXCodec_Cmyk 

Definition at line 59 of file progressive_decoder.h.

Constructor & Destructor Documentation

◆ ProgressiveDecoder()

fxcodec::ProgressiveDecoder::ProgressiveDecoder ( )
default

◆ ~ProgressiveDecoder()

fxcodec::ProgressiveDecoder::~ProgressiveDecoder ( )
virtualdefault

Member Function Documentation

◆ ContinueDecode()

FXCODEC_STATUS fxcodec::ProgressiveDecoder::ContinueDecode ( )

Definition at line 2169 of file progressive_decoder.cpp.

References kDecodeToBeContinued, and kError.

◆ GetBitsPerPixel()

int32_t fxcodec::ProgressiveDecoder::GetBitsPerPixel ( ) const
inline

Definition at line 82 of file progressive_decoder.h.

◆ GetFrames()

std::pair< FXCODEC_STATUS, size_t > fxcodec::ProgressiveDecoder::GetFrames ( )

Definition at line 2040 of file progressive_decoder.cpp.

References kDecodeReady, kError, kFrameReady, and kFrameToBeContinued.

◆ GetHeight()

int32_t fxcodec::ProgressiveDecoder::GetHeight ( ) const
inline

Definition at line 81 of file progressive_decoder.h.

◆ GetType()

FXCODEC_IMAGE_TYPE fxcodec::ProgressiveDecoder::GetType ( ) const
inline

Definition at line 79 of file progressive_decoder.h.

◆ GetWidth()

int32_t fxcodec::ProgressiveDecoder::GetWidth ( ) const
inline

Definition at line 80 of file progressive_decoder.h.

◆ LoadImageInfo()

FXCODEC_STATUS fxcodec::ProgressiveDecoder::LoadImageInfo ( RetainPtr< IFX_SeekableReadStream > pFile,
FXCODEC_IMAGE_TYPE imageType,
CFX_DIBAttribute * pAttribute,
bool bSkipImageTypeCheck )

Definition at line 1493 of file progressive_decoder.cpp.

References FX_RECT::FX_RECT(), kDecodeReady, kDecodeToBeContinued, kError, kFrameReady, kFrameToBeContinued, and FX_RECT::operator=().

+ Here is the call graph for this function:

◆ SetClipBox()

void fxcodec::ProgressiveDecoder::SetClipBox ( FX_RECT * clip)

Definition at line 1545 of file progressive_decoder.cpp.

References FX_RECT::FX_RECT(), FX_RECT::bottom, FX_RECT::IsEmpty(), kFrameReady, FX_RECT::left, FX_RECT::operator=(), FX_RECT::right, and FX_RECT::top.

+ Here is the call graph for this function:

◆ StartDecode()

FXCODEC_STATUS fxcodec::ProgressiveDecoder::StartDecode ( const RetainPtr< CFX_DIBitmap > & pDIBitmap,
int start_x,
int start_y,
int size_x,
int size_y )

Definition at line 2089 of file progressive_decoder.cpp.

References FX_RECT::FX_RECT(), FX_RECT::bottom, FX_RECT::Height(), FX_RECT::IsEmpty(), kDecodeReady, kError, FX_RECT::left, FX_RECT::right, FX_RECT::top, and FX_RECT::Width().

+ Here is the call graph for this function:

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