diff options
author | Suraj Kandpal <suraj.kandpal@intel.com> | 2023-03-09 11:58:52 +0530 |
---|---|---|
committer | Uma Shankar <uma.shankar@intel.com> | 2023-04-03 12:41:11 +0530 |
commit | dd4d6791eb0164ba59d3e105135188c355d80fa2 (patch) | |
tree | b8c010ce60d0369ff84fccdf415e4510b9f56f69 /drivers/gpu/drm/i915/display/intel_qp_tables.h | |
parent | ac754358c68214f9945bdf9cc565fa18ce1b0185 (diff) | |
download | linux-dd4d6791eb0164ba59d3e105135188c355d80fa2.tar.gz linux-dd4d6791eb0164ba59d3e105135188c355d80fa2.tar.bz2 linux-dd4d6791eb0164ba59d3e105135188c355d80fa2.zip |
drm/i915/dsc: Enable YCbCr420 for VDSC
Implementation of VDSC for YCbCr420.
Add QP tables for 8,10,12 BPC from rc_tables.h in intel_qp_tables.c
(Derived from C-Model, which is given along with DSC1.2a Spec from Vesa)
intel_lookup_range_min/max_qp functons need to take into account the
output format. Based on that appropriate qp table need to be chosen.
Other rc_parameters need to be set where currently values for 444 format
is hardcoded in calculate_rc_parameters( ).
vdsc_cfg struct needs to be filled with output format information, where
these are hardcoded for 444 format.
Bspec: 49259
Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Vandita Kulkarni <Vandita.kulkarni@intel.com>
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Signed-off-by: Uma Shankar <uma.shankar@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230309062855.393087-5-suraj.kandpal@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_qp_tables.h')
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_qp_tables.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_qp_tables.h b/drivers/gpu/drm/i915/display/intel_qp_tables.h index 9fb3c36bd7c6..a9ff9ca29938 100644 --- a/drivers/gpu/drm/i915/display/intel_qp_tables.h +++ b/drivers/gpu/drm/i915/display/intel_qp_tables.h @@ -8,7 +8,7 @@ #include <linux/types.h> -u8 intel_lookup_range_min_qp(int bpc, int buf_i, int bpp_i); -u8 intel_lookup_range_max_qp(int bpc, int buf_i, int bpp_i); +u8 intel_lookup_range_min_qp(int bpc, int buf_i, int bpp_i, bool is_420); +u8 intel_lookup_range_max_qp(int bpc, int buf_i, int bpp_i, bool is_420); #endif |