| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
#ifndef __MEDIA_INTERFACES_MHW_NEXT_H__ |
| 28 |
#define __MEDIA_INTERFACES_MHW_NEXT_H__ |
| 29 |
|
| 30 |
#include "media_factory.h" |
| 31 |
#include "igfxfmid.h" |
| 32 |
#include "mos_utilities.h" |
| 33 |
#include "mos_os.h" |
| 34 |
#include "mhw_vdbox_avp_itf.h" |
| 35 |
#include "mhw_vdbox_vdenc_itf.h" |
| 36 |
#include "mhw_vdbox_huc_itf.h" |
| 37 |
#include "mhw_mi_itf.h" |
| 38 |
#include "mhw_blt_itf.h" |
| 39 |
#include "mhw_vdbox_hcp_itf.h" |
| 40 |
#include "mhw_vdbox_mfx_itf.h" |
| 41 |
#include "mhw_vebox_itf.h" |
| 42 |
#include "mhw_sfc_itf.h" |
| 43 |
#include "mhw_render_itf.h" |
| 44 |
#include "mhw_vdbox_vvcp_itf.h" |
| 45 |
#include "mhw_vdbox_aqm_itf.h" |
| 46 |
|
| 47 |
|
| 48 |
class MhwCpInterface; |
| 49 |
class MhwSfcInterface; |
| 50 |
class XMHW_STATE_HEAP_INTERFACE; |
| 51 |
class MhwVeboxInterface; |
| 52 |
class MhwVdboxMfxInterface; |
| 53 |
class MhwVdboxHcpInterface; |
| 54 |
class MhwVdboxHucInterface; |
| 55 |
class MhwVdboxVdencInterface; |
| 56 |
class MhwBltInterface; |
| 57 |
class MhwVdboxAvpInterface; |
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
class MhwInterfacesNext |
| 64 |
{ |
| 65 |
public: |
| 66 |
virtual ~MhwInterfacesNext() {} |
| 67 |
|
| 68 |
|
| 69 |
struct CreateParams |
| 70 |
{ |
| 71 |
CreateParams() |
| 72 |
{ |
| 73 |
Flags.m_value = 0; |
| 74 |
} |
| 75 |
|
| 76 |
union |
| 77 |
{ |
| 78 |
struct |
| 79 |
{ |
| 80 |
uint32_t m_render : 1; |
| 81 |
uint32_t m_sfc : 1; |
| 82 |
uint32_t m_stateHeap : 1; |
| 83 |
uint32_t m_vebox : 1; |
| 84 |
uint32_t m_vdboxAll : 1; |
| 85 |
uint32_t m_mfx : 1; |
| 86 |
uint32_t m_hcp : 1; |
| 87 |
uint32_t m_huc : 1; |
| 88 |
uint32_t m_vdenc : 1; |
| 89 |
uint32_t m_blt : 1; |
| 90 |
uint32_t m_avp : 1; |
| 91 |
uint32_t m_reserved : 21; |
| 92 |
}; |
| 93 |
uint32_t m_value; |
| 94 |
} Flags; |
| 95 |
|
| 96 |
uint8_t m_heapMode = 0; |
| 97 |
bool m_isDecode = false; |
| 98 |
bool m_isCp = false; |
| 99 |
bool m_isMos = false; |
| 100 |
}; |
| 101 |
|
| 102 |
|
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
MhwCpInterface *m_cpInterface = nullptr; |
| 107 |
MhwSfcInterface *m_sfcInterface = nullptr; |
| 108 |
XMHW_STATE_HEAP_INTERFACE *m_stateHeapInterface = nullptr; |
| 109 |
MhwVeboxInterface *m_veboxInterface = nullptr; |
| 110 |
MhwBltInterface *m_bltInterface = nullptr; |
| 111 |
PMOS_INTERFACE m_osInterface = nullptr; |
| 112 |
|
| 113 |
std::shared_ptr<mhw::vdbox::avp::Itf> m_avpItf = nullptr; |
| 114 |
std::shared_ptr<mhw::vdbox::vdenc::Itf> m_vdencItf = nullptr; |
| 115 |
std::shared_ptr<mhw::vdbox::huc::Itf> m_hucItf = nullptr; |
| 116 |
std::shared_ptr<mhw::mi::Itf> m_miItf = nullptr; |
| 117 |
std::shared_ptr<mhw::vdbox::hcp::Itf> m_hcpItf = nullptr; |
| 118 |
std::shared_ptr<mhw::vdbox::mfx::Itf> m_mfxItf = nullptr; |
| 119 |
std::shared_ptr<mhw::vebox::Itf> m_veboxItf = nullptr; |
| 120 |
std::shared_ptr<mhw::sfc::Itf> m_sfcItf = nullptr; |
| 121 |
std::shared_ptr<mhw::blt::Itf> m_bltItf = nullptr; |
| 122 |
std::shared_ptr<mhw::render::Itf> m_renderItf = nullptr; |
| 123 |
std::shared_ptr<mhw::vdbox::vvcp::Itf> m_vvcpItf = nullptr; |
| 124 |
std::shared_ptr<mhw::vdbox::aqm::Itf> m_aqmItf = nullptr; |
| 125 |
|
| 126 |
|
| 127 |
|
| 128 |
|
| 129 |
|
| 130 |
|
| 131 |
|
| 132 |
|
| 133 |
|
| 134 |
|
| 135 |
static MhwInterfacesNext* CreateFactory( |
| 136 |
CreateParams params, |
| 137 |
PMOS_INTERFACE osInterface); |
| 138 |
|
| 139 |
|
| 140 |
|
| 141 |
|
| 142 |
|
| 143 |
|
| 144 |
|
| 145 |
|
| 146 |
|
| 147 |
virtual MOS_STATUS Initialize( |
| 148 |
CreateParams params, |
| 149 |
PMOS_INTERFACE osInterface) = 0; |
| 150 |
|
| 151 |
|
| 152 |
|
| 153 |
|
| 154 |
|
| 155 |
virtual void Destroy(); |
| 156 |
|
| 157 |
|
| 158 |
|
| 159 |
|
| 160 |
|
| 161 |
void SetDestroyState(bool destorystate) { m_isDestroyed = destorystate; }; |
| 162 |
bool GetDestroyState() { return m_isDestroyed; }; |
| 163 |
|
| 164 |
private: |
| 165 |
bool m_isDestroyed = false; |
| 166 |
MEDIA_CLASS_DEFINE_END(MhwInterfacesNext) |
| 167 |
}; |
| 168 |
|
| 169 |
extern template class MediaFactory<uint32_t, MhwInterfacesNext>; |
| 170 |
|
| 171 |
#endif |