-
Notifications
You must be signed in to change notification settings - Fork 45
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
Pcap field bit 15 #10
Comments
Pcap is 32 bits. Whenever a Pcap bit is set, a corresponding Ccap field shall be included in the CAP header; Ccap is 16 bits. Pcap bits are counted from the most significant bit; perhaps, this is due to the big-endianness. For HTJ2K, Pcap^15 should be set. Perhaps the comment can be improved by saying "for jph, Pcap^15 must be set; the 15th MSB bit." I know this might seem weird, but this is how it is. Cheers, |
Thanks, Aous. Yes, it is weird :) It's not clear from the standard that this is the case, and I couldn't find where it specifies that Pcap is 32 bits. Thanks for clarifying this :) |
Actually, I still don't think this is correct :) Even if it is big endian, the 15th MSB bit set should be |
Alright, I think I understand :) , but yes, I find this unusual. |
This line:
Pcap = 0x00020000; //for jph, Pcap^15 must be set
Here, you are setting 17th bit of Pcap.
Also, is the Pcap field not 16 bits ?
The text was updated successfully, but these errors were encountered: