-
Notifications
You must be signed in to change notification settings - Fork 10
/
BillableEncodingMinutes.ts
96 lines (83 loc) · 2.67 KB
/
BillableEncodingMinutes.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
import {map, mapArray} from '../common/Mapper';
import BillableEncodingMinutesDetails from './BillableEncodingMinutesDetails';
import CodecConfigType from './CodecConfigType';
import EncodingMode from './EncodingMode';
import NexGuardABWatermarkingFeature from './NexGuardABWatermarkingFeature';
import PixelFormatBitDepth from './PixelFormatBitDepth';
import PsnrPerStreamMode from './PsnrPerStreamMode';
import StatisticsPerTitleStream from './StatisticsPerTitleStream';
/**
* @export
* @class BillableEncodingMinutes
*/
export class BillableEncodingMinutes {
/**
* @type {EncodingMode}
* @memberof BillableEncodingMinutes
*/
public encodingMode?: EncodingMode;
/**
* @type {CodecConfigType}
* @memberof BillableEncodingMinutes
*/
public codec?: CodecConfigType;
/**
* @type {StatisticsPerTitleStream}
* @memberof BillableEncodingMinutes
*/
public perTitleResultStream?: StatisticsPerTitleStream;
/**
* @type {PsnrPerStreamMode}
* @memberof BillableEncodingMinutes
*/
public psnrMode?: PsnrPerStreamMode;
/**
* Name of the preset configuration used for the codec configuration or \"CUSTOM\" if any preset values were overridden
* @type {string}
* @memberof BillableEncodingMinutes
*/
public preset?: string;
/**
* Indicates if the stream was part of a live encoding.
* @type {boolean}
* @memberof BillableEncodingMinutes
*/
public live?: boolean;
/**
* Indicates if an enhanced interlace filter was used.
* @type {boolean}
* @memberof BillableEncodingMinutes
*/
public enhancedDeinterlace?: boolean;
/**
* @type {NexGuardABWatermarkingFeature}
* @memberof BillableEncodingMinutes
*/
public nexGuardABWatermarkingType?: NexGuardABWatermarkingFeature;
/**
* @type {PixelFormatBitDepth}
* @memberof BillableEncodingMinutes
*/
public pixelFormatBitDepth?: PixelFormatBitDepth;
/**
* @type {BillableEncodingMinutesDetails}
* @memberof BillableEncodingMinutes
*/
public billableMinutes?: BillableEncodingMinutesDetails;
constructor(obj?: Partial<BillableEncodingMinutes>) {
if(!obj) {
return;
}
this.encodingMode = map(obj.encodingMode);
this.codec = map(obj.codec);
this.perTitleResultStream = map(obj.perTitleResultStream);
this.psnrMode = map(obj.psnrMode);
this.preset = map(obj.preset);
this.live = map(obj.live);
this.enhancedDeinterlace = map(obj.enhancedDeinterlace);
this.nexGuardABWatermarkingType = map(obj.nexGuardABWatermarkingType);
this.pixelFormatBitDepth = map(obj.pixelFormatBitDepth);
this.billableMinutes = map(obj.billableMinutes, BillableEncodingMinutesDetails);
}
}
export default BillableEncodingMinutes;