Debian Codegraph @

media_driver/media_interface/media_interfaces_m9_glk/media_interfaces_g9_glk.h

raw
1 /*
2 * Copyright (c) 2017-2018, 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_g9_glk.h
24 //! \brief All interfaces used for GLK that require factory creation
25 //!
26
27 #ifndef __MEDIA_INTERFACES_G9_GLK_H__
28 #define __MEDIA_INTERFACES_G9_GLK_H__
29 #include "media_factory.h"
30 #include "media_interfaces_cmhal.h"
31 #include "media_interfaces_vphal.h"
32 #include "media_interfaces_decode_histogram.h"
33
34 #ifdef _HEVC_ENCODE_VME_SUPPORTED
35 #include "codechal_encode_hevc_g9_glk.h"
36 #endif
37
38 #ifdef _AVC_ENCODE_VME_SUPPORTED
39 #include "codechal_encode_avc_g9_kbl.h"
40 #endif
41 #ifdef _AVC_ENCODE_VDENC_SUPPORTED
42 #include "codechal_vdenc_avc_g9_kbl.h"
43 #endif
44 #ifdef _VP8_ENCODE_SUPPORTED
45 #include "codechal_encode_vp8_g9.h"
46 #endif
47 #include "codechal_decode_nv12top010_g9_glk.h"
48 #include "cm_hal_g9.h"
49 #include "vphal_g9_glk.h"
50
51 #include "codechal_decode_histogram_vebox_g9.h"
52
53 class CMHalInterfacesG9Glk : public CMHalDevice
54 {
55 protected:
56 using CMHal = CM_HAL_G9_X;
57 MOS_STATUS Initialize(
58 CM_HAL_STATE *pCmState);
59 };
60
61 class VphalInterfacesG9Glk : public VphalDevice
62 {
63 public:
64 using VphalState = VphalStateG9Glk;
65
66 MOS_STATUS Initialize(
67 PMOS_INTERFACE osInterface,
68 bool bInitVphalState,
69 MOS_STATUS *eStatus,
70 bool clearViewMode = false);
71 };
72
73 class CodechalEncodeInterfacesG9Glk
74 {
75 public:
76 #ifdef _JPEG_ENCODE_SUPPORTED
77 using Jpeg = CodechalEncodeJpegState;
78 #endif
79 #ifdef _MPEG2_ENCODE_VME_SUPPORTED
80 using Mpeg2 = CodechalEncodeMpeg2G9;
81 #endif
82 using CscDs = CodechalEncodeCscDsG9;
83 #ifdef _HEVC_ENCODE_VME_SUPPORTED
84 using HevcEnc = CodechalEncHevcStateG9Glk;
85 #endif
86 #ifdef _AVC_ENCODE_VME_SUPPORTED
87 using AvcEnc = CodechalEncodeAvcEncG9Kbl;
88 #endif
89 #ifdef _AVC_ENCODE_VDENC_SUPPORTED
90 using AvcVdenc = CodechalVdencAvcStateG9Kbl;
91 #endif
92 #ifdef _VP8_ENCODE_SUPPORTED
93 using Vp8 = CodechalEncodeVp8G9;
94 #endif
95 };
96
97 class CodechalInterfacesG9Glk : public CodechalDevice
98 {
99 public:
100 using Decode = CodechalDecodeInterfacesG9Kbl;
101 using Encode = CodechalEncodeInterfacesG9Glk;
102 using Hw = CodechalHwInterfaceG9Kbl;
103
104 MOS_STATUS Initialize(
105 void *standardInfo,
106 void *settings,
107 MhwInterfaces *mhwInterfaces,
108 PMOS_INTERFACE osInterface) override;
109 };
110
111 class Nv12ToP010DeviceG9Glk : public Nv12ToP010Device
112 {
113 public:
114 using Nv12ToP010 = CodechalDecodeNv12ToP010G9Glk;
115
116 MOS_STATUS Initialize(
117 PMOS_INTERFACE osInterface);
118 };
119
120 class DecodeHistogramDeviceG9Glk : public DecodeHistogramDevice
121 {
122 public:
123 using DecodeHistogramVebox = CodechalDecodeHistogramVeboxG9;
124
125 MOS_STATUS Initialize(
126 CodechalHwInterface *hwInterface,
127 PMOS_INTERFACE osInterface);
128 };
129
130 #endif // __MEDIA_INTERFACES_G9_GLK_H__