Debian Codegraph @

media_softlet/agnostic/common/codec/hal/dec/shared/features/decode_predication.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 decode_predication.h
24 //! \brief Defines the common interface for decode predication
25 //! \details The decode predication interface implements the decode predication feature.
26 //!
27 #ifndef __DECODE_PREDICATION_H__
28 #define __DECODE_PREDICATION_H__
29
30 #include "codec_def_decode.h"
31 #include "decode_allocator.h"
32 #include "media_feature.h"
33 #include "codec_hw_next.h"
34
35 namespace decode {
36
37 class DecodePredication: public MediaFeature
38 {
39 public:
40 //!
41 //! \brief Decode predication constructor
42 //! \param [in] allocator
43 //! Reference to decode allocator
44 //!
45 DecodePredication(DecodeAllocator& allocator);
46 //!
47 //! \brief Decode predication destructor
48 //!
49 virtual ~DecodePredication();
50 //!
51 //! \brief Update decode predication
52 //! \param [in] params
53 //! Reference to CodechalDecodeParams
54 //! \return MOS_STATUS
55 //! MOS_STATUS_SUCCESS if success, else fail reason
56 //!
57 virtual MOS_STATUS Update(void *params) override;
58
59 PMOS_BUFFER m_predicationBuffer = nullptr; //!< Internal resource for Predication
60 PMOS_BUFFER m_resPredication = nullptr; //!< External resource for predication
61 uint64_t m_predicationResOffset = 0; //!< Offset for Predication resource
62 bool m_predicationEnabled = false; //!< Indicates whether or not Predication is enabled
63 bool m_predicationNotEqualZero = false; //!< Predication mode
64 protected:
65 DecodeAllocator* m_allocator; //!< Decode allocator
66
67 MEDIA_CLASS_DEFINE_END(decode__DecodePredication)
68 };
69
70 }//decode
71
72 #endif // !__DECODE_PREDICATION_H__