summaryrefslogtreecommitdiff
path: root/src/verify.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-12-26 00:42:28 +0100
committerCarl Hetherington <cth@carlh.net>2024-01-03 21:26:17 +0100
commit5d3d4fbd355d8d422a4ac17f93d57ab8ef0a22ee (patch)
tree25c871e922752501f2c0245d56c4802413a4cefd /src/verify.h
parent07314aa75683a7d6d34069514a8bb377bd2def77 (diff)
Report every frame (with index) that has a JPEG2000 codestream error (DoM #2698).
Diffstat (limited to 'src/verify.h')
-rw-r--r--src/verify.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/verify.h b/src/verify.h
index f57c8e17..7bfe4217 100644
--- a/src/verify.h
+++ b/src/verify.h
@@ -331,6 +331,7 @@ public:
/** Some, but not all content, is encrypted */
PARTIALLY_ENCRYPTED,
/** General error during JPEG2000 codestream verification
+ * frame contains the frame index (counted from 0)
* note contains details
*/
INVALID_JPEG2000_CODESTREAM,
@@ -524,6 +525,7 @@ private:
SIZE,
ID,
OTHER_ID,
+ FRAME_RATE
};
template <class T>
@@ -594,6 +596,15 @@ public:
return data<std::string>(Data::OTHER_ID);
}
+ VerificationNote& set_frame_rate(int frame_rate) {
+ _data[Data::FRAME_RATE] = frame_rate;
+ return *this;
+ }
+
+ boost::optional<int> frame_rate() const {
+ return data<int>(Data::FRAME_RATE);
+ }
+
private:
Type _type;
Code _code;