drivers/gpu/drm/arm/display/komeda/komeda_color_mgmt.h

Source file repositories/reference/linux-study-clean/drivers/gpu/drm/arm/display/komeda/komeda_color_mgmt.h

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/arm/display/komeda/komeda_color_mgmt.h
Extension
.h
Size
751 bytes
Lines
26
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.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef _KOMEDA_COLOR_MGMT_H_
#define _KOMEDA_COLOR_MGMT_H_

#include <drm/drm_color_mgmt.h>

#define KOMEDA_N_YUV2RGB_COEFFS		12
#define KOMEDA_N_RGB2YUV_COEFFS		12
#define KOMEDA_COLOR_PRECISION		12
#define KOMEDA_N_GAMMA_COEFFS		65
#define KOMEDA_COLOR_LUT_SIZE		BIT(KOMEDA_COLOR_PRECISION)
#define KOMEDA_N_CTM_COEFFS		9

void drm_lut_to_fgamma_coeffs(struct drm_property_blob *lut_blob, u32 *coeffs);
void drm_ctm_to_coeffs(struct drm_property_blob *ctm_blob, u32 *coeffs);

const s32 *komeda_select_yuv2rgb_coeffs(u32 color_encoding, u32 color_range);

#endif /*_KOMEDA_COLOR_MGMT_H_*/

Annotation

Implementation Notes