Remove the unused iInitType parameter to the decoder Initialize method
This commit is contained in:
parent
8435dd33af
commit
658d1e3651
@ -94,7 +94,7 @@ class ISVCEncoder {
|
||||
|
||||
class ISVCDecoder {
|
||||
public:
|
||||
virtual long EXTAPI Initialize (void* pParam, const INIT_TYPE iInitType) = 0;
|
||||
virtual long EXTAPI Initialize (void* pParam) = 0;
|
||||
virtual long EXTAPI Uninitialize() = 0;
|
||||
|
||||
virtual DECODING_STATE EXTAPI DecodeFrame (const unsigned char* pSrc,
|
||||
@ -162,7 +162,7 @@ struct ISVCEncoderVtbl {
|
||||
typedef struct ISVCDecoderVtbl ISVCDecoderVtbl;
|
||||
typedef const ISVCDecoderVtbl* ISVCDecoder;
|
||||
struct ISVCDecoderVtbl {
|
||||
long (*Initialize) (ISVCDecoder*, void* pParam, const INIT_TYPE iInitType);
|
||||
long (*Initialize) (ISVCDecoder*, void* pParam);
|
||||
long (*Uninitialize) (ISVCDecoder*);
|
||||
|
||||
DECODING_STATE (*DecodeFrame) (ISVCDecoder*, const unsigned char* pSrc,
|
||||
|
@ -408,7 +408,7 @@ int32_t main (int32_t iArgC, char* pArgV[]) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (pDecoder->Initialize (&sDecParam, INIT_TYPE_PARAMETER_BASED)) {
|
||||
if (pDecoder->Initialize (&sDecParam)) {
|
||||
printf ("Decoder initialization failed.\n");
|
||||
return 1;
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ class CWelsDecoder : public ISVCDecoder {
|
||||
CWelsDecoder (void);
|
||||
virtual ~CWelsDecoder();
|
||||
|
||||
virtual long EXTAPI Initialize (void* pParam, const INIT_TYPE keInitType);
|
||||
virtual long EXTAPI Initialize (void* pParam);
|
||||
virtual long EXTAPI Uninitialize();
|
||||
|
||||
/***************************************************************************
|
||||
|
@ -186,8 +186,8 @@ CWelsDecoder::~CWelsDecoder() {
|
||||
}
|
||||
}
|
||||
|
||||
long CWelsDecoder::Initialize (void* pParam, const INIT_TYPE keInitType) {
|
||||
if (pParam == NULL || keInitType != INIT_TYPE_PARAMETER_BASED) {
|
||||
long CWelsDecoder::Initialize (void* pParam) {
|
||||
if (pParam == NULL) {
|
||||
IWelsTrace::WelsVTrace (m_pTrace, IWelsTrace::WELS_LOG_INFO, "CWelsDecoder::Initialize(), invalid input argument.");
|
||||
return cmInitParaError;
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ void BaseDecoderTest::SetUp() {
|
||||
decParam.uiEcActiveFlag = 1;
|
||||
decParam.sVideoProperty.eVideoBsType = VIDEO_BITSTREAM_DEFAULT;
|
||||
|
||||
rv = decoder_->Initialize(&decParam, INIT_TYPE_PARAMETER_BASED);
|
||||
rv = decoder_->Initialize(&decParam);
|
||||
ASSERT_EQ(0, rv);
|
||||
}
|
||||
|
||||
|
@ -70,7 +70,7 @@ struct SVCEncoderImpl : public ISVCEncoder {
|
||||
|
||||
struct SVCDecoderImpl : public ISVCDecoder {
|
||||
virtual ~SVCDecoderImpl() {}
|
||||
virtual long EXTAPI Initialize(void* pParam, const INIT_TYPE iInitType) {
|
||||
virtual long EXTAPI Initialize(void* pParam) {
|
||||
EXPECT_TRUE(gThis == this);
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user