HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
ImfFramesPerSecond.h
Go to the documentation of this file.
1
//
2
// SPDX-License-Identifier: BSD-3-Clause
3
// Copyright (c) Contributors to the OpenEXR Project.
4
//
5
6
#ifndef INCLUDED_IMF_FRAMES_PER_SECOND_H
7
#define INCLUDED_IMF_FRAMES_PER_SECOND_H
8
9
//-----------------------------------------------------------------------------
10
//
11
// Convenience functions related to the framesPerSecond attribute
12
//
13
// Functions that return the exact values for commonly used frame rates:
14
//
15
// name frames per second
16
//
17
// fps_23_976() 23.976023...
18
// fps_24() 24.0 35mm film frames
19
// fps_25() 25.0 PAL video frames
20
// fps_29_97() 29.970029... NTSC video frames
21
// fps_30() 30.0 60Hz HDTV frames
22
// fps_47_952() 47.952047...
23
// fps_48() 48.0
24
// fps_50() 50.0 PAL video fields
25
// fps_59_94() 59.940059... NTSC video fields
26
// fps_60() 60.0 60Hz HDTV fields
27
//
28
// Functions that try to convert inexact frame rates into exact ones:
29
//
30
// Given a frame rate, fps, that is close to one of the pre-defined
31
// frame rates fps_23_976(), fps_29_97(), fps_47_952() or fps_59_94(),
32
// guessExactFps(fps) returns the corresponding pre-defined frame
33
// rate. If fps is not close to one of the pre-defined frame rates,
34
// then guessExactFps(fps) returns Rational(fps).
35
//
36
//-----------------------------------------------------------------------------
37
38
#include "
ImfExport.h
"
39
#include "
ImfNamespace.h
"
40
41
#include "
ImfRational.h
"
42
43
44
OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER
45
46
47
inline
Rational
fps_23_976
() {
return
Rational
(24000, 1001);}
48
inline
Rational
fps_24
() {
return
Rational
(24, 1);}
49
inline
Rational
fps_25
() {
return
Rational
(25, 1);}
50
inline
Rational
fps_29_97
() {
return
Rational
(30000, 1001);}
51
inline
Rational
fps_30
() {
return
Rational
(30, 1);}
52
inline
Rational
fps_47_952
() {
return
Rational
(48000, 1001);}
53
inline
Rational
fps_48
() {
return
Rational
(48, 1);}
54
inline
Rational
fps_50
() {
return
Rational
(50, 1);}
55
inline
Rational
fps_59_94
() {
return
Rational
(60000, 1001);}
56
inline
Rational
fps_60
() {
return
Rational
(60, 1);}
57
58
IMF_EXPORT
Rational
guessExactFps
(
double
fps);
59
IMF_EXPORT
Rational
guessExactFps
(
const
Rational
&fps);
60
61
62
OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_EXIT
63
64
65
#endif
fps_29_97
Rational fps_29_97()
Definition:
ImfFramesPerSecond.h:50
ImfNamespace.h
OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_EXIT
#define OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_EXIT
Definition:
ImfNamespace.h:80
fps_47_952
Rational fps_47_952()
Definition:
ImfFramesPerSecond.h:52
fps_59_94
Rational fps_59_94()
Definition:
ImfFramesPerSecond.h:55
fps_25
Rational fps_25()
Definition:
ImfFramesPerSecond.h:49
fps_23_976
OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER Rational fps_23_976()
Definition:
ImfFramesPerSecond.h:47
fps_50
Rational fps_50()
Definition:
ImfFramesPerSecond.h:54
Rational
Definition:
ImfRational.h:29
fps_48
Rational fps_48()
Definition:
ImfFramesPerSecond.h:53
fps_60
Rational fps_60()
Definition:
ImfFramesPerSecond.h:56
IMF_EXPORT
#define IMF_EXPORT
Definition:
ImfExport.h:54
ImfRational.h
fps_24
Rational fps_24()
Definition:
ImfFramesPerSecond.h:48
fps_30
Rational fps_30()
Definition:
ImfFramesPerSecond.h:51
ImfExport.h
OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER
#define OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER
Definition:
ImfNamespace.h:79
guessExactFps
IMF_EXPORT Rational guessExactFps(double fps)
OpenEXR
ImfFramesPerSecond.h
Generated on Thu May 9 2024 03:15:07 for HDK by
1.8.6