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

#include <cjpx_decoder.h>

Collaboration diagram for CJPX_Decoder:

Classes

struct  JpxImageInfo

Public Types

enum class  ColorSpaceOption { kNone , kNormal , kIndexed }

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, bool strict_mode)
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
kNone 
kNormal 
kIndexed 

Definition at line 33 of file cjpx_decoder.h.

Constructor & Destructor Documentation

◆ ~CJPX_Decoder()

fxcodec::CJPX_Decoder::~CJPX_Decoder ( )
default

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,
bool strict_mode )
static

Definition at line 413 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 544 of file cjpx_decoder.cpp.

◆ GetInfo()

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

Definition at line 537 of file cjpx_decoder.cpp.

◆ StartDecode()

bool fxcodec::CJPX_Decoder::StartDecode ( )

Definition at line 490 of file cjpx_decoder.cpp.

◆ Sycc420ToRgbForTesting()

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

Definition at line 427 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: