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

Serious problem with quantization during lossy encoding #615

Closed
boxerab opened this issue Oct 4, 2015 · 1 comment
Closed

Serious problem with quantization during lossy encoding #615

boxerab opened this issue Oct 4, 2015 · 1 comment

Comments

@boxerab
Copy link
Contributor

boxerab commented Oct 4, 2015

Subband stepsize is always less than one in OpenJPEG. This means that quantization is not taking place: i.e. DWT coefficients are being mapped to a larger dynamic range, rather than a smaller one,
since quantization take place by multiplying coefficients by the reciprocal of the step size.

This is very inefficient. I don't think this is a conformance issue, because encoders are free to choose the quantization step. But, I would guess this situation creates a serious hit in performance - perhaps at least two times slower than with a proper step size.

@boxerab
Copy link
Contributor Author

boxerab commented Oct 6, 2015

errrm this turns out NOT to be a problem, in fact. Yes, there is a performance penalty for using smaller step sizes: extra bit planes are coded and then possibly discarded in lossy mode. However, the advantage is giving EBCOT more bit planes to work with, resulting in higher PSNR. Closing.

@boxerab boxerab closed this as completed Oct 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant