mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-03 17:40:04 +00:00
![Jessica Zhang](/assets/img/avatar_default.png)
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>
33 lines
1.1 KiB
C
33 lines
1.1 KiB
C
/* SPDX-License-Identifier: MIT
|
|
* Copyright (C) 2018 Intel Corp.
|
|
*
|
|
* Authors:
|
|
* Manasi Navare <manasi.d.navare@intel.com>
|
|
*/
|
|
|
|
#ifndef DRM_DSC_HELPER_H_
|
|
#define DRM_DSC_HELPER_H_
|
|
|
|
#include <drm/display/drm_dsc.h>
|
|
|
|
enum drm_dsc_params_type {
|
|
DRM_DSC_1_2_444,
|
|
DRM_DSC_1_1_PRE_SCR, /* legacy params from DSC 1.1 */
|
|
DRM_DSC_1_2_422,
|
|
DRM_DSC_1_2_420,
|
|
};
|
|
|
|
void drm_dsc_dp_pps_header_init(struct dp_sdp_header *pps_header);
|
|
int drm_dsc_dp_rc_buffer_size(u8 rc_buffer_block_size, u8 rc_buffer_size);
|
|
void drm_dsc_pps_payload_pack(struct drm_dsc_picture_parameter_set *pps_sdp,
|
|
const struct drm_dsc_config *dsc_cfg);
|
|
void drm_dsc_set_const_params(struct drm_dsc_config *vdsc_cfg);
|
|
void drm_dsc_set_rc_buf_thresh(struct drm_dsc_config *vdsc_cfg);
|
|
int drm_dsc_setup_rc_params(struct drm_dsc_config *vdsc_cfg, enum drm_dsc_params_type type);
|
|
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_ */
|
|
|