projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19fd5ad
)
drm/dsc: Define Rate Control values that do not change over configurations
author
Srivatsa, Anusha
<
[email protected]
>
Tue, 27 Nov 2018 21:41:06 +0000
(13:41 -0800)
committer
Manasi Navare
<
[email protected]
>
Wed, 28 Nov 2018 02:33:14 +0000
(18:33 -0800)
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:
[email protected]
Cc: Manasi Navare <
[email protected]
>
Cc: Jani Nikula <
[email protected]
>
Cc: Ville Syrjala <
[email protected]
>
Cc: Gaurav K Singh <
[email protected]
>
Cc: Harry Wentland <
[email protected]
>
Signed-off-by: Srivatsa, Anusha <
[email protected]
>
Signed-off-by: Manasi Navare <
[email protected]
>
Reviewed-by: Manasi Navare <
[email protected]
>
Acked-by: Sean Paul <
[email protected]
> (For merging through
drm-intel)
Link:
https://patchwork.freedesktop.org/patch/msgid/
[email protected]
include/drm/drm_dsc.h
patch
|
blob
|
history
diff --git
a/include/drm/drm_dsc.h
b/include/drm/drm_dsc.h
index 3292dfed9d0a4c6f266b0e1171647669bd895e4c..b88e31bd9da778c8453917114ce0bcf4450bba08 100644
(file)
--- 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 */