Debian Codegraph @

media_driver/media_interface/media_interfaces_m11_icllp/media_interfaces_g11_icllp.h

raw
1 /*
2 * Copyright (c) 2017, 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 */
22 //!
23 //! \file media_interfaces_g11_icllp.h
24 //! \brief All interfaces used for ICLLP that require factory creation
25 //!
26
27 #ifndef __MEDIA_INTERFACES_G11_ICLLP_H__
28 #define __MEDIA_INTERFACES_G11_ICLLP_H__
29
30 #include "media_interfaces_mhw.h"
31 #include "media_interfaces_codechal.h"
32 #include "media_interfaces_mmd.h"
33
34 #include "media_interfaces_cmhal.h"
35
36 #include "media_interfaces_vphal.h"
37 #include "media_interfaces_renderhal.h"
38 #include "media_interfaces_nv12top010.h"
39 #include "media_interfaces_decode_histogram.h"
40 #include "media_interfaces_hwinfo_device.h"
41
42 #include "mhw_cp_interface.h"
43 #include "mhw_mi_g11_X.h"
44 #include "mhw_render_g11_X.h"
45 #include "mhw_sfc_g11_X.h"
46 #include "mhw_state_heap_g11.h"
47 #include "mhw_vebox_g11_X.h"
48 #include "mhw_vdbox_mfx_g11_X.h"
49 #include "mhw_vdbox_hcp_g11_X.h"
50 #include "mhw_vdbox_huc_g11_X.h"
51 #include "mhw_vdbox_vdenc_g11_X.h"
52
53 #include "codechal_hw_g11_X.h"
54
55 #ifdef _AVC_DECODE_SUPPORTED
56 #include "codechal_decode_avc_g11.h"
57 #endif
58
59 #include "codechal_decode_downsampling_g11_icllp.h"
60
61 #ifdef _HEVC_DECODE_SUPPORTED
62 #include "codechal_decode_hevc_g11.h"
63 #endif
64
65 #ifdef _JPEG_DECODE_SUPPORTED
66 #include "codechal_decode_jpeg_g11.h"
67 #endif
68
69 #ifdef _MPEG2_DECODE_SUPPORTED
70 #include "codechal_decode_mpeg2_g11.h"
71 #endif
72
73 #ifdef _VC1_DECODE_SUPPORTED
74 #include "codechal_decode_vc1_g11.h"
75 #endif
76
77 #ifdef _VP8_DECODE_SUPPORTED
78 #include "codechal_decode_vp8_g11.h"
79 #endif
80
81 #ifdef _VP9_DECODE_SUPPORTED
82 #include "codechal_decode_vp9_g11.h"
83 #endif
84
85 #include "codechal_memdecomp_g11_icllp.h"
86 #ifdef _AVC_ENCODE_VME_SUPPORTED
87 #include "codechal_encode_avc_g11_lp.h"
88 #endif
89 #ifdef _AVC_ENCODE_VDENC_SUPPORTED
90 #include "codechal_vdenc_avc_g11_lp.h"
91 #endif
92 #include "codechal_encode_sfc.h"
93 #include "codechal_encode_csc_ds_g11.h"
94
95 #ifdef _VP9_ENCODE_VDENC_SUPPORTED
96 #include "codechal_vdenc_vp9_g11.h"
97 #endif
98
99 #ifdef _JPEG_ENCODE_SUPPORTED
100 #include "codechal_encode_jpeg_g11.h"
101 #endif
102
103 #ifdef _MPEG2_ENCODE_VME_SUPPORTED
104 #include "codechal_encode_mpeg2_g11.h"
105 #endif
106
107 #ifdef _HEVC_ENCODE_VME_SUPPORTED
108 #include "codechal_encode_hevc_g11.h"
109 #endif
110 #ifdef _HEVC_ENCODE_VDENC_SUPPORTED
111 #include "codechal_vdenc_hevc_g11.h"
112 #endif
113
114 #ifdef _VP8_ENCODE_SUPPORTED
115 #include "codechal_encode_vp8_g11.h"
116 #endif
117
118 #include "cm_hal_g11.h"
119
120 #include "mos_util_user_interface.h"
121 #include "vphal_g11_icllp.h"
122
123 #include "renderhal_g11.h"
124
125 #include "codechal_decode_histogram_vebox_g11.h"
126
127 class MhwInterfacesG11Icllp : public MhwInterfaces
128 {
129 public:
130 using Mi = MhwMiInterfaceG11;
131 using Cp = MhwCpInterface;
132 using Render = MhwRenderInterfaceG11;
133 using Sfc = MhwSfcInterfaceG11;
134 using StateHeap = MHW_STATE_HEAP_INTERFACE_G11_X;
135 using Mfx = MhwVdboxMfxInterfaceG11;
136 using Hcp = MhwVdboxHcpInterfaceG11;
137 using Huc = MhwVdboxHucInterfaceG11;
138 using Vdenc = MhwVdboxVdencInterfaceG11Icl;
139 using Vebox = MhwVeboxInterfaceG11;
140
141 MOS_STATUS Initialize(
142 CreateParams params,
143 PMOS_INTERFACE osInterface);
144 };
145
146 class MmdDeviceG11Icllp : public MmdDevice
147 {
148 public:
149 using Mmd = MediaMemDecompStateIcllp;
150
151 MOS_STATUS Initialize(
152 PMOS_INTERFACE osInterface,
153 MhwInterfaces *mhwInterfaces);
154 };
155
156 class Nv12ToP010DeviceG11Icllp : public Nv12ToP010Device
157 {
158 public:
159
160 MOS_STATUS Initialize(
161 PMOS_INTERFACE osInterface);
162 };
163
164 class CodechalDecodeInterfacesG11Icllp
165 {
166 public:
167 #ifdef _AVC_DECODE_SUPPORTED
168 using Avc = CodechalDecodeAvcG11;
169 #endif
170 #ifdef _HEVC_DECODE_SUPPORTED
171 using Hevc = CodechalDecodeHevcG11;
172 #endif
173 #ifdef _JPEG_DECODE_SUPPORTED
174 using Jpeg = CodechalDecodeJpegG11;
175 #endif
176 #ifdef _MPEG2_DECODE_SUPPORTED
177 using Mpeg2 = CodechalDecodeMpeg2G11;
178 #endif
179 #ifdef _VC1_DECODE_SUPPORTED
180 using Vc1 = CodechalDecodeVc1G11;
181 #endif
182 #ifdef _VP8_DECODE_SUPPORTED
183 using Vp8 = CodechalDecodeVp8G11;
184 #endif
185 #ifdef _VP9_DECODE_SUPPORTED
186 using Vp9 = CodechalDecodeVp9G11;
187 #endif
188 #ifdef _DECODE_PROCESSING_SUPPORTED
189 using FieldScaling = FieldScalingInterfaceG11IclLp;
190 #endif
191 };
192
193 class CodechalEncodeInterfacesG11Icllp
194 {
195 public:
196 #ifdef _AVC_ENCODE_VME_SUPPORTED
197 using AvcEnc = CodechalEncodeAvcEncG11LP;
198 #endif
199 #ifdef _AVC_ENCODE_VDENC_SUPPORTED
200 using AvcVdenc = CodechalVdencAvcStateG11LP;
201 #endif
202 using CscDs = CodechalEncodeCscDsG11;
203 #ifdef _VP9_ENCODE_VDENC_SUPPORTED
204 using Vp9 = CodechalVdencVp9StateG11;
205 #endif
206 #ifdef _JPEG_ENCODE_SUPPORTED
207 using Jpeg = CodechalEncodeJpegStateG11;
208 #endif
209 #ifdef _MPEG2_ENCODE_VME_SUPPORTED
210 using Mpeg2 = CodechalEncodeMpeg2G11;
211 #endif
212 #ifdef _HEVC_ENCODE_VME_SUPPORTED
213 using HevcEnc = CodechalEncHevcStateG11;
214 #endif
215 #ifdef _HEVC_ENCODE_VDENC_SUPPORTED
216 using HevcVdenc = CodechalVdencHevcStateG11;
217 #endif
218 #ifdef _VP8_ENCODE_SUPPORTED
219 using Vp8 = CodechalEncodeVp8G11;
220 #endif
221 };
222
223 class CodechalInterfacesG11Icllp : public CodechalDevice
224 {
225 public:
226 using Decode = CodechalDecodeInterfacesG11Icllp;
227 using Hw = CodechalHwInterfaceG11;
228 using Encode = CodechalEncodeInterfacesG11Icllp;
229
230 MOS_STATUS Initialize(
231 void *standardInfo,
232 void *settings,
233 MhwInterfaces *mhwInterfaces,
234 PMOS_INTERFACE osInterface) override;
235 };
236
237
238 class CMHalInterfacesG11Icllp : public CMHalDevice
239 {
240 protected:
241 using CMHal = CM_HAL_G11_X;
242 MOS_STATUS Initialize(
243 CM_HAL_STATE *pCmState);
244 };
245
246 class VphalInterfacesG11Icllp : public VphalDevice
247 {
248 public:
249 using VphalState = VphalStateG11Icllp;
250
251 MOS_STATUS Initialize(
252 PMOS_INTERFACE osInterface,
253 bool bInitVphalState,
254 MOS_STATUS *eStatus,
255 bool clearViewMode = false);
256 };
257
258 class RenderHalInterfacesG11Icllp : public RenderHalDevice
259 {
260 protected:
261 using XRenderHal = XRenderHal_Interface_g11;
262 MOS_STATUS Initialize();
263 };
264
265 class DecodeHistogramDeviceG11Icllp : public DecodeHistogramDevice
266 {
267 public:
268 using DecodeHistogramVebox = CodechalDecodeHistogramVeboxG11;
269
270 MOS_STATUS Initialize(
271 CodechalHwInterface *hwInterface,
272 PMOS_INTERFACE osInterface);
273 };
274
275 class MediaInterfacesHwInfoDeviceG11Icllp : public MediaInterfacesHwInfoDevice
276 {
277 public:
278 MOS_STATUS Initialize(PLATFORM platform);
279 };
280
281 #endif // __MEDIA_INTERFACES_G11_ICLLP_H__