diff options
author | Jessica Zhang <quic_jesszhan@quicinc.com> | 2023-05-24 10:45:16 -0700 |
---|---|---|
committer | Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | 2023-06-15 12:58:56 +0300 |
commit | 68858328124162b9b42bc7b8232eee1915cc1d8f (patch) | |
tree | 70c2d2d6e04e80f36b53e84f84405b8046d378ec /include | |
parent | e871a70d8ccd6dbcb30f081f5d3d8854380422fe (diff) | |
download | linux-stable-68858328124162b9b42bc7b8232eee1915cc1d8f.tar.gz linux-stable-68858328124162b9b42bc7b8232eee1915cc1d8f.tar.bz2 linux-stable-68858328124162b9b42bc7b8232eee1915cc1d8f.zip |
drm/display/dsc: Add drm_dsc_get_bpp_int helper
Add helper to get the integer value of drm_dsc_config.bits_per_pixel
Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Jessica Zhang <quic_jesszhan@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/539268/
Link: https://lore.kernel.org/r/20230329-rfc-msm-dsc-helper-v14-3-bafc7be95691@quicinc.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/drm/display/drm_dsc_helper.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/display/drm_dsc_helper.h b/include/drm/display/drm_dsc_helper.h index f4e18e5d077a..913aa2071232 100644 --- a/include/drm/display/drm_dsc_helper.h +++ b/include/drm/display/drm_dsc_helper.h @@ -27,6 +27,7 @@ int drm_dsc_setup_rc_params(struct drm_dsc_config *vdsc_cfg, enum drm_dsc_params int drm_dsc_compute_rc_parameters(struct drm_dsc_config *vdsc_cfg); u8 drm_dsc_initial_scale_value(const struct drm_dsc_config *dsc); u32 drm_dsc_flatness_det_thresh(const struct drm_dsc_config *dsc); +u32 drm_dsc_get_bpp_int(const struct drm_dsc_config *vdsc_cfg); #endif /* _DRM_DSC_HELPER_H_ */ |