Debian Codegraph @

media_softlet/linux/common/os/mos_os_virtualengine_singlepipe_specific_next.h

raw
1 /*
2 * Copyright (c) 2019, 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 mos_os_virtualengine_scalability_specific.h
24 //! \brief defines the MOS interface extension for Linux, supporting virtual engine single pipe mode.
25 //! \details defines all types, macros, and functions required by the MOS interface extension for Linux, supporting virtual engine single pipe mode.
26 //!
27
28 #ifndef __MOS_OS_VIRTUALENGINE_SINGLEPIPE_SPECIFIC_NEXT_H__
29 #define __MOS_OS_VIRTUALENGINE_SINGLEPIPE_SPECIFIC_NEXT_H__
30
31 #include "mos_os_virtualengine_next.h"
32 #include "mos_os_virtualengine_singlepipe_next.h"
33 class MosOsVeSinglePipeSpecific : public MosOsVeSinglePipe
34 {
35 public:
36 MOS_STATUS Initialize(
37 MOS_STREAM_HANDLE stream,
38 PMOS_VIRTUALENGINE_INIT_PARAMS pVEInitParms);
39
40 // No secondary cmd buf used in single pipe mode
41 void ResetSecdryCmdBufStates() {}
42
43 bool VerifySecdryCmdBufSize(
44 uint32_t dwNewRequestSize) { return true; }
45
46 MOS_STATUS ResizeSecdryCmdBuf(
47 uint32_t dwNewRequestSize) { return MOS_STATUS_SUCCESS; }
48
49 MOS_STATUS GetSecdryCmdBuf(
50 PMOS_COMMAND_BUFFER pScdryCmdBuf,
51 uint32_t dwBufIdxPlus1) { return MOS_STATUS_SUCCESS; }
52
53 MOS_STATUS ReturnSecdryCmdBuf(
54 PMOS_COMMAND_BUFFER pScdryCmdBuf,
55 uint32_t dwBufIdxPlus1) { return MOS_STATUS_SUCCESS; }
56
57 MOS_STATUS DoneSecdryCmdBuf() { return MOS_STATUS_SUCCESS; }
58
59 // No hint parameters to set
60 MOS_STATUS SetHintParams(
61 PMOS_VIRTUALENGINE_SET_PARAMS pVEParams) { return MOS_STATUS_SUCCESS; }
62
63 MOS_STATUS GetHintParams(
64 bool bScalableMode,
65 PMOS_VIRTUALENGINE_HINT_PARAMS *ppHintParams);
66
67 MOS_STATUS CheckHintParamsValidity() { return MOS_STATUS_SUCCESS; }
68
69 void Destroy() {}
70 MEDIA_CLASS_DEFINE_END(MosOsVeSinglePipeSpecific)
71 };
72
73 #endif //__MOS_OS_VIRTUALENGINE_SINGLEPIPE_SPECIFIC_NEXT_H__
74