From 2311346654b982b56201b602afa81380639ff7d6 Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Mon, 13 Oct 2014 16:50:59 +0200 Subject: 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 --- src/gen8_post_processing.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/gen8_post_processing.c') 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 -- cgit v1.2.1