Skip to content

Commit 13fc8a3

Browse files
committed
Bug fixed to copying C-Layer3 to Y, version updated to 0.1.6.23
1 parent feb4282 commit 13fc8a3

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,14 @@ This is an open source project from original of this:
3434
* MacOSX ( clang, llvm )
3535

3636
## Latest Changes
37+
### Verison 0.1.6.23
38+
* Fixed a small bug of wrong internal copying size.
39+
40+
## Previous Changes
3741
### Verison 0.1.6.22
3842
* Fixed bug of original source (ShuWang's SRCNN).
3943
- Use last layer (3) to Y channel at last construction.
4044
* Changed ProcessSRCNN() method to get optional convolutional result.
41-
42-
## Previous Changes
4345
### Verison 0.1.6.20
4446
* Fixed memory leak after convolution55.
4547
* Changed ProcessSRCNN() method to get convolutional gray.

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,6,22
2-
#define APP_VERSION_STR "0.1.6.22"
1+
#define APP_VERSION 0,1,6,23
2+
#define APP_VERSION_STR "0.1.6.23"

src/libsrcnn.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ int DLL_PUBLIC ProcessSRCNN( const unsigned char* refbuff,
651651
// ---------------------------------------------------------
652652
// Copy Third layer result to Y channel.
653653

654-
unsigned convsz = imgResized[0].width * imgResized[0].height;
654+
unsigned convsz = imgResized[0].width * imgResized[0].height * sizeof( float );
655655
memcpy( imgResized[0].buff, imgConv3.buff, convsz );
656656

657657
/* Convert the image from YCrCb to RGB Space */

0 commit comments

Comments
 (0)