~ubuntu-branches/ubuntu/vivid/libav/vivid

« back to all changes in this revision

Viewing changes to tests/ref/fate/parseutils

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2013-10-22 23:24:08 UTC
  • mfrom: (1.3.36 sid)
  • Revision ID: package-import@ubuntu.com-20131022232408-b8tvvn4pyzri9mi3
Tags: 6:9.10-1ubuntu1
* Build all -extra flavors from this source package, as libav got demoted
  from main to universe, cf LP: #1243235
* Simplify debian/rules to follow exactly the code that debian executes
* New upstream (LP: #1180288) fixes lots of security issues (LP: #1242802)
* Merge from unstable, remaining changes:
  - build-depend on libtiff5-dev rather than libtiff4-dev,
    avoids FTBFS caused by imlib
  - follow the regular debian codepaths

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Testing av_parse_video_rate()
 
2
'-inf' -> -1/0 ERROR
 
3
'inf' -> 1/0 ERROR
 
4
'nan' -> 0/0 ERROR
 
5
'123/0' -> 1/0 ERROR
 
6
'-123 / 0' -> -1/0 ERROR
 
7
'' -> 0/0 ERROR
 
8
'/' -> 0/0 ERROR
 
9
' 123  /  321' -> 41/107 OK
 
10
'foo/foo' -> 0/0 ERROR
 
11
'foo/1' -> 0/0 ERROR
 
12
'1/foo' -> 0/0 ERROR
 
13
'0/0' -> 0/0 ERROR
 
14
'/0' -> 0/0 ERROR
 
15
'1/' -> 0/0 ERROR
 
16
'1' -> 1/1 OK
 
17
'0' -> 0/1 ERROR
 
18
'-123/123' -> -1/1 ERROR
 
19
'-foo' -> 0/0 ERROR
 
20
'123.23' -> 12323/100 OK
 
21
'.23' -> 23/100 OK
 
22
'-.23' -> -23/100 ERROR
 
23
'-0.234' -> -117/500 ERROR
 
24
'-0.0000001' -> 0/1 ERROR
 
25
'  21332.2324   ' -> 917286/43 OK
 
26
' -21332.2324   ' -> -917286/43 ERROR
 
27
 
 
28
Testing av_parse_color()
 
29
red -> R(255) G(0) B(0) A(255)
 
30
RED -> R(255) G(0) B(0) A(255)
 
31
Violet -> R(238) G(130) B(238) A(255)
 
32
Yellow -> R(255) G(255) B(0) A(255)
 
33
Red -> R(255) G(0) B(0) A(255)
 
34
0x000000 -> R(0) G(0) B(0) A(255)
 
35
0xff000000 -> R(255) G(0) B(0) A(0)
 
36
0x3e34ff -> R(62) G(52) B(255) A(255)
 
37
0x3e34ffaa -> R(62) G(52) B(255) A(170)
 
38
#ff0000 -> R(255) G(0) B(0) A(255)
 
39
ff0000 -> R(255) G(0) B(0) A(255)
 
40
0xff0000@1.0 -> R(255) G(0) B(0) A(255)
 
41
red@0xf -> R(255) G(0) B(0) A(15)
 
42
red@0.1 -> R(255) G(0) B(0) A(25)
 
43
red@0.5 -> R(255) G(0) B(0) A(127)
 
44
red@1.0 -> R(255) G(0) B(0) A(255)
 
45
red@-0.0 -> R(255) G(0) B(0) A(0)