-
Notifications
You must be signed in to change notification settings - Fork 672
feat: CICP metadata support for PNG #4746
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
Changes from 7 commits
200c3c5
3ebb288
bb91251
378584d
7c2285b
252986f
a30f4e4
574dfa3
f957d6e
652c0e5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -74,20 +74,20 @@ channelformat(1) = uint8 | |
| get_int_attribute('foo_int') retrieves 14 | ||
| get_int_attribute('foo_int',21) with default retrieves 14 | ||
| get_int_attribute('foo_no',23) retrieves 23 | ||
| get_float_attribute('foo_float') retrieves 3.1400001049 | ||
| get_float_attribute('foo_float') retrieves 3.140000104904175 | ||
| get_float_attribute('foo_float_no') retrieves 0.0 | ||
| get_float_attribute('foo_float_no',2.7) retrieves 2.70000004768 | ||
| get_float_attribute('foo_float_no',2.7) retrieves 2.700000047683716 | ||
|
Comment on lines
+77
to
+79
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did these change?
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I suspect this is an artifact of the weirdo merge, maybe pulling in some things from other branches that you didn't intend.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mmmm.... unfortunately, I made these changes four months ago, and I forgot to say why exactly in the commit :( Should I revert these changes and see if stuff breaks? |
||
| get_string_attribute('foo_str') retrieves blah | ||
| get_string_attribute('foo_str_no') retrieves | ||
| get_string_attribute('foo_str_no','xx') retrieves xx | ||
|
|
||
| getattribute('foo_int') retrieves 14 | ||
| getattribute('foo_float') retrieves 3.1400001049 | ||
| getattribute('foo_float') retrieves 3.140000104904175 | ||
| getattribute('foo_str') retrieves blah | ||
| getattribute('foo_vector') retrieves (1.0, 0.0, 11.0) | ||
| getattribute('foo_matrix') retrieves (1.0, 0.0, 0.0, 0.0, 0.0, 2.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 1.0, 2.0, 3.0, 1.0) | ||
| getattribute('foo_no') retrieves None | ||
| getattribute('smpte:TimeCode') retrieves (18356486L, 4294967295L) | ||
| getattribute('smpte:TimeCode') retrieves (18356486, 4294967295) | ||
| getattribute('ucarr') retrieves [49 50 51 0 0 97 98 99 1 88] | ||
| getattribute('unknown') retrieves None | ||
| s.get('foo_int') = 14 | ||
|
|
@@ -107,13 +107,13 @@ extra_attribs size is 10 | |
| "blah" | ||
| 1 foo_int int 14 | ||
| 14 | ||
| 2 foo_float float 3.1400001049 | ||
| 2 foo_float float 3.140000104904175 | ||
| 3.14 | ||
| 3 foo_vector vector (1.0, 0.0, 11.0) | ||
| 1, 0, 11 | ||
| 4 foo_matrix matrix (1.0, 0.0, 0.0, 0.0, 0.0, 2.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 1.0, 2.0, 3.0, 1.0) | ||
| 1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 1, 0, 1, 2, 3, 1 | ||
| 5 smpte:TimeCode timecode (18356486L, 4294967295L) | ||
| 5 smpte:TimeCode timecode (18356486, 4294967295) | ||
| 01:18:19:06 | ||
| 6 ucarr uint8[10] [49 50 51 0 0 97 98 99 1 88] | ||
| 49, 50, 51, 0, 0, 97, 98, 99, 1, 88 | ||
|
|
@@ -206,6 +206,7 @@ Testing set_colorspace: | |
| after set_colorspace('sRGB'): sRGB | ||
| after set_colorspace(''): | ||
|
|
||
|
|
||
| Testing global attribute store/retrieve: | ||
| get_string_attribute plugin_searchpath : perfect | ||
| get_int_attribute plugin_searchpath : 0 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does a similar comment need to go in ImageInput::supports so that it's documented for both?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It sure does! On it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to make sure I've appropriately documented in oiiotool.rst and stdmetadata.rst as well.