Skip to content

Commit 7e24a02

Browse files
committed
Enabling PTL
1 parent 5d9ed4f commit 7e24a02

File tree

5 files changed

+412
-0
lines changed

5 files changed

+412
-0
lines changed

lib/caps/PTL/d3d11

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
###
2+
### Copyright (C) 2024 Intel Corporation
3+
###
4+
### SPDX-License-Identifier: BSD-3-Clause
5+
###
6+
7+
###
8+
### kate: syntax python;
9+
###
10+
11+
# https://github.com/intel/media-driver/blob/master/docs/media_features.md
12+
caps = dict(
13+
decode = dict(
14+
avc = dict(maxres = res4k , fmts = ["NV12"]),
15+
mpeg2 = dict(maxres = res2k , fmts = ["NV12"]),
16+
jpeg = dict(maxres = res16k, fmts = ["NV12", "411P", "422H", "422V", "444P", "Y800"]),
17+
hevc_8 = dict(
18+
maxres = res8k,
19+
fmts = ["NV12", "YUY2", "AYUV"],
20+
features = dict(scc = True, msp = True),
21+
),
22+
hevc_10 = dict(maxres = res8k , fmts = ["P010", "Y210", "Y410"]),
23+
hevc_12 = dict(maxres = res8k , fmts = ["P012", "Y212", "Y412"]),
24+
vp9_8 = dict(maxres = res8k , fmts = ["NV12", "AYUV"]),
25+
vp9_10 = dict(maxres = res8k , fmts = ["P010", "Y410"]),
26+
vp9_12 = dict(maxres = res8k , fmts = ["P012", "Y412"]),
27+
av1_8 = dict(maxres = res8k , fmts = ["NV12"]),
28+
av1_10 = dict(maxres = res8k , fmts = ["P010"]),
29+
vvc_8 = dict(maxres = res16k , fmts = ["NV12"]),
30+
vvc_10 = dict(maxres = res16k , fmts = ["P010"]),
31+
),
32+
encode = dict(
33+
avc = dict(maxres = res4k , fmts = ["NV12", "YUY2", "YUYV", "YVYU", "UYVY", "AYUV"]),
34+
hevc_8 = dict(
35+
maxres = res8k,
36+
fmts = ["NV12", "AYUV"],
37+
features = dict(scc = True),
38+
),
39+
hevc_10 = dict(maxres = res8k , fmts = ["P010", "Y410"]),
40+
vp9_8 = dict(maxres = res8k , fmts = ["NV12", "AYUV"]),
41+
av1_8 = dict(
42+
maxres = res8k,
43+
fmts = ["NV12"],
44+
),
45+
av1_10 = dict(
46+
maxres = res8k,
47+
fmts = ["P010"],
48+
),
49+
vp9_10 = dict(maxres = res8k , fmts = ["P010", "Y410"]),
50+
),
51+
vdenc = dict(
52+
jpeg = dict(maxres = res16k, fmts = ["NV12", "YUY2", "UYVY", "Y800"]),
53+
),
54+
vpp = dict(
55+
# brightness, contrast, hue and saturation
56+
procamp = dict(
57+
ifmts = ["NV12", "P010", "YUY2", "Y210", "AYUV", "Y410"],
58+
ofmts = ["NV12", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA"],
59+
),
60+
# mirroring and rotation
61+
transpose = dict(
62+
ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"],
63+
ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA"],
64+
),
65+
crop = dict(
66+
ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "AYUV", "Y410", "BGRA"],
67+
ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "AYUV", "Y410", "BGRA"],
68+
),
69+
sharpen = dict(
70+
ifmts = ["NV12", "P010", "YUY2", "UYVY", "AYUV", "Y410", "BGRA"],
71+
ofmts = ["NV12", "P010", "YUY2", "AYUV", "Y410", "BGRA"],
72+
),
73+
deinterlace = dict(
74+
bob = dict(
75+
ifmts = ["NV12", "YV12", "P010", "YUY2"],
76+
ofmts = ["NV12", "YV12", "P010", "YUY2"],
77+
),
78+
motion_adaptive = dict(
79+
ifmts = ["NV12", "P010", "YUY2"],
80+
ofmts = ["NV12", "P010", "YUY2"],
81+
),
82+
),
83+
denoise = dict(
84+
ifmts = ["NV12", "P010", "YUY2"],
85+
ofmts = ["NV12", "P010", "YUY2"],
86+
),
87+
scale = dict(
88+
ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"],
89+
ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA"],
90+
),
91+
# colorspace conversion
92+
csc = dict(
93+
ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"],
94+
ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA", "BGRX"],
95+
),
96+
blend = dict(
97+
ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"],
98+
ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA", "BGRX"],
99+
),
100+
# tonemap
101+
tonemap = dict(
102+
h2s = dict(
103+
ifmts = ["P010"],
104+
ofmts = ["NV12", "P010"],
105+
),
106+
),
107+
range = dict(
108+
ifmts = ["NV12", "P010"],
109+
ofmts = ["NV12", "P010"],
110+
),
111+
),
112+
)

