drm_dsc_setup_rc_params(9)
β¨ drm_dsc_setup_rc_params β¨
okay so welcome to the Kernel API Manual, bestie β this one's a little function from the DRM Display subsystem and it's honestly doing the most for rate control π
π NAME π
drm_dsc_setup_rc_params β sets the parameters and limits for the RC model, all in accordance with the DSC 1.1 or 1.2 specification and the DSC C Model π¦
β οΈ real talk:bits_per_pixelandbits_per_componentare required to be set before you call this function. like, non-negotiable. set them first or don't come to the party π
πΈ SYNOPSIS πΈ
int drm_dsc_setup_rc_params (struct drm_dsc_config *vdsc_cfg , enum
drm_dsc_params_type type );
π ARGUMENTS π
vdsc_cfgβ the DSC configuration data, partially filled in by the driver (yes, partially β that's the vibe, the rest is this function's moment β¨)typeβ the operating mode and the standard to follow π
β RETURN β
0, or a -error code if something went sideways π β so like, check it, fr fr.
π«Ά SEE ALSO π«Ά
Kernel file ./drivers/gpu/drm/display/drm_dsc_helper.c β that's where the dsc helpers live, iykyk:
dsc helpers(9)drm_dsc_dp_pps_header_init(9)drm_dsc_dp_rc_buffer_size(9)drm_dsc_pps_payload_pack(9)drm_dsc_set_const_params(9)drm_dsc_set_rc_buf_thresh(9)drm_dsc_compute_rc_parameters(9)drm_dsc_get_bpp_int(9)drm_dsc_initial_scale_value(9)drm_dsc_flatness_det_thresh(9)drm_dsc_dump_config(9)
that's the whole thing, no cap β go set those rc params, main character π
signed off from ./drivers/gpu/drm/display, dated October 2026 β catch you in the next manpage, 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