summaryrefslogtreecommitdiffstats
path: root/include/drm/drm_dsc.h
diff options
context:
space:
mode:
authorManasi Navare <manasi.d.navare@intel.com>2018-11-27 22:41:08 +0100
committerManasi Navare <manasi.d.navare@intel.com>2018-11-28 03:36:17 +0100
commitf25310c7360b1825ee25858b68685c94abaa11a3 (patch)
tree4524f905125d3bcf413d6838b4ee1a1d4b95628f /include/drm/drm_dsc.h
parentdrm/dsc: Add helpers for DSC picture parameter set infoframes (diff)
downloadlinux-f25310c7360b1825ee25858b68685c94abaa11a3.tar.xz
linux-f25310c7360b1825ee25858b68685c94abaa11a3.zip
drm/dsc: Define the DSC 1.1 and 1.2 Line Buffer depth constants
DSC specification defines linebuf_depth which contains the line buffer bit depth used to generate the bitstream. These values are defined as per Table 4.1 in DSC 1.2 spec v2 (From Manasi): * Rename as MAX_LINEBUF_DEPTH for DSC 1.1 and DSC 1.2 Cc: dri-devel@lists.freedesktop.org Cc: Jani Nikula <jani.nikula@linux.intel.com> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Gaurav K Singh <gaurav.k.singh@intel.com> Signed-off-by: Manasi Navare <manasi.d.navare@intel.com> Acked-by: Sean Paul <seanpaul@chromium.org> (For merging through drm-intel) Reviewed-by: Anusha Srivatsa <anusha.srivatsa@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20181127214125.17658-6-manasi.d.navare@intel.com
Diffstat (limited to 'include/drm/drm_dsc.h')
-rw-r--r--include/drm/drm_dsc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/drm/drm_dsc.h b/include/drm/drm_dsc.h
index 52e57ceaff80..d03f1b83421a 100644
--- a/include/drm/drm_dsc.h
+++ b/include/drm/drm_dsc.h
@@ -40,6 +40,9 @@
#define DSC_PPS_RC_RANGE_MINQP_SHIFT 11
#define DSC_PPS_RC_RANGE_MAXQP_SHIFT 6
#define DSC_PPS_NATIVE_420_SHIFT 1
+#define DSC_1_2_MAX_LINEBUF_DEPTH_BITS 16
+#define DSC_1_2_MAX_LINEBUF_DEPTH_VAL 0
+#define DSC_1_1_MAX_LINEBUF_DEPTH_BITS 13
/* Configuration for a single Rate Control model range */
struct drm_dsc_rc_range_parameters {