Defines where the ancillary data can be found within a video stream.
More...
#include <ancillarydata.h>
Defines where the ancillary data can be found within a video stream.
Definition at line 225 of file ancillarydata.h.
◆ AJAAncDataLoc()
◆ Compare()
Compares me with another location.
- Parameters
-
[in] | inRHS | The location I'm to be compared with. |
- Returns
- AJA_STATUS_SUCCESS if equal; otherwise AJA_STATUS_FAIL.
Definition at line 1317 of file ancillarydata.cpp.
◆ CompareWithInfo()
string AJAAncDataLoc::CompareWithInfo |
( |
const AJAAncDataLoc & |
inRHS | ) |
const |
|
virtual |
Compares me with another location and returns a string that describes what's different.
- Parameters
-
[in] | inRHS | The location I'm to be compared with. |
- Returns
- Empty string if equal; otherwise a string that contains one or more differences found, delimited by newline characters.
Definition at line 1336 of file ancillarydata.cpp.
◆ GetDataSpace()
- Returns
- "VANC" if my horizontal offset is "Any VANC", or "HANC" if my H offset is "Any HANC"; otherwise "UNKNOWN".
- Note
- To be truly accurate, this function would need to know the video standard/geometry to determine if my line number precedes SAV, and if my horizontal offset is after EAV.
Definition at line 316 of file ancillarydata.h.
◆ GetHorizontalOffset()
uint16_t AJAAncDataLoc::GetHorizontalOffset |
( |
void |
| ) |
const |
|
inline |
- Returns
- The 12-bit horizontal offset of the packet. For HD, this is the number of luma samples (see SMPTE ST274). For SD, this is the number of Y/C muxed words (see SMPTE ST125). Can also be one of these predefined values:
Definition at line 339 of file ancillarydata.h.
◆ IsChromaChannel()
bool AJAAncDataLoc::IsChromaChannel |
( |
void |
| ) |
const |
|
inline |
◆ IsDataLinkA()
bool AJAAncDataLoc::IsDataLinkA |
( |
void |
| ) |
const |
|
inline |
◆ IsDataLinkB()
bool AJAAncDataLoc::IsDataLinkB |
( |
void |
| ) |
const |
|
inline |
◆ IsHanc()
bool AJAAncDataLoc::IsHanc |
( |
void |
| ) |
const |
|
inline |
◆ IsLumaChannel()
bool AJAAncDataLoc::IsLumaChannel |
( |
void |
| ) |
const |
|
inline |
◆ IsValid()
bool AJAAncDataLoc::IsValid |
( |
void |
| ) |
const |
|
inline |
◆ IsVanc()
bool AJAAncDataLoc::IsVanc |
( |
void |
| ) |
const |
|
inline |
◆ operator!=()
bool AJAAncDataLoc::operator!= |
( |
const AJAAncDataLoc & |
inRHS | ) |
const |
|
inline |
◆ operator<()
bool AJAAncDataLoc::operator< |
( |
const AJAAncDataLoc & |
inRHS | ) |
const |
|
inline |
◆ operator==()
bool AJAAncDataLoc::operator== |
( |
const AJAAncDataLoc & |
inRHS | ) |
const |
|
inline |
◆ OrdinalValue()
uint64_t AJAAncDataLoc::OrdinalValue |
( |
void |
| ) |
const |
|
inline |
- Returns
- A 64-bit unsigned ordinal value used for sorting/comparing. In highest to lowest order of magnitude:
- line number, ascending
- data space, ascending (VANC precedes HANC)
- horizontal offset, ascending
- data channel, ascending (Chroma highest, then Luma, then Unknown lowest)
- data stream, ascending (DS1 highest, then DS2, ... then Unknown lowest)
- data link, ascending (Link "A" highest, then Link "B", then Unknown lowest)
Definition at line 431 of file ancillarydata.h.
◆ Print()
ostream & AJAAncDataLoc::Print |
( |
std::ostream & |
ostrm, |
|
|
const bool |
inCompact = true |
|
) |
| const |
Writes a human-readable rendition of me into the given output stream.
- Parameters
-
| ostrm | Specifies the output stream. |
[in] | inCompact | Specify 'true' for compact output; otherwise 'false' for more detail. |
- Returns
- The given output stream.
Definition at line 1307 of file ancillarydata.cpp.
◆ Reset()
Resets all of my location elements to an unknown, invalid state.
- Returns
- A reference to myself.
Definition at line 290 of file ancillarydata.h.
◆ SetDataChannel()
Sets my data video stream value to the given value (if valid).
- Parameters
-
[in] | inChannel | Specifies the new data channel value to use. Must be valid. |
- Returns
- A non-const reference to myself.
Definition at line 368 of file ancillarydata.h.
◆ SetDataLink()
Sets my data link value to the given value (if valid).
- Parameters
-
[in] | inLink | Specifies the new data link value to use. Must be valid. |
- Returns
- A non-const reference to myself.
Definition at line 354 of file ancillarydata.h.
◆ SetDataSpace()
Sets my data space value to the given value (if valid).
- Parameters
-
[in] | inSpace | Specifies the new data space value to use. Must be valid. |
- Returns
- A non-const reference to myself.
Definition at line 378 of file ancillarydata.h.
◆ SetDataStream()
Sets my data link value to the given value (if valid).
- Parameters
-
[in] | inStream | Specifies the new data stream value to use. Must be valid. |
- Returns
- A non-const reference to myself.
Definition at line 361 of file ancillarydata.h.
◆ SetDataVideoStream()
◆ SetHorizontalOffset()
AJAAncDataLoc& AJAAncDataLoc::SetHorizontalOffset |
( |
uint16_t |
inHOffset | ) |
|
|
inline |
Specifies the horizontal packet position in the raster.
- Parameters
-
[in] | inHOffset | Specifies my new horizontal offset. Only the least-significant 12 bits are used.
- Use AJAAncDataLoc::AJAAncDataHorizOffset_AnyVanc for any legal area of the raster line after SAV. This will reset my AJAAncDataSpace to AJAAncDataSpace_VANC.
- Use AJAAncDataLoc::AJAAncDataHorizOffset_AnyHanc for any legal area of the raster line after EAV. This will reset my AJAAncDataSpace to AJAAncDataSpace_HANC.
- For HD, this is the number of luma samples (see SMPTE ST274).
- For SD, this is the number of Y/C muxed words (see SMPTE ST125).
- Use AJAAncDataHorizOffset_Unknown for zero – i.e., immediately after SAV.
|
- Returns
- A non-const reference to myself.
Definition at line 408 of file ancillarydata.h.
◆ SetLineNumber()
AJAAncDataLoc& AJAAncDataLoc::SetLineNumber |
( |
const uint16_t |
inLineNum | ) |
|
|
inline |
Sets my anc data line number value.
- Parameters
-
[in] | inLineNum | Specifies the new line number value to use. Can also be AJAAncDataLineNumber_DontCare. |
- Returns
- A non-const reference to myself.
Definition at line 393 of file ancillarydata.h.
The documentation for this struct was generated from the following files:
- /home/tcbuilder/buildAgent/work/df8e8cce5bebfd58/libajantv2/ajaanc/includes/ancillarydata.h
- /home/tcbuilder/buildAgent/work/df8e8cce5bebfd58/libajantv2/ajaanc/src/ancillarydata.cpp