1cabdff1aSopenharmony_ciTesting default values
2cabdff1aSopenharmony_cinum=0
3cabdff1aSopenharmony_citoggle=1
4cabdff1aSopenharmony_cistring=default
5cabdff1aSopenharmony_ciescape=\=,
6cabdff1aSopenharmony_ciflags=1
7cabdff1aSopenharmony_cirational=1/1
8cabdff1aSopenharmony_civideo_rate=25/1
9cabdff1aSopenharmony_ciwidth=200 height=300
10cabdff1aSopenharmony_cipix_fmt=0bgr
11cabdff1aSopenharmony_cisample_fmt=s16
12cabdff1aSopenharmony_ciduration=1000
13cabdff1aSopenharmony_cicolor=255 192 203 255
14cabdff1aSopenharmony_cichannel_layout=311=311
15cabdff1aSopenharmony_cibinary=62 69 6e 0
16cabdff1aSopenharmony_cibinary_size=4
17cabdff1aSopenharmony_cinum64=1
18cabdff1aSopenharmony_ciflt=0.333333
19cabdff1aSopenharmony_cidbl=0.333333
20cabdff1aSopenharmony_ciTestContext AVOptions:
21cabdff1aSopenharmony_ci  -num               <int>        E.......... set num (from 0 to 100) (default 0)
22cabdff1aSopenharmony_ci  -toggle            <int>        E.......... set toggle (from 0 to 1) (default 1)
23cabdff1aSopenharmony_ci  -rational          <rational>   E.......... set rational (from 0 to 10) (default 1/1)
24cabdff1aSopenharmony_ci  -string            <string>     E.......... set string (default "default")
25cabdff1aSopenharmony_ci  -escape            <string>     E.......... set escape str (default "\=,")
26cabdff1aSopenharmony_ci  -flags             <flags>      E.......... set flags (default cool)
27cabdff1aSopenharmony_ci     cool                         E.......... set cool flag
28cabdff1aSopenharmony_ci     lame                         E.......... set lame flag
29cabdff1aSopenharmony_ci     mu                           E.......... set mu flag
30cabdff1aSopenharmony_ci  -size              <image_size> E.......... set size (default "200x300")
31cabdff1aSopenharmony_ci  -pix_fmt           <pix_fmt>    E.......... set pixfmt (default 0bgr)
32cabdff1aSopenharmony_ci  -sample_fmt        <sample_fmt> E.......... set samplefmt (default s16)
33cabdff1aSopenharmony_ci  -video_rate        <video_rate> E.......... set videorate (default "25")
34cabdff1aSopenharmony_ci  -duration          <duration>   E.......... set duration (default 0.001)
35cabdff1aSopenharmony_ci  -color             <color>      E.......... set color (default "pink")
36cabdff1aSopenharmony_ci  -cl                <channel_layout> E.......... set channel layout (default "hexagonal")
37cabdff1aSopenharmony_ci  -bin               <binary>     E.......... set binary value
38cabdff1aSopenharmony_ci  -bin1              <binary>     E.......... set binary value
39cabdff1aSopenharmony_ci  -bin2              <binary>     E.......... set binary value
40cabdff1aSopenharmony_ci  -num64             <int64>      E.......... set num 64bit (from 0 to 100) (default 1)
41cabdff1aSopenharmony_ci  -flt               <float>      E.......... set float (from 0 to 100) (default 0.333333)
42cabdff1aSopenharmony_ci  -dbl               <double>     E.......... set double (from 0 to 100) (default 0.333333)
43cabdff1aSopenharmony_ci  -bool1             <boolean>    E.......... set boolean value (default auto)
44cabdff1aSopenharmony_ci  -bool2             <boolean>    E.......... set boolean value (default true)
45cabdff1aSopenharmony_ci  -bool3             <boolean>    E.......... set boolean value (default false)
46cabdff1aSopenharmony_ci  -dict1             <dictionary> E.......... set dictionary value
47cabdff1aSopenharmony_ci  -dict2             <dictionary> E.......... set dictionary value (default "happy=':-)'")
48cabdff1aSopenharmony_ci
49cabdff1aSopenharmony_ciTesting av_opt_is_set_to_default()
50cabdff1aSopenharmony_ciname:       num default:1 error:
51cabdff1aSopenharmony_ciname:    toggle default:0 error:
52cabdff1aSopenharmony_ciname:  rational default:0 error:
53cabdff1aSopenharmony_ciname:    string default:0 error:
54cabdff1aSopenharmony_ciname:    escape default:0 error:
55cabdff1aSopenharmony_ciname:     flags default:0 error:
56cabdff1aSopenharmony_ciname:      cool default:1 error:Option not found
57cabdff1aSopenharmony_ciname:      lame default:1 error:Option not found
58cabdff1aSopenharmony_ciname:        mu default:1 error:Option not found
59cabdff1aSopenharmony_ciname:      size default:0 error:
60cabdff1aSopenharmony_ciname:   pix_fmt default:0 error:
61cabdff1aSopenharmony_ciname:sample_fmt default:0 error:
62cabdff1aSopenharmony_ciname:video_rate default:0 error:
63cabdff1aSopenharmony_ciname:  duration default:0 error:
64cabdff1aSopenharmony_ciname:     color default:0 error:
65cabdff1aSopenharmony_ciname:        cl default:0 error:
66cabdff1aSopenharmony_ciname:       bin default:0 error:
67cabdff1aSopenharmony_ciname:      bin1 default:1 error:
68cabdff1aSopenharmony_ciname:      bin2 default:1 error:
69cabdff1aSopenharmony_ciname:     num64 default:0 error:
70cabdff1aSopenharmony_ciname:       flt default:0 error:
71cabdff1aSopenharmony_ciname:       dbl default:0 error:
72cabdff1aSopenharmony_ciname:     bool1 default:0 error:
73cabdff1aSopenharmony_ciname:     bool2 default:0 error:
74cabdff1aSopenharmony_ciname:     bool3 default:1 error:
75cabdff1aSopenharmony_ciname:     dict1 default:1 error:
76cabdff1aSopenharmony_ciname:     dict2 default:0 error:
77cabdff1aSopenharmony_ciname:       num default:1 error:
78cabdff1aSopenharmony_ciname:    toggle default:1 error:
79cabdff1aSopenharmony_ciname:  rational default:1 error:
80cabdff1aSopenharmony_ciname:    string default:1 error:
81cabdff1aSopenharmony_ciname:    escape default:1 error:
82cabdff1aSopenharmony_ciname:     flags default:1 error:
83cabdff1aSopenharmony_ciname:      cool default:1 error:Option not found
84cabdff1aSopenharmony_ciname:      lame default:1 error:Option not found
85cabdff1aSopenharmony_ciname:        mu default:1 error:Option not found
86cabdff1aSopenharmony_ciname:      size default:1 error:
87cabdff1aSopenharmony_ciname:   pix_fmt default:1 error:
88cabdff1aSopenharmony_ciname:sample_fmt default:1 error:
89cabdff1aSopenharmony_ciname:video_rate default:1 error:
90cabdff1aSopenharmony_ciname:  duration default:1 error:
91cabdff1aSopenharmony_ciname:     color default:1 error:
92cabdff1aSopenharmony_ciname:        cl default:1 error:
93cabdff1aSopenharmony_ciname:       bin default:1 error:
94cabdff1aSopenharmony_ciname:      bin1 default:1 error:
95cabdff1aSopenharmony_ciname:      bin2 default:1 error:
96cabdff1aSopenharmony_ciname:     num64 default:1 error:
97cabdff1aSopenharmony_ciname:       flt default:1 error:
98cabdff1aSopenharmony_ciname:       dbl default:1 error:
99cabdff1aSopenharmony_ciname:     bool1 default:1 error:
100cabdff1aSopenharmony_ciname:     bool2 default:1 error:
101cabdff1aSopenharmony_ciname:     bool3 default:1 error:
102cabdff1aSopenharmony_ciname:     dict1 default:1 error:
103cabdff1aSopenharmony_ciname:     dict2 default:1 error:
104cabdff1aSopenharmony_ci
105cabdff1aSopenharmony_ciTesting av_opt_get/av_opt_set()
106cabdff1aSopenharmony_ciname: num         get: 0                set: OK               get: 0                OK
107cabdff1aSopenharmony_ciname: toggle      get: 1                set: OK               get: 1                OK
108cabdff1aSopenharmony_ciname: rational    get: 1/1              set: OK               get: 1/1              OK
109cabdff1aSopenharmony_ciname: string      get: default          set: OK               get: default          OK
110cabdff1aSopenharmony_ciname: escape      get: \=,              set: OK               get: \=,              OK
111cabdff1aSopenharmony_ciname: flags       get: 0x00000001       set: OK               get: 0x00000001       OK
112cabdff1aSopenharmony_ciname: size        get: 200x300          set: OK               get: 200x300          OK
113cabdff1aSopenharmony_ciname: pix_fmt     get: 0bgr             set: OK               get: 0bgr             OK
114cabdff1aSopenharmony_ciname: sample_fmt  get: s16              set: OK               get: s16              OK
115cabdff1aSopenharmony_ciname: video_rate  get: 25/1             set: OK               get: 25/1             OK
116cabdff1aSopenharmony_ciname: duration    get: 0.001            set: OK               get: 0.001            OK
117cabdff1aSopenharmony_ciname: color       get: 0xffc0cbff       set: OK               get: 0xffc0cbff       OK
118cabdff1aSopenharmony_ciname: cl          get: hexagonal        set: OK               get: hexagonal        OK
119cabdff1aSopenharmony_ciname: bin         get: 62696E00         set: OK               get: 62696E00         OK
120cabdff1aSopenharmony_ciname: bin1        get:                  set: OK               get:                  OK
121cabdff1aSopenharmony_ciname: bin2        get:                  set: OK               get:                  OK
122cabdff1aSopenharmony_ciname: num64       get: 1                set: OK               get: 1                OK
123cabdff1aSopenharmony_ciname: flt         get: 0.333333         set: OK               get: 0.333333         OK
124cabdff1aSopenharmony_ciname: dbl         get: 0.333333         set: OK               get: 0.333333         OK
125cabdff1aSopenharmony_ciname: bool1       get: auto             set: OK               get: auto             OK
126cabdff1aSopenharmony_ciname: bool2       get: true             set: OK               get: true             OK
127cabdff1aSopenharmony_ciname: bool3       get: false            set: OK               get: false            OK
128cabdff1aSopenharmony_ciname: dict1       get:                  set: OK               get:                  OK
129cabdff1aSopenharmony_ciname: dict2       get: happy=\:-)       set: OK               get: happy=\:-)       OK
130cabdff1aSopenharmony_ci
131cabdff1aSopenharmony_ciTest av_opt_serialize()
132cabdff1aSopenharmony_cinum=0,toggle=1,rational=1/1,string=default,escape=\\\=\,,flags=0x00000001,size=200x300,pix_fmt=0bgr,sample_fmt=s16,video_rate=25/1,duration=0.001,color=0xffc0cbff,cl=hexagonal,bin=62696E00,bin1=,bin2=,num64=1,flt=0.333333,dbl=0.333333,bool1=auto,bool2=true,bool3=false,dict1=,dict2=happy\=\\:-)
133cabdff1aSopenharmony_ciSetting entry with key 'num' to value '0'
134cabdff1aSopenharmony_ciSetting entry with key 'toggle' to value '1'
135cabdff1aSopenharmony_ciSetting entry with key 'rational' to value '1/1'
136cabdff1aSopenharmony_ciSetting entry with key 'string' to value 'default'
137cabdff1aSopenharmony_ciSetting entry with key 'escape' to value '\=,'
138cabdff1aSopenharmony_ciSetting entry with key 'flags' to value '0x00000001'
139cabdff1aSopenharmony_ciSetting entry with key 'size' to value '200x300'
140cabdff1aSopenharmony_ciSetting entry with key 'pix_fmt' to value '0bgr'
141cabdff1aSopenharmony_ciSetting entry with key 'sample_fmt' to value 's16'
142cabdff1aSopenharmony_ciSetting entry with key 'video_rate' to value '25/1'
143cabdff1aSopenharmony_ciSetting entry with key 'duration' to value '0.001'
144cabdff1aSopenharmony_ciSetting entry with key 'color' to value '0xffc0cbff'
145cabdff1aSopenharmony_ciSetting entry with key 'cl' to value 'hexagonal'
146cabdff1aSopenharmony_ciSetting entry with key 'bin' to value '62696E00'
147cabdff1aSopenharmony_ciSetting entry with key 'bin1' to value ''
148cabdff1aSopenharmony_ciSetting entry with key 'bin2' to value ''
149cabdff1aSopenharmony_ciSetting entry with key 'num64' to value '1'
150cabdff1aSopenharmony_ciSetting entry with key 'flt' to value '0.333333'
151cabdff1aSopenharmony_ciSetting entry with key 'dbl' to value '0.333333'
152cabdff1aSopenharmony_ciSetting entry with key 'bool1' to value 'auto'
153cabdff1aSopenharmony_ciSetting entry with key 'bool2' to value 'true'
154cabdff1aSopenharmony_ciSetting entry with key 'bool3' to value 'false'
155cabdff1aSopenharmony_ciSetting entry with key 'dict1' to value ''
156cabdff1aSopenharmony_ciSetting entry with key 'dict2' to value 'happy=\:-)'
157cabdff1aSopenharmony_cinum=0,toggle=1,rational=1/1,string=default,escape=\\\=\,,flags=0x00000001,size=200x300,pix_fmt=0bgr,sample_fmt=s16,video_rate=25/1,duration=0.001,color=0xffc0cbff,cl=hexagonal,bin=62696E00,bin1=,bin2=,num64=1,flt=0.333333,dbl=0.333333,bool1=auto,bool2=true,bool3=false,dict1=,dict2=happy\=\\:-)
158cabdff1aSopenharmony_ci
159cabdff1aSopenharmony_ciTesting av_set_options_string()
160cabdff1aSopenharmony_ciSetting options string ''
161cabdff1aSopenharmony_ciOK    ''
162cabdff1aSopenharmony_ciSetting options string ':'
163cabdff1aSopenharmony_ciMissing key or no key/value separator found after key ':'
164cabdff1aSopenharmony_ciError ':'
165cabdff1aSopenharmony_ciSetting options string '='
166cabdff1aSopenharmony_ciMissing key or no key/value separator found after key ''
167cabdff1aSopenharmony_ciError '='
168cabdff1aSopenharmony_ciSetting options string 'foo=:'
169cabdff1aSopenharmony_ciSetting entry with key 'foo' to value ''
170cabdff1aSopenharmony_ciKey 'foo' not found.
171cabdff1aSopenharmony_ciError 'foo=:'
172cabdff1aSopenharmony_ciSetting options string ':=foo'
173cabdff1aSopenharmony_ciSetting entry with key ':' to value 'foo'
174cabdff1aSopenharmony_ciKey ':' not found.
175cabdff1aSopenharmony_ciError ':=foo'
176cabdff1aSopenharmony_ciSetting options string '=foo'
177cabdff1aSopenharmony_ciMissing key or no key/value separator found after key ''
178cabdff1aSopenharmony_ciError '=foo'
179cabdff1aSopenharmony_ciSetting options string 'foo='
180cabdff1aSopenharmony_ciSetting entry with key 'foo' to value ''
181cabdff1aSopenharmony_ciKey 'foo' not found.
182cabdff1aSopenharmony_ciError 'foo='
183cabdff1aSopenharmony_ciSetting options string 'foo'
184cabdff1aSopenharmony_ciMissing key or no key/value separator found after key 'foo'
185cabdff1aSopenharmony_ciError 'foo'
186cabdff1aSopenharmony_ciSetting options string 'foo=val'
187cabdff1aSopenharmony_ciSetting entry with key 'foo' to value 'val'
188cabdff1aSopenharmony_ciKey 'foo' not found.
189cabdff1aSopenharmony_ciError 'foo=val'
190cabdff1aSopenharmony_ciSetting options string 'foo==val'
191cabdff1aSopenharmony_ciSetting entry with key 'foo' to value '=val'
192cabdff1aSopenharmony_ciKey 'foo' not found.
193cabdff1aSopenharmony_ciError 'foo==val'
194cabdff1aSopenharmony_ciSetting options string 'toggle=:'
195cabdff1aSopenharmony_ciSetting entry with key 'toggle' to value ''
196cabdff1aSopenharmony_ciUndefined constant or missing '(' in ''
197cabdff1aSopenharmony_ciUnable to parse option value ""
198cabdff1aSopenharmony_ciError 'toggle=:'
199cabdff1aSopenharmony_ciSetting options string 'string=:'
200cabdff1aSopenharmony_ciSetting entry with key 'string' to value ''
201cabdff1aSopenharmony_ciOK    'string=:'
202cabdff1aSopenharmony_ciSetting options string 'toggle=1 : foo'
203cabdff1aSopenharmony_ciSetting entry with key 'toggle' to value '1'
204cabdff1aSopenharmony_ciMissing key or no key/value separator found after key 'foo'
205cabdff1aSopenharmony_ciError 'toggle=1 : foo'
206cabdff1aSopenharmony_ciSetting options string 'toggle=100'
207cabdff1aSopenharmony_ciSetting entry with key 'toggle' to value '100'
208cabdff1aSopenharmony_ciValue 100.000000 for parameter 'toggle' out of range [0 - 1]
209cabdff1aSopenharmony_ciError 'toggle=100'
210cabdff1aSopenharmony_ciSetting options string 'toggle==1'
211cabdff1aSopenharmony_ciSetting entry with key 'toggle' to value '=1'
212cabdff1aSopenharmony_ciUndefined constant or missing '(' in '=1'
213cabdff1aSopenharmony_ciUnable to parse option value "=1"
214cabdff1aSopenharmony_ciError 'toggle==1'
215cabdff1aSopenharmony_ciSetting options string 'flags=+mu-lame : num=42: toggle=0'
216cabdff1aSopenharmony_ciSetting entry with key 'flags' to value '+mu-lame'
217cabdff1aSopenharmony_ciSetting entry with key 'num' to value '42'
218cabdff1aSopenharmony_ciSetting entry with key 'toggle' to value '0'
219cabdff1aSopenharmony_ciOK    'flags=+mu-lame : num=42: toggle=0'
220cabdff1aSopenharmony_ciSetting options string 'num=42 : string=blahblah'
221cabdff1aSopenharmony_ciSetting entry with key 'num' to value '42'
222cabdff1aSopenharmony_ciSetting entry with key 'string' to value 'blahblah'
223cabdff1aSopenharmony_ciOK    'num=42 : string=blahblah'
224cabdff1aSopenharmony_ciSetting options string 'rational=0 : rational=1/2 : rational=1/-1'
225cabdff1aSopenharmony_ciSetting entry with key 'rational' to value '0'
226cabdff1aSopenharmony_ciSetting entry with key 'rational' to value '1/2'
227cabdff1aSopenharmony_ciSetting entry with key 'rational' to value '1/-1'
228cabdff1aSopenharmony_ciValue -1.000000 for parameter 'rational' out of range [0 - 10]
229cabdff1aSopenharmony_ciValue -1.000000 for parameter 'rational' out of range [0 - 10]
230cabdff1aSopenharmony_ciError 'rational=0 : rational=1/2 : rational=1/-1'
231cabdff1aSopenharmony_ciSetting options string 'rational=-1/0'
232cabdff1aSopenharmony_ciError 'rational=-1/0'
233cabdff1aSopenharmony_ciSetting options string 'size=1024x768'
234cabdff1aSopenharmony_ciSetting entry with key 'size' to value '1024x768'
235cabdff1aSopenharmony_ciOK    'size=1024x768'
236cabdff1aSopenharmony_ciSetting options string 'size=pal'
237cabdff1aSopenharmony_ciSetting entry with key 'size' to value 'pal'
238cabdff1aSopenharmony_ciOK    'size=pal'
239cabdff1aSopenharmony_ciSetting options string 'size=bogus'
240cabdff1aSopenharmony_ciSetting entry with key 'size' to value 'bogus'
241cabdff1aSopenharmony_ciUnable to parse option value "bogus" as image size
242cabdff1aSopenharmony_ciError 'size=bogus'
243cabdff1aSopenharmony_ciSetting options string 'pix_fmt=yuv420p'
244cabdff1aSopenharmony_ciSetting entry with key 'pix_fmt' to value 'yuv420p'
245cabdff1aSopenharmony_ciOK    'pix_fmt=yuv420p'
246cabdff1aSopenharmony_ciSetting options string 'pix_fmt=2'
247cabdff1aSopenharmony_ciSetting entry with key 'pix_fmt' to value '2'
248cabdff1aSopenharmony_ciOK    'pix_fmt=2'
249cabdff1aSopenharmony_ciSetting options string 'pix_fmt=bogus'
250cabdff1aSopenharmony_ciSetting entry with key 'pix_fmt' to value 'bogus'
251cabdff1aSopenharmony_ciUnable to parse option value "bogus" as pixel format
252cabdff1aSopenharmony_ciError 'pix_fmt=bogus'
253cabdff1aSopenharmony_ciSetting options string 'sample_fmt=s16'
254cabdff1aSopenharmony_ciSetting entry with key 'sample_fmt' to value 's16'
255cabdff1aSopenharmony_ciOK    'sample_fmt=s16'
256cabdff1aSopenharmony_ciSetting options string 'sample_fmt=2'
257cabdff1aSopenharmony_ciSetting entry with key 'sample_fmt' to value '2'
258cabdff1aSopenharmony_ciOK    'sample_fmt=2'
259cabdff1aSopenharmony_ciSetting options string 'sample_fmt=bogus'
260cabdff1aSopenharmony_ciSetting entry with key 'sample_fmt' to value 'bogus'
261cabdff1aSopenharmony_ciUnable to parse option value "bogus" as sample format
262cabdff1aSopenharmony_ciError 'sample_fmt=bogus'
263cabdff1aSopenharmony_ciSetting options string 'video_rate=pal'
264cabdff1aSopenharmony_ciSetting entry with key 'video_rate' to value 'pal'
265cabdff1aSopenharmony_ciOK    'video_rate=pal'
266cabdff1aSopenharmony_ciSetting options string 'video_rate=25'
267cabdff1aSopenharmony_ciSetting entry with key 'video_rate' to value '25'
268cabdff1aSopenharmony_ciOK    'video_rate=25'
269cabdff1aSopenharmony_ciSetting options string 'video_rate=30000/1001'
270cabdff1aSopenharmony_ciSetting entry with key 'video_rate' to value '30000/1001'
271cabdff1aSopenharmony_ciOK    'video_rate=30000/1001'
272cabdff1aSopenharmony_ciSetting options string 'video_rate=30/1.001'
273cabdff1aSopenharmony_ciSetting entry with key 'video_rate' to value '30/1.001'
274cabdff1aSopenharmony_ciOK    'video_rate=30/1.001'
275cabdff1aSopenharmony_ciSetting options string 'video_rate=bogus'
276cabdff1aSopenharmony_ciSetting entry with key 'video_rate' to value 'bogus'
277cabdff1aSopenharmony_ciUndefined constant or missing '(' in 'bogus'
278cabdff1aSopenharmony_ciUnable to parse option value "bogus" as video rate
279cabdff1aSopenharmony_ciError 'video_rate=bogus'
280cabdff1aSopenharmony_ciSetting options string 'duration=bogus'
281cabdff1aSopenharmony_ciSetting entry with key 'duration' to value 'bogus'
282cabdff1aSopenharmony_ciUnable to parse option value "bogus" as duration
283cabdff1aSopenharmony_ciError 'duration=bogus'
284cabdff1aSopenharmony_ciSetting options string 'duration=123.45'
285cabdff1aSopenharmony_ciSetting entry with key 'duration' to value '123.45'
286cabdff1aSopenharmony_ciOK    'duration=123.45'
287cabdff1aSopenharmony_ciSetting options string 'duration=1\:23\:45.67'
288cabdff1aSopenharmony_ciSetting entry with key 'duration' to value '1:23:45.67'
289cabdff1aSopenharmony_ciOK    'duration=1\:23\:45.67'
290cabdff1aSopenharmony_ciSetting options string 'color=blue'
291cabdff1aSopenharmony_ciSetting entry with key 'color' to value 'blue'
292cabdff1aSopenharmony_ciOK    'color=blue'
293cabdff1aSopenharmony_ciSetting options string 'color=0x223300'
294cabdff1aSopenharmony_ciSetting entry with key 'color' to value '0x223300'
295cabdff1aSopenharmony_ciOK    'color=0x223300'
296cabdff1aSopenharmony_ciSetting options string 'color=0x42FF07AA'
297cabdff1aSopenharmony_ciSetting entry with key 'color' to value '0x42FF07AA'
298cabdff1aSopenharmony_ciOK    'color=0x42FF07AA'
299cabdff1aSopenharmony_ciSetting options string 'cl=FL+FR'
300cabdff1aSopenharmony_ciSetting entry with key 'cl' to value 'FL+FR'
301cabdff1aSopenharmony_ciOK    'cl=FL+FR'
302cabdff1aSopenharmony_ciSetting options string 'cl=foo'
303cabdff1aSopenharmony_ciSetting entry with key 'cl' to value 'foo'
304cabdff1aSopenharmony_ciUnable to parse option value "foo" as channel layout
305cabdff1aSopenharmony_ciError 'cl=foo'
306cabdff1aSopenharmony_ciSetting options string 'bin=boguss'
307cabdff1aSopenharmony_ciSetting entry with key 'bin' to value 'boguss'
308cabdff1aSopenharmony_ciError 'bin=boguss'
309cabdff1aSopenharmony_ciSetting options string 'bin=111'
310cabdff1aSopenharmony_ciSetting entry with key 'bin' to value '111'
311cabdff1aSopenharmony_ciError 'bin=111'
312cabdff1aSopenharmony_ciSetting options string 'bin=ffff'
313cabdff1aSopenharmony_ciSetting entry with key 'bin' to value 'ffff'
314cabdff1aSopenharmony_ciOK    'bin=ffff'
315cabdff1aSopenharmony_ciSetting options string 'num64=bogus'
316cabdff1aSopenharmony_ciSetting entry with key 'num64' to value 'bogus'
317cabdff1aSopenharmony_ciUndefined constant or missing '(' in 'bogus'
318cabdff1aSopenharmony_ciUnable to parse option value "bogus"
319cabdff1aSopenharmony_ciError 'num64=bogus'
320cabdff1aSopenharmony_ciSetting options string 'num64=44'
321cabdff1aSopenharmony_ciSetting entry with key 'num64' to value '44'
322cabdff1aSopenharmony_ciOK    'num64=44'
323cabdff1aSopenharmony_ciSetting options string 'num64=44.4'
324cabdff1aSopenharmony_ciSetting entry with key 'num64' to value '44.4'
325cabdff1aSopenharmony_ciOK    'num64=44.4'
326cabdff1aSopenharmony_ciSetting options string 'num64=-1'
327cabdff1aSopenharmony_ciSetting entry with key 'num64' to value '-1'
328cabdff1aSopenharmony_ciValue -1.000000 for parameter 'num64' out of range [0 - 100]
329cabdff1aSopenharmony_ciError 'num64=-1'
330cabdff1aSopenharmony_ciSetting options string 'num64=101'
331cabdff1aSopenharmony_ciSetting entry with key 'num64' to value '101'
332cabdff1aSopenharmony_ciValue 101.000000 for parameter 'num64' out of range [0 - 100]
333cabdff1aSopenharmony_ciError 'num64=101'
334cabdff1aSopenharmony_ciSetting options string 'flt=bogus'
335cabdff1aSopenharmony_ciSetting entry with key 'flt' to value 'bogus'
336cabdff1aSopenharmony_ciUndefined constant or missing '(' in 'bogus'
337cabdff1aSopenharmony_ciUnable to parse option value "bogus"
338cabdff1aSopenharmony_ciError 'flt=bogus'
339cabdff1aSopenharmony_ciSetting options string 'flt=2'
340cabdff1aSopenharmony_ciSetting entry with key 'flt' to value '2'
341cabdff1aSopenharmony_ciOK    'flt=2'
342cabdff1aSopenharmony_ciSetting options string 'flt=2.2'
343cabdff1aSopenharmony_ciSetting entry with key 'flt' to value '2.2'
344cabdff1aSopenharmony_ciOK    'flt=2.2'
345cabdff1aSopenharmony_ciSetting options string 'flt=-1'
346cabdff1aSopenharmony_ciSetting entry with key 'flt' to value '-1'
347cabdff1aSopenharmony_ciValue -1.000000 for parameter 'flt' out of range [0 - 100]
348cabdff1aSopenharmony_ciError 'flt=-1'
349cabdff1aSopenharmony_ciSetting options string 'flt=101'
350cabdff1aSopenharmony_ciSetting entry with key 'flt' to value '101'
351cabdff1aSopenharmony_ciValue 101.000000 for parameter 'flt' out of range [0 - 100]
352cabdff1aSopenharmony_ciError 'flt=101'
353cabdff1aSopenharmony_ciSetting options string 'dbl=bogus'
354cabdff1aSopenharmony_ciSetting entry with key 'dbl' to value 'bogus'
355cabdff1aSopenharmony_ciUndefined constant or missing '(' in 'bogus'
356cabdff1aSopenharmony_ciUnable to parse option value "bogus"
357cabdff1aSopenharmony_ciError 'dbl=bogus'
358cabdff1aSopenharmony_ciSetting options string 'dbl=2'
359cabdff1aSopenharmony_ciSetting entry with key 'dbl' to value '2'
360cabdff1aSopenharmony_ciOK    'dbl=2'
361cabdff1aSopenharmony_ciSetting options string 'dbl=2.2'
362cabdff1aSopenharmony_ciSetting entry with key 'dbl' to value '2.2'
363cabdff1aSopenharmony_ciOK    'dbl=2.2'
364cabdff1aSopenharmony_ciSetting options string 'dbl=-1'
365cabdff1aSopenharmony_ciSetting entry with key 'dbl' to value '-1'
366cabdff1aSopenharmony_ciValue -1.000000 for parameter 'dbl' out of range [0 - 100]
367cabdff1aSopenharmony_ciError 'dbl=-1'
368cabdff1aSopenharmony_ciSetting options string 'dbl=101'
369cabdff1aSopenharmony_ciSetting entry with key 'dbl' to value '101'
370cabdff1aSopenharmony_ciValue 101.000000 for parameter 'dbl' out of range [0 - 100]
371cabdff1aSopenharmony_ciError 'dbl=101'
372cabdff1aSopenharmony_ciSetting options string 'bool1=true'
373cabdff1aSopenharmony_ciSetting entry with key 'bool1' to value 'true'
374cabdff1aSopenharmony_ciOK    'bool1=true'
375cabdff1aSopenharmony_ciSetting options string 'bool2=auto'
376cabdff1aSopenharmony_ciSetting entry with key 'bool2' to value 'auto'
377cabdff1aSopenharmony_ciOK    'bool2=auto'
378cabdff1aSopenharmony_ciSetting options string 'dict1='happy=\:-):sad=\:-(''
379cabdff1aSopenharmony_ciSetting entry with key 'dict1' to value 'happy=\:-):sad=\:-('
380cabdff1aSopenharmony_ciOK    'dict1='happy=\:-):sad=\:-(''
381cabdff1aSopenharmony_ci
382cabdff1aSopenharmony_ciTesting av_opt_set_from_string()
383cabdff1aSopenharmony_ciSetting options string ''
384cabdff1aSopenharmony_ciOK    ''
385cabdff1aSopenharmony_ciSetting options string '5'
386cabdff1aSopenharmony_ciSetting 'num' to value '5'
387cabdff1aSopenharmony_ciOK    '5'
388cabdff1aSopenharmony_ciSetting options string '5:hello'
389cabdff1aSopenharmony_ciSetting 'num' to value '5'
390cabdff1aSopenharmony_ciSetting 'string' to value 'hello'
391cabdff1aSopenharmony_ciOK    '5:hello'
392cabdff1aSopenharmony_ciSetting options string '5:hello:size=pal'
393cabdff1aSopenharmony_ciSetting 'num' to value '5'
394cabdff1aSopenharmony_ciSetting 'string' to value 'hello'
395cabdff1aSopenharmony_ciSetting 'size' to value 'pal'
396cabdff1aSopenharmony_ciOK    '5:hello:size=pal'
397cabdff1aSopenharmony_ciSetting options string '5:size=pal:hello'
398cabdff1aSopenharmony_ciSetting 'num' to value '5'
399cabdff1aSopenharmony_ciSetting 'size' to value 'pal'
400cabdff1aSopenharmony_ciNo option name near 'hello'
401cabdff1aSopenharmony_ciError '5:size=pal:hello'
402cabdff1aSopenharmony_ciSetting options string ':'
403cabdff1aSopenharmony_ciSetting 'num' to value ''
404cabdff1aSopenharmony_ciUndefined constant or missing '(' in ''
405cabdff1aSopenharmony_ciUnable to parse option value ""
406cabdff1aSopenharmony_ciError ':'
407cabdff1aSopenharmony_ciSetting options string '='
408cabdff1aSopenharmony_ciSetting '' to value ''
409cabdff1aSopenharmony_ciOption '' not found
410cabdff1aSopenharmony_ciError '='
411cabdff1aSopenharmony_ciSetting options string ' 5 : hello : size = pal '
412cabdff1aSopenharmony_ciSetting 'num' to value '5'
413cabdff1aSopenharmony_ciSetting 'string' to value 'hello'
414cabdff1aSopenharmony_ciSetting 'size' to value 'pal'
415cabdff1aSopenharmony_ciOK    ' 5 : hello : size = pal '
416cabdff1aSopenharmony_ciSetting options string 'a_very_long_option_name_that_will_need_to_be_ellipsized_around_here=42'
417cabdff1aSopenharmony_ciSetting 'a_very_long_option_name_that_will_need_to_be_ellipsized_around_here' to value '42'
418cabdff1aSopenharmony_ciOption 'a_very_long_option_name_that_will_need_to_be_ellipsized_around_here' not found
419cabdff1aSopenharmony_ciError 'a_very_long_option_name_that_will_need_to_be_ellipsized_around_here=42'
420