You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
It seems that bpp is only used in the library for the Cinema Profile warning (I guess the images components where in fact 12bits in the resulting jp2 file when you filed #609 ...)
The rest of the code in openjp2 uses prec (or so it seems doing a search on the project)
I don't know why the 2 co-exist... maybe @detonin have some insight on this. Documentation doesn't help.
The reason will be displayed to describe this comment to others. Learn more.
I already noticed that bpp and prec were overlapping but do not have insight and the reason behind this.
I'm the author of the Cinema Profile warning and I remember I did not know whether to use bppor prec. So if it's indeed the only place where it's used independently from prec, I would replace with prec and completely remove bpp (there are plenty of occurences in the convert files btw).
Btw, prec is probably a better syntax than bpp as the latter stands for "bits per pixel", which is actually not the case (it corresponds to "bits per sample", having one sample per component).
cf352af
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like component->prec and component->bpp are always equal in the code. Is this always true?
cf352af
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that
bpp
is only used in the library for the Cinema Profile warning (I guess the images components where in fact 12bits in the resulting jp2 file when you filed #609 ...)The rest of the code in openjp2 uses
prec
(or so it seems doing a search on the project)I don't know why the 2 co-exist... maybe @detonin have some insight on this. Documentation doesn't help.
cf352af
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confusing - perhaps
bpp
should be removedcf352af
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I already noticed that
bpp
andprec
were overlapping but do not have insight and the reason behind this.I'm the author of the Cinema Profile warning and I remember I did not know whether to use
bpp
orprec
. So if it's indeed the only place where it's used independently fromprec
, I would replace withprec
and completely removebpp
(there are plenty of occurences in the convert files btw).Btw,
prec
is probably a better syntax thanbpp
as the latter stands for "bits per pixel", which is actually not the case (it corresponds to "bits per sample", having one sample per component).cf352af
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I vote to remove it.