AJA NTV2 SDK  18.0.0.2122
NTV2 SDK 18.0.0.2122
ancillarydata_hdmi_aux.cpp
Go to the documentation of this file.
1 /* SPDX-License-Identifier: MIT */
9 //#include <ios>
10 //#include <iomanip>
11 
12 using namespace std;
13 
14 
15 #define AJAAncillaryData_HDMI_Aux_MaxPayloadSize 28
16 
17 
19  : AJAAncillaryData ()
20 {
21  Init();
22 }
23 
24 
26  : AJAAncillaryData ()
27 {
28  Init();
29  *this = inClone;
30 }
31 
32 
34  : AJAAncillaryData ()
35 {
36  Init();
37  if (pInClone)
38  *this = *pInClone;
39 }
40 
41 
43  : AJAAncillaryData (pInData)
44 {
46 }
47 
48 
50 {
51 }
52 
53 
55 {
58 }
59 
60 
62 {
64  Init();
65 }
66 
67 
69 {
70  // Ignore self-assignment
71  if (this != &rhs)
72  {
73  // Copy the base class members
75  }
76  return *this;
77 }
78 
79 
81 {
82  // The size is specific to Canon
84  {
85  // Load default values
86  Init();
87  m_rcvDataValid = false;
88  return AJA_STATUS_FAIL;
89  }
90 
91  m_rcvDataValid = true;
92  return AJA_STATUS_SUCCESS;
93 }
94 
95 
96 ostream & AJAAncillaryData_HDMI_Aux::Print (ostream & debugStream, const bool bShowDetail) const
97 {
98  AJAAncillaryData::Print (debugStream, bShowDetail);
99  debugStream << endl;
100  return debugStream;
101 }
102 
104 {
105  return m_auxType & 0x80;
106 }
virtual ~AJAAncillaryData_HDMI_Aux()
My destructor.
AJAAncillaryData & operator=(const AJAAncillaryData &inRHS)
AJAStatus
Definition: types.h:380
AJAAncDataType m_ancType
One of a known set of ancillary data types (or "Custom" if not identified)
virtual void Clear(void)
Frees my allocated memory, if any, and resets my members to their default values. ...
uint8_t m_auxType
HDMI Aux Header Byte 0 (Packet Type)
Definition: json.hpp:5362
virtual void Clear(void)
Frees my allocated memory, if any, and resets my members to their default values. ...
AJAAncDataCoding m_coding
Analog or digital data.
This class handles HDMI Auxillary packets.
virtual std::ostream & Print(std::ostream &inOutStream, const bool inDetailed=false) const
Streams a human-readable representation of me to the given output stream.
virtual std::ostream & Print(std::ostream &inOutStream, const bool inDetailed=false) const
Streams a human-readable representation of me to the given output stream.
#define AJAAncillaryData_HDMI_Aux_MaxPayloadSize
HDMI Auxiliary data.
Definition: ancillarydata.h:60
virtual bool isHDMIAuxInfoFrame(void) const
Returns whether or not this is an HDMI Aux InfoFrame Packet.
virtual uint32_t GetDC(void) const
virtual AJAAncillaryData_HDMI_Aux & operator=(const AJAAncillaryData_HDMI_Aux &inRHS)
Assignment operator – replaces my contents with the right-hand-side value.
I am the principal class that stores a single SMPTE-291 SDI ancillary data packet OR the digitized co...
bool m_rcvDataValid
This is set true (or not) by ParsePayloadData()
virtual AJAStatus ParsePayloadData(void)
Parses out (interprets) the "local" ancillary data from my payload data.
The ancillary data is in the form of a SMPTE-291 Ancillary Packet.
AJAAncillaryData_HDMI_Aux()
My default constructor.