summaryrefslogtreecommitdiff
path: root/src/verify.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-01-27 01:27:53 +0100
committerCarl Hetherington <cth@carlh.net>2021-02-06 23:05:15 +0100
commit73780cdb80eb3ac1f0f9d96fe6032f8a2317b01b (patch)
tree171b53d146b9eb5a0e98e90b5dbdbff6cf3a7a50 /src/verify.h
parenteac3cac07eb97a6bcf6accd1575af76cd6f59112 (diff)
WIP: analyse J2K files.j2k-check
Diffstat (limited to 'src/verify.h')
-rw-r--r--src/verify.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/verify.h b/src/verify.h
index 0a8b39ca..d57958e2 100644
--- a/src/verify.h
+++ b/src/verify.h
@@ -318,6 +318,32 @@ public:
MISMATCHED_PKL_ANNOTATION_TEXT_WITH_CPL,
/** If any content is encrypted, everything must be encrypted */
PARTIALLY_ENCRYPTED,
+ /** General error from our JPEG2000 codestream verification */
+ INVALID_JPEG2000_CODESTREAM,
+ /** Invalid number of guard bits in a 2K JPEG2000 stream (should be 1) Bv2.1_10.2.1 */
+ INVALID_JPEG2000_GUARD_BITS_FOR_2K,
+ /** Invalid number of guard bits in a 4K JPEG2000 stream (should be 2) Bv2.1_10.2.1 */
+ INVALID_JPEG2000_GUARD_BITS_FOR_4K,
+ /** JPEG2000 tile size is not the same as the image size Bv2.1_10.2.1 */
+ INVALID_JPEG2000_TILE_SIZE,
+ /** JPEG2000 code block width is not 32 Bv2.1_10.2.1 */
+ INVALID_JPEG2000_CODE_BLOCK_WIDTH,
+ /** JPEG2000 code block height is not 32 Bv2.1_10.2.1 */
+ INVALID_JPEG2000_CODE_BLOCK_HEIGHT,
+ /** There must be no POC markers in a 2K codestream Bv2.1_10.2.1 */
+ INCORRECT_JPEG2000_POC_MARKER_COUNT_FOR_2K,
+ /** There must be exactly one POC marker in a 4K codestream Bv2.1_10.2.1 */
+ INCORRECT_JPEG2000_POC_MARKER_COUNT_FOR_4K,
+ /** A 4K POC marker has incorrect content Bv2.1_10.2.1 */
+ INCORRECT_JPEG2000_POC_MARKER,
+ /** A POC marker was found outside the main head Bv2.1_10.2.1 */
+ INVALID_JPEG2000_POC_MARKER_LOCATION,
+ /** Invalid number of tile parts for 2K JPEG2000 stream (should be 3) Bv2.1_10.2.1 */
+ INVALID_JPEG2000_TILE_PARTS_FOR_2K,
+ /** Invalid number of tile parts for 4K JPEG2000 stream (should be 6) Bv2.1_10.2.1 */
+ INVALID_JPEG2000_TILE_PARTS_FOR_4K,
+ /** No TLM marker was found Bv2.1_10.2.1 */
+ MISSING_JPEG200_TLM_MARKER,
};
VerificationNote (Type type, Code code)