Skip to content

Commit

Permalink
version 0.2.8.2 - better pre_processing
Browse files Browse the repository at this point in the history
  • Loading branch information
rcanut committed Dec 16, 2022
1 parent b38dfb2 commit 6449cf7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
10 changes: 7 additions & 3 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.2.8.1 *
* last update: $ 12102022 nhw exp $ *
* version: 0.2.8.2 *
* last update: $ 12162022 nhw exp $ *
* *
****************************************************************************
****************************************************************************
Expand Down Expand Up @@ -871,6 +871,10 @@ void pre_processing(image_buffer *im)
if (res>0 && count>0) im->im_jpeg[scan]--;
else if (res<0 && count<0) im->im_jpeg[scan]++;
}
else if (j<((2*IM_DIM)-6) && abs(nhw_kernel[scan+1])>(sharpness+160) && abs(nhw_kernel[scan+2])>(sharpn2+20))
{
j--;scan--;
}
}
else if (abs(count)>(sharpness+160) && abs(res)>sharpn2 && abs(res)<=(sharpn2+20))
{
Expand All @@ -879,7 +883,7 @@ void pre_processing(image_buffer *im)
if (res>0 && count>0) im->im_jpeg[scan-1]--;
else if (res<0 && count<0) im->im_jpeg[scan-1]++;
}
else
else
{
j--;scan--;
}
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.2.8.1 *
* last update: $ 12102022 nhw exp $ *
* version: 0.2.8.2 *
* last update: $ 12162022 nhw exp $ *
* *
****************************************************************************
****************************************************************************
Expand Down Expand Up @@ -50,7 +50,7 @@
#include "codec.h"

#define PROGRAM "nhw-enc"
#define VERSION "0.2.8.1"
#define VERSION "0.2.8.2"

#define NHW_QUALITY_MIN LOW20
#define NHW_QUALITY_MAX HIGH3
Expand Down

0 comments on commit 6449cf7

Please sign in to comment.