Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cfx_gifcontext.h>
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, int32_t pal_num, 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_GifPalette > | global_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_GifGraphicControlExtension > | graphic_control_extension_ |
std::vector< std::unique_ptr< CFX_GifImage > > | images_ |
std::unique_ptr< LZWDecompressor > | lzw_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 (uint8_t *dest, uint32_t size) |
GifDecoder::Status | ReadGifSignature () |
GifDecoder::Status | ReadLogicalScreenDescriptor () |
Protected Attributes | |
RetainPtr< CFX_CodecMemory > | input_buffer_ |
Definition at line 24 of file cfx_gifcontext.h.
|
explicit |
Definition at line 29 of file cfx_gifcontext.cpp.
References CFX_GifContext().
Referenced by CFX_GifContext(), and fxcodec::CFX_GifContextForTest::CFX_GifContextForTest().
|
overridedefault |
uint32_t fxcodec::CFX_GifContext::GetAvailInput | ( | ) | const |
Definition at line 324 of file cfx_gifcontext.cpp.
Referenced by fxcodec::GifDecoder::GetAvailInput().
GifDecoder::Status fxcodec::CFX_GifContext::GetFrame | ( | ) |
Definition at line 60 of file cfx_gifcontext.cpp.
References fxcodec::GifDecoder::kSuccess.
Referenced by fxcodec::GifDecoder::LoadFrameInfo().
|
inline |
Definition at line 44 of file cfx_gifcontext.h.
bool fxcodec::CFX_GifContext::GetRecordPosition | ( | uint32_t | cur_pos, |
int32_t | left, | ||
int32_t | top, | ||
int32_t | width, | ||
int32_t | height, | ||
int32_t | pal_num, | ||
CFX_GifPalette * | pal, | ||
int32_t | trans_index, | ||
bool | interlace ) |
Definition at line 39 of file cfx_gifcontext.cpp.
Referenced by LoadFrame().
GifDecoder::Status fxcodec::CFX_GifContext::LoadFrame | ( | size_t | frame_num | ) |
Definition at line 158 of file cfx_gifcontext.cpp.
References CFX_GifImage::code_exp, CFX_GifImage::data_pos, decode_status_, GetRecordPosition(), CFX_GifImageInfo::height, CFX_GifImage::image_info, img_pass_num_, img_row_avail_size_, img_row_offset_, CFX_GifLocalFlags::interlace, fxcodec::GifDecoder::kError, fxcodec::LZWDecompressor::kError, fxcodec::LZWDecompressor::kInsufficientDestSize, fxcodec::GifDecoder::kSuccess, fxcodec::LZWDecompressor::kSuccess, fxcodec::GifDecoder::kUnfinished, fxcodec::LZWDecompressor::kUnfinished, CFX_GifImageInfo::left, CFX_GifImageInfo::local_flags, CFX_GifLocalFlags::local_pal, CFX_GifLocalFlags::pal_bits, ReadAllOrNone(), ReadScanline(), CFX_GifImage::row_num, CFX_GifImageInfo::top, and CFX_GifImageInfo::width.
|
protected |
Definition at line 332 of file cfx_gifcontext.cpp.
Referenced by LoadFrame(), ReadGifSignature(), ReadLogicalScreenDescriptor(), and fxcodec::TEST().
|
protected |
Definition at line 346 of file cfx_gifcontext.cpp.
References fxcodec::GifDecoder::kError, fxcodec::GifDecoder::kSuccess, fxcodec::GifDecoder::kUnfinished, and ReadAllOrNone().
Referenced by ReadHeader(), and fxcodec::TEST().
GifDecoder::Status fxcodec::CFX_GifContext::ReadHeader | ( | ) |
Definition at line 53 of file cfx_gifcontext.cpp.
References fxcodec::GifDecoder::kSuccess, ReadGifSignature(), and ReadLogicalScreenDescriptor().
Referenced by fxcodec::GifDecoder::ReadHeader(), and fxcodec::TEST().
|
protected |
Definition at line 359 of file cfx_gifcontext.cpp.
References CFX_GifLocalScreenDescriptor::bc_index, bc_index_, CFX_GifGlobalFlags::color_resolution, 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, ReadAllOrNone(), CFX_GifGlobalFlags::sort_flag, CFX_GifLocalScreenDescriptor::width, and width_.
Referenced by ReadHeader(), and fxcodec::TEST().
void fxcodec::CFX_GifContext::ReadScanline | ( | int32_t | row_num, |
pdfium::span< uint8_t > | row_buf ) |
Definition at line 34 of file cfx_gifcontext.cpp.
Referenced by LoadFrame().
void fxcodec::CFX_GifContext::SetInputBuffer | ( | RetainPtr< CFX_CodecMemory > | codec_memory | ) |
Definition at line 320 of file cfx_gifcontext.cpp.
Referenced by fxcodec::GifDecoder::Input(), and fxcodec::CFX_GifContextForTest::SetTestInputBuffer().
uint8_t fxcodec::CFX_GifContext::bc_index_ = 0 |
Definition at line 57 of file cfx_gifcontext.h.
Referenced by fxcodec::GifDecoder::ReadHeader(), ReadLogicalScreenDescriptor(), fxcodec::TEST(), and fxcodec::TEST().
int32_t fxcodec::CFX_GifContext::decode_status_ = GIF_D_STATUS_SIG |
Definition at line 51 of file cfx_gifcontext.h.
Referenced by LoadFrame().
UnownedPtr<GifDecoder::Delegate> const fxcodec::CFX_GifContext::delegate_ |
Definition at line 46 of file cfx_gifcontext.h.
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().
std::vector<CFX_GifPalette> fxcodec::CFX_GifContext::global_palette_ |
Definition at line 47 of file cfx_gifcontext.h.
uint8_t fxcodec::CFX_GifContext::global_palette_exp_ = 0 |
Definition at line 48 of file cfx_gifcontext.h.
Referenced by fxcodec::GifDecoder::ReadHeader(), ReadLogicalScreenDescriptor(), fxcodec::TEST(), and fxcodec::TEST().
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().
std::unique_ptr<CFX_GifGraphicControlExtension> fxcodec::CFX_GifContext::graphic_control_extension_ |
Definition at line 52 of file cfx_gifcontext.h.
int fxcodec::CFX_GifContext::height_ = 0 |
Definition at line 56 of file cfx_gifcontext.h.
Referenced by fxcodec::GifDecoder::ReadHeader(), ReadLogicalScreenDescriptor(), fxcodec::TEST(), and fxcodec::TEST().
std::vector<std::unique_ptr<CFX_GifImage> > fxcodec::CFX_GifContext::images_ |
Definition at line 53 of file cfx_gifcontext.h.
uint8_t fxcodec::CFX_GifContext::img_pass_num_ = 0 |
Definition at line 60 of file cfx_gifcontext.h.
Referenced by LoadFrame().
uint32_t fxcodec::CFX_GifContext::img_row_avail_size_ = 0 |
Definition at line 50 of file cfx_gifcontext.h.
Referenced by LoadFrame().
uint32_t fxcodec::CFX_GifContext::img_row_offset_ = 0 |
Definition at line 49 of file cfx_gifcontext.h.
Referenced by LoadFrame().
|
protected |
Definition at line 67 of file cfx_gifcontext.h.
std::unique_ptr<LZWDecompressor> fxcodec::CFX_GifContext::lzw_decompressor_ |
Definition at line 54 of file cfx_gifcontext.h.
int fxcodec::CFX_GifContext::width_ = 0 |
Definition at line 55 of file cfx_gifcontext.h.
Referenced by fxcodec::GifDecoder::ReadHeader(), ReadLogicalScreenDescriptor(), fxcodec::TEST(), and fxcodec::TEST().