This structure encapsulates all possible CEA-608 caption data bytes that may be associated with a given frame or field.
More...
#include <ntv2caption608types.h>
This structure encapsulates all possible CEA-608 caption data bytes that may be associated with a given frame or field.
- Note
- The "field 3" data bytes is used when translating 30fps video to 24fps and removing 3:2 pulldown.
Definition at line 655 of file ntv2caption608types.h.
◆ CaptionData() [1/3]
CaptionData::CaptionData |
( |
| ) |
|
|
inlineexplicit |
Default constructor. Sets my caption bytes to 0xFF, and "gotFieldData" values to false.
Definition at line 673 of file ntv2caption608types.h.
◆ CaptionData() [2/3]
CaptionData::CaptionData |
( |
const UByte |
inF1Char1, |
|
|
const UByte |
inF1Char2 |
|
) |
| |
|
explicit |
Constructs me from a pair of caption bytes (Field 1).
◆ CaptionData() [3/3]
CaptionData::CaptionData |
( |
const UByte |
inF1Char1, |
|
|
const UByte |
inF1Char2, |
|
|
const UByte |
inF2Char1, |
|
|
const UByte |
inF2Char2 |
|
) |
| |
|
explicit |
Constructs me from two pairs of caption bytes (Field 1 and Field 2).
◆ Clear()
void CaptionData::Clear |
( |
void |
| ) |
|
|
inline |
Sets all of my "got data" fields to "false" and all my character values to 0x80.
Definition at line 748 of file ntv2caption608types.h.
◆ HasData()
bool CaptionData::HasData |
( |
void |
| ) |
const |
|
inline |
- Returns
- True if either Field 1 or 2 caption bytes were set and their byte values aren't 0x80.
Definition at line 698 of file ntv2caption608types.h.
◆ HasF1Data()
bool CaptionData::HasF1Data |
( |
void |
| ) |
const |
|
inline |
- Returns
- True if Field 1 caption bytes were set and their byte values aren't 0x80.
Definition at line 688 of file ntv2caption608types.h.
◆ HasF2Data()
bool CaptionData::HasF2Data |
( |
void |
| ) |
const |
|
inline |
- Returns
- True if Field 2 caption bytes were set and their byte values aren't 0x80.
Definition at line 693 of file ntv2caption608types.h.
◆ IsError()
bool CaptionData::IsError |
( |
void |
| ) |
const |
|
inline |
◆ IsF1Invalid()
bool CaptionData::IsF1Invalid |
( |
void |
| ) |
const |
|
inline |
◆ IsF2Invalid()
bool CaptionData::IsF2Invalid |
( |
void |
| ) |
const |
|
inline |
◆ operator!=()
bool CaptionData::operator!= |
( |
const CaptionData & |
inRHS | ) |
const |
|
inline |
◆ operator<()
bool CaptionData::operator< |
( |
const CaptionData & |
inRHS | ) |
const |
◆ operator==()
bool CaptionData::operator== |
( |
const CaptionData & |
inRHS | ) |
const |
- Returns
- True if I'm equal to the right-hand-side CaptionData.
- Parameters
-
[in] | inRHS | Specifies the right-hand-side CaptionData that will be compared to me. |
- Note
- To synthesize the other comparison operators (!=, <=, >, >=), add "#include <utility>", and "using namespace std::rel_ops;" to the code module.
◆ SetF1Data() [1/2]
Copies my F1 data bytes from the given CaptionData instance.
- Parameters
-
[in] | inRHS | The CaptionData instance supplying the F1 data byte values. |
- Returns
- A non-const reference to me.
Definition at line 720 of file ntv2caption608types.h.
◆ SetF1Data() [2/2]
Sets my F1 data bytes.
- Parameters
-
[in] | inF1Char1 | Specifies the first F1 byte value. |
[in] | inF1Char2 | Specifies the second F1 byte value. |
- Returns
- A non-const reference to me.
Definition at line 728 of file ntv2caption608types.h.
◆ SetF2Data() [1/2]
Copies my F2 data bytes from the given CaptionData instance.
- Parameters
-
[in] | inRHS | The CaptionData instance supplying the F2 data byte values. |
- Returns
- A non-const reference to me.
Definition at line 735 of file ntv2caption608types.h.
◆ SetF2Data() [2/2]
Sets my F2 data bytes.
- Parameters
-
[in] | inF2Char1 | Specifies the first F2 byte value. |
[in] | inF2Char2 | Specifies the second F2 byte value. |
- Returns
- A non-const reference to me.
Definition at line 743 of file ntv2caption608types.h.
◆ Zero()
void CaptionData::Zero |
( |
void |
| ) |
|
|
inline |
Sets all of my "got data" fields to "false" and all my character values to zero.
Definition at line 753 of file ntv2caption608types.h.
◆ bGotField1Data
bool CaptionData::bGotField1Data |
◆ bGotField2Data
bool CaptionData::bGotField2Data |
◆ bGotField3Data
bool CaptionData::bGotField3Data |
True if Field 3 bytes have been set. This is used only when translating 30fps video to 24fps and removing 3:2 pulldown.
Definition at line 665 of file ntv2caption608types.h.
◆ f1_char1
UByte CaptionData::f1_char1 |
◆ f1_char2
UByte CaptionData::f1_char2 |
◆ f2_char1
UByte CaptionData::f2_char1 |
◆ f2_char2
UByte CaptionData::f2_char2 |
◆ f3_char1
UByte CaptionData::f3_char1 |
◆ f3_char2
UByte CaptionData::f3_char2 |
The documentation for this struct was generated from the following file: