TSDuck v3.40-4033
MPEG Transport Stream Toolkit
|
An item entry. More...
#include <tsTeletextDescriptor.h>
Public Member Functions | |
Entry (const UChar *code=nullptr, uint8_t type=0, uint16_t page=0) | |
Default constructor. | |
Entry (const UString &code, uint8_t type=0, uint16_t page=0) | |
Default constructor. | |
uint8_t | magazineNumber () const |
Extract magazine number from the full Teletext page number. | |
uint8_t | pageNumber () const |
Extract page number from then full Teletext page number. | |
void | setFullNumber (uint8_t teletext_magazine_number, uint8_t teletext_page_number) |
Build a full Teletext page number from magazine and page numbers. | |
Public Attributes | |
UString | language_code {} |
ISO-639 language code, 3 characters. | |
uint16_t | page_number = 0 |
Teletext page number, combination of page and magazine number. | |
uint8_t | teletext_type = 0 |
Teletext type, 5 bits. | |
An item entry.
ts::TeletextDescriptor::Entry::Entry | ( | const UChar * | code = nullptr , |
uint8_t | type = 0 , |
||
uint16_t | page = 0 |
||
) |
Default constructor.
[in] | code | ISO-639 language code, 3 characters. Can be null. |
[in] | type | Teletext type, 5 bits. |
[in] | page | Teletext page number, combination of page and magazine number. |
ts::TeletextDescriptor::Entry::Entry | ( | const UString & | code, |
uint8_t | type = 0 , |
||
uint16_t | page = 0 |
||
) |
Default constructor.
[in] | type | Teletext type, 5 bits. |
[in] | page | Teletext page number, combination of page and magazine number. |
[in] | code | ISO-639 language code, 3 characters. |
void ts::TeletextDescriptor::Entry::setFullNumber | ( | uint8_t | teletext_magazine_number, |
uint8_t | teletext_page_number | ||
) |
Build a full Teletext page number from magazine and page numbers.
In Teletext, a "page number" is built from two data, the magazine and page numbers. The binary descriptor contains these two values.
[in] | teletext_magazine_number | Teletext magazine number, 3-bit value from descriptor. |
[in] | teletext_page_number | Teletext page number, 8-bit value from descriptor. |
uint8_t ts::TeletextDescriptor::Entry::magazineNumber | ( | ) | const |
Extract magazine number from the full Teletext page number.
uint8_t ts::TeletextDescriptor::Entry::pageNumber | ( | ) | const |
Extract page number from then full Teletext page number.