-
Notifications
You must be signed in to change notification settings - Fork 10
/
BroadcastTsVideoInputStreamConfiguration.ts
35 lines (30 loc) · 1.3 KB
/
BroadcastTsVideoInputStreamConfiguration.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import {map, mapArray} from '../common/Mapper';
import BroadcastTsInputStreamConfiguration from './BroadcastTsInputStreamConfiguration';
import RaiUnit from './RaiUnit';
/**
* @export
* @class BroadcastTsVideoInputStreamConfiguration
*/
export class BroadcastTsVideoInputStreamConfiguration extends BroadcastTsInputStreamConfiguration {
/**
* If true, add access unit delimiters (AUD) to AVC stream if AUD is missing from input elementary stream.
* @type {boolean}
* @memberof BroadcastTsVideoInputStreamConfiguration
*/
public insertAccessUnitDelimiterInAvc?: boolean;
/**
* Maximum Decoder Delay in 90 KHz cycles. When non-zero, the difference between the PCR and the DTS for each picture as it is inserted into the output transport stream is limited to this number of 90 KHz cycles. Values below 1000 are treated as 0 and ignored. Valid Range [0, 1000-900000]
* @type {number}
* @memberof BroadcastTsVideoInputStreamConfiguration
*/
public maxDecodeDelay?: number;
constructor(obj?: Partial<BroadcastTsVideoInputStreamConfiguration>) {
super(obj);
if(!obj) {
return;
}
this.insertAccessUnitDelimiterInAvc = map(obj.insertAccessUnitDelimiterInAvc);
this.maxDecodeDelay = map(obj.maxDecodeDelay);
}
}
export default BroadcastTsVideoInputStreamConfiguration;