packbits optimization #2
This commit is contained in:
@@ -161,11 +161,21 @@ int Test_Packbits(void)
|
||||
"12345678123456781234567812345678" // 32
|
||||
"12345678123456781234567812345678" // 64
|
||||
"12345678123456781234567812345678" // 96
|
||||
"12345678123456781234567812345678" // 128
|
||||
"1", // best : 127(7f) "123..." 01 "1" => 131
|
||||
"12345678123456781234567812345678" // 32
|
||||
"12345678123456781234567812345678" // 64
|
||||
"12345678123456781234567812345678" // 96
|
||||
"123456781234567812345678123456@@" // 128
|
||||
"@@12345678", // best : 125(7d) "123..." -3 '@' 08 "12345678" => 138
|
||||
"12345678123456781234567812345678" // 32
|
||||
"12345678123456781234567812345678" // 64
|
||||
"12345678123456781234567812345678" // 96
|
||||
"1234567812345678123456781234567@" // 128
|
||||
"@@12345678", // best : 126(7e) "123..." -2 '@' 08 "12345678" => 139
|
||||
NULL
|
||||
};
|
||||
const long best_packed = 7 + 22 + 23 + (138/*+2*/);
|
||||
const long best_packed = 7 + 22 + 23 + 131 + (138/*+2*/) + (139/*+1*/);
|
||||
byte buffer[1024];
|
||||
|
||||
snprintf(tempfilename, sizeof(tempfilename), "/tmp/gfx2test-packbits-%lx", random());
|
||||
|
||||
Reference in New Issue
Block a user