|
| 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 | +) |
0 commit comments