Skip to content

Add App2E HTJ2K constraints validation#375

Merged
fschleich merged 23 commits intomasterfrom
App2.HTJ2K-constraints-validation
Aug 20, 2024
Merged

Add App2E HTJ2K constraints validation#375
fschleich merged 23 commits intomasterfrom
App2.HTJ2K-constraints-validation

Conversation

@fschleich
Copy link
Copy Markdown
Contributor

(Branched off of PR #368 to work around GitHub permission issues.)

Closes #370

Validate the CPL essence descriptors against the APP2.HT.REV and APP2.HT.IRV constraint sets specified in ST 2067-21, Annex I.

IMFErrorLogger.IMFErrors.ErrorLevels.WARNING,
"APP2.HT: Parameter B has exceeded its limits");
isValid = false;
isValid = true;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove since isValid is true by default and you would not want to overwrite a false value.

logger.addError(
IMFErrorLogger.IMFErrors.ErrorCodes.APPLICATION_COMPOSITION_ERROR,
IMFErrorLogger.IMFErrors.ErrorLevels.FATAL,
"APP2.HT: Parameter B has exceeded its limit to an extend that decoder issues are to be expected");
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"APP2.HT: Parameter B has exceeded its limit to an extent that decoder issues are to be expected");

* TODO: This should be revisited as more implementations become available.
*/

if (codestreamB > 24) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would be inclined to use the max value allowed in Annex I, i.e., 21.

@fschleich fschleich merged commit 9c0f01e into master Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve APP2.HT.REV and APP2.HT.IRV validation

3 participants