Debian Codegraph @

media_softlet/agnostic/common/codec/hal/enc/shared/scalability/encode_scalability_option.h

raw
1 /*
2 * Copyright (c) 2018, 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 //!
24 //! \file encode_scalability_option.h
25 //! \brief Defines the encode scalability option
26
27 #ifndef __ENCODE_SCALABILITY_OPTION_H__
28 #define __ENCODE_SCALABILITY_OPTION_H__
29
30 #include "media_class_trace.h"
31 #include "media_scalability_option.h"
32 #include "mos_defs.h"
33 struct ScalabilityPars;
34
35 namespace encode {
36 class EncodeScalabilityOption : public MediaScalabilityOption
37 {
38 public:
39 //!
40 //! \brief Encode scalability mulitipipe copy constructor
41 //! \param [in] pOption
42 //! Pointer to input scalability option
43 //!
44 EncodeScalabilityOption() {};
45
46 //!
47 //! \brief Encode scalability mulitipipe copy constructor
48 //! \param [in] pOption
49 //! Pointer to input scalability option
50 //!
51 EncodeScalabilityOption(const EncodeScalabilityOption &pOption);
52
53 //!
54 //! \brief Encode scalability option destructor
55 //
56 ~EncodeScalabilityOption() {};
57
58 //!
59 //! \brief Set scalability option
60 //! \param [in] params
61 //! Pointer to the input parameters to set scalability option
62 //! \return MOS_STATUS
63 //! MOS_STATUS_SUCCESS if success, else fail reason
64 //!
65 virtual MOS_STATUS SetScalabilityOption(ScalabilityPars *params);
66 //!
67 //! \brief check if scalability option matched with current option
68 //! \param [in] params
69 //! Pointer to the input parameters for compare
70 //! \return MOS_STATUS
71 //! MOS_STATUS_SUCCESS if success, else fail reason
72 //!
73 virtual bool IsScalabilityOptionMatched(ScalabilityPars *params);
74 //!
75 //! \brief check if VDEnc Enabled
76 //! \return bool
77 //! true if enabled, else false
78 //!
79 virtual bool IsVdencEnabled() const { return m_enabledVdenc; }
80 private:
81 bool m_enabledVdenc = false;
82
83 MEDIA_CLASS_DEFINE_END(encode__EncodeScalabilityOption)
84 };
85 }
86 #endif // !__ENCODE_SCALABILITY_OPTION_H__