diff options
author | Clément Bœsch <u@pkh.me> | 2015-09-06 19:10:53 +0200 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2015-09-08 22:39:20 +0200 |
commit | 9117748cff55d649c076f5b9fba6bf3647448273 (patch) | |
tree | e3e5787674468812c0278b3d9da5ed57d2eb373f /tests/ref | |
parent | 84f6284709890589ff7eaa3177f68cdf65796969 (diff) | |
download | ffmpeg-9117748cff55d649c076f5b9fba6bf3647448273.tar.gz |
avutil/opt: add AV_OPT_TYPE_BOOL
Diffstat (limited to 'tests/ref')
-rw-r--r-- | tests/ref/fate/opt | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/tests/ref/fate/opt b/tests/ref/fate/opt index 3aa7423efd..307da374ea 100644 --- a/tests/ref/fate/opt +++ b/tests/ref/fate/opt @@ -40,6 +40,9 @@ TestContext AVOptions: -num64 <int64> E....... set num 64bit (from 0 to 100) (default 1) -flt <float> E....... set float (from 0 to 100) (default 0.333333) -dbl <double> E....... set double (from 0 to 100) (default 0.333333) + -bool1 <boolean> E....... set boolean value (default auto) + -bool2 <boolean> E....... set boolean value (default true) + -bool3 <boolean> E....... set boolean value (default false) Testing av_opt_is_set_to_default() name: num default:1 error: @@ -64,6 +67,9 @@ name: bin2 default:1 error: name: num64 default:0 error: name: flt default:0 error: name: dbl default:0 error: +name: bool1 default:0 error: +name: bool2 default:0 error: +name: bool3 default:1 error: name: num default:1 error: name: toggle default:1 error: name: rational default:1 error: @@ -86,9 +92,12 @@ name: bin2 default:1 error: name: num64 default:1 error: name: flt default:1 error: name: dbl default:1 error: +name: bool1 default:1 error: +name: bool2 default:1 error: +name: bool3 default:1 error: Test av_opt_serialize() -num=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:00:00.001000,color=0xffc0cbff,cl=0x137,bin=62696E00,bin1=,bin2=,num64=1,flt=0.333333,dbl=0.333333 +num=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:00:00.001000,color=0xffc0cbff,cl=0x137,bin=62696E00,bin1=,bin2=,num64=1,flt=0.333333,dbl=0.333333,bool1=auto,bool2=true,bool3=false Setting entry with key 'num' to value '0' Setting entry with key 'toggle' to value '1' Setting entry with key 'rational' to value '1/1' @@ -108,7 +117,10 @@ Setting entry with key 'bin2' to value '' Setting entry with key 'num64' to value '1' Setting entry with key 'flt' to value '0.333333' Setting entry with key 'dbl' to value '0.333333' -num=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:00:00.001000,color=0xffc0cbff,cl=0x137,bin=62696E00,bin1=,bin2=,num64=1,flt=0.333333,dbl=0.333333 +Setting entry with key 'bool1' to value 'auto' +Setting entry with key 'bool2' to value 'true' +Setting entry with key 'bool3' to value 'false' +num=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:00:00.001000,color=0xffc0cbff,cl=0x137,bin=62696E00,bin1=,bin2=,num64=1,flt=0.333333,dbl=0.333333,bool1=auto,bool2=true,bool3=false Testing av_set_options_string() Setting options string '' @@ -323,6 +335,12 @@ Setting options string 'dbl=101' Setting entry with key 'dbl' to value '101' Value 101.000000 for parameter 'dbl' out of range [0 - 100] Error 'dbl=101' +Setting options string 'bool1=true' +Setting entry with key 'bool1' to value 'true' +OK 'bool1=true' +Setting options string 'bool2=auto' +Setting entry with key 'bool2' to value 'auto' +OK 'bool2=auto' Testing av_opt_set_from_string() Setting options string '' |