Grok  9.5.0
Public Member Functions | Private Attributes | List of all members
grk::HWY_NAMESPACE::CompressIrrev Class Reference

Apply MCT with optional DC shift to irreversible compressed image. More...

Public Member Functions

int32_t vtrans (std::vector< int32_t * > channels, std::vector< ShiftInfo > shiftInfo, size_t index, size_t chunkSize)
 
void trans (std::vector< int32_t * > channels, std::vector< ShiftInfo > shiftInfo, size_t index, size_t numSamples)
 

Private Attributes

const float a_r = 0.299f
 
const float a_g = 0.587f
 
const float a_b = 0.114f
 
const float cb = 0.5f / (1.0f - a_b)
 
const float cr = 0.5f / (1.0f - a_r)
 

Detailed Description

Apply MCT with optional DC shift to irreversible compressed image.

Member Function Documentation

◆ trans()

void grk::HWY_NAMESPACE::CompressIrrev::trans ( std::vector< int32_t * >  channels,
std::vector< ShiftInfo shiftInfo,
size_t  index,
size_t  numSamples 
)
inline

References GRK_RESTRICT, and grk::shift.

◆ vtrans()

int32_t grk::HWY_NAMESPACE::CompressIrrev::vtrans ( std::vector< int32_t * >  channels,
std::vector< ShiftInfo shiftInfo,
size_t  index,
size_t  chunkSize 
)
inline

Member Data Documentation

◆ a_b

const float grk::HWY_NAMESPACE::CompressIrrev::a_b = 0.114f
private

◆ a_g

const float grk::HWY_NAMESPACE::CompressIrrev::a_g = 0.587f
private

◆ a_r

const float grk::HWY_NAMESPACE::CompressIrrev::a_r = 0.299f
private

◆ cb

const float grk::HWY_NAMESPACE::CompressIrrev::cb = 0.5f / (1.0f - a_b)
private

◆ cr

const float grk::HWY_NAMESPACE::CompressIrrev::cr = 0.5f / (1.0f - a_r)
private

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