From 7e24a0201195c09a3811f192047c4e733c797fcf Mon Sep 17 00:00:00 2001 From: aschuch1 Date: Wed, 28 May 2025 14:02:08 -0700 Subject: [PATCH 1/3] Enabling PTL --- lib/caps/PTL/d3d11 | 112 ++++++++++++++++++++++++++++++++++++++++++++ lib/caps/PTL/d3d12 | 112 ++++++++++++++++++++++++++++++++++++++++++++ lib/caps/PTL/iHD | 112 ++++++++++++++++++++++++++++++++++++++++++++ lib/caps/PTL/info | 13 +++++ lib/caps/PTL/vaon12 | 63 +++++++++++++++++++++++++ 5 files changed, 412 insertions(+) create mode 100644 lib/caps/PTL/d3d11 create mode 100644 lib/caps/PTL/d3d12 create mode 100644 lib/caps/PTL/iHD create mode 100644 lib/caps/PTL/info create mode 100644 lib/caps/PTL/vaon12 diff --git a/lib/caps/PTL/d3d11 b/lib/caps/PTL/d3d11 new file mode 100644 index 00000000..fbfaac01 --- /dev/null +++ b/lib/caps/PTL/d3d11 @@ -0,0 +1,112 @@ +### +### Copyright (C) 2024 Intel Corporation +### +### SPDX-License-Identifier: BSD-3-Clause +### + +### +### kate: syntax python; +### + +# https://github.com/intel/media-driver/blob/master/docs/media_features.md +caps = dict( + decode = dict( + avc = dict(maxres = res4k , fmts = ["NV12"]), + mpeg2 = dict(maxres = res2k , fmts = ["NV12"]), + jpeg = dict(maxres = res16k, fmts = ["NV12", "411P", "422H", "422V", "444P", "Y800"]), + hevc_8 = dict( + maxres = res8k, + fmts = ["NV12", "YUY2", "AYUV"], + features = dict(scc = True, msp = True), + ), + hevc_10 = dict(maxres = res8k , fmts = ["P010", "Y210", "Y410"]), + hevc_12 = dict(maxres = res8k , fmts = ["P012", "Y212", "Y412"]), + vp9_8 = dict(maxres = res8k , fmts = ["NV12", "AYUV"]), + vp9_10 = dict(maxres = res8k , fmts = ["P010", "Y410"]), + vp9_12 = dict(maxres = res8k , fmts = ["P012", "Y412"]), + av1_8 = dict(maxres = res8k , fmts = ["NV12"]), + av1_10 = dict(maxres = res8k , fmts = ["P010"]), + vvc_8 = dict(maxres = res16k , fmts = ["NV12"]), + vvc_10 = dict(maxres = res16k , fmts = ["P010"]), + ), + encode = dict( + avc = dict(maxres = res4k , fmts = ["NV12", "YUY2", "YUYV", "YVYU", "UYVY", "AYUV"]), + hevc_8 = dict( + maxres = res8k, + fmts = ["NV12", "AYUV"], + features = dict(scc = True), + ), + hevc_10 = dict(maxres = res8k , fmts = ["P010", "Y410"]), + vp9_8 = dict(maxres = res8k , fmts = ["NV12", "AYUV"]), + av1_8 = dict( + maxres = res8k, + fmts = ["NV12"], + ), + av1_10 = dict( + maxres = res8k, + fmts = ["P010"], + ), + vp9_10 = dict(maxres = res8k , fmts = ["P010", "Y410"]), + ), + vdenc = dict( + jpeg = dict(maxres = res16k, fmts = ["NV12", "YUY2", "UYVY", "Y800"]), + ), + vpp = dict( + # brightness, contrast, hue and saturation + procamp = dict( + ifmts = ["NV12", "P010", "YUY2", "Y210", "AYUV", "Y410"], + ofmts = ["NV12", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA"], + ), + # mirroring and rotation + transpose = dict( + ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"], + ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA"], + ), + crop = dict( + ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "AYUV", "Y410", "BGRA"], + ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "AYUV", "Y410", "BGRA"], + ), + sharpen = dict( + ifmts = ["NV12", "P010", "YUY2", "UYVY", "AYUV", "Y410", "BGRA"], + ofmts = ["NV12", "P010", "YUY2", "AYUV", "Y410", "BGRA"], + ), + deinterlace = dict( + bob = dict( + ifmts = ["NV12", "YV12", "P010", "YUY2"], + ofmts = ["NV12", "YV12", "P010", "YUY2"], + ), + motion_adaptive = dict( + ifmts = ["NV12", "P010", "YUY2"], + ofmts = ["NV12", "P010", "YUY2"], + ), + ), + denoise = dict( + ifmts = ["NV12", "P010", "YUY2"], + ofmts = ["NV12", "P010", "YUY2"], + ), + scale = dict( + ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"], + ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA"], + ), + # colorspace conversion + csc = dict( + ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"], + ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA", "BGRX"], + ), + blend = dict( + ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"], + ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA", "BGRX"], + ), + # tonemap + tonemap = dict( + h2s = dict( + ifmts = ["P010"], + ofmts = ["NV12", "P010"], + ), + ), + range = dict( + ifmts = ["NV12", "P010"], + ofmts = ["NV12", "P010"], + ), + ), +) diff --git a/lib/caps/PTL/d3d12 b/lib/caps/PTL/d3d12 new file mode 100644 index 00000000..fbfaac01 --- /dev/null +++ b/lib/caps/PTL/d3d12 @@ -0,0 +1,112 @@ +### +### Copyright (C) 2024 Intel Corporation +### +### SPDX-License-Identifier: BSD-3-Clause +### + +### +### kate: syntax python; +### + +# https://github.com/intel/media-driver/blob/master/docs/media_features.md +caps = dict( + decode = dict( + avc = dict(maxres = res4k , fmts = ["NV12"]), + mpeg2 = dict(maxres = res2k , fmts = ["NV12"]), + jpeg = dict(maxres = res16k, fmts = ["NV12", "411P", "422H", "422V", "444P", "Y800"]), + hevc_8 = dict( + maxres = res8k, + fmts = ["NV12", "YUY2", "AYUV"], + features = dict(scc = True, msp = True), + ), + hevc_10 = dict(maxres = res8k , fmts = ["P010", "Y210", "Y410"]), + hevc_12 = dict(maxres = res8k , fmts = ["P012", "Y212", "Y412"]), + vp9_8 = dict(maxres = res8k , fmts = ["NV12", "AYUV"]), + vp9_10 = dict(maxres = res8k , fmts = ["P010", "Y410"]), + vp9_12 = dict(maxres = res8k , fmts = ["P012", "Y412"]), + av1_8 = dict(maxres = res8k , fmts = ["NV12"]), + av1_10 = dict(maxres = res8k , fmts = ["P010"]), + vvc_8 = dict(maxres = res16k , fmts = ["NV12"]), + vvc_10 = dict(maxres = res16k , fmts = ["P010"]), + ), + encode = dict( + avc = dict(maxres = res4k , fmts = ["NV12", "YUY2", "YUYV", "YVYU", "UYVY", "AYUV"]), + hevc_8 = dict( + maxres = res8k, + fmts = ["NV12", "AYUV"], + features = dict(scc = True), + ), + hevc_10 = dict(maxres = res8k , fmts = ["P010", "Y410"]), + vp9_8 = dict(maxres = res8k , fmts = ["NV12", "AYUV"]), + av1_8 = dict( + maxres = res8k, + fmts = ["NV12"], + ), + av1_10 = dict( + maxres = res8k, + fmts = ["P010"], + ), + vp9_10 = dict(maxres = res8k , fmts = ["P010", "Y410"]), + ), + vdenc = dict( + jpeg = dict(maxres = res16k, fmts = ["NV12", "YUY2", "UYVY", "Y800"]), + ), + vpp = dict( + # brightness, contrast, hue and saturation + procamp = dict( + ifmts = ["NV12", "P010", "YUY2", "Y210", "AYUV", "Y410"], + ofmts = ["NV12", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA"], + ), + # mirroring and rotation + transpose = dict( + ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"], + ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA"], + ), + crop = dict( + ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "AYUV", "Y410", "BGRA"], + ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "AYUV", "Y410", "BGRA"], + ), + sharpen = dict( + ifmts = ["NV12", "P010", "YUY2", "UYVY", "AYUV", "Y410", "BGRA"], + ofmts = ["NV12", "P010", "YUY2", "AYUV", "Y410", "BGRA"], + ), + deinterlace = dict( + bob = dict( + ifmts = ["NV12", "YV12", "P010", "YUY2"], + ofmts = ["NV12", "YV12", "P010", "YUY2"], + ), + motion_adaptive = dict( + ifmts = ["NV12", "P010", "YUY2"], + ofmts = ["NV12", "P010", "YUY2"], + ), + ), + denoise = dict( + ifmts = ["NV12", "P010", "YUY2"], + ofmts = ["NV12", "P010", "YUY2"], + ), + scale = dict( + ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"], + ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA"], + ), + # colorspace conversion + csc = dict( + ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"], + ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA", "BGRX"], + ), + blend = dict( + ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"], + ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA", "BGRX"], + ), + # tonemap + tonemap = dict( + h2s = dict( + ifmts = ["P010"], + ofmts = ["NV12", "P010"], + ), + ), + range = dict( + ifmts = ["NV12", "P010"], + ofmts = ["NV12", "P010"], + ), + ), +) diff --git a/lib/caps/PTL/iHD b/lib/caps/PTL/iHD new file mode 100644 index 00000000..14be3aad --- /dev/null +++ b/lib/caps/PTL/iHD @@ -0,0 +1,112 @@ +### +### Copyright (C) 2024 Intel Corporation +### +### SPDX-License-Identifier: BSD-3-Clause +### + +### +### kate: syntax python; +### + +# https://github.com/intel/media-driver/blob/master/docs/media_features.md +caps = dict( + decode = dict( + avc = dict(maxres = res4k , fmts = ["NV12"]), + avc_10 = dict(maxres = res4k, fmts = ["P010", "P210"]), + mpeg2 = dict(maxres = res2k , fmts = ["NV12"]), + jpeg = dict(maxres = res16k, fmts = ["NV12", "411P", "422H", "422V", "444P", "Y800"]), + hevc_8 = dict( + maxres = res8k, + fmts = ["NV12", "YUY2", "AYUV"], + features = dict(scc = True, msp = True), + ), + hevc_10 = dict(maxres = res8k , fmts = ["P010", "Y210", "Y410"]), + hevc_12 = dict(maxres = res8k , fmts = ["P012", "Y212", "Y412"]), + vp8 = dict(maxres = res4k , fmts = ["NV12"]), + vp9_8 = dict(maxres = res8k , fmts = ["NV12", "AYUV"]), + vp9_10 = dict(maxres = res8k , fmts = ["P010", "Y410"]), + vp9_12 = dict(maxres = res8k , fmts = ["P012", "Y412"]), + av1_8 = dict(maxres = res8k , fmts = ["NV12", "YUV444"]), + av1_10 = dict(maxres = res8k , fmts = ["P010", "P410"]), + vvc_8 = dict(maxres = res16k , fmts = ["NV12"]), + vvc_10 = dict(maxres = res16k , fmts = ["P010"]), + ), + encode = dict( + avc = dict(maxres = res4k , fmts = ["NV12", "YUY2", "YUYV", "YVYU", "UYVY", "AYUV"]), + hevc_8 = dict( + maxres = res8k, + fmts = ["NV12", "AYUV"], + features = dict(scc = True), + ), + hevc_10 = dict(maxres = res8k , fmts = ["P010", "Y410"]), + av1_8 = dict( + maxres = res16k, + fmts = ["NV12"], + ), + av1_10 = dict( + maxres = res8k, + fmts = ["P010"], + ), + ), + vdenc = dict( + jpeg = dict(maxres = res16k, fmts = ["NV12", "YUY2", "UYVY", "Y800"]), + ), + vpp = dict( + # brightness, contrast, hue and saturation + procamp = dict( + ifmts = ["NV12", "P010", "YUY2", "Y210", "AYUV", "Y410"], + ofmts = ["NV12", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA"], + ), + # mirroring and rotation + transpose = dict( + ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"], + ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA"], + ), + crop = dict( + ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "AYUV", "Y410", "BGRA"], + ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "AYUV", "Y410", "BGRA"], + ), + sharpen = dict( + ifmts = ["NV12", "P010", "YUY2", "UYVY", "AYUV", "Y410", "BGRA"], + ofmts = ["NV12", "P010", "YUY2", "AYUV", "Y410", "BGRA"], + ), + deinterlace = dict( + bob = dict( + ifmts = ["NV12", "YV12", "P010", "YUY2"], + ofmts = ["NV12", "YV12", "P010", "YUY2"], + ), + motion_adaptive = dict( + ifmts = ["NV12", "P010", "YUY2"], + ofmts = ["NV12", "P010", "YUY2"], + ), + ), + denoise = dict( + ifmts = ["NV12", "P010", "YUY2"], + ofmts = ["NV12", "P010", "YUY2"], + ), + scale = dict( + ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"], + ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA"], + ), + # colorspace conversion + csc = dict( + ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"], + ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA", "BGRX"], + ), + blend = dict( + ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"], + ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA", "BGRX"], + ), + # tonemap + tonemap = dict( + h2s = dict( + ifmts = ["P010"], + ofmts = ["NV12", "P010"], + ), + ), + range = dict( + ifmts = ["NV12", "P010"], + ofmts = ["NV12", "P010"], + ), + ), +) diff --git a/lib/caps/PTL/info b/lib/caps/PTL/info new file mode 100644 index 00000000..93136f24 --- /dev/null +++ b/lib/caps/PTL/info @@ -0,0 +1,13 @@ +### +### Copyright (C) 2024 Intel Corporation +### +### SPDX-License-Identifier: BSD-3-Clause +### + +### +### kate: syntax python; +### + +info = dict( + gpu = dict(gen = 16), +) diff --git a/lib/caps/PTL/vaon12 b/lib/caps/PTL/vaon12 new file mode 100644 index 00000000..3b510a9e --- /dev/null +++ b/lib/caps/PTL/vaon12 @@ -0,0 +1,63 @@ +### +### Copyright (C) 2024 Intel Corporation +### +### SPDX-License-Identifier: BSD-3-Clause +### + +### +### kate: syntax python; +### + +# https://github.com/intel/media-driver/blob/master/docs/media_features.md +caps = dict( + decode = dict( + avc = dict(minres = res64, maxres = res4k, fmts = ["NV12"]), + hevc_8 = dict( + minres = res64, + maxres = res16k, + fmts = ["NV12"], + features = dict(scc = False, msp = True), + ), + hevc_10 = dict(minres = res64, maxres = res16k , fmts = ["P010"]), + vp9_8 = dict(minres = res64, maxres = res16k , fmts = ["NV12"]), + vp9_10 = dict(minres = res64, maxres = res16k , fmts = ["P010"]), + av1_8 = dict(minres = res64, maxres = res16k , fmts = ["NV12"]), + av1_10 = dict(minres = res64, maxres = res16k , fmts = ["P010"]), + vvc_8 = dict(maxres = res16k , fmts = ["NV12"]), + vvc_10 = dict(maxres = res16k , fmts = ["P010"]), + ), + encode = dict( + avc = dict(maxres = res4k , fmts = ["NV12"], bframes = False), + hevc_8 = dict( + maxres = res16k, + fmts = ["NV12"], + features = dict(scc = False), + ), + hevc_10 = dict(maxres = res16k , fmts = ["P010"]), + ), + vpp = dict( + crop = dict( + ifmts = ["NV12", "P010", "YUY2", "UYVY", "AYUV", "Y410", "BGRA"], + ofmts = ["NV12", "P010", "YUY2", "AYUV", "Y410", "BGRA"], + ), + deinterlace = dict( + bob = dict( + ifmts = ["NV12", "YV12", "P010", "YUY2"], + ofmts = ["NV12", "YV12", "P010", "YUY2"], + ), + motion_adaptive = dict( + ifmts = ["NV12", "P010", "YUY2"], + ofmts = ["NV12", "P010", "YUY2"], + ), + ), + scale = dict( + ifmts = ["NV12", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"], + ofmts = ["NV12", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA"], + ), + # colorspace conversion + csc = dict( + ifmts = ["NV12", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"], + ofmts = ["NV12", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA"], + ), + ), +) From 75ad37e950c50d71cd9db4b87c7f7a9626f89962 Mon Sep 17 00:00:00 2001 From: aschuch1 Date: Tue, 16 Sep 2025 11:47:18 -0700 Subject: [PATCH 2/3] adding renderd129 --- lib/gstreamer/d3d11/decoder.py | 2 +- lib/gstreamer/d3d12/decoder.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/gstreamer/d3d11/decoder.py b/lib/gstreamer/d3d11/decoder.py index a23939a0..f69774f3 100644 --- a/lib/gstreamer/d3d11/decoder.py +++ b/lib/gstreamer/d3d11/decoder.py @@ -44,7 +44,7 @@ def decode_test_class(codec, bitdepth, **kwargs): }.get(codec, f"{gstcodec}parse") hwdevice = get_media().render_device.split('/')[-1] - hw = hwdevice if hwdevice not in ['renderD128', '0'] else "" + hw = hwdevice if hwdevice not in ['renderD128', 'renderD129','0'] else "" @slash.requires(*have_gst_element(f"d3d11{hw}{gstcodec}dec")) @slash.requires(*platform.have_caps("decode", capcodec)) diff --git a/lib/gstreamer/d3d12/decoder.py b/lib/gstreamer/d3d12/decoder.py index fa55d1fc..6d0cc111 100644 --- a/lib/gstreamer/d3d12/decoder.py +++ b/lib/gstreamer/d3d12/decoder.py @@ -41,7 +41,7 @@ def decode_test_class(codec, bitdepth, **kwargs): }.get(codec, f"{gstcodec}parse") hwdevice = get_media().render_device.split('/')[-1] - hw = hwdevice if hwdevice not in ['renderD128', '0'] else "" + hw = hwdevice if hwdevice not in ['renderD128','renderD129','0'] else "" @slash.requires(*have_gst_element(f"d3d12{hw}{gstcodec}dec")) @slash.requires(*platform.have_caps("decode", capcodec)) From e31c587b9956b0da2c10a113691a35c318c781a2 Mon Sep 17 00:00:00 2001 From: aschuch1 Date: Tue, 16 Sep 2025 15:28:26 -0700 Subject: [PATCH 3/3] Revert "Enabling PTL" This reverts commit 7e24a0201195c09a3811f192047c4e733c797fcf. --- lib/caps/PTL/d3d11 | 112 -------------------------------------------- lib/caps/PTL/d3d12 | 112 -------------------------------------------- lib/caps/PTL/iHD | 112 -------------------------------------------- lib/caps/PTL/info | 13 ----- lib/caps/PTL/vaon12 | 63 ------------------------- 5 files changed, 412 deletions(-) delete mode 100644 lib/caps/PTL/d3d11 delete mode 100644 lib/caps/PTL/d3d12 delete mode 100644 lib/caps/PTL/iHD delete mode 100644 lib/caps/PTL/info delete mode 100644 lib/caps/PTL/vaon12 diff --git a/lib/caps/PTL/d3d11 b/lib/caps/PTL/d3d11 deleted file mode 100644 index fbfaac01..00000000 --- a/lib/caps/PTL/d3d11 +++ /dev/null @@ -1,112 +0,0 @@ -### -### Copyright (C) 2024 Intel Corporation -### -### SPDX-License-Identifier: BSD-3-Clause -### - -### -### kate: syntax python; -### - -# https://github.com/intel/media-driver/blob/master/docs/media_features.md -caps = dict( - decode = dict( - avc = dict(maxres = res4k , fmts = ["NV12"]), - mpeg2 = dict(maxres = res2k , fmts = ["NV12"]), - jpeg = dict(maxres = res16k, fmts = ["NV12", "411P", "422H", "422V", "444P", "Y800"]), - hevc_8 = dict( - maxres = res8k, - fmts = ["NV12", "YUY2", "AYUV"], - features = dict(scc = True, msp = True), - ), - hevc_10 = dict(maxres = res8k , fmts = ["P010", "Y210", "Y410"]), - hevc_12 = dict(maxres = res8k , fmts = ["P012", "Y212", "Y412"]), - vp9_8 = dict(maxres = res8k , fmts = ["NV12", "AYUV"]), - vp9_10 = dict(maxres = res8k , fmts = ["P010", "Y410"]), - vp9_12 = dict(maxres = res8k , fmts = ["P012", "Y412"]), - av1_8 = dict(maxres = res8k , fmts = ["NV12"]), - av1_10 = dict(maxres = res8k , fmts = ["P010"]), - vvc_8 = dict(maxres = res16k , fmts = ["NV12"]), - vvc_10 = dict(maxres = res16k , fmts = ["P010"]), - ), - encode = dict( - avc = dict(maxres = res4k , fmts = ["NV12", "YUY2", "YUYV", "YVYU", "UYVY", "AYUV"]), - hevc_8 = dict( - maxres = res8k, - fmts = ["NV12", "AYUV"], - features = dict(scc = True), - ), - hevc_10 = dict(maxres = res8k , fmts = ["P010", "Y410"]), - vp9_8 = dict(maxres = res8k , fmts = ["NV12", "AYUV"]), - av1_8 = dict( - maxres = res8k, - fmts = ["NV12"], - ), - av1_10 = dict( - maxres = res8k, - fmts = ["P010"], - ), - vp9_10 = dict(maxres = res8k , fmts = ["P010", "Y410"]), - ), - vdenc = dict( - jpeg = dict(maxres = res16k, fmts = ["NV12", "YUY2", "UYVY", "Y800"]), - ), - vpp = dict( - # brightness, contrast, hue and saturation - procamp = dict( - ifmts = ["NV12", "P010", "YUY2", "Y210", "AYUV", "Y410"], - ofmts = ["NV12", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA"], - ), - # mirroring and rotation - transpose = dict( - ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"], - ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA"], - ), - crop = dict( - ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "AYUV", "Y410", "BGRA"], - ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "AYUV", "Y410", "BGRA"], - ), - sharpen = dict( - ifmts = ["NV12", "P010", "YUY2", "UYVY", "AYUV", "Y410", "BGRA"], - ofmts = ["NV12", "P010", "YUY2", "AYUV", "Y410", "BGRA"], - ), - deinterlace = dict( - bob = dict( - ifmts = ["NV12", "YV12", "P010", "YUY2"], - ofmts = ["NV12", "YV12", "P010", "YUY2"], - ), - motion_adaptive = dict( - ifmts = ["NV12", "P010", "YUY2"], - ofmts = ["NV12", "P010", "YUY2"], - ), - ), - denoise = dict( - ifmts = ["NV12", "P010", "YUY2"], - ofmts = ["NV12", "P010", "YUY2"], - ), - scale = dict( - ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"], - ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA"], - ), - # colorspace conversion - csc = dict( - ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"], - ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA", "BGRX"], - ), - blend = dict( - ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"], - ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA", "BGRX"], - ), - # tonemap - tonemap = dict( - h2s = dict( - ifmts = ["P010"], - ofmts = ["NV12", "P010"], - ), - ), - range = dict( - ifmts = ["NV12", "P010"], - ofmts = ["NV12", "P010"], - ), - ), -) diff --git a/lib/caps/PTL/d3d12 b/lib/caps/PTL/d3d12 deleted file mode 100644 index fbfaac01..00000000 --- a/lib/caps/PTL/d3d12 +++ /dev/null @@ -1,112 +0,0 @@ -### -### Copyright (C) 2024 Intel Corporation -### -### SPDX-License-Identifier: BSD-3-Clause -### - -### -### kate: syntax python; -### - -# https://github.com/intel/media-driver/blob/master/docs/media_features.md -caps = dict( - decode = dict( - avc = dict(maxres = res4k , fmts = ["NV12"]), - mpeg2 = dict(maxres = res2k , fmts = ["NV12"]), - jpeg = dict(maxres = res16k, fmts = ["NV12", "411P", "422H", "422V", "444P", "Y800"]), - hevc_8 = dict( - maxres = res8k, - fmts = ["NV12", "YUY2", "AYUV"], - features = dict(scc = True, msp = True), - ), - hevc_10 = dict(maxres = res8k , fmts = ["P010", "Y210", "Y410"]), - hevc_12 = dict(maxres = res8k , fmts = ["P012", "Y212", "Y412"]), - vp9_8 = dict(maxres = res8k , fmts = ["NV12", "AYUV"]), - vp9_10 = dict(maxres = res8k , fmts = ["P010", "Y410"]), - vp9_12 = dict(maxres = res8k , fmts = ["P012", "Y412"]), - av1_8 = dict(maxres = res8k , fmts = ["NV12"]), - av1_10 = dict(maxres = res8k , fmts = ["P010"]), - vvc_8 = dict(maxres = res16k , fmts = ["NV12"]), - vvc_10 = dict(maxres = res16k , fmts = ["P010"]), - ), - encode = dict( - avc = dict(maxres = res4k , fmts = ["NV12", "YUY2", "YUYV", "YVYU", "UYVY", "AYUV"]), - hevc_8 = dict( - maxres = res8k, - fmts = ["NV12", "AYUV"], - features = dict(scc = True), - ), - hevc_10 = dict(maxres = res8k , fmts = ["P010", "Y410"]), - vp9_8 = dict(maxres = res8k , fmts = ["NV12", "AYUV"]), - av1_8 = dict( - maxres = res8k, - fmts = ["NV12"], - ), - av1_10 = dict( - maxres = res8k, - fmts = ["P010"], - ), - vp9_10 = dict(maxres = res8k , fmts = ["P010", "Y410"]), - ), - vdenc = dict( - jpeg = dict(maxres = res16k, fmts = ["NV12", "YUY2", "UYVY", "Y800"]), - ), - vpp = dict( - # brightness, contrast, hue and saturation - procamp = dict( - ifmts = ["NV12", "P010", "YUY2", "Y210", "AYUV", "Y410"], - ofmts = ["NV12", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA"], - ), - # mirroring and rotation - transpose = dict( - ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"], - ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA"], - ), - crop = dict( - ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "AYUV", "Y410", "BGRA"], - ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "AYUV", "Y410", "BGRA"], - ), - sharpen = dict( - ifmts = ["NV12", "P010", "YUY2", "UYVY", "AYUV", "Y410", "BGRA"], - ofmts = ["NV12", "P010", "YUY2", "AYUV", "Y410", "BGRA"], - ), - deinterlace = dict( - bob = dict( - ifmts = ["NV12", "YV12", "P010", "YUY2"], - ofmts = ["NV12", "YV12", "P010", "YUY2"], - ), - motion_adaptive = dict( - ifmts = ["NV12", "P010", "YUY2"], - ofmts = ["NV12", "P010", "YUY2"], - ), - ), - denoise = dict( - ifmts = ["NV12", "P010", "YUY2"], - ofmts = ["NV12", "P010", "YUY2"], - ), - scale = dict( - ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"], - ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA"], - ), - # colorspace conversion - csc = dict( - ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"], - ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA", "BGRX"], - ), - blend = dict( - ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"], - ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA", "BGRX"], - ), - # tonemap - tonemap = dict( - h2s = dict( - ifmts = ["P010"], - ofmts = ["NV12", "P010"], - ), - ), - range = dict( - ifmts = ["NV12", "P010"], - ofmts = ["NV12", "P010"], - ), - ), -) diff --git a/lib/caps/PTL/iHD b/lib/caps/PTL/iHD deleted file mode 100644 index 14be3aad..00000000 --- a/lib/caps/PTL/iHD +++ /dev/null @@ -1,112 +0,0 @@ -### -### Copyright (C) 2024 Intel Corporation -### -### SPDX-License-Identifier: BSD-3-Clause -### - -### -### kate: syntax python; -### - -# https://github.com/intel/media-driver/blob/master/docs/media_features.md -caps = dict( - decode = dict( - avc = dict(maxres = res4k , fmts = ["NV12"]), - avc_10 = dict(maxres = res4k, fmts = ["P010", "P210"]), - mpeg2 = dict(maxres = res2k , fmts = ["NV12"]), - jpeg = dict(maxres = res16k, fmts = ["NV12", "411P", "422H", "422V", "444P", "Y800"]), - hevc_8 = dict( - maxres = res8k, - fmts = ["NV12", "YUY2", "AYUV"], - features = dict(scc = True, msp = True), - ), - hevc_10 = dict(maxres = res8k , fmts = ["P010", "Y210", "Y410"]), - hevc_12 = dict(maxres = res8k , fmts = ["P012", "Y212", "Y412"]), - vp8 = dict(maxres = res4k , fmts = ["NV12"]), - vp9_8 = dict(maxres = res8k , fmts = ["NV12", "AYUV"]), - vp9_10 = dict(maxres = res8k , fmts = ["P010", "Y410"]), - vp9_12 = dict(maxres = res8k , fmts = ["P012", "Y412"]), - av1_8 = dict(maxres = res8k , fmts = ["NV12", "YUV444"]), - av1_10 = dict(maxres = res8k , fmts = ["P010", "P410"]), - vvc_8 = dict(maxres = res16k , fmts = ["NV12"]), - vvc_10 = dict(maxres = res16k , fmts = ["P010"]), - ), - encode = dict( - avc = dict(maxres = res4k , fmts = ["NV12", "YUY2", "YUYV", "YVYU", "UYVY", "AYUV"]), - hevc_8 = dict( - maxres = res8k, - fmts = ["NV12", "AYUV"], - features = dict(scc = True), - ), - hevc_10 = dict(maxres = res8k , fmts = ["P010", "Y410"]), - av1_8 = dict( - maxres = res16k, - fmts = ["NV12"], - ), - av1_10 = dict( - maxres = res8k, - fmts = ["P010"], - ), - ), - vdenc = dict( - jpeg = dict(maxres = res16k, fmts = ["NV12", "YUY2", "UYVY", "Y800"]), - ), - vpp = dict( - # brightness, contrast, hue and saturation - procamp = dict( - ifmts = ["NV12", "P010", "YUY2", "Y210", "AYUV", "Y410"], - ofmts = ["NV12", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA"], - ), - # mirroring and rotation - transpose = dict( - ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"], - ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA"], - ), - crop = dict( - ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "AYUV", "Y410", "BGRA"], - ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "AYUV", "Y410", "BGRA"], - ), - sharpen = dict( - ifmts = ["NV12", "P010", "YUY2", "UYVY", "AYUV", "Y410", "BGRA"], - ofmts = ["NV12", "P010", "YUY2", "AYUV", "Y410", "BGRA"], - ), - deinterlace = dict( - bob = dict( - ifmts = ["NV12", "YV12", "P010", "YUY2"], - ofmts = ["NV12", "YV12", "P010", "YUY2"], - ), - motion_adaptive = dict( - ifmts = ["NV12", "P010", "YUY2"], - ofmts = ["NV12", "P010", "YUY2"], - ), - ), - denoise = dict( - ifmts = ["NV12", "P010", "YUY2"], - ofmts = ["NV12", "P010", "YUY2"], - ), - scale = dict( - ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"], - ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA"], - ), - # colorspace conversion - csc = dict( - ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"], - ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA", "BGRX"], - ), - blend = dict( - ifmts = ["NV12", "YV12", "I420", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"], - ofmts = ["NV12", "YV12", "I420", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA", "BGRX"], - ), - # tonemap - tonemap = dict( - h2s = dict( - ifmts = ["P010"], - ofmts = ["NV12", "P010"], - ), - ), - range = dict( - ifmts = ["NV12", "P010"], - ofmts = ["NV12", "P010"], - ), - ), -) diff --git a/lib/caps/PTL/info b/lib/caps/PTL/info deleted file mode 100644 index 93136f24..00000000 --- a/lib/caps/PTL/info +++ /dev/null @@ -1,13 +0,0 @@ -### -### Copyright (C) 2024 Intel Corporation -### -### SPDX-License-Identifier: BSD-3-Clause -### - -### -### kate: syntax python; -### - -info = dict( - gpu = dict(gen = 16), -) diff --git a/lib/caps/PTL/vaon12 b/lib/caps/PTL/vaon12 deleted file mode 100644 index 3b510a9e..00000000 --- a/lib/caps/PTL/vaon12 +++ /dev/null @@ -1,63 +0,0 @@ -### -### Copyright (C) 2024 Intel Corporation -### -### SPDX-License-Identifier: BSD-3-Clause -### - -### -### kate: syntax python; -### - -# https://github.com/intel/media-driver/blob/master/docs/media_features.md -caps = dict( - decode = dict( - avc = dict(minres = res64, maxres = res4k, fmts = ["NV12"]), - hevc_8 = dict( - minres = res64, - maxres = res16k, - fmts = ["NV12"], - features = dict(scc = False, msp = True), - ), - hevc_10 = dict(minres = res64, maxres = res16k , fmts = ["P010"]), - vp9_8 = dict(minres = res64, maxres = res16k , fmts = ["NV12"]), - vp9_10 = dict(minres = res64, maxres = res16k , fmts = ["P010"]), - av1_8 = dict(minres = res64, maxres = res16k , fmts = ["NV12"]), - av1_10 = dict(minres = res64, maxres = res16k , fmts = ["P010"]), - vvc_8 = dict(maxres = res16k , fmts = ["NV12"]), - vvc_10 = dict(maxres = res16k , fmts = ["P010"]), - ), - encode = dict( - avc = dict(maxres = res4k , fmts = ["NV12"], bframes = False), - hevc_8 = dict( - maxres = res16k, - fmts = ["NV12"], - features = dict(scc = False), - ), - hevc_10 = dict(maxres = res16k , fmts = ["P010"]), - ), - vpp = dict( - crop = dict( - ifmts = ["NV12", "P010", "YUY2", "UYVY", "AYUV", "Y410", "BGRA"], - ofmts = ["NV12", "P010", "YUY2", "AYUV", "Y410", "BGRA"], - ), - deinterlace = dict( - bob = dict( - ifmts = ["NV12", "YV12", "P010", "YUY2"], - ofmts = ["NV12", "YV12", "P010", "YUY2"], - ), - motion_adaptive = dict( - ifmts = ["NV12", "P010", "YUY2"], - ofmts = ["NV12", "P010", "YUY2"], - ), - ), - scale = dict( - ifmts = ["NV12", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"], - ofmts = ["NV12", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA"], - ), - # colorspace conversion - csc = dict( - ifmts = ["NV12", "P010", "YUY2", "UYVY", "Y210", "AYUV", "Y410", "BGRA"], - ofmts = ["NV12", "P010", "YUY2", "Y210", "AYUV", "Y410", "BGRA"], - ), - ), -)