summaryrefslogtreecommitdiff
path: root/src/gen8_post_processing.c
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2014-10-13 16:50:59 +0200
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2014-11-11 11:57:18 +0100
commit2311346654b982b56201b602afa81380639ff7d6 (patch)
tree2bc5a90c42d21631d0337163383f8d25ec20e11a /src/gen8_post_processing.c
parent40ff4c27cab2e998bdcc5536cad6ce8c3f89bec5 (diff)
downloadlibva-intel-driver-2311346654b982b56201b602afa81380639ff7d6.tar.gz
vpp: validate AVS filter coefficients for debugging purposes.
Make sure the newly calculated filter coefficients fall into the HW accepted range of values. This normally should not be an issue with the current configuration / scaling algorithms though. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Diffstat (limited to 'src/gen8_post_processing.c')
-rw-r--r--src/gen8_post_processing.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/gen8_post_processing.c b/src/gen8_post_processing.c
index d36c0618..5632ca8c 100644
--- a/src/gen8_post_processing.c
+++ b/src/gen8_post_processing.c
@@ -746,6 +746,21 @@ static const AVSConfig gen8_avs_config = {
.num_phases = 16,
.num_luma_coeffs = 8,
.num_chroma_coeffs = 4,
+
+ .coeff_range = {
+ .lower_bound = {
+ .y_k_h = { -2, -2, -2, -2, -2, -2, -2, -2 },
+ .y_k_v = { -2, -2, -2, -2, -2, -2, -2, -2 },
+ .uv_k_h = { -1, -2, -2, -1 },
+ .uv_k_v = { -1, -2, -2, -1 },
+ },
+ .upper_bound = {
+ .y_k_h = { 2, 2, 2, 2, 2, 2, 2, 2 },
+ .y_k_v = { 2, 2, 2, 2, 2, 2, 2, 2 },
+ .uv_k_h = { 1, 2, 2, 1 },
+ .uv_k_v = { 1, 2, 2, 1 },
+ },
+ },
};
static VAStatus