libpromeki 1.0.0-alpha
PROfessional MEdia toolKIt
 
Loading...
Searching...
No Matches
ntv2format.h
Go to the documentation of this file.
1
8#pragma once
9
10
11#include <promeki/config.h>
12#if PROMEKI_ENABLE_NTV2
13
14#include <promeki/enums.h>
15#include <promeki/error.h>
16#include <promeki/framerate.h>
17#include <promeki/imagedesc.h>
18#include <promeki/namespace.h>
19#include <promeki/pixelformat.h>
21#include <promeki/string.h>
24
25PROMEKI_NAMESPACE_BEGIN
26
54namespace Ntv2Format {
55
56 // ---- Pixel format ----
57
68 int toNtv2PixelFormat(PixelFormat::ID id);
69
76 PixelFormat::ID fromNtv2PixelFormat(int fbf);
77
78 // ---- Video format ----
79
94 int toNtv2VideoFormat(const ImageDesc &image, const FrameRate &rate);
95
110 Error fromNtv2VideoFormat(int fmt, Size2Du32 *outSize, FrameRate *outRate,
111 VideoScanMode *outScan);
112
113 // ---- Input source / channel / reference ----
114
122 int toNtv2Channel(int channel);
123
129 int fromNtv2Channel(int ntv2Ch);
130
140 int portToInputSource(const VideoPortRef &port);
141
154 int referenceFor(const VideoReferenceConfig &ref);
155
156 // ---- SDI link standard ----
157
169 bool standardFitsCableCount(const SdiLinkStandard &standard, int availableCables);
170
171} // namespace Ntv2Format
172
173PROMEKI_NAMESPACE_END
174
175#endif // PROMEKI_ENABLE_NTV2