Debian Codegraph @

media_softlet/media_interface/media_interfaces_nvl/media_interfaces_nvls.h

raw
1 /*===================== begin_copyright_notice ==================================
2 Copyright (c) 2026, Intel Corporation
3
4 # Permission is hereby granted, free of charge, to any person obtaining a
5 # copy of this software and associated documentation files (the "Software"),
6 # to deal in the Software without restriction, including without limitation
7 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 # and/or sell copies of the Software, and to permit persons to whom the
9 # Software is furnished to do so, subject to the following conditions:
10
11 # The above copyright notice and this permission notice shall be included
12 # in all copies or substantial portions of the Software.
13
14 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
18 # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19 # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20 # OTHER DEALINGS IN THE SOFTWARE.
21 ======================= end_copyright_notice ==================================*/
22 //!
23 //! \file media_interfaces_nvls.h
24 //! \brief All interfaces used for NVL_Xe3G that require factory creation
25 //!
26
27 #ifndef __MEDIA_INTERFACES_NVL_XE3G_H__
28 #define __MEDIA_INTERFACES_NVL_XE3G_H__
29
30 #include "media_interfaces_mhw_next.h"
31 #include "media_interfaces_codechal_next.h"
32 #include "media_interfaces_vphal.h"
33 #include "media_interfaces_renderhal.h"
34 #include "media_interfaces_hwinfo_device.h"
35 #include "media_interfaces_mcpy_next.h"
36 #include "media_interfaces_huc_kernel_source.h"
37
38 #include "mhw_cp_interface.h"
39 #include "mhw_state_heap_xe2_hpg.h"
40 #include "renderhal_xe2_hpg_next.h"
41 #include "media_copy_xe3p_lpm_base.h"
42 #include "decode_scalability_singlepipe_next.h"
43 #include "decode_scalability_multipipe_next.h"
44
45 #ifdef _AVC_DECODE_SUPPORTED
46 #include "decode_avc_pipeline_adapter_xe3p_lpm_base.h"
47 #endif
48
49 #ifdef _HEVC_DECODE_SUPPORTED
50 #include "decode_hevc_pipeline_adapter_xe3p_lpm_base.h"
51 #endif
52
53 #ifdef _JPEG_DECODE_SUPPORTED
54 #include "decode_jpeg_pipeline_adapter_xe3p_lpm_base.h"
55 #endif
56
57 #ifdef _MPEG2_DECODE_SUPPORTED
58 #include "decode_mpeg2_pipeline_adapter_xe3p_lpm_base.h"
59 #endif
60
61 #ifdef _VP9_DECODE_SUPPORTED
62 #include "decode_vp9_pipeline_adapter_xe3p_lpm_base.h"
63 #endif
64
65 #ifdef _VP8_DECODE_SUPPORTED
66 #include "decode_vp8_pipeline_adapter_xe3p_lpm_base.h"
67 #endif
68
69 #ifdef _AV1_DECODE_SUPPORTED
70 #include "decode_av1_pipeline_adapter_xe3p_lpm_base.h"
71 #endif
72
73 #ifdef _VVC_DECODE_SUPPORTED
74 #include "decode_vvc_pipeline_adapter_xe3p_lpm_base.h"
75 #endif
76
77 #ifdef _JPEG_ENCODE_SUPPORTED
78 #include "encode_jpeg_pipeline_adapter_xe3p_lpm_base.h"
79 #endif
80
81 #ifdef _VP9_ENCODE_VDENC_SUPPORTED
82 #include "encode_vp9_vdenc_pipeline_adapter_xe3p_lpm_base.h"
83 #endif
84
85 #ifdef _MEDIA_RESERVED
86 #ifdef _HEVC_ENCODE_VDENC_SUPPORTED
87 #include "encode_hevc_vdenc_pipeline_adapter_xe3p_lpm_base.h"
88 #endif
89
90 #ifdef _AV1_ENCODE_VDENC_SUPPORTED
91 #include "encode_av1_vdenc_pipeline_adapter_xe3p_lpm.h"
92 #endif
93
94 #ifdef _AVC_ENCODE_VDENC_SUPPORTED
95 #include "encode_avc_vdenc_pipeline_adapter_xe3p_lpm.h"
96 #endif
97 #endif
98 class MhwInterfacesNvl_Xe3G : virtual public MhwInterfacesNext
99 {
100 public:
101 using Cp = MhwCpInterface;
102 using StateHeap = MHW_STATE_HEAP_INTERFACE_XE2_HPG;
103
104 virtual MOS_STATUS Initialize(
105 CreateParams params,
106 PMOS_INTERFACE osInterface);
107
108 protected:
109 virtual void InitializeRenderComponent(
110 CreateParams params,
111 PMOS_INTERFACE osInterface);
112
113 MEDIA_CLASS_DEFINE_END(MhwInterfacesNvl_Xe3G)
114 };
115
116 class CodechalDecodeInterfacesXe3P_Lpm
117 {
118 public:
119 #ifdef _AVC_DECODE_SUPPORTED
120 using Avc = DecodeAvcPipelineAdapterXe3P_Lpm_Base;
121 #endif
122 #ifdef _HEVC_DECODE_SUPPORTED
123 using Hevc = DecodeHevcPipelineAdapterXe3P_Lpm_Base;
124 #endif
125 #ifdef _JPEG_DECODE_SUPPORTED
126 using Jpeg = DecodeJpegPipelineAdapterXe3P_Lpm_Base;
127 #endif
128 #ifdef _MPEG2_DECODE_SUPPORTED
129 using Mpeg2 = DecodeMpeg2PipelineAdapterXe3P_Lpm_Base;
130 #endif
131 #ifdef _VP9_DECODE_SUPPORTED
132 using Vp9 = DecodeVp9PipelineAdapterXe3P_Lpm_Base;
133 #endif
134 #ifdef _VP8_DECODE_SUPPORTED
135 using Vp8 = DecodeVp8PipelineAdapterXe3P_Lpm_Base;
136 #endif
137 #ifdef _AV1_DECODE_SUPPORTED
138 using Av1 = DecodeAv1PipelineAdapterXe3P_Lpm_Base;
139 #endif
140 #ifdef _VVC_DECODE_SUPPORTED
141 using Vvc = DecodeVvcPipelineAdapterXe3P_Lpm_Base;
142 #endif
143
144 MEDIA_CLASS_DEFINE_END(CodechalDecodeInterfacesXe3P_Lpm)
145 };
146
147 class CodechalInterfacesXe3P_Lpm : public CodechalDeviceNext
148 {
149 public:
150 using Decode = CodechalDecodeInterfacesXe3P_Lpm;
151 using Hw = CodechalHwInterfaceXe3P_Lpm_Base;
152
153 MOS_STATUS Initialize(
154 void * standardInfo,
155 void * settings,
156 MhwInterfacesNext *mhwInterfaces,
157 PMOS_INTERFACE osInterface) override;
158
159 MEDIA_CLASS_DEFINE_END(CodechalInterfacesXe3P_Lpm)
160 };
161
162 class VphalInterfacesNvl_Xe3G : public VphalDevice
163 {
164 public:
165 MOS_STATUS Initialize(
166 PMOS_INTERFACE osInterface,
167 bool bInitVphalState,
168 MOS_STATUS * eStatus,
169 bool clearViewMode = false) override;
170
171 MOS_STATUS CreateVpPlatformInterface(
172 PMOS_INTERFACE osInterface,
173 MOS_STATUS * eStatus) override;
174
175 protected:
176 virtual void InitPlatformKernelBinary(
177 vp::VpPlatformInterface *&vpPlatformInterface);
178
179 MEDIA_CLASS_DEFINE_END(VphalInterfacesNvl_Xe3G)
180 };
181
182 class RenderHalInterfacesNvl_Xe3G : public RenderHalDevice
183 {
184 protected:
185 using XRenderHal = XRenderHal_Interface_Xe2_Hpg_Next;
186 MOS_STATUS Initialize();
187
188 MEDIA_CLASS_DEFINE_END(RenderHalInterfacesNvl_Xe3G)
189 };
190
191 class MediaInterfacesHwInfoDeviceXe3P_Lpm : public MediaInterfacesHwInfoDevice
192 {
193 public:
194 virtual MOS_STATUS Initialize(PLATFORM platform) override;
195
196 MEDIA_CLASS_DEFINE_END(MediaInterfacesHwInfoDeviceXe3P_Lpm)
197 };
198
199 class McpyDeviceXe3P_Lpm_Base: public McpyDeviceNextImpl<MediaCopyStateXe3P_Lpm_Base>
200 {
201 protected:
202 virtual MhwInterfacesNext *CreateMhwInterface(
203 PMOS_INTERFACE osInterface)
204 {
205 MhwInterfacesNext::CreateParams params;
206 MOS_ZeroMemory(&params, sizeof(params));
207 params.Flags.m_vebox = true;
208 params.Flags.m_blt = true;
209
210 MhwInterfacesNext *mhw = MhwInterfacesNext::CreateFactory(params, osInterface);
211
212 return mhw;
213 }
214 MEDIA_CLASS_DEFINE_END(McpyDeviceXe3P_Lpm_Base)
215 };
216
217 class HucKernelSourceDeviceXe3P_Lpm : public HucKernelSourceDevice
218 {
219 public:
220 MOS_STATUS Initialize() override;
221
222 MEDIA_CLASS_DEFINE_END(HucKernelSourceDeviceXe3P_Lpm)
223 };
224 #endif // __MEDIA_INTERFACES_NVL_XE3G_H__