1 // Copyright (c) 2017 Intel Corporation 2 // 3 // Permission is hereby granted, free of charge, to any person obtaining a copy 4 // of this software and associated documentation files (the "Software"), to deal 5 // in the Software without restriction, including without limitation the rights 6 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 // copies of the Software, and to permit persons to whom the Software is 8 // furnished to do so, subject to the following conditions: 9 // 10 // The above copyright notice and this permission notice shall be included in all 11 // copies or substantial portions of the Software. 12 // 13 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 19 // SOFTWARE. 20 21 #include "mfx_common.h" 22 23 #ifndef _MFX_ENC_EXT_H_ 24 #define _MFX_ENC_EXT_H_ 25 26 27 28 #include "mfxvideo++int.h" 29 #include "mfxenc.h" 30 31 class VideoENC_Ext: public VideoENC 32 { 33 public: 34 // Destructor 35 virtual ~VideoENC_Ext(void)36 ~VideoENC_Ext(void){} 37 38 virtual GetThreadingPolicy(void)39 mfxTaskThreadingPolicy GetThreadingPolicy(void) {return MFX_TASK_THREADING_DEFAULT;} 40 41 virtual 42 mfxStatus GetVideoParam(mfxVideoParam *par) = 0; 43 virtual GetFrameParam(mfxFrameParam *)44 mfxStatus GetFrameParam(mfxFrameParam * /* par */) 45 { 46 return MFX_ERR_UNSUPPORTED; 47 } 48 49 virtual RunFrameVmeENCCheck(mfxENCInput *,mfxENCOutput *,MFX_ENTRY_POINT *)50 mfxStatus RunFrameVmeENCCheck( mfxENCInput * /* in */, 51 mfxENCOutput * /* out */, 52 MFX_ENTRY_POINT* /* pEntryPoints */) 53 { 54 return MFX_ERR_UNSUPPORTED; 55 } 56 57 virtual RunFrameVmeENCCheck(mfxENCInput * in,mfxENCOutput * out,MFX_ENTRY_POINT pEntryPoints[],mfxU32 & numEntryPoints)58 mfxStatus RunFrameVmeENCCheck( mfxENCInput * in, 59 mfxENCOutput * out, 60 MFX_ENTRY_POINT pEntryPoints[], 61 mfxU32 & numEntryPoints) 62 { 63 numEntryPoints = 1; 64 return RunFrameVmeENCCheck( in, out, pEntryPoints); 65 } 66 67 virtual RunFrameVmeENC(mfxENCInput *,mfxENCOutput *)68 mfxStatus RunFrameVmeENC(mfxENCInput * /* in */, mfxENCOutput * /* out */) 69 { 70 return MFX_ERR_UNSUPPORTED; 71 }; 72 73 virtual GetDstForSync(MFX_ENTRY_POINT &)74 void* GetDstForSync(MFX_ENTRY_POINT& /* pEntryPoints */) 75 { 76 return NULL; 77 } 78 79 virtual GetSrcForSync(MFX_ENTRY_POINT &)80 void* GetSrcForSync(MFX_ENTRY_POINT& /* pEntryPoints */) 81 { 82 return NULL; 83 } 84 85 }; 86 87 #endif 88 89 90