Skip to content

Commit

Permalink
version 0.3.0-rc5
Browse files Browse the repository at this point in the history
Improve weights for the nhw_kernel
  • Loading branch information
rcanut committed Dec 21, 2023
1 parent 6702b5d commit 3c3ce78
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions encoder/image_processing.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
****************************************************************************
* NHW Image Codec *
* file: image_processing.c *
* version: 0.3.0-rc4 *
* last update: $ 12072023 nhw exp $ *
* version: 0.3.0-rc5 *
* last update: $ 12212023 nhw exp $ *
* *
****************************************************************************
****************************************************************************
Expand Down Expand Up @@ -622,6 +622,8 @@ void pre_processing(image_buffer *im)

if (abs(res)<=sharpn2 && abs(res2)>sharpn2 && abs(res2)<=(sharpn2+20) && im->setup->quality_setting<=LOW4)
{
if (j>1 && abs(nhw_kernel[scan-1])<=(sharpness>>1)) res3 = 0;

if (!res3)
{
nhw_kernel[scan] = - (sharpn2+21);
Expand Down Expand Up @@ -658,6 +660,8 @@ void pre_processing(image_buffer *im)

if (res<=sharpn2 && res2>sharpn2 && res2<=(sharpn2+20) && im->setup->quality_setting<=LOW4)
{
if (j>1 && abs(nhw_kernel[scan-1])<=(sharpness>>1)) a = 0;

if (!a)
{
nhw_kernel[scan] = sharpn2+21;
Expand Down
6 changes: 3 additions & 3 deletions encoder/nhw_encoder_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
****************************************************************************
* NHW Image Codec *
* file: nhw_encoder_cli.c *
* version: 0.3.0-rc4 *
* last update: $ 12072023 nhw exp $ *
* version: 0.3.0-rc5 *
* last update: $ 12212023 nhw exp $ *
* *
****************************************************************************
****************************************************************************
Expand Down Expand Up @@ -50,7 +50,7 @@
#include "codec.h"

#define PROGRAM "nhw-enc"
#define VERSION "0.3.0-rc4"
#define VERSION "0.3.0-rc5"

#define NHW_QUALITY_MIN LOW20
#define NHW_QUALITY_MAX HIGH3
Expand Down

0 comments on commit 3c3ce78

Please sign in to comment.