Skip to content

Commit

Permalink
version 0.3.0-rc24
Browse files Browse the repository at this point in the history
Continue to fine-tune the nhw_kernel weights
  • Loading branch information
rcanut committed Sep 22, 2024
1 parent 7b79f3c commit 4139672
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
23 changes: 15 additions & 8 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-rc23 *
* last update: $ 09192024 nhw exp $ *
* version: 0.3.0-rc24 *
* last update: $ 09222024 nhw exp $ *
* *
****************************************************************************
****************************************************************************
Expand Down Expand Up @@ -896,20 +896,18 @@ void pre_processing(image_buffer *im)
}
else
{
t5 = 0;

if (abs(res)>sharpness)
{
if (res>0) im->im_jpeg[scan-1]++;else im->im_jpeg[scan-1]--;

t1++;t4++;t5++;
t1++;t4++;
}

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

t1++;t4++;t5++;
t1++;t4++;
}

if (t4==t10 && t1==t11)
Expand Down Expand Up @@ -950,9 +948,18 @@ void pre_processing(image_buffer *im)
}
else
{
if (t10==8) t10 = 10;else t10 = 8;
if ((t6==10 || t6==11) && !t7)
{
t10 = 6;

t11 = 9;
}
else
{
if (t10==8) t10 = 10;else t10 = 8;

if (t11==12) t11 = 15;else t11 = 12;
if (t11==12) t11 = 15;else t11 = 12;
}
}
}
else if (t1>=15)
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-rc23 *
* last update: $ 09192024 nhw exp $ *
* version: 0.3.0-rc24 *
* last update: $ 09222024 nhw exp $ *
* *
****************************************************************************
****************************************************************************
Expand Down Expand Up @@ -50,7 +50,7 @@
#include "codec.h"

#define PROGRAM "nhw-enc"
#define VERSION "0.3.0-rc23"
#define VERSION "0.3.0-rc24"

#define NHW_QUALITY_MIN LOW20
#define NHW_QUALITY_MAX HIGH3
Expand Down

0 comments on commit 4139672

Please sign in to comment.