| 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 mhw_vdbox_mfx_g8_bdw.h |
| 24 |
//! \brief Defines functions for constructing Vdbox MFX commands on BDW |
| 25 |
//! |
| 26 |
|
| 27 |
#ifndef __MHW_VDBOX_MFX_G8_BDW_H__ |
| 28 |
#define __MHW_VDBOX_MFX_G8_BDW_H__ |
| 29 |
|
| 30 |
#include "mhw_vdbox_mfx_g8_X.h" |
| 31 |
#include "mhw_vdbox_mfx_hwcmd_g8_bdw.h" |
| 32 |
|
| 33 |
//! MHW Vdbox Mfx interface for Gen8 BDW platform |
| 34 |
/*! |
| 35 |
This class defines the Mfx command construction functions for Gen8 BDW platform |
| 36 |
*/ |
| 37 |
class MhwVdboxMfxInterfaceG8Bdw : public MhwVdboxMfxInterfaceG8<mhw_vdbox_mfx_g8_bdw> |
| 38 |
{ |
| 39 |
public: |
| 40 |
//! |
| 41 |
//! \brief Constructor |
| 42 |
//! |
| 43 |
MhwVdboxMfxInterfaceG8Bdw( |
| 44 |
PMOS_INTERFACE osInterface, |
| 45 |
MhwMiInterface *miInterface, |
| 46 |
MhwCpInterface *cpInterface, |
| 47 |
bool decodeInUse) : |
| 48 |
MhwVdboxMfxInterfaceG8(osInterface, miInterface, cpInterface, decodeInUse) |
| 49 |
{ |
| 50 |
MHW_FUNCTION_ENTER; |
| 51 |
} |
| 52 |
|
| 53 |
//! |
| 54 |
//! \brief Destructor |
| 55 |
//! |
| 56 |
virtual ~MhwVdboxMfxInterfaceG8Bdw() { MHW_FUNCTION_ENTER; } |
| 57 |
|
| 58 |
protected: |
| 59 |
MOS_STATUS GetRowstoreCachingAddrs( |
| 60 |
PMHW_VDBOX_ROWSTORE_PARAMS rowstoreParams) |
| 61 |
{ |
| 62 |
MOS_UNUSED(rowstoreParams); |
| 63 |
return MOS_STATUS_SUCCESS; |
| 64 |
} |
| 65 |
|
| 66 |
MOS_STATUS AddMfxPipeBufAddrCmd( |
| 67 |
PMOS_COMMAND_BUFFER cmdBuffer, |
| 68 |
PMHW_VDBOX_PIPE_BUF_ADDR_PARAMS params); |
| 69 |
|
| 70 |
MOS_STATUS AddMfxBspBufBaseAddrCmd( |
| 71 |
PMOS_COMMAND_BUFFER cmdBuffer, |
| 72 |
PMHW_VDBOX_BSP_BUF_BASE_ADDR_PARAMS params); |
| 73 |
|
| 74 |
MOS_STATUS AddMfxJpegPicCmd( |
| 75 |
PMOS_COMMAND_BUFFER cmdBuffer, |
| 76 |
PMHW_VDBOX_JPEG_PIC_STATE params); |
| 77 |
|
| 78 |
MOS_STATUS AddMfxJpegEncodePicStateCmd( |
| 79 |
PMOS_COMMAND_BUFFER cmdBuffer, |
| 80 |
MhwVdboxJpegEncodePicState *params) |
| 81 |
{ |
| 82 |
MOS_UNUSED(cmdBuffer); |
| 83 |
MOS_UNUSED(params); |
| 84 |
return MOS_STATUS_PLATFORM_NOT_SUPPORTED;; |
| 85 |
} |
| 86 |
|
| 87 |
MOS_STATUS AddMfxJpegFqmCmd( |
| 88 |
PMOS_COMMAND_BUFFER cmdBuffer, |
| 89 |
PMHW_VDBOX_QM_PARAMS params, |
| 90 |
uint32_t numQuantTables) |
| 91 |
{ |
| 92 |
MOS_UNUSED(cmdBuffer); |
| 93 |
MOS_UNUSED(params); |
| 94 |
return MOS_STATUS_PLATFORM_NOT_SUPPORTED; |
| 95 |
} |
| 96 |
|
| 97 |
MOS_STATUS AddMfcJpegHuffTableStateCmd( |
| 98 |
PMOS_COMMAND_BUFFER cmdBuffer, |
| 99 |
PMHW_VDBOX_ENCODE_HUFF_TABLE_PARAMS params) |
| 100 |
{ |
| 101 |
MOS_UNUSED(cmdBuffer); |
| 102 |
MOS_UNUSED(params); |
| 103 |
return MOS_STATUS_PLATFORM_NOT_SUPPORTED; |
| 104 |
} |
| 105 |
|
| 106 |
MOS_STATUS AddMfcJpegScanObjCmd( |
| 107 |
PMOS_COMMAND_BUFFER cmdBuffer, |
| 108 |
MhwVdboxJpegScanParams *params) |
| 109 |
{ |
| 110 |
MOS_UNUSED(cmdBuffer); |
| 111 |
MOS_UNUSED(params); |
| 112 |
return MOS_STATUS_PLATFORM_NOT_SUPPORTED; |
| 113 |
} |
| 114 |
|
| 115 |
MOS_STATUS AddMfxDecodeVp8PicCmd( |
| 116 |
PMOS_COMMAND_BUFFER cmdBuffer, |
| 117 |
PMHW_VDBOX_VP8_PIC_STATE params); |
| 118 |
|
| 119 |
MOS_STATUS AddMfxEncodeVp8PicCmd( |
| 120 |
PMOS_COMMAND_BUFFER cmdBuffer, |
| 121 |
PMHW_VDBOX_VP8_PIC_STATE params) |
| 122 |
{ |
| 123 |
MOS_UNUSED(cmdBuffer); |
| 124 |
MOS_UNUSED(params); |
| 125 |
return MOS_STATUS_PLATFORM_NOT_SUPPORTED;; |
| 126 |
} |
| 127 |
|
| 128 |
MOS_STATUS InitMfxVp8EncoderCfgCmd( |
| 129 |
PMOS_RESOURCE cfgCmdBuffer, |
| 130 |
PMHW_VDBOX_VP8_ENCODER_CFG_PARAMS params) |
| 131 |
{ |
| 132 |
MOS_UNUSED(cfgCmdBuffer); |
| 133 |
MOS_UNUSED(params); |
| 134 |
return MOS_STATUS_PLATFORM_NOT_SUPPORTED; |
| 135 |
} |
| 136 |
|
| 137 |
MOS_STATUS AddMfxVp8BspBufBaseAddrCmd( |
| 138 |
PMOS_COMMAND_BUFFER cmdBuffer, |
| 139 |
PMHW_VDBOX_VP8_BSP_BUF_BASE_ADDR_PARAMS params) |
| 140 |
{ |
| 141 |
MOS_UNUSED(cmdBuffer); |
| 142 |
MOS_UNUSED(params); |
| 143 |
return MOS_STATUS_PLATFORM_NOT_SUPPORTED; |
| 144 |
} |
| 145 |
}; |
| 146 |
|
| 147 |
#endif |
| 148 |
|