1313namespace opentime { namespace OPENTIME_VERSION {
1414
1515// / @brief This enumeration provides options for drop frame timecode.
16- enum IsDropFrameRate : int
16+ enum OPENTIME_API_TYPE IsDropFrameRate : int
1717{
1818 InferFromRate = -1 ,
1919 ForceNo = 0 ,
2020 ForceYes = 1 ,
2121};
2222
2323// / @brief This class represents a measure of time defined by a value and rate.
24- class RationalTime
24+ class OPENTIME_API_TYPE RationalTime
2525{
2626public:
2727 // / @brief Construct a new time with an optional value and rate.
@@ -167,17 +167,17 @@ class RationalTime
167167
168168 // / @brief Returns true is the rate is supported by SMPTE timecode.
169169 [[deprecated(" Use is_smpte_timecode_rate() instead" )]]
170- static bool is_valid_timecode_rate (double rate);
170+ static OPENTIME_API bool is_valid_timecode_rate (double rate);
171171
172172 // / @brief Returns true is the rate is supported by SMPTE timecode.
173- static bool is_smpte_timecode_rate (double rate);
173+ static OPENTIME_API bool is_smpte_timecode_rate (double rate);
174174
175175 // / @brief Returns the SMPTE timecode rate nearest to the given rate.
176176 [[deprecated(" Use nearest_smpte_timecode_rate() instead" )]]
177- static double nearest_valid_timecode_rate (double rate);
177+ static OPENTIME_API double nearest_valid_timecode_rate (double rate);
178178
179179 // / @brief Returns the SMPTE timecode rate nearest to the given rate.
180- static double nearest_smpte_timecode_rate (double rate);
180+ static OPENTIME_API double nearest_smpte_timecode_rate (double rate);
181181
182182 // / @brief Convert a frame number and rate into a time.
183183 static constexpr RationalTime
@@ -204,7 +204,7 @@ class RationalTime
204204 // / @param timecode The timecode string.
205205 // / @param rate The timecode rate.
206206 // / @param error_status Optional error status.
207- static RationalTime from_timecode (
207+ static OPENTIME_API RationalTime from_timecode (
208208 std::string const & timecode,
209209 double rate,
210210 ErrorStatus* error_status = nullptr );
@@ -218,7 +218,7 @@ class RationalTime
218218 // / @param time_string The time string.
219219 // / @param rate The time rate.
220220 // / @param error_status Optional error status.
221- static RationalTime from_time_string (
221+ static OPENTIME_API RationalTime from_time_string (
222222 std::string const & time_string,
223223 double rate,
224224 ErrorStatus* error_status = nullptr );
@@ -243,7 +243,7 @@ class RationalTime
243243 // / @param rate The timecode rate.
244244 // / @param drop_frame Whether to use drop frame timecode.
245245 // / @param error_status Optional error status.
246- std::string to_timecode (
246+ OPENTIME_API std::string to_timecode (
247247 double rate,
248248 IsDropFrameRate drop_frame,
249249 ErrorStatus* error_status = nullptr ) const ;
@@ -259,7 +259,7 @@ class RationalTime
259259 // / @param rate The timecode rate.
260260 // / @param drop_frame Whether to use drop frame timecode.
261261 // / @param error_status Optional error status.
262- std::string to_nearest_timecode (
262+ OPENTIME_API std::string to_nearest_timecode (
263263 double rate,
264264 IsDropFrameRate drop_frame,
265265 ErrorStatus* error_status = nullptr ) const ;
@@ -278,7 +278,7 @@ class RationalTime
278278 // / Seconds may have up to microsecond precision.
279279 // /
280280 // / @return The time string, which may have a leading negative sign.
281- std::string to_time_string () const ;
281+ OPENTIME_API std::string to_time_string () const ;
282282
283283 // / @brief Add a time to this time.
284284 constexpr RationalTime const & operator +=(RationalTime other) noexcept
0 commit comments