From 4723d8b7dc8128cd789a3d1710a9fab73b82995a Mon Sep 17 00:00:00 2001 From: Raphael Canut Date: Thu, 7 Nov 2024 19:43:45 +0100 Subject: [PATCH] version 0.3.0-rc36 Continue to fine-tune the nhw_kernel weights --- encoder/image_processing.c | 8 +++++--- encoder/nhw_encoder_cli.c | 6 +++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/encoder/image_processing.c b/encoder/image_processing.c index 060d1b7..1b1d06c 100644 --- a/encoder/image_processing.c +++ b/encoder/image_processing.c @@ -2,8 +2,8 @@ **************************************************************************** * NHW Image Codec * * file: image_processing.c * -* version: 0.3.0-rc35 * -* last update: $ 11012024 nhw exp $ * +* version: 0.3.0-rc36 * +* last update: $ 11072024 nhw exp $ * * * **************************************************************************** **************************************************************************** @@ -853,7 +853,7 @@ void pre_processing(image_buffer *im) if (abs(count)>sharpness) { if ((t2==1 || t12==1) && !t14) - { + { if (!t3 && t2==1) { if (abs(res)>3000) @@ -903,6 +903,8 @@ void pre_processing(image_buffer *im) if (abs(res)>sharpn2) nhw_kernel[scan]=0; } } + + if (abs(res)>sharpness || abs(count)>sharpness) t13 = 1; if (t14==1) { diff --git a/encoder/nhw_encoder_cli.c b/encoder/nhw_encoder_cli.c index 6fda197..e6a0336 100644 --- a/encoder/nhw_encoder_cli.c +++ b/encoder/nhw_encoder_cli.c @@ -2,8 +2,8 @@ **************************************************************************** * NHW Image Codec * * file: nhw_encoder_cli.c * -* version: 0.3.0-rc35 * -* last update: $ 11012024 nhw exp $ * +* version: 0.3.0-rc36 * +* last update: $ 11072024 nhw exp $ * * * **************************************************************************** **************************************************************************** @@ -50,7 +50,7 @@ #include "codec.h" #define PROGRAM "nhw-enc" -#define VERSION "0.3.0-rc35" +#define VERSION "0.3.0-rc36" #define NHW_QUALITY_MIN LOW20 #define NHW_QUALITY_MAX HIGH3