Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in code block calculations #369

Closed
gcode-importer opened this issue Jul 3, 2014 · 2 comments
Closed

error in code block calculations #369

gcode-importer opened this issue Jul 3, 2014 · 2 comments

Comments

@gcode-importer
Copy link

Originally reported on Google Code with ID 369

In tcd.c, the code block y start value is calculated using the precinct width. It should
use the height instead: 

OPJ_INT32 cbgxstart =
      tlcbgxstart + (OPJ_INT32)(precno % l_res->pw) * (1 << cbgwidthexpn);

OPJ_INT32 cbgystart = 
     tlcbgystart + (OPJ_INT32)(precno / l_res->pw) * (1 << cbgheightexpn);


The same error occurs here:

OPJ_INT32 cblkxstart = tlcblkxstart + (OPJ_INT32)(cblkno % l_current_precinct->cw)
* (1 << cblkwidthexpn);

 OPJ_INT32 cblkystart = tlcblkystart + (OPJ_INT32)(cblkno /    l_current_precinct->cw)
* (1 << cblkheightexpn);

Reported by boxerab on 2014-07-03 17:08:02

@gcode-importer
Copy link
Author

This is not, in fact, an error. Please close.

Reported by boxerab on 2014-07-03 17:23:50

@gcode-importer
Copy link
Author

Reported by detonin on 2014-07-04 07:47:17

  • Status changed: Invalid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant