#16 Output from new program != Output of old program given same files and settings

Closed
opened 3 years ago by scuti · 3 comments
scuti commented 3 years ago

Attached are output bitmaps of Paperbak.ini

Attached are output bitmaps of Paperbak.ini
scuti commented 3 years ago
Owner

PaperBak-orig-output.bmp https://u.teknik.io/xQ5lb.bmp

PaperBak-new-output.bmp https://u.teknik.io/OIvwQ.bmp

$ ./paperback-cli.exe encode PaperBak.ini PaperBak.bmp
print->superdata.addr: 4294967295
print->origsize: 513
nx: 33
ny: 46
width: 2400
height: 3300
print->ppix: 300
print->ppiy: 300
print->bordertop: 150
print->borderbottom: 150
print->borderleft: 150
print->borderright: 150
print->border: 25
px: 1
py: 1
NDOT: 32
dx: 2
dy: 2
Processing page 1 of 1... @ 0%
All pages have been printed
PaperBak-orig-output.bmp https://u.teknik.io/xQ5lb.bmp PaperBak-new-output.bmp https://u.teknik.io/OIvwQ.bmp $ ./paperback-cli.exe encode PaperBak.ini PaperBak.bmp print->superdata.addr: 4294967295 print->origsize: 513 nx: 33 ny: 46 width: 2400 height: 3300 print->ppix: 300 print->ppiy: 300 print->bordertop: 150 print->borderbottom: 150 print->borderleft: 150 print->borderright: 150 print->border: 25 px: 1 py: 1 NDOT: 32 dx: 2 dy: 2 Processing page 1 of 1... @ 0% All pages have been printed
scuti added the
bug
label 3 years ago
suhrke commented 3 years ago
Collaborator

Decode8 is the function giving us answer==17 every time. ECC requires 128 byte struct to work as is. Opted for fixed-width types and to have the compiler pack the struct. Will write the OS-agnostic file time struct to be 64-byte to keep alignment.

Decode8 is the function giving us answer==17 every time. ECC requires 128 byte struct to work as is. Opted for fixed-width types and to have the compiler pack the struct. Will write the OS-agnostic file time struct to be 64-byte to keep alignment.
scuti commented 3 years ago
Owner

bc12a7d81f

Also PortLibC working fine.

https://git.teknik.io/scuti/paperback-cli/commit/bc12a7d81f690589b4172428a4e3461423a477a4 Also PortLibC working fine.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
Cancel
Save
There is no content yet.