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

#include <cfx_gifcontext.h>

Inheritance diagram for fxcodec::CFX_GifContext:
Collaboration diagram for fxcodec::CFX_GifContext:

Public Member Functions

 CFX_GifContext (GifDecoder::Delegate *delegate)
 ~CFX_GifContext () override
void ReadScanline (int32_t row_num, pdfium::span< uint8_t > row_buf)
bool GetRecordPosition (uint32_t cur_pos, int32_t left, int32_t top, int32_t width, int32_t height, pdfium::span< CFX_GifPalette > pal, int32_t trans_index, bool interlace)
GifDecoder::Status ReadHeader ()
GifDecoder::Status GetFrame ()
GifDecoder::Status LoadFrame (size_t frame_num)
void SetInputBuffer (RetainPtr< CFX_CodecMemory > codec_memory)
uint32_t GetAvailInput () const
size_t GetFrameNum () const
Public Member Functions inherited from fxcodec::ProgressiveDecoderIface::Context
virtual ~Context ()=default

Public Attributes

UnownedPtr< GifDecoder::Delegate > const delegate_
std::vector< CFX_GifPaletteglobal_palette_
uint8_t global_palette_exp_ = 0
uint32_t img_row_offset_ = 0
uint32_t img_row_avail_size_ = 0
int32_t decode_status_ = GIF_D_STATUS_SIG
std::unique_ptr< CFX_GifGraphicControlExtensiongraphic_control_extension_
std::vector< std::unique_ptr< CFX_GifImage > > images_
std::unique_ptr< LZWDecompressorlzw_decompressor_
int width_ = 0
int height_ = 0
uint8_t bc_index_ = 0
uint8_t global_sort_flag_ = 0
uint8_t global_color_resolution_ = 0
uint8_t img_pass_num_ = 0

Protected Member Functions

bool ReadAllOrNone (pdfium::span< uint8_t > dest)
GifDecoder::Status ReadGifSignature ()
GifDecoder::Status ReadLogicalScreenDescriptor ()

Protected Attributes

RetainPtr< CFX_CodecMemoryinput_buffer_

Detailed Description

Definition at line 25 of file cfx_gifcontext.h.

Constructor & Destructor Documentation

◆ CFX_GifContext()

fxcodec::CFX_GifContext::CFX_GifContext ( GifDecoder::Delegate * delegate)
explicit

Definition at line 31 of file cfx_gifcontext.cpp.

References CFX_GifContext().

Referenced by CFX_GifContext(), and fxcodec::CFX_GifContextForTest::CFX_GifContextForTest().

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

◆ ~CFX_GifContext()

fxcodec::CFX_GifContext::~CFX_GifContext ( )
overridedefault

Member Function Documentation

◆ GetAvailInput()

uint32_t fxcodec::CFX_GifContext::GetAvailInput ( ) const

Definition at line 320 of file cfx_gifcontext.cpp.

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

Here is the caller graph for this function:

◆ GetFrame()

GifDecoder::Status fxcodec::CFX_GifContext::GetFrame ( )

Definition at line 61 of file cfx_gifcontext.cpp.

References fxcodec::GifDecoder::kSuccess.

Referenced by fxcodec::GifDecoder::LoadFrameInfo().

Here is the caller graph for this function:

◆ GetFrameNum()

size_t fxcodec::CFX_GifContext::GetFrameNum ( ) const
inline

Definition at line 44 of file cfx_gifcontext.h.

◆ GetRecordPosition()

bool fxcodec::CFX_GifContext::GetRecordPosition ( uint32_t cur_pos,
int32_t left,
int32_t top,
int32_t width,
int32_t height,
pdfium::span< CFX_GifPalette > pal,
int32_t trans_index,
bool interlace )

Definition at line 41 of file cfx_gifcontext.cpp.

◆ LoadFrame()

◆ ReadAllOrNone()

bool fxcodec::CFX_GifContext::ReadAllOrNone ( pdfium::span< uint8_t > dest)
protected

Definition at line 328 of file cfx_gifcontext.cpp.

◆ ReadGifSignature()

GifDecoder::Status fxcodec::CFX_GifContext::ReadGifSignature ( )
protected

Definition at line 341 of file cfx_gifcontext.cpp.

References fxcodec::GifDecoder::kError, fxcodec::GifDecoder::kSuccess, and fxcodec::GifDecoder::kUnfinished.

Referenced by ReadHeader(), and fxcodec::TEST().

Here is the caller graph for this function:

◆ ReadHeader()

GifDecoder::Status fxcodec::CFX_GifContext::ReadHeader ( )

Definition at line 54 of file cfx_gifcontext.cpp.

References fxcodec::GifDecoder::kSuccess, ReadGifSignature(), and ReadLogicalScreenDescriptor().

