
Since this is on by default now, we don't need a separate test that has it enabled. Thus we can now remove one of the encoder tests. By not overriding the deblocking setting at all, the hash changes for the other tests that use SEncParamExt.
25 lines
681 B
C++
25 lines
681 B
C++
#ifndef __BASEENCODERTEST_H__
|
|
#define __BASEENCODERTEST_H__
|
|
|
|
#include "codec_api.h"
|
|
#include "codec_app_def.h"
|
|
#include "utils/InputStream.h"
|
|
|
|
class BaseEncoderTest {
|
|
public:
|
|
struct Callback {
|
|
virtual void onEncodeFrame(const SFrameBSInfo& frameInfo) = 0;
|
|
};
|
|
|
|
BaseEncoderTest();
|
|
void SetUp();
|
|
void TearDown();
|
|
void EncodeFile(const char* fileName, int width, int height, float frameRate, SliceModeEnum slices, bool denoise, int layers, Callback* cbk);
|
|
void EncodeStream(InputStream* in, int width, int height, float frameRate, SliceModeEnum slices, bool denoise, int layers, Callback* cbk);
|
|
|
|
private:
|
|
ISVCEncoder* encoder_;
|
|
};
|
|
|
|
#endif //__BASEENCODERTEST_H__
|