-
Notifications
You must be signed in to change notification settings - Fork 10
/
DeinterlaceFilter.ts
58 lines (50 loc) · 1.4 KB
/
DeinterlaceFilter.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
import {map, mapArray} from '../common/Mapper';
import DeinterlaceAutoEnable from './DeinterlaceAutoEnable';
import DeinterlaceFrameSelectionMode from './DeinterlaceFrameSelectionMode';
import DeinterlaceMode from './DeinterlaceMode';
import Filter from './Filter';
import FilterType from './FilterType';
import PictureFieldParity from './PictureFieldParity';
/**
* @export
* @class DeinterlaceFilter
*/
export class DeinterlaceFilter extends Filter {
/**
* Discriminator property for Filter
* @type {string}
* @memberof DeinterlaceFilter
*/
public readonly type: FilterType = FilterType.DEINTERLACE;
/**
* @type {PictureFieldParity}
* @memberof DeinterlaceFilter
*/
public parity?: PictureFieldParity;
/**
* @type {DeinterlaceMode}
* @memberof DeinterlaceFilter
*/
public mode?: DeinterlaceMode;
/**
* @type {DeinterlaceFrameSelectionMode}
* @memberof DeinterlaceFilter
*/
public frameSelectionMode?: DeinterlaceFrameSelectionMode;
/**
* @type {DeinterlaceAutoEnable}
* @memberof DeinterlaceFilter
*/
public autoEnable?: DeinterlaceAutoEnable;
constructor(obj?: Partial<DeinterlaceFilter>) {
super(obj);
if(!obj) {
return;
}
this.parity = map(obj.parity);
this.mode = map(obj.mode);
this.frameSelectionMode = map(obj.frameSelectionMode);
this.autoEnable = map(obj.autoEnable);
}
}
export default DeinterlaceFilter;