| 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_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 |