Comments (5)
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,
Aous
from openjph.
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 :)
from openjph.
Actually, I still don't think this is correct :) Even if it is big endian, the 15th MSB bit set should be
0x00008000
rather than 0x00020000
which is the 17th MSB.
from openjph.
Pcap is not in the original Part 1. It was added later. It is in the latest edition of Part 1.
The attached picture should make it clear; Pcap15 indicates JPH -- Perhaps describing it as 15th MSB is still not very clear.
It is weird because it is counted from the MSB, and because it starts with 1, not 0.
Cheers,
Aous.
Edit: corrected "addition" to "edition"
from openjph.
Alright, I think I understand :) , but yes, I find this unusual.
Thanks,
Aaron
from openjph.
Related Issues (20)
- typo in CMakeLists.txt HOT 1
- ojph_compress support for uppercase file extensions HOT 1
- signed 16bit negative values mismatch in interoperablity test between openjph and kakadu HOT 2
- Incorrect COM marker length HOT 1
- openjph decompression fails HOT 2
- Question : what format to be used to decompress the color HTJ2K compressed imaging data HOT 6
- Build should not fail if SIMD optimizations are enabled and your CPU doesn't support them HOT 2
- Feature: Support ROI based rendering HOT 1
- Sample JPH images, please HOT 5
- Unable to build using MinGW HOT 3
- Apple silicon build error HOT 5
- Support decode/expand a j2c file with just tilepart bytes HOT 2
- Tests fails to pass in version 0.10.4 HOT 2
- Specifying non-standard binary and library directories complicates integration in other projects HOT 1
- Feature Request: Add support for vcpkg HOT 1
- Encode 115x25的YUV444 picture,There is serious distortion. HOT 4
- Add diagnostic error information for Non-CLI applications HOT 2
- Remove xcode specific files HOT 1
- The block coder should be usable without pulling in the rest of OpenJPH HOT 6
- Removing the ojph_ prefix. HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openjph.