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::GifDecoder Class Reference

#include <gif_decoder.h>

+ Collaboration diagram for fxcodec::GifDecoder:

Classes

class  Delegate
 

Public Types

enum class  Status { kError , kSuccess , kUnfinished }
 

Public Member Functions

 GifDecoder ()=delete
 
 GifDecoder (const GifDecoder &)=delete
 
GifDecoderoperator= (const GifDecoder &)=delete
 

Static Public Member Functions

static std::unique_ptr< ProgressiveDecoderIface::ContextStartDecode (Delegate *pDelegate)
 
static Status ReadHeader (ProgressiveDecoderIface::Context *context, int *width, int *height, int *pal_num, CFX_GifPalette **pal_pp, int *bg_index)
 
static std::pair< Status, size_t > LoadFrameInfo (ProgressiveDecoderIface::Context *context)
 
static Status LoadFrame (ProgressiveDecoderIface::Context *context, size_t frame_num)
 
static FX_FILESIZE GetAvailInput (ProgressiveDecoderIface::Context *context)
 
static bool Input (ProgressiveDecoderIface::Context *context, RetainPtr< CFX_CodecMemory > codec_memory)
 

Detailed Description

Definition at line 24 of file gif_decoder.h.

Member Enumeration Documentation

◆ Status

enum class fxcodec::GifDecoder::Status
strong
Enumerator
kError 
kSuccess 
kUnfinished 

Definition at line 26 of file gif_decoder.h.

Constructor & Destructor Documentation

◆ GifDecoder() [1/2]

fxcodec::GifDecoder::GifDecoder ( )
delete

◆ GifDecoder() [2/2]

fxcodec::GifDecoder::GifDecoder ( const GifDecoder & )
delete

Member Function Documentation

◆ GetAvailInput()

FX_FILESIZE fxcodec::GifDecoder::GetAvailInput ( ProgressiveDecoderIface::Context * context)
static

Definition at line 61 of file gif_decoder.cpp.

References fxcodec::CFX_GifContext::GetAvailInput().

Referenced by fxcodec::GifProgressiveDecoder::GetAvailInput().

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

◆ Input()

bool fxcodec::GifDecoder::Input ( ProgressiveDecoderIface::Context * context,
RetainPtr< CFX_CodecMemory > codec_memory )
static

Definition at line 67 of file gif_decoder.cpp.

References fxcodec::CFX_GifContext::SetInputBuffer().

Referenced by fxcodec::GifProgressiveDecoder::Input().

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

◆ LoadFrame()

GifDecoder::Status fxcodec::GifDecoder::LoadFrame ( ProgressiveDecoderIface::Context * context,
size_t frame_num )
static

Definition at line 54 of file gif_decoder.cpp.

◆ LoadFrameInfo()

std::pair< GifDecoder::Status, size_t > fxcodec::GifDecoder::LoadFrameInfo ( ProgressiveDecoderIface::Context * context)
static

Definition at line 44 of file gif_decoder.cpp.

References fxcodec::CFX_GifContext::GetFrame(), and kSuccess.

+ Here is the call graph for this function:

◆ operator=()

GifDecoder & fxcodec::GifDecoder::operator= ( const GifDecoder & )
delete

◆ ReadHeader()

GifDecoder::Status fxcodec::GifDecoder::ReadHeader ( ProgressiveDecoderIface::Context * context,
int * width,
int * height,
int * pal_num,
CFX_GifPalette ** pal_pp,
int * bg_index )
static

Definition at line 22 of file gif_decoder.cpp.

References fxcodec::CFX_GifContext::bc_index_, fxcodec::CFX_GifContext::global_palette_exp_, fxcodec::CFX_GifContext::height_, kSuccess, fxcodec::CFX_GifContext::ReadHeader(), and fxcodec::CFX_GifContext::width_.

+ Here is the call graph for this function:

◆ StartDecode()

std::unique_ptr< ProgressiveDecoderIface::Context > fxcodec::GifDecoder::StartDecode ( Delegate * pDelegate)
static

Definition at line 16 of file gif_decoder.cpp.


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