the program of PAT of PSI ts packet.
| 1035 | |
| 1036 | // the program of PAT of PSI ts packet. |
| 1037 | class TsPayloadPATProgram { |
| 1038 | public: |
| 1039 | TsPayloadPATProgram(int16_t number, TsPid pid); |
| 1040 | ~TsPayloadPATProgram(); |
| 1041 | size_t ByteSize() const { return 4; } |
| 1042 | int Encode(void* data) const; |
| 1043 | |
| 1044 | public: |
| 1045 | // Specify the program to which the program_map_PID is applicable. When set |
| 1046 | // to 0x0000, then the following PID reference shall be the network PID. |
| 1047 | // For all other cases the value of this field is user defined. This field |
| 1048 | // shall not take any single value more than once within one version of |
| 1049 | // the Program Association Table. |
| 1050 | int16_t program_number; // 16bits |
| 1051 | |
| 1052 | static const int8_t const1_value = 7; //3 bits, reserved |
| 1053 | |
| 1054 | // network_PID - a 13-bit field, which is used only in conjunction with |
| 1055 | // the value of the program_number set to 0x0000, specifies the PID of |
| 1056 | // the Transport Stream packets which shall contain the Network |
| 1057 | // Information Table. The value of the network_PID field is defined by |
| 1058 | // the user, but shall only take values as specified in Table 2-3. The |
| 1059 | // presence of the network_PID is optional. |
| 1060 | TsPid pid; //13bits |
| 1061 | }; |
| 1062 | |
| 1063 | // the PAT payload of PSI ts packet. |
| 1064 | // 2.4.4.3 Program association Table, hls-mpeg-ts-iso13818-1.pdf, page 61 |