Debian Codegraph @

media_driver/agnostic/common/codec/hal/codechal_encoder_unsupported.h

raw
1 /*
2 * Copyright (c) 2020, 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 codechal_encoder_unsupported.h
24 //! \brief Defines the encode interface for Codechal unsupported platform.
25 //! \details The encode interface is further sub-divided by standard, this file is for the base interface which is shared by all encode standards.
26 //!
27
28 #ifndef __CODECHAL_ENCODER_UNSUPPORTED_H__
29 #define __CODECHAL_ENCODER_UNSUPPORTED_H__
30
31 #include "codechal_encoder_base.h"
32
33
34 //!
35 //! \class CodechalEncoderStateUnsupported
36 //! \brief This class implement all functions to return MOS_STATUS_PLATFORM_NOT_SUPPORTED error code.
37 //!
38 class CodechalEncoderStateUnsupported : public CodechalEncoderState
39 {
40 public:
41
42 CodechalEncoderStateUnsupported(
43 CodechalHwInterface* hwInterface,
44 CodechalDebugInterface* debugInterface,
45 PCODECHAL_STANDARD_INFO standardInfo)
46 : CodechalEncoderState(hwInterface, debugInterface, standardInfo)
47 {
48 }
49
50 virtual ~CodechalEncoderStateUnsupported()
51 {
52 }
53
54 MOS_STATUS Allocate(CodechalSetting* codecHalSettings) override
55 {
56 return MOS_STATUS_PLATFORM_NOT_SUPPORTED;
57 }
58
59 MOS_STATUS Execute(void* params) override
60 {
61 return MOS_STATUS_PLATFORM_NOT_SUPPORTED;
62 }
63
64 virtual MOS_STATUS InitializePicture(const EncoderParams& params) override
65 {
66 return MOS_STATUS_PLATFORM_NOT_SUPPORTED;
67 };
68
69 virtual MOS_STATUS ExecuteKernelFunctions() override
70 {
71 return MOS_STATUS_PLATFORM_NOT_SUPPORTED;
72 };
73
74 virtual MOS_STATUS ExecutePictureLevel() override
75 {
76 return MOS_STATUS_PLATFORM_NOT_SUPPORTED;
77 };
78
79 virtual MOS_STATUS ExecuteSliceLevel() override
80 {
81 return MOS_STATUS_PLATFORM_NOT_SUPPORTED;
82 };
83
84 MOS_STATUS GetStatusReport(void* status, uint16_t numStatus) override
85 {
86 return MOS_STATUS_PLATFORM_NOT_SUPPORTED;
87 }
88
89 virtual MOS_STATUS GetStatusReport(EncodeStatus* encodeStatus, EncodeStatusReport* encodeStatusReport) override
90 {
91 return MOS_STATUS_PLATFORM_NOT_SUPPORTED;
92 };
93 };
94
95 #endif // __CODECHAL_ENCODER_UNSUPPORTED_H__