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 //! \file encode_vp9_vdenc_pipeline.h 24 //! \brief Defines the interface for vp9 vdenc encode pipeline 25 //! 26 #ifndef __ENCODE_VP9_VDENC_PIPELINE_H__ 27 #define __ENCODE_VP9_VDENC_PIPELINE_H__ 28 29 #include "encode_vp9_pipeline.h" 30 31 namespace encode { 32 33 class Vp9VdencPipeline : public Vp9Pipeline 34 { 35 public: 36 //! 37 //! \brief Vp9VdencPipeline constructor 38 //! \param [in] hwInterface 39 //! Pointer to CodechalHwInterface 40 //! \param [in] debugInterface 41 //! Pointer to CodechalDebugInterface 42 //! 43 Vp9VdencPipeline( 44 CodechalHwInterfaceNext * hwInterface, 45 CodechalDebugInterface *debugInterface); 46 47 //! 48 //! \brief Vp9VdencPipeline destructor 49 //! ~Vp9VdencPipeline()50 virtual ~Vp9VdencPipeline() {} 51 52 //! 53 //! \brief Prepare internal parameters, should be invoked for each frame 54 //! \param [in] params 55 //! Pointer to the input parameters 56 //! \return MOS_STATUS 57 //! MOS_STATUS_SUCCESS if success, else fail reason 58 //! 59 virtual MOS_STATUS Prepare(void *params) override; 60 61 protected: 62 //! 63 //! \brief Initialize the VP9 VDENC pipeline 64 //! \param [in] settings 65 //! Pointer to the initialize settings 66 //! \return MOS_STATUS 67 //! MOS_STATUS_SUCCESS if success, else fail reason 68 //! 69 virtual MOS_STATUS Initialize(void *settings) override; 70 71 //! 72 //! \brief Uninitialize the VP9 VDENC pipeline 73 //! \return MOS_STATUS 74 //! MOS_STATUS_SUCCESS if success, else fail reason 75 //! 76 virtual MOS_STATUS Uninitialize() override; 77 78 //! 79 //! \brief User Feature Key Report 80 //! \return MOS_STATUS 81 //! MOS_STATUS_SUCCESS if success, else fail reason 82 //! 83 virtual MOS_STATUS UserFeatureReport() override; 84 85 //! 86 //! \brief Activates VDENC video packet and add it to activate packet list 87 //! \return MOS_STATUS 88 //! MOS_STATUS_SUCCESS if success, else fail reason 89 //! 90 virtual MOS_STATUS ActivateVdencVideoPackets(); 91 92 //! 93 //! \brief Create VP9 VDENC feature manager 94 //! \return MOS_STATUS 95 //! MOS_STATUS_SUCCESS if success, else fail reason 96 //! 97 virtual MOS_STATUS CreateFeatureManager() override; 98 99 MEDIA_CLASS_DEFINE_END(encode__Vp9VdencPipeline) 100 }; 101 102 } 103 #endif // !__ENCODE_VP9_VDENC_PIPELINE_H__ 104