diff options
author | Srivatsa, Anusha <anusha.srivatsa@intel.com> | 2018-11-27 13:41:06 -0800 |
---|---|---|
committer | Manasi Navare <manasi.d.navare@intel.com> | 2018-11-27 18:33:14 -0800 |
commit | 082a7b86013c2b8af75fcbf490c55110945673d8 (patch) | |
tree | 16d80968daa306e66ecc2ca3274837d8f661f710 /include/drm/drm_dsc.h | |
parent | 19fd5adbb595f022c8f3a05133a673143c79fa91 (diff) | |
download | lwn-082a7b86013c2b8af75fcbf490c55110945673d8.tar.gz lwn-082a7b86013c2b8af75fcbf490c55110945673d8.zip |
drm/dsc: Define Rate Control values that do not change over configurations
DSC has some Rate Control values that remain constant
across all configurations. These are as per the DSC
standard.
v3:
* Define them in drm_dsc.h as they are
DSC constants (Manasi)
v2:
* Add DP_DSC_ prefix (Jani Nikula)
Cc: dri-devel@lists.freedesktop.org
Cc: Manasi Navare <manasi.d.navare@intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
Cc: Gaurav K Singh <gaurav.k.singh@intel.com>
Cc: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Srivatsa, Anusha <anusha.srivatsa@intel.com>
Signed-off-by: Manasi Navare <manasi.d.navare@intel.com>
Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
Acked-by: Sean Paul <seanpaul@chromium.org> (For merging through
drm-intel)
Link: https://patchwork.freedesktop.org/patch/msgid/20181127214125.17658-4-manasi.d.navare@intel.com
Diffstat (limited to 'include/drm/drm_dsc.h')
-rw-r--r-- | include/drm/drm_dsc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/drm/drm_dsc.h b/include/drm/drm_dsc.h index 3292dfed9d0a..b88e31bd9da7 100644 --- a/include/drm/drm_dsc.h +++ b/include/drm/drm_dsc.h @@ -18,6 +18,12 @@ #define DSC_SCALE_DECREMENT_INTERVAL_MAX 4095 #define DSC_RANGE_BPG_OFFSET_MASK 0x3f +/* DSC Rate Control Constants */ +#define DSC_RC_MODEL_SIZE_CONST 8192 +#define DSC_RC_EDGE_FACTOR_CONST 6 +#define DSC_RC_TGT_OFFSET_HI_CONST 3 +#define DSC_RC_TGT_OFFSET_LO_CONST 3 + /* Configuration for a single Rate Control model range */ struct drm_dsc_rc_range_parameters { /* Min Quantization Parameters allowed for this range */ |