Skip to content

Commit

Permalink
version 0.3.0-rc16
Browse files Browse the repository at this point in the history
Continue to fine-tune the nhw_kernel weights
  • Loading branch information
rcanut committed Aug 15, 2024
1 parent 3b67b7a commit 0fa58fc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
11 changes: 6 additions & 5 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-rc15 *
* last update: $ 08042024 nhw exp $ *
* version: 0.3.0-rc16 *
* last update: $ 08152024 nhw exp $ *
* *
****************************************************************************
****************************************************************************
Expand Down Expand Up @@ -843,17 +843,18 @@ void pre_processing(image_buffer *im)
{
if (res>0) im->im_jpeg[scan-1]+=2;else im->im_jpeg[scan-1]-=2;

nhw_kernel[scan-1]=0;
if (abs(count)>sharpn2) nhw_kernel[scan-1]=0;
}

if (abs(count)>sharpness)
{
if (count>0) im->im_jpeg[scan]+=2;else im->im_jpeg[scan]-=2;

nhw_kernel[scan]=0;
if (abs(res)>sharpn2) nhw_kernel[scan]=0;
}

t1 = 1;

}
else
{
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-rc15 *
* last update: $ 08042024 nhw exp $ *
* version: 0.3.0-rc16 *
* last update: $ 08152024 nhw exp $ *
* *
****************************************************************************
****************************************************************************
Expand Down Expand Up @@ -50,7 +50,7 @@
#include "codec.h"

#define PROGRAM "nhw-enc"
#define VERSION "0.3.0-rc15"
#define VERSION "0.3.0-rc16"

#define NHW_QUALITY_MIN LOW20
#define NHW_QUALITY_MAX HIGH3
Expand Down

0 comments on commit 0fa58fc

Please sign in to comment.