Skip to content
Snippets Groups Projects
Select Git revision
  • 74c3f5da233637bdf828e1ce67a5c1083630a47b
  • drm-misc-templates default
  • wip/final/kci-gitlab-lava-v1
  • wip/vignesh/kci-lava-gitlab-runner
  • kci-gitlab-igt-v8
  • kci-gitlab-igt-v4
  • drm-misc-fixes-2024-10-02
  • drm-misc-next-2024-09-26
  • drm-misc-fixes-2024-09-26
  • drm-misc-next-2024-09-20
  • drm-misc-fixes-2024-09-12
  • drm-misc-fixes-2024-09-05
  • drm-misc-next-fixes-2024-09-05
  • drm-misc-fixes-2024-08-29
  • drm-misc-next-2024-08-29
  • drm-misc-next-2024-08-22
  • drm-misc-fixes-2024-08-22
  • drm-misc-next-2024-08-16
  • drm-misc-fixes-2024-08-15
  • drm-misc-next-2024-08-09
  • drm-misc-fixes-2024-08-08
  • drm-misc-next-2024-08-01
  • drm-misc-fixes-2024-08-01
  • drm-misc-next-fixes-2024-07-25
  • drm-misc-next-fixes-2024-07-19
  • drm-misc-next-fixes-2024-07-11
26 results

drm_dsc_helper.h

Blame
  • user avatar
    Imre Deak authored
    Add a helper to dump the Display Stream Compression configuration, taken
    into use in the i915 driver by a later patch.
    
    v2:
    - Rebase on the s/DRM_X16/FXP_Q4 change.
    - s/DSC configration/DSC configuration in the function documentation.
    
    Acked-by: default avatarJani Nikula <jani.nikula@intel.com>
    Signed-off-by: default avatarImre Deak <imre.deak@intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20240628164451.1177612-3-imre.deak@intel.com
    74c3f5da
    History
    drm_dsc_helper.h 1.23 KiB
    /* 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,
    };
    
    struct drm_printer;
    
    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);
    void drm_dsc_dump_config(struct drm_printer *p, int indent, const struct drm_dsc_config *cfg);
    
    #endif /* _DRM_DSC_HELPER_H_ */