drivers/gpu/drm/amd/display/dc/inc/hw/transform.h
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/amd/display/dc/inc/hw/transform.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/amd/display/dc/inc/hw/transform.h- Extension
.h- Size
- 8024 bytes
- Lines
- 294
- Domain
- Driver Families
- Bucket
- drivers/gpu
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
hw_shared.hdc_hw_types.hfixed31_32.hsspl/dc_spl_types.h
Detected Declarations
struct bit_depth_reduction_paramsstruct transformstruct xfm_grph_csc_adjustmentstruct overscan_infostruct scaling_ratiosstruct sharpness_adjstruct line_buffer_paramsstruct scl_initsstruct scaler_datastruct transform_funcsstruct dpp_capsenum colorimetryenum colorimetry_extenum active_format_infoenum active_format_aspect_ratioenum bar_infoenum picture_scalingenum rgb_quantization_rangeenum yyc_quantization_rangeenum graphics_gamut_adjust_typeenum dscl_data_processing_format
Annotated Snippet
struct transform {
const struct transform_funcs *funcs;
struct dc_context *ctx;
int inst;
struct dpp_caps *caps;
struct pwl_params regamma_params;
};
/* Colorimetry */
enum colorimetry {
COLORIMETRY_NO_DATA = 0,
COLORIMETRY_ITU601 = 1,
COLORIMETRY_ITU709 = 2,
COLORIMETRY_EXTENDED = 3
};
enum colorimetry_ext {
COLORIMETRYEX_XVYCC601 = 0,
COLORIMETRYEX_XVYCC709 = 1,
COLORIMETRYEX_SYCC601 = 2,
COLORIMETRYEX_ADOBEYCC601 = 3,
COLORIMETRYEX_ADOBERGB = 4,
COLORIMETRYEX_BT2020YCC = 5,
COLORIMETRYEX_BT2020RGBYCBCR = 6,
COLORIMETRYEX_RESERVED = 7
};
enum active_format_info {
ACTIVE_FORMAT_NO_DATA = 0,
ACTIVE_FORMAT_VALID = 1
};
/* Active format aspect ratio */
enum active_format_aspect_ratio {
ACTIVE_FORMAT_ASPECT_RATIO_SAME_AS_PICTURE = 8,
ACTIVE_FORMAT_ASPECT_RATIO_4_3 = 9,
ACTIVE_FORMAT_ASPECT_RATIO_16_9 = 0XA,
ACTIVE_FORMAT_ASPECT_RATIO_14_9 = 0XB
};
enum bar_info {
BAR_INFO_NOT_VALID = 0,
BAR_INFO_VERTICAL_VALID = 1,
BAR_INFO_HORIZONTAL_VALID = 2,
BAR_INFO_BOTH_VALID = 3
};
enum picture_scaling {
PICTURE_SCALING_UNIFORM = 0,
PICTURE_SCALING_HORIZONTAL = 1,
PICTURE_SCALING_VERTICAL = 2,
PICTURE_SCALING_BOTH = 3
};
/* RGB quantization range */
enum rgb_quantization_range {
RGB_QUANTIZATION_DEFAULT_RANGE = 0,
RGB_QUANTIZATION_LIMITED_RANGE = 1,
RGB_QUANTIZATION_FULL_RANGE = 2,
RGB_QUANTIZATION_RESERVED = 3
};
/* YYC quantization range */
enum yyc_quantization_range {
YYC_QUANTIZATION_LIMITED_RANGE = 0,
YYC_QUANTIZATION_FULL_RANGE = 1,
YYC_QUANTIZATION_RESERVED2 = 2,
YYC_QUANTIZATION_RESERVED3 = 3
};
enum graphics_gamut_adjust_type {
GRAPHICS_GAMUT_ADJUST_TYPE_BYPASS = 0,
GRAPHICS_GAMUT_ADJUST_TYPE_HW, /* without adjustments */
GRAPHICS_GAMUT_ADJUST_TYPE_SW /* use adjustments */
};
struct xfm_grph_csc_adjustment {
struct fixed31_32 temperature_matrix[CSC_TEMPERATURE_MATRIX_SIZE];
enum graphics_gamut_adjust_type gamut_adjust_type;
};
struct overscan_info {
int left;
int right;
int top;
int bottom;
};
struct scaling_ratios {
struct fixed31_32 horz;
Annotation
- Immediate include surface: `hw_shared.h`, `dc_hw_types.h`, `fixed31_32.h`, `sspl/dc_spl_types.h`.
- Detected declarations: `struct bit_depth_reduction_params`, `struct transform`, `struct xfm_grph_csc_adjustment`, `struct overscan_info`, `struct scaling_ratios`, `struct sharpness_adj`, `struct line_buffer_params`, `struct scl_inits`, `struct scaler_data`, `struct transform_funcs`.
- Atlas domain: Driver Families / drivers/gpu.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.