@@ -74,20 +74,20 @@ channelformat(1) = uint8
7474get_int_attribute('foo_int') retrieves 14
7575get_int_attribute('foo_int',21) with default retrieves 14
7676get_int_attribute('foo_no',23) retrieves 23
77- get_float_attribute('foo_float') retrieves 3.1400001049
77+ get_float_attribute('foo_float') retrieves 3.140000104904175
7878get_float_attribute('foo_float_no') retrieves 0.0
79- get_float_attribute('foo_float_no',2.7) retrieves 2.70000004768
79+ get_float_attribute('foo_float_no',2.7) retrieves 2.700000047683716
8080get_string_attribute('foo_str') retrieves blah
8181get_string_attribute('foo_str_no') retrieves
8282get_string_attribute('foo_str_no','xx') retrieves xx
8383
8484getattribute('foo_int') retrieves 14
85- getattribute('foo_float') retrieves 3.1400001049
85+ getattribute('foo_float') retrieves 3.140000104904175
8686getattribute('foo_str') retrieves blah
8787getattribute('foo_vector') retrieves (1.0, 0.0, 11.0)
8888getattribute('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)
8989getattribute('foo_no') retrieves None
90- getattribute('smpte:TimeCode') retrieves (18356486L, 4294967295L )
90+ getattribute('smpte:TimeCode') retrieves (18356486, 4294967295 )
9191getattribute('ucarr') retrieves [49 50 51 0 0 97 98 99 1 88]
9292getattribute('unknown') retrieves None
9393s.get('foo_int') = 14
@@ -107,13 +107,13 @@ extra_attribs size is 10
107107"blah"
1081081 foo_int int 14
10910914
110- 2 foo_float float 3.1400001049
110+ 2 foo_float float 3.140000104904175
1111113.14
1121123 foo_vector vector (1.0, 0.0, 11.0)
1131131, 0, 11
1141144 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)
1151151, 0, 0, 0, 0, 2, 0, 0, 0, 0, 1, 0, 1, 2, 3, 1
116- 5 smpte:TimeCode timecode (18356486L, 4294967295L )
116+ 5 smpte:TimeCode timecode (18356486, 4294967295 )
11711701:18:19:06
1181186 ucarr uint8[10] [49 50 51 0 0 97 98 99 1 88]
11911949, 50, 51, 0, 0, 97, 98, 99, 1, 88
@@ -206,6 +206,16 @@ Testing set_colorspace:
206206 after set_colorspace('sRGB'): sRGB
207207 after set_colorspace(''):
208208
209+ Testing set_cicp:
210+ after set_cicp('1,2,3,4'): [1 2 3 4]
211+ after set_cicp(''): None
212+ after set_cicp(1,2): [1 2 0 1]
213+ after set_cicp(1,2,3): [1 2 3 1]
214+ after set_cicp(1,2,3,4): [1 2 3 4]
215+ after set_cicp(',,,0'): [1 2 3 0]
216+ after set_cicp('1,13,1'): [ 1 13 1 0]
217+ after set_cicp(',4'): [1 4 1 0]
218+
209219Testing global attribute store/retrieve:
210220get_string_attribute plugin_searchpath : perfect
211221get_int_attribute plugin_searchpath : 0
0 commit comments