Referenced by fxcodec::GifDecoder::ReadHeader(), and fxcodec::TEST().

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

◆ ReadLogicalScreenDescriptor()

GifDecoder::Status fxcodec::CFX_GifContext::ReadLogicalScreenDescriptor ( )
protected

Definition at line 354 of file cfx_gifcontext.cpp.

References CFX_GifLocalScreenDescriptor::bc_index, bc_index_, CFX_GifGlobalFlags::color_resolution, fxcrt::FromLE16(), global_color_resolution_, CFX_GifLocalScreenDescriptor::global_flags, CFX_GifGlobalFlags::global_pal, global_palette_exp_, global_sort_flag_, CFX_GifLocalScreenDescriptor::height, height_, fxcodec::GifDecoder::kError, fxcodec::GifDecoder::kSuccess, fxcodec::GifDecoder::kUnfinished, CFX_GifGlobalFlags::pal_bits, CFX_GifGlobalFlags::sort_flag, CFX_GifLocalScreenDescriptor::width, and width_.

Referenced by ReadHeader(), and fxcodec::TEST().

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

◆ ReadScanline()

void fxcodec::CFX_GifContext::ReadScanline ( int32_t row_num,
pdfium::span< uint8_t > row_buf )

Definition at line 36 of file cfx_gifcontext.cpp.

◆ SetInputBuffer()

void fxcodec::CFX_GifContext::SetInputBuffer ( RetainPtr< CFX_CodecMemory > codec_memory)

Definition at line 316 of file cfx_gifcontext.cpp.

Referenced by fxcodec::GifDecoder::Input(), and fxcodec::CFX_GifContextForTest::SetTestInputBuffer().

Here is the caller graph for this function:

Member Data Documentation

◆ bc_index_

uint8_t fxcodec::CFX_GifContext::bc_index_ = 0

◆ decode_status_

int32_t fxcodec::CFX_GifContext::decode_status_ = GIF_D_STATUS_SIG

Definition at line 51 of file cfx_gifcontext.h.

Referenced by LoadFrame().

◆ delegate_

UnownedPtr<GifDecoder::Delegate> const fxcodec::CFX_GifContext::delegate_

Definition at line 46 of file cfx_gifcontext.h.

◆ global_color_resolution_

uint8_t fxcodec::CFX_GifContext::global_color_resolution_ = 0

Definition at line 59 of file cfx_gifcontext.h.

Referenced by ReadLogicalScreenDescriptor(), fxcodec::TEST(), and fxcodec::TEST().

◆ global_palette_

std::vector<CFX_GifPalette> fxcodec::CFX_GifContext::global_palette_

Definition at line 47 of file cfx_gifcontext.h.

◆ global_palette_exp_

uint8_t fxcodec::CFX_GifContext::global_palette_exp_ = 0

Definition at line 48 of file cfx_gifcontext.h.

Referenced by ReadLogicalScreenDescriptor(), fxcodec::TEST(), and fxcodec::TEST().

◆ global_sort_flag_

uint8_t fxcodec::CFX_GifContext::global_sort_flag_ = 0

Definition at line 58 of file cfx_gifcontext.h.

Referenced by ReadLogicalScreenDescriptor(), fxcodec::TEST(), and fxcodec::TEST().

◆ graphic_control_extension_

std::unique_ptr<CFX_GifGraphicControlExtension> fxcodec::CFX_GifContext::graphic_control_extension_

Definition at line 52 of file cfx_gifcontext.h.

◆ height_

int fxcodec::CFX_GifContext::height_ = 0

◆ images_

std::vector<std::unique_ptr<CFX_GifImage> > fxcodec::CFX_GifContext::images_

Definition at line 53 of file cfx_gifcontext.h.

◆ img_pass_num_

uint8_t fxcodec::CFX_GifContext::img_pass_num_ = 0

Definition at line 60 of file cfx_gifcontext.h.

Referenced by LoadFrame().

◆ img_row_avail_size_

uint32_t fxcodec::CFX_GifContext::img_row_avail_size_ = 0

Definition at line 50 of file cfx_gifcontext.h.

Referenced by LoadFrame().

◆ img_row_offset_

uint32_t fxcodec::CFX_GifContext::img_row_offset_ = 0

Definition at line 49 of file cfx_gifcontext.h.

Referenced by LoadFrame().

◆ input_buffer_

RetainPtr<CFX_CodecMemory> fxcodec::CFX_GifContext::input_buffer_
protected

Definition at line 67 of file cfx_gifcontext.h.

◆ lzw_decompressor_

std::unique_ptr<LZWDecompressor> fxcodec::CFX_GifContext::lzw_decompressor_

Definition at line 54 of file cfx_gifcontext.h.

◆ width_

int fxcodec::CFX_GifContext::width_ = 0

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