Skip to content

Commit

Permalink
version 0.3.0-rc40
Browse files Browse the repository at this point in the history
Continue to fine-tune the nhw_kernel weights
  • Loading branch information
rcanut committed Dec 9, 2024
1 parent c695f3d commit 9f64bbd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
21 changes: 14 additions & 7 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-rc39 *
* last update: $ 12052024 nhw exp $ *
* version: 0.3.0-rc40 *
* last update: $ 12092024 nhw exp $ *
* *
****************************************************************************
****************************************************************************
Expand Down Expand Up @@ -849,13 +849,20 @@ void pre_processing(image_buffer *im)
{
nhw_kernel[scan-1] = 0;

if (t19<(4*IM_SIZE) && abs(res)>(sharpness+96) && t6>0 && i>(4*IM_DIM))
{
if (t19>0 && t20>2)
if ((t19<(4*IM_SIZE) || (t20>=3 && t20<(4*IM_SIZE))) && abs(res)>(sharpness+96) && t6>0 && i>(4*IM_DIM))
{
if (t20>=3 && t19>=((8*IM_SIZE)+2))
{
t6--;

t20 = (8*IM_SIZE);
}

if (t19>0 && t19<(4*IM_SIZE) && t20>1)
{
t6--;

t19 = (8*IM_SIZE);
t19 = (8*IM_SIZE)+t20;
}

if (!t19)
Expand All @@ -875,7 +882,7 @@ void pre_processing(image_buffer *im)
if (abs(count)>sharpness)
{
if ((t2==1 || t12==1) && !t14)
{
{
if (!t3 && t2==1)
{
if (abs(res)>3000)
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-rc39 *
* last update: $ 12052024 nhw exp $ *
* version: 0.3.0-rc40 *
* last update: $ 12092024 nhw exp $ *
* *
****************************************************************************
****************************************************************************
Expand Down Expand Up @@ -51,7 +51,7 @@
#include "codec.h"

#define PROGRAM "nhw-enc"
#define VERSION "0.3.0-rc39"
#define VERSION "0.3.0-rc40"

#define NHW_QUALITY_MIN LOW20
#define NHW_QUALITY_MAX HIGH3
Expand Down

0 comments on commit 9f64bbd

Please sign in to comment.