@@ -31,25 +31,10 @@ mutable struct VideoFile{compression}
3131 source:: AbstractString
3232 download_url:: AbstractString
3333 numframes:: Int
34+ framerate:: Rational
3435 testframe:: Int
3536 summarysize:: Int
3637
37- fps:: Union{Nothing,Rational}
38-
39- VideoFile {compression} (
40- name:: AbstractString ,
41- description:: AbstractString ,
42- license:: AbstractString ,
43- credit:: AbstractString ,
44- source:: AbstractString ,
45- download_url:: AbstractString ,
46- numframes:: Int ,
47- testframe:: Int ,
48- summarysize:: Int ,
49- fps:: Rational ,
50- ) where {compression} =
51- new (name, description, license, credit, source, download_url, numframes, testframe, summarysize, fps)
52-
5338 VideoFile {compression} (
5439 name:: AbstractString ,
5540 description:: AbstractString ,
@@ -58,10 +43,11 @@ mutable struct VideoFile{compression}
5843 source:: AbstractString ,
5944 download_url:: AbstractString ,
6045 numframes:: Int ,
46+ framerate:: Rational ,
6147 testframe:: Int ,
6248 summarysize:: Int ,
6349 ) where {compression} =
64- new (name, description, license, credit, source, download_url, numframes, testframe, summarysize, nothing )
50+ new (name, description, license, credit, source, download_url, numframes, framerate, testframe, summarysize )
6551end
6652
6753show (io:: IO , v:: VideoFile ) = print (
@@ -75,15 +61,13 @@ VideoFile:
7561 source: $(v. source)
7662 download_url: $(v. download_url)
7763 numframes: $(v. numframes)
64+ framerate: $(v. framerate)
7865 summarysize: $(v. summarysize)
7966 """ ,
8067)
8168
82- VideoFile (name, description, license, credit, source, download_url, numframes, testframe, summarysize) =
83- VideoFile {:raw} (name, description, license, credit, source, download_url, numframes, testframe, summarysize)
84-
85- VideoFile (name, description, license, credit, source, download_url, numframes, testframe, summarysize, fps) =
86- VideoFile {:raw} (name, description, license, credit, source, download_url, numframes, testframe, summarysize, fps)
69+ VideoFile (name, description, license, credit, source, download_url, numframes, framerate, testframe, summarysize) =
70+ VideoFile {:raw} (name, description, license, credit, source, download_url, numframes, framerate, testframe, summarysize)
8771
8872# Standard test videos
8973const videofiles = Dict (
@@ -95,6 +79,7 @@ const videofiles = Dict(
9579 " https://downloadnatureclip.blogspot.com/p/download-links.html" ,
9680 " https://archive.org/download/LadybirdOpeningWingsCCBYNatureClip/Ladybird%20opening%20wings%20CC-BY%20NatureClip.mp4" ,
9781 397 ,
82+ 30000 // 1001 ,
9883 13 ,
9984 3216 ,
10085 ),
@@ -106,6 +91,7 @@ const videofiles = Dict(
10691 " https://commons.wikimedia.org/wiki/File:Annie_Oakley_shooting_glass_balls,_1894.ogg" ,
10792 " https://upload.wikimedia.org/wikipedia/commons/8/87/Annie_Oakley_shooting_glass_balls%2C_1894.ogv" ,
10893 726 ,
94+ 30000 // 1001 ,
10995 2 ,
11096 167311096 ,
11197 ),
@@ -117,6 +103,7 @@ const videofiles = Dict(
117103 " https://commons.wikimedia.org/wiki/File:2010-10-10-Lune.ogv" ,
118104 " https://upload.wikimedia.org/wikipedia/commons/e/ef/2010-10-10-Lune.ogv" ,
119105 1213 ,
106+ 25 // 1 ,
120107 1 ,
121108 9744 ,
122109 ),
@@ -128,6 +115,7 @@ const videofiles = Dict(
128115 " https://www.eso.org/public/videos/eso1004a/" ,
129116 " https://upload.wikimedia.org/wikipedia/commons/1/13/Artist%E2%80%99s_impression_of_the_black_hole_inside_NGC_300_X-1_%28ESO_1004c%29.webm" ,
130117 597 ,
118+ 25 // 1 ,
131119 1 ,
132120 4816 ,
133121 ),
0 commit comments