Simplify the CWelsH264SVCEncoder::Initialize2 method

Remove the useless iInitType parameter, make the method
private within CWelsH264SVCEncoder class, give the pointer
parameter the correct type, avoiding needless casting.
This commit is contained in:
Martin Storsjö
2014-02-18 11:04:29 +02:00
parent 5cb8518306
commit 1a32ae7120
2 changed files with 7 additions and 8 deletions

View File

@@ -67,7 +67,6 @@ class CWelsH264SVCEncoder : public ISVCEncoder {
* return: CM_RETURN: 0 - success; otherwise - failed;
*/
virtual int EXTAPI Initialize (SEncParamBase* argv, const INIT_TYPE init_type);
virtual int EXTAPI Initialize2 (void* argv, const INIT_TYPE init_type);
virtual int EXTAPI Uninitialize();
@@ -102,6 +101,8 @@ class CWelsH264SVCEncoder : public ISVCEncoder {
virtual int EXTAPI GetOption (ENCODER_OPTION opt_id, void* option);
private:
int Initialize2 (SWelsSvcCodingParam* argv);
sWelsEncCtx* m_pEncContext;
welsCodecTrace* m_pWelsTrace;