summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2013-09-11 08:43:17 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2013-09-11 15:14:27 +0800
commitafcb209b50c46988b39c3c548d8cf6edb27472e4 (patch)
tree7384d0ad682992d3068512cbea480d8976d018f6 /src
parenta944cd5c296d979e089a95252cce9112261a4931 (diff)
downloadlibva-intel-driver-afcb209b50c46988b39c3c548d8cf6edb27472e4.tar.gz
libva-intel-driver-afcb209b50c46988b39c3c548d8cf6edb27472e4.tar.bz2
libva-intel-driver-afcb209b50c46988b39c3c548d8cf6edb27472e4.zip
VPP: Update DEINTERLACE_SAMPLER_STATE on IVB
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> (cherry picked from commit b05729d0feea5ceb4217997f26442d5a8d94fa48)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/i965_post_processing.c52
1 files changed, 26 insertions, 26 deletions
diff --git a/src/i965_post_processing.c b/src/i965_post_processing.c
index 3ab29e4..a2546d9 100755
--- a/src/i965_post_processing.c
+++ b/src/i965_post_processing.c
@@ -3688,43 +3688,43 @@ gen7_pp_nv12_dndi_initialize(VADriverContextP ctx, struct i965_post_processing_c
/* sample dndi index 0 */
index = 0;
- sampler_dndi[index].dw0.denoise_asd_threshold = 0;
- sampler_dndi[index].dw0.dnmh_delt = 8;
+ sampler_dndi[index].dw0.denoise_asd_threshold = 38;
+ sampler_dndi[index].dw0.dnmh_delt = 7;
sampler_dndi[index].dw0.vdi_walker_y_stride = 0;
sampler_dndi[index].dw0.vdi_walker_frame_sharing_enable = 0;
- sampler_dndi[index].dw0.denoise_maximum_history = 128; // 128-240
- sampler_dndi[index].dw0.denoise_stad_threshold = 0;
+ sampler_dndi[index].dw0.denoise_maximum_history = 192; // 128-240
+ sampler_dndi[index].dw0.denoise_stad_threshold = 140;
- sampler_dndi[index].dw1.denoise_threshold_for_sum_of_complexity_measure = 64;
- sampler_dndi[index].dw1.denoise_moving_pixel_threshold = 0;
- sampler_dndi[index].dw1.stmm_c2 = 0;
- sampler_dndi[index].dw1.low_temporal_difference_threshold = 8;
- sampler_dndi[index].dw1.temporal_difference_threshold = 16;
+ sampler_dndi[index].dw1.denoise_threshold_for_sum_of_complexity_measure = 38;
+ sampler_dndi[index].dw1.denoise_moving_pixel_threshold = 1;
+ sampler_dndi[index].dw1.stmm_c2 = 2;
+ sampler_dndi[index].dw1.low_temporal_difference_threshold = 0;
+ sampler_dndi[index].dw1.temporal_difference_threshold = 0;
- sampler_dndi[index].dw2.block_noise_estimate_noise_threshold = 15; // 0-31
+ sampler_dndi[index].dw2.block_noise_estimate_noise_threshold = 20; // 0-31
sampler_dndi[index].dw2.bne_edge_th = 1;
sampler_dndi[index].dw2.smooth_mv_th = 0;
sampler_dndi[index].dw2.sad_tight_th = 5;
sampler_dndi[index].dw2.cat_slope_minus1 = 9;
- sampler_dndi[index].dw2.good_neighbor_th = 4;
+ sampler_dndi[index].dw2.good_neighbor_th = 12;
- sampler_dndi[index].dw3.maximum_stmm = 128;
- sampler_dndi[index].dw3.multipler_for_vecm = 2;
- sampler_dndi[index].dw3.blending_constant_across_time_for_small_values_of_stmm = 0;
+ sampler_dndi[index].dw3.maximum_stmm = 150;
+ sampler_dndi[index].dw3.multipler_for_vecm = 30;
+ sampler_dndi[index].dw3.blending_constant_across_time_for_small_values_of_stmm = 125;
sampler_dndi[index].dw3.blending_constant_across_time_for_large_values_of_stmm = 64;
sampler_dndi[index].dw3.stmm_blending_constant_select = 0;
- sampler_dndi[index].dw4.sdi_delta = 8;
- sampler_dndi[index].dw4.sdi_threshold = 128;
- sampler_dndi[index].dw4.stmm_output_shift = 7; // stmm_max - stmm_min = 2 ^ stmm_output_shift
- sampler_dndi[index].dw4.stmm_shift_up = 0;
+ sampler_dndi[index].dw4.sdi_delta = 5;
+ sampler_dndi[index].dw4.sdi_threshold = 100;
+ sampler_dndi[index].dw4.stmm_output_shift = 5; // stmm_max - stmm_min = 2 ^ stmm_output_shift
+ sampler_dndi[index].dw4.stmm_shift_up = 1;
sampler_dndi[index].dw4.stmm_shift_down = 0;
- sampler_dndi[index].dw4.minimum_stmm = 0;
+ sampler_dndi[index].dw4.minimum_stmm = 118;
- sampler_dndi[index].dw5.fmd_temporal_difference_threshold = 0;
- sampler_dndi[index].dw5.sdi_fallback_mode_2_constant = 0;
- sampler_dndi[index].dw5.sdi_fallback_mode_1_t2_constant = 0;
- sampler_dndi[index].dw5.sdi_fallback_mode_1_t1_constant = 0;
+ sampler_dndi[index].dw5.fmd_temporal_difference_threshold = 175;
+ sampler_dndi[index].dw5.sdi_fallback_mode_2_constant = 37;
+ sampler_dndi[index].dw5.sdi_fallback_mode_1_t2_constant = 100;
+ sampler_dndi[index].dw5.sdi_fallback_mode_1_t1_constant = 50;
sampler_dndi[index].dw6.dn_enable = 0;
sampler_dndi[index].dw6.di_enable = 1;
sampler_dndi[index].dw6.di_partial = 0;
@@ -3733,10 +3733,10 @@ gen7_pp_nv12_dndi_initialize(VADriverContextP ctx, struct i965_post_processing_c
sampler_dndi[index].dw6.dndi_first_frame = 1;
sampler_dndi[index].dw6.progressive_dn = 0;
sampler_dndi[index].dw6.mcdi_enable = 0;
- sampler_dndi[index].dw6.fmd_tear_threshold = 32;
+ sampler_dndi[index].dw6.fmd_tear_threshold = 2;
sampler_dndi[index].dw6.cat_th1 = 0;
- sampler_dndi[index].dw6.fmd2_vertical_difference_threshold = 32;
- sampler_dndi[index].dw6.fmd1_vertical_difference_threshold = 32;
+ sampler_dndi[index].dw6.fmd2_vertical_difference_threshold = 100;
+ sampler_dndi[index].dw6.fmd1_vertical_difference_threshold = 16;
sampler_dndi[index].dw7.sad_tha = 5;
sampler_dndi[index].dw7.sad_thb = 10;