AJA NTV2 SDK  18.0.0.2122
NTV2 SDK 18.0.0.2122
konaipj2ksetup.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: MIT */
2 #ifndef KONAIPBOARD_H
3 #define KONAIPBOARD_H
4 
5 #include "ntv2card.h"
6 
7 #include <QJsonObject>
8 #include <QList>
9 #include <QMap>
10 
11 typedef struct
12 {
13  uint32_t channels;
15  uint32_t bitDepth;
16  uint32_t streamType;
18  uint32_t mbps;
19  uint32_t audioChannels;
20  uint32_t programPid;
21  uint32_t videoPid;
22  uint32_t pcrPid;
23  uint32_t audio1Pid;
24  bool ullMode;
26 
27 typedef struct
28 {
29  uint32_t selectionMode;
30  uint32_t programNumber;
31  uint32_t programPID;
32  uint32_t audioNumber;
34 
35 typedef struct
36 {
37  QList<EncoderStruct> mEncoder;
38  QList<DecoderStruct> mDecoder;
40 
41 
43 {
44 public:
46  bool openJson(QString fileName);
47  void printVideoFormatMap();
48 
50 
51 protected:
52  bool readJson(const QJsonObject &json);
53  void initMaps();
54 
56 
57  QMap<QString, NTV2VideoFormat> videoFormatMap;
58  QMap<QString, uint32_t> streamTypeMap;
59  QMap<QString, uint32_t> chromaSubSamplingMap;
60 
61 };
62 
64 {
65 public:
67 
68  bool setupBoard(std::string pDeviceSpec, KonaIPParamJ2KSetupStruct* pKonaIpJ2kParams);
69 };
70 
72 {
73 public:
75 
76  bool setupBoard(std::string pDeviceSpec, KonaIPParamJ2KSetupStruct* pKonaIpJ2kParams);
77 };
78 
79 #endif // KONAIPBOARD_H
nlohmann::json json
QList< EncoderStruct > mEncoder
enum _NTV2VideoFormat NTV2VideoFormat
Identifies a particular video format.
uint32_t videoPid
bool openJson(QString fileName)
QMap< QString, uint32_t > chromaSubSamplingMap
uint32_t programPID
uint32_t channels
uint32_t audio1Pid
QMap< QString, NTV2VideoFormat > videoFormatMap
bool readJson(const QJsonObject &json)
uint32_t pcrPid
uint32_t audioChannels
bool setupBoard(std::string pDeviceSpec, KonaIPParamJ2KSetupStruct *pKonaIpJ2kParams)
uint32_t streamType
KonaIPParamJ2KSetupStruct mKonaIpJ2kParams
QMap< QString, uint32_t > streamTypeMap
uint32_t audioNumber
uint32_t chromaSubSampling
uint32_t bitDepth
QList< DecoderStruct > mDecoder
Declares the CNTV2Card class.
uint32_t programPid
uint32_t programNumber
NTV2VideoFormat videoFormat
KonaIPParamJ2KSetupStruct * getKonaIpJ2kParams()
uint32_t selectionMode
bool setupBoard(std::string pDeviceSpec, KonaIPParamJ2KSetupStruct *pKonaIpJ2kParams)