Pmt

class Pmt(val pid: Int, var version: Byte, service: Mpeg2TsService) : Psi

Created by pedro on 20/8/23.

PMT (Program Map Table)

A type of PSI packet

Reserved bits -> 3 bits PCR PID -> 13 The packet identifier that contains the program clock reference used to improve the random access accuracy of the stream's timing that is derived from the program timestamp. If this is unused. then it is set to 0x1FFF (all bits on). Reserved bits -> 4 Program info length unused bits -> 2 Set to 0 (all bits off) Program info length -> 10 The number of bytes that follow for the program descriptors. Program descriptors -> N8 When the program info length is non-zero, this is the program info length number of program descriptor bytes. Elementary stream info data -> N8

Constructors

Link copied to clipboard
constructor(pid: Int, version: Byte, service: Mpeg2TsService)

Properties

Link copied to clipboard
val isKeyFrame: Boolean = false
Link copied to clipboard
val pid: Int
Link copied to clipboard

Functions

Link copied to clipboard
fun getSize(): Int
Link copied to clipboard
open override fun getTableDataSize(): Int
Link copied to clipboard
fun write(byteBuffer: ByteBuffer)
Link copied to clipboard
open override fun writeData(byteBuffer: ByteBuffer)