STRUCT VSP1_DRM(9)
π struct vsp1_drm(9) β like, the Kernel API Manual but make it make sense
okay so bestie, welcome to the glow-up of struct vsp1_drm(9) from the Kernel API Manual. this is the state container for the API that gets exposed to the DRM driver, and honestly? she's iconic. let's get into it π
β¨ NAME β¨
struct vsp1_drm β literally the state for the API exposed to the DRM driver. that's her job. that's what she does. π
πΈ SYNOPSIS πΈ
here's the whole struct, copied EXACTLY because we do not mess with code in this house:
struct vsp1_drm {
struct vsp1_drm_pipeline pipe[VSP1_MAX_LIF];
struct mutex lock;
struct vsp1_drm_input {
struct v4l2_rect crop;
struct v4l2_rect compose;
unsigned int zpos;
enum v4l2_ycbcr_encoding ycbcr_enc;
enum v4l2_quantization quantization;
} inputs[VSP1_MAX_RPF];
};
look at that nested anonymous struct. she's giving main character energy fr fr π¦
π MEMBERS π
time for the member-by-member vibe check, no cap:
pipeβ the VSP1 DRM pipeline used for display. she's the whole runway, okay? the display pipeline herself. πlockβ protects the BRU and BRS allocation. yes bestie, it's astruct mutex, and yes, it is literally holding the BRU and BRS allocations safe so nobody crashes the party. π₯inputsβ this one's the busy queen: source crop rectangle, destination compose rectangle, z-order position and colorspace for every input, and she's indexed by RPF index (iykyk). so for each input you get:cropβ the source crop rectangle πΈcomposeβ the destination compose rectangle πzposβ the z-order position β¨ycbcr_encβ the YCbCr encoding (enum v4l2_ycbcr_encoding) πquantizationβ the quantization (enum v4l2_quantization) β
all of it living in a struct vsp1_drm_input, one per RPF, up to VSP1_MAX_RPF of them. she contains multitudes. π
π¦ SEE ALSO π¦
- Kernel file
./drivers/media/platform/renesas/vsp1/vsp1_drm.hβ go read the source, bestie, it's right there π - struct
vsp1_drm_pipeline(9)β her sister page, also slaying π
lowkey a reminder that all these fields are documented behavior, so don't go inventing your own meanings for them, mkay? π
and that's the page!! special shoutout to ./drivers/media/platform/renes... and the October 2026 date stamp β that's the source/version-and-date footer doing its little sign-off at the bottom, and we love her for it π«Άβ¨ bye bestie!! π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms