AdaptationField

data class AdaptationField(discontinuityIndicator: Boolean = false, randomAccessIndicator: Boolean = false, elementaryStreamPriorityIndicator: Boolean = false, pcr: Long? = null, opcr: Long? = null, spliceCountdown: Byte? = null, transportPrivateData: ByteArray? = null, adaptationExtension: ByteArray? = null, stuffingBytes: ByteArray? = null)

Created by pedro on 24/8/23.

Header (2 bytes):

Adaptation field length -> 8 bits Discontinuity indicator -> 1 bit Random access indicator -> 1 bit Elementary stream priority indicator -> 1 bit PCR flag -> 1 bit OPCR flag -> 1 bit Splicing point flag -> 1 bit Transport private data flag -> 1 bit Adaptation field extension flag -> 1 bit

Optional fields PCR -> 48 bits OPCR -> 48 bits Splice countdown -> 8 bits Transport private data length -> 8 bits

Transport private data -> variable Adaptation extension -> variable Stuffing bytes -> variable

Constructors

Link copied to clipboard
constructor(discontinuityIndicator: Boolean = false, randomAccessIndicator: Boolean = false, elementaryStreamPriorityIndicator: Boolean = false, pcr: Long? = null, opcr: Long? = null, spliceCountdown: Byte? = null, transportPrivateData: ByteArray? = null, adaptationExtension: ByteArray? = null, stuffingBytes: ByteArray? = null)

Functions

Link copied to clipboard
Link copied to clipboard
fun getSize(): Int