-
Notifications
You must be signed in to change notification settings - Fork 10
/
H265PerTitleConfiguration.ts
52 lines (45 loc) · 1.74 KB
/
H265PerTitleConfiguration.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import {map, mapArray} from '../common/Mapper';
import AutoRepresentation from './AutoRepresentation';
import PerTitleConfiguration from './PerTitleConfiguration';
import PerTitleFixedResolutionAndBitrateConfiguration from './PerTitleFixedResolutionAndBitrateConfiguration';
/**
* @export
* @class H265PerTitleConfiguration
*/
export class H265PerTitleConfiguration extends PerTitleConfiguration {
/**
* Desired target quality of the highest representation expressed as CRF value
* @type {number}
* @memberof H265PerTitleConfiguration
*/
public targetQualityCrf?: number;
/**
* This factor is used to calculate the minBitrate of the codec configuration for the generated representations as a multiple of the targetBitrate
* @type {number}
* @memberof H265PerTitleConfiguration
*/
public codecMinBitrateFactor?: number;
/**
* This factor is used to calculate the maxBitrate of the codec configuration for the generated representations as a multiple of the targetBitrate
* @type {number}
* @memberof H265PerTitleConfiguration
*/
public codecMaxBitrateFactor?: number;
/**
* This factor is used to calculate the bufsize of the codec configuration for the generated representations as a multiple of the targetBitrate
* @type {number}
* @memberof H265PerTitleConfiguration
*/
public codecBufsizeFactor?: number;
constructor(obj?: Partial<H265PerTitleConfiguration>) {
super(obj);
if(!obj) {
return;
}
this.targetQualityCrf = map(obj.targetQualityCrf);
this.codecMinBitrateFactor = map(obj.codecMinBitrateFactor);
this.codecMaxBitrateFactor = map(obj.codecMaxBitrateFactor);
this.codecBufsizeFactor = map(obj.codecBufsizeFactor);
}
}
export default H265PerTitleConfiguration;