e3290f8831
The array of rc_parameters contains a mixture of parameters from DSC 1.1 and DSC 1.2 standards. Split these tow configuration arrays in preparation to adding more configuration data. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reviewed-by: Suraj Kandpal Reviewed-by: Suraj Kandpal Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230517102807.2181589-7-dmitry.baryshkov@linaro.org Acked-by: Dave Airlie <airlied@redhat.com>
28 lines
849 B
C
28 lines
849 B
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 */
|
|
};
|
|
|
|
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_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);
|
|
|
|
#endif /* _DRM_DSC_HELPER_H_ */
|
|
|