lib/caps/PTL/d3d12

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
###
2+
### Copyright (C) 2024 Intel Corporation
3+
###
4+
### SPDX-License-Identifier: BSD-3-Clause
5+
###
6+
7+
###
8+
### kate: syntax python;
9+
###
10+
11+
# https://github.com/intel/media-driver/blob/master/docs/media_features.md
12+
caps = dict(
13+
decode = dict(
14+
avc = dict(maxres = res4k , fmts = ["NV12"]),
15+
mpeg2 = dict(maxres = res2k , fmts = ["NV12"]),
16+
jpeg = dict(maxres = res16k, fmts = ["NV12", "411P", "422H", "422V", "444P", "Y800"]),
17+
hevc_8 = dict(
18+
maxres = res8k,
19+
fmts = ["NV12", "YUY2", "AYUV"],
20+
features = dict(scc = True, msp = True),
21+
),
22+
hevc_10 = dict(maxres = res8k , fmts = ["P010", "Y210", "Y410"]),
23+
hevc_12 = dict(maxres = res8k , fmts = ["P012", "Y212", "Y412"]),
24+
vp9_8 = dict(maxres = res8k , fmts = ["NV12", "AYUV"]),
25+
vp9_10 = dict(maxres = res8k , fmts = ["P010", "Y410"]),
26+
vp9_12 = dict(maxres = res8k , fmts = ["P012", "Y412"]),
27+
av1_8 = dict(maxres = res8k , fmts = ["NV12"]),
28+
av1_10 = dict(maxres = res8k , fmts = ["P010"]),
29+
vvc_8 = dict(maxres = res16k , fmts = ["NV12"]),
30+
vvc_10 = dict(maxres = res16k , fmts = ["P010"]),
31+
),
32+
encode = dict(
33+
avc = dict(maxres = res4k , fmts = ["NV12", "YUY2", "YUYV", "YVYU", "UYVY", "AYUV"]),
34+
hevc_8 = dict(
35+
maxres = res8k,
36+
fmts = ["NV12", "AYUV"],
37+
features = dict(scc = True),
38+
),
39+
hevc_10 = dict(maxres = res8k , fmts = ["P010", "Y410"]),
40+
vp9_8 = dict(maxres = res8k , fmts = ["NV12", "AYUV"]),
41+
av1_8 = dict(
42+
maxres = res8k,
43+
fmts = ["NV12"],
44+
),
45+
av1_10 = dict(
46+
maxres = res8k,
47+
fmts = ["P010"],
48+
),
49+
vp9_10 = dict(maxres = res8k , fmts = ["P010", "Y410"]),
50+
),
51+
vdenc = dict(
52+
jpeg = dict(maxres = res16k, fmts = ["NV12", "YUY2", "UYVY", "Y800"]),
53+
),
54+
vpp = dict(
55+
# brightness, contrast, hue and saturation
56+
procamp = dict(
57+
ifmts = ["NV12", "P010", "YUY2", "Y210", "AYUV", "Y410"],
58+
ofmts = ["NV12", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA"],
59+
),
60+
# mirroring and rotation
61+
transpose = dict(
62+
ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"],
63+
ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA"],
64+
),
65+
crop = dict(
66+
ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "AYUV", "Y410", "BGRA"],
67+
ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "AYUV", "Y410", "BGRA"],
68+
),
69+
sharpen = dict(
70+
ifmts = ["NV12", "P010", "YUY2", "UYVY", "AYUV", "Y410", "BGRA"],
71+
ofmts = ["NV12", "P010", "YUY2", "AYUV", "Y410", "BGRA"],
72+
),
73+
deinterlace = dict(
74+
bob = dict(
75+
ifmts = ["NV12", "YV12", "P010", "YUY2"],
76+
ofmts = ["NV12", "YV12", "P010", "YUY2"],
77+
),
78+
motion_adaptive = dict(
79+
ifmts = ["NV12", "P010", "YUY2"],
80+
ofmts = ["NV12", "P010", "YUY2"],
81+
),
82+
),
83+
denoise = dict(
84+
ifmts = ["NV12", "P010", "YUY2"],
85+
ofmts = ["NV12", "P010", "YUY2"],
86+
),
87+
scale = dict(
88+
ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"],
89+
ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA"],
90+
),
91+
# colorspace conversion
92+
csc = dict(
93+
ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"],
94+
ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA", "BGRX"],
95+
),
96+
blend = dict(
97+
ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"],
98+
ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA", "BGRX"],
99+
),
100+
# tonemap
101+
tonemap = dict(
102+
h2s = dict(
103+
ifmts = ["P010"],
104+
ofmts = ["NV12", "P010"],
105+
),
106+
),
107+
range = dict(
108+
ifmts = ["NV12", "P010"],
109+
ofmts = ["NV12", "P010"],
110+
),
111+
),
112+
)

