This commit is contained in:
ikari
2009-10-19 01:18:41 +02:00
parent e35cfe5cc6
commit a749f77037
3 changed files with 18 additions and 12 deletions

View File

@@ -32,13 +32,19 @@ int main(int argc, char** argv) {
// depth = 2;
// 4->2
pixperbyte = 1;
mask_shift = 0;
mask = 0xff;
depth = 8;
pixperbyte = 2;
mask_shift = 4;
mask = 0x0f;
depth = 4;
// 4->4?
// pixperbyte = 1;
// mask_shift = 0;
// mask = 0xff;
// depth = 8;
// 8->8
dsize = fsize / pixperbyte;
dsize = fsize * depth / (8/pixperbyte);
uint16_t *obuf;
if((obuf=malloc(dsize))==NULL) {