Skip to content

Commit

Permalink
version 0.3.0-rc35
Browse files Browse the repository at this point in the history
Continue to fine-tune the nhw_kernel weights
  • Loading branch information
rcanut committed Nov 1, 2024
1 parent 2b51d84 commit a132bba
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
16 changes: 14 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-rc34 *
* last update: $ 10302024 nhw exp $ *
* version: 0.3.0-rc35 *
* last update: $ 11012024 nhw exp $ *
* *
****************************************************************************
****************************************************************************
Expand Down Expand Up @@ -856,6 +856,18 @@ void pre_processing(image_buffer *im)
{
if (!t3 && t2==1)
{
if (abs(res)>3000)
{
if (res>0) res = sharpn2 + 5;
else res = -sharpn2 - 5;
}

if (abs(count)>3000)
{
if (count>0) count = sharpn2 + 22;
else count = -sharpn2 - 22;
}

if (abs(res)<((abs(count))>>2))
{
if (res>0) im->im_jpeg[scan-1]--;else im->im_jpeg[scan-1]++;
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-rc34 *
* last update: $ 10302024 nhw exp $ *
* version: 0.3.0-rc35 *
* last update: $ 11012024 nhw exp $ *
* *
****************************************************************************
****************************************************************************
Expand Down Expand Up @@ -50,7 +50,7 @@
#include "codec.h"

#define PROGRAM "nhw-enc"
#define VERSION "0.3.0-rc34"
#define VERSION "0.3.0-rc35"

#define NHW_QUALITY_MIN LOW20
#define NHW_QUALITY_MAX HIGH3
Expand Down

0 comments on commit a132bba

Please sign in to comment.