lib/caps/PTL/iHD

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
###
2+
### Copyright (C) 2024 Intel Corporation
3+
###
4+
### SPDX-License-Identifier: BSD-3-Clause
5+
###
6+
7+
###
8+
### kate: syntax python;
9+
###
10+
11+
# https://github.com/intel/media-driver/blob/master/docs/media_features.md
12+
caps = dict(
13+
decode = dict(
14+
avc = dict(maxres = res4k , fmts = ["NV12"]),
15+
avc_10 = dict(maxres = res4k, fmts = ["P010", "P210"]),
16+
mpeg2 = dict(maxres = res2k , fmts = ["NV12"]),
17+
jpeg = dict(maxres = res16k, fmts = ["NV12", "411P", "422H", "422V", "444P", "Y800"]),
18+
hevc_8 = dict(
19+
maxres = res8k,
20+
fmts = ["NV12", "YUY2", "AYUV"],
21+
features = dict(scc = True, msp = True),
22+
),
23+
hevc_10 = dict(maxres = res8k , fmts = ["P010", "Y210", "Y410"]),
24+
hevc_12 = dict(maxres = res8k , fmts = ["P012", "Y212", "Y412"]),
25+
vp8 = dict(maxres = res4k , fmts = ["NV12"]),
26+
vp9_8 = dict(maxres = res8k , fmts = ["NV12", "AYUV"]),
27+
vp9_10 = dict(maxres = res8k , fmts = ["P010", "Y410"]),
28+
vp9_12 = dict(maxres = res8k , fmts = ["P012", "Y412"]),
29+
av1_8 = dict(maxres = res8k , fmts = ["NV12", "YUV444"]),
30+
av1_10 = dict(maxres = res8k , fmts = ["P010", "P410"]),
31+
vvc_8 = dict(maxres = res16k , fmts = ["NV12"]),
32+
vvc_10 = dict(maxres = res16k , fmts = ["P010"]),
33+
),
34+
encode = dict(
35+
avc = dict(maxres = res4k , fmts = ["NV12", "YUY2", "YUYV", "YVYU", "UYVY", "AYUV"]),
36+
hevc_8 = dict(
37+
maxres = res8k,
38+
fmts = ["NV12", "AYUV"],
39+
features = dict(scc = True),
40+
),
41+
hevc_10 = dict(maxres = res8k , fmts = ["P010", "Y410"]),
42+
av1_8 = dict(
43+
maxres = res16k,
44+
fmts = ["NV12"],
45+
),
46+
av1_10 = dict(
47+
maxres = res8k,
48+
fmts = ["P010"],
49+
),
50+
),
51+
vdenc = dict(
52+
jpeg = dict(maxres = res16k, fmts = ["NV12", "YUY2", "UYVY", "Y800"]),
53+
),
54+
vpp = dict(
55+
# brightness, contrast, hue and saturation
56+
procamp = dict(
57+
ifmts = ["NV12", "P010", "YUY2", "Y210", "AYUV", "Y410"],
58+
ofmts = ["NV12", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA"],
59+
),
60+
# mirroring and rotation
61+
transpose = dict(
62+
ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"],
63+
ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA"],
64+
),
65+
crop = dict(
66+
ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "AYUV", "Y410", "BGRA"],
67+
ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "AYUV", "Y410", "BGRA"],
68+
),
69+
sharpen = dict(
70+
ifmts = ["NV12", "P010", "YUY2", "UYVY", "AYUV", "Y410", "BGRA"],
71+
ofmts = ["NV12", "P010", "YUY2", "AYUV", "Y410", "BGRA"],
72+
),
73+
deinterlace = dict(
74+
bob = dict(
75+
ifmts = ["NV12", "YV12", "P010", "YUY2"],
76+
ofmts = ["NV12", "YV12", "P010", "YUY2"],
77+
),
78+
motion_adaptive = dict(
79+
ifmts = ["NV12", "P010", "YUY2"],
80+
ofmts = ["NV12", "P010", "YUY2"],
81+
),
82+
),
83+
denoise = dict(
84+
ifmts = ["NV12", "P010", "YUY2"],
85+
ofmts = ["NV12", "P010", "YUY2"],
86+
),
87+
scale = dict(
88+
ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"],
89+
ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA"],
90+
),
91+
# colorspace conversion
92+
csc = dict(
93+
ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"],
94+
ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA", "BGRX"],
95+
),
96+
blend = dict(
97+
ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"],
98+
ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA", "BGRX"],
99+
),
100+
# tonemap
101+
tonemap = dict(
102+
h2s = dict(
103+
ifmts = ["P010"],
104+
ofmts = ["NV12", "P010"],
105+
),
106+
),
107+
range = dict(
108+
ifmts = ["NV12", "P010"],
109+
ofmts = ["NV12", "P010"],
110+
),
111+
),
112+
)

lib/caps/PTL/info

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
###
2+
### Copyright (C) 2024 Intel Corporation
3+
###
4+
### SPDX-License-Identifier: BSD-3-Clause
5+
###
6+
7+
###
8+
### kate: syntax python;
9+
###
10+
11+
info = dict(
12+
gpu = dict(gen = 16),
13+
)

0 commit comments

Comments
 (0)