class PipeScalerScalingFactor

Defined at line 1063 of file ../../src/graphics/display/drivers/intel-display/registers-pipe-scaler.h

PS_HSCALE / PS_VSCALE (Pipe Scaler Horizontal / Vertical Scaling Factor)

The pipe / plane scaling factor. The register uses a fixed-point

representation to store the value, which can be converted to C float type

by using helper method ToFloat().

If the pipe / transcoder works in progressive display mode (PF-PD),

Horizontal scaling factor = Source width / Destination width

Vertical scaling factor = Source height / Destination height.

If the pipe / transcoder works in interlaced display mode (PF-ID),

Horizontal scaling factor = 2 * Source width / Destination width

Vertical scaling factor = 2 * Source height / Destination height.

This register is read only.

Tiger Lake: IHD-OS-TGL-Vol 2c-1.22-Rev 2.0 Part 2, Pages 1008-1009, 1019-1020

Kaby Lake: IHD-OS-KBL-Vol 2c-1.17 Part 2, Pages 655-656, 662-663

Skylake: IHD-OS-SKL-Vol 2c-05.16 Part 2, Pages 648-649, 655-656

Public Members

 field_integer_part_1068
 field_fraction_part_1071
static const uint32_t kHorizontalBaseAddr
static const uint32_t kVerticalBaseAddr
static const uint32_t kIntegerPartSize
static const uint32_t kFractionPartSize

Public Methods

template <, >
typename SelfType::ValueType integer_part ()

NOLINTEND(misc-non-private-member-variables-in-classes)

Defined at line 1068 of file ../../src/graphics/display/drivers/intel-display/registers-pipe-scaler.h

template <, >
SelfType & set_integer_part (typename SelfType::ValueType val)

Defined at line 1068 of file ../../src/graphics/display/drivers/intel-display/registers-pipe-scaler.h

template <, >
typename SelfType::ValueType fraction_part ()

NOLINTEND(misc-non-private-member-variables-in-classes)

Defined at line 1071 of file ../../src/graphics/display/drivers/intel-display/registers-pipe-scaler.h

template <, >
SelfType & set_fraction_part (typename SelfType::ValueType val)

Defined at line 1071 of file ../../src/graphics/display/drivers/intel-display/registers-pipe-scaler.h

float ToFloat ()

Converts the scaling factor to float format.

The scaling factor is stored as an unsigned fixed point format with 3

integer bits and 15 fractional bits.

On platforms using IEEE 754 standard, all the valid values stored in this

register can be converted to |float| without losing precision.

Defined at line 1081 of file ../../src/graphics/display/drivers/intel-display/registers-pipe-scaler.h

Records