-
Notifications
You must be signed in to change notification settings - Fork 208
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
Require that gainMap->gainMapMax[c] be greater than or equal to gainMap->gainMapMin[c] #2573
Comments
Indeed we don't seem to check that max>=min. This requirement did not exist in early versions of the gain map concept. We can add a check in I think the The case |
Thank you for the confirmation. I wrote #2577 to add a check in Thanks also for answering my other questions. |
I abandoned my pull request #2577 because we also need to update |
While searching for the word "shall" in ISO/CD 21496-1, I found the following requirements:
I checked src/read.c and src/gainmap.c. It seems that we are not checking this requirement. Could you please double check?
Also, in src/gainmap.c, I see the following code:
Is the
continue
statement correct?It seems that
avifFindMinMaxWithoutOutliers()
may return*rangeMin
greater than*rangeMax
because of the following code:If both the for loops execute their respective
if (histogram[i] == 0)
statement andhistogram[i]
is equal to 0 for only onei
, then I think*rangeMin
will be greater than*rangeMax
. Can this happen?The text was updated successfully, but these errors were encountered: