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

#include <cjpx_decoder.h>

+ Collaboration diagram for fxcodec::CJPX_Decoder:

Classes

struct  JpxImageInfo
 

Public Types

enum  ColorSpaceOption { kNoColorSpace , kNormalColorSpace , kIndexedColorSpace }
 

Public Member Functions

 ~CJPX_Decoder ()
 
JpxImageInfo GetInfo () const
 
bool StartDecode ()
 
bool Decode (pdfium::span< uint8_t > dest_buf, uint32_t pitch, bool swap_rgb, uint32_t component_count)
 

Static Public Member Functions

static std::unique_ptr< CJPX_DecoderCreate (pdfium::span< const uint8_t > src_span, CJPX_Decoder::ColorSpaceOption option, uint8_t resolution_levels_to_skip)
 
static void Sycc420ToRgbForTesting (opj_image_t *img)
 

Static Public Attributes

static constexpr uint8_t kMaxResolutionsToSkip = 32
 

Detailed Description

Definition at line 27 of file cjpx_decoder.h.

Member Enumeration Documentation

◆ ColorSpaceOption

Enumerator
kNoColorSpace 
kNormalColorSpace 
kIndexedColorSpace 

Definition at line 33 of file cjpx_decoder.h.

Constructor & Destructor Documentation

◆ ~CJPX_Decoder()

fxcodec::CJPX_Decoder::~CJPX_Decoder ( )

Definition at line 411 of file cjpx_decoder.cpp.

Member Function Documentation

◆ Create()

std::unique_ptr< CJPX_Decoder > fxcodec::CJPX_Decoder::Create ( pdfium::span< const uint8_t > src_span,
CJPX_Decoder::ColorSpaceOption option,
uint8_t resolution_levels_to_skip )
static

Definition at line 392 of file cjpx_decoder.cpp.

◆ Decode()

bool fxcodec::CJPX_Decoder::Decode ( pdfium::span< uint8_t > dest_buf,
uint32_t pitch,
bool swap_rgb,
uint32_t component_count )

Definition at line 515 of file cjpx_decoder.cpp.

◆ GetInfo()

CJPX_Decoder::JpxImageInfo fxcodec::CJPX_Decoder::GetInfo ( ) const

Definition at line 510 of file cjpx_decoder.cpp.

◆ StartDecode()

bool fxcodec::CJPX_Decoder::StartDecode ( )

Definition at line 466 of file cjpx_decoder.cpp.

◆ Sycc420ToRgbForTesting()

void fxcodec::CJPX_Decoder::Sycc420ToRgbForTesting ( opj_image_t * img)
static

Definition at line 404 of file cjpx_decoder.cpp.

Member Data Documentation

◆ kMaxResolutionsToSkip

uint8_t fxcodec::CJPX_Decoder::kMaxResolutionsToSkip = 32
staticconstexpr

Definition at line 31 of file cjpx_decoder.h.


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