Skip to content

Commit 41e57f9

Browse files
committed
Fixed some bugs, refer to README.md
1 parent 0162b2e commit 41e57f9

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,15 @@ This is an open source project from original of this:
3434
* MacOSX ( clang, llvm )
3535

3636
## Latest Changes
37+
### Verison 0.1.9.35
38+
* Fixed memory bug in float images from RGB case.
39+
* header version flag fixed.
40+
41+
## Previous Changes
3742
### Verison 0.1.9.34
3843
* Fixed don't use color space scaling with bicubic filter.
3944
* Now supporting alpha channel.
4045

41-
## Previous Changes
4246
### Verison 0.1.8.30
4347
* Precision step scaling bug fixed.
4448
### Verison 0.1.8.28

res/resource.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#define APP_VERSION 0,1,9,34
2-
#define APP_VERSION_STR "0.1.9.34"
1+
#define APP_VERSION 0,1,9,35
2+
#define APP_VERSION_STR "0.1.9.35"

src/libsrcnn.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,10 @@ void initImgYCbCr( ImgYCbCr &img, unsigned w, unsigned h, unsigned d )
200200
img.uA = true;
201201
initImgF32( img.A, w, h );
202202
}
203+
else
204+
{
205+
memset( &img.A, 0, sizeof( ImgF32 ) );
206+
}
203207
}
204208

205209
void converImgU8toYCbCr( ImgU8 &src, ImgYCbCr &out )

src/libsrcnn.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
#endif
3232
#endif /// of LIBSRCNNSTATIC
3333

34-
// libsrcnn version means, 0.1.9.34
35-
#define LIBSRCNN_VERSION 0x0001081E
34+
// libsrcnn version means, 0.1.9.35
35+
#define LIBSRCNN_VERSION 0x00010923
3636

3737
typedef enum DLL_PUBLIC
3838
{

0 commit comments

Comments
 (0)