You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Sources/TimecodeKit/FrameRate/FrameRate.swift
+21-21
Original file line number
Diff line number
Diff line change
@@ -12,113 +12,113 @@ extension Timecode {
12
12
13
13
// MARK: - FrameRate
14
14
15
-
publicenumFrameRate:Int{
15
+
publicenumFrameRate:String,Codable{
16
16
17
17
/// 23.976 fps (aka 23.98)
18
18
///
19
19
/// Also known as 24p for HD video, sometimes rounded up to 23.98 fps. started out as the format for dealing with 24fps film in a NTSC post environment.
20
-
case _23_976
20
+
case _23_976="23.976"
21
21
22
22
/// 24 fps
23
23
///
24
24
/// (film, ATSC, 2k, 4k, 6k)
25
-
case _24
25
+
case _24="24"
26
26
27
27
/// 24.98 fps
28
28
///
29
29
/// This frame rate is commonly used to facilitate transfers between PAL and NTSC video and film sources. It is mostly used to compensate for some error.
30
-
case _24_98
30
+
case _24_98="24.98"
31
31
32
32
/// 25 fps
33
33
///
34
34
/// (PAL, used in Europe, Uruguay, Argentina, Australia), SECAM, DVB, ATSC)
35
-
case _25
35
+
case _25="25"
36
36
37
37
/// 29.97 fps (30p)
38
38
///
39
39
/// (NTSC American System (US, Canada, Mexico, Colombia, etc.), ATSC, PAL-M (Brazil))
40
40
/// (30 / 1.001) frame/sec
41
-
case _29_97
41
+
case _29_97="29.97"
42
42
43
43
/// 29.97 drop fps
44
-
case _29_97_drop
44
+
case _29_97_drop="29.97d"
45
45
46
46
/// 30 fps
47
47
///
48
48
/// (ATSC) This is the frame count of NTSC broadcast video. However, the actual frame rate or speed of the video format runs at 29.97 fps.
49
49
///
50
50
/// This timecode clock does not run in realtime. It is slightly slower by 0.1%.
51
51
/// ie: 1:00:00:00:00 at 30 fps is approx 1:00:00:00;02 in 29.97df
52
-
case _30
52
+
case _30="30"
53
53
54
54
/// 30 drop fps:
55
55
///
56
56
/// The 30 fps drop-frame count is an adaptation that allows a timecode display running at 29.97 fps to actually show the clock-on-the-wall-time of the timeline by “dropping” or skipping specific frame numbers in order to “catch the clock up” to realtime.
57
-
case _30_drop
57
+
case _30_drop="30d"
58
58
59
59
/// 47.952 (48p?)
60
60
///
61
61
/// Double 23.976 fps
62
-
case _47_952
62
+
case _47_952="47.952"
63
63
64
64
/// 48 fps
65
65
///
66
66
/// Double 24 fps
67
-
case _48
67
+
case _48="48"
68
68
69
69
/// 50 fps
70
70
///
71
71
/// Double 25 fps
72
-
case _50
72
+
case _50="50"
73
73
74
74
/// 59.94 fps
75
75
///
76
76
/// Double 29.97 fps
77
77
///
78
78
/// This video frame rate is supported by high definition cameras and is compatible with NTSC (29.97 fps).
79
-
case _59_94
79
+
case _59_94="59.94"
80
80
81
81
/// 59.94 drop fps
82
82
///
83
83
/// Double 29.97 drop fps
84
-
case _59_94_drop
84
+
case _59_94_drop="59.94d"
85
85
86
86
/// 60 fps
87
87
///
88
88
/// Double 30 fps
89
89
///
90
90
/// This video frame rate is supported by many high definition cameras. However, the NTSC compatible 59.94 fps frame rate is much more common.
91
-
case _60
91
+
case _60="60"
92
92
93
93
/// 60 drop fps
94
94
///
95
95
/// Double 30 fps
96
-
case _60_drop
96
+
case _60_drop="60d"
97
97
98
98
/// 100 fps
99
99
///
100
100
/// Double 50 fps / quadruple 25 fps
101
-
case _100
101
+
case _100="100"
102
102
103
103
/// 119.88 fps
104
104
///
105
105
/// Double 59.94 fps / quadruple 29.97 fps
106
-
case _119_88
106
+
case _119_88="119.88"
107
107
108
108
/// 119.88 drop fps
109
109
///
110
110
/// Double 59.94 drop fps / quadruple 29.97 drop fps
Copy file name to clipboardexpand all lines: Sources/TimecodeKit/TimeValue/TimeValue.swift
+6-6
Original file line number
Diff line number
Diff line change
@@ -11,13 +11,13 @@ import Foundation
11
11
/// Primitive struct to represent real time.
12
12
///
13
13
/// In effort to retain precision, the value used when initializing will be stored unchanged, but can be accessed by either accessor. The backing value can be read as either `.seconds` or `.ms`. If the original format's property is get, the backing value will be returned unchanged. Otherwise it will be converted when needed when the properties are accessed.
Copy file name to clipboardexpand all lines: Sources/TimecodeKit/Timecode.swift
+1-1
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ import Foundation
10
10
11
11
12
12
/// Object representing SMPTE timecode data with a variety of number- and string- based constructors, including helper functions to convert between them operators to perform math operations between them.
0 commit comments