updated image compression tool

This commit is contained in:
Laurence Bank
2024-09-30 09:16:46 +01:00
parent b3144ec2e5
commit e893e5c560
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -237,7 +237,7 @@ int main(int argc, char *argv[])
return 1;
}
// Write the file header
bbff.u16Marker = BB_MARKER;
bbff.u16Marker = BB_FONT_MARKER;
bbff.first = first;
bbff.last = last;
bbff.rotation = iRotation; // save rotation angle
+3 -1
View File
@@ -6,6 +6,7 @@
//
#include <stdio.h>
#define MAX_IMAGE_FLIPS 256
#include "../src/Group5.h"
#include "../src/g5enc.inl"
//
@@ -118,7 +119,8 @@ int main(int argc, const char * argv[]) {
FILE *f;
printf("Encode succeeded!\n");
iOutSize = g5_encode_getOutSize(&g5enc);
printf("Input size = %d, output size = %d\n", iPitch*h, iOutSize);
printf("Input size: %d bytes, output size: %d bytes\n", iPitch*h, iOutSize);
printf("Compression ratio: %2.1f:1\n", (float)(iPitch*h) / (float)iOutSize);
bbbm.u16Marker = BB_BITMAP_MARKER;
bbbm.width = w;
bbbm.height = h;