1 #ifndef __BASEENCODERTEST_H__ 2 #define __BASEENCODERTEST_H__ 3 4 #include "codec_api.h" 5 #include "codec_app_def.h" 6 #include "utils/InputStream.h" 7 8 class BaseEncoderTest { 9 public: 10 struct Callback { 11 virtual void onEncodeFrame (const SFrameBSInfo& frameInfo) = 0; 12 }; 13 14 BaseEncoderTest(); 15 void SetUp(); 16 void TearDown(); 17 void EncodeFile (const char* fileName, SEncParamExt* pEncParamExt, Callback* cbk); 18 void EncodeStream (InputStream* in, SEncParamExt* pEncParamExt, Callback* cbk); 19 20 ISVCEncoder* encoder_; 21 private: 22 23 }; 24 25 #endif //__BASEENCODERTEST_H__ 26