Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
76f644d9
Commit
76f644d9
authored
Oct 05, 2012
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fate: Add parseutils test
parent
c010fce6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
0 deletions
+49
-0
libavutil.mak
tests/fate/libavutil.mak
+4
-0
parseutils
tests/ref/fate/parseutils
+45
-0
No files found.
tests/fate/libavutil.mak
View file @
76f644d9
...
...
@@ -37,6 +37,10 @@ FATE_LIBAVUTIL += fate-md5
fate-md5: libavutil/md5-test$(EXESUF)
fate-md5: CMD = run libavutil/md5-test
FATE_LIBAVUTIL += fate-parseutils
fate-parseutils: libavutil/parseutils-test$(EXESUF)
fate-parseutils: CMD = run libavutil/parseutils-test
FATE_LIBAVUTIL += fate-sha
fate-sha: libavutil/sha-test$(EXESUF)
fate-sha: CMD = run libavutil/sha-test
...
...
tests/ref/fate/parseutils
0 → 100644
View file @
76f644d9
Testing av_parse_video_rate()
'-inf' -> -1/0 ret:-22
'inf' -> 1/0 ret:-22
'nan' -> 0/0 ret:-22
'123/0' -> 1/0 ret:-22
'-123 / 0' -> -1/0 ret:-22
'' -> 0/0 ret:-22
'/' -> 0/0 ret:-22
' 123 / 321' -> 41/107 ret:0
'foo/foo' -> 0/0 ret:-22
'foo/1' -> 0/0 ret:-22
'1/foo' -> 0/0 ret:-22
'0/0' -> 0/0 ret:-22
'/0' -> 0/0 ret:-22
'1/' -> 0/0 ret:-22
'1' -> 1/1 ret:0
'0' -> 0/1 ret:-22
'-123/123' -> -1/1 ret:-22
'-foo' -> 0/0 ret:-22
'123.23' -> 12323/100 ret:0
'.23' -> 23/100 ret:0
'-.23' -> -23/100 ret:-22
'-0.234' -> -117/500 ret:-22
'-0.0000001' -> 0/1 ret:-22
' 21332.2324 ' -> 917286/43 ret:0
' -21332.2324 ' -> -917286/43 ret:-22
Testing av_parse_color()
red -> R(255) G(0) B(0) A(255)
RED -> R(255) G(0) B(0) A(255)
Violet -> R(238) G(130) B(238) A(255)
Yellow -> R(255) G(255) B(0) A(255)
Red -> R(255) G(0) B(0) A(255)
0x000000 -> R(0) G(0) B(0) A(255)
0xff000000 -> R(255) G(0) B(0) A(0)
0x3e34ff -> R(62) G(52) B(255) A(255)
0x3e34ffaa -> R(62) G(52) B(255) A(170)
#ff0000 -> R(255) G(0) B(0) A(255)
ff0000 -> R(255) G(0) B(0) A(255)
0xff0000@1.0 -> R(255) G(0) B(0) A(255)
red@0xf -> R(255) G(0) B(0) A(15)
red@0.1 -> R(255) G(0) B(0) A(25)
red@0.5 -> R(255) G(0) B(0) A(127)
red@1.0 -> R(255) G(0) B(0) A(255)
red@-0.0 -> R(255) G(0) B(0) A(0)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment