Split the encoder Initialize method into two

This avoids the struct type casting and having to pass a parameter
that says which kind of struct it actually is.
This commit is contained in:
Martin Storsjö
2014-02-18 12:29:43 +02:00
parent 622694935b
commit 49f4dad1b7
7 changed files with 42 additions and 29 deletions

View File

@@ -66,7 +66,8 @@ class CWelsH264SVCEncoder : public ISVCEncoder {
/*
* return: CM_RETURN: 0 - success; otherwise - failed;
*/
virtual int EXTAPI Initialize (const void* argv, const INIT_TYPE init_type);
virtual int EXTAPI Initialize (const SEncParamBase* argv);
virtual int EXTAPI InitializeExt (const SEncParamExt* argv);
virtual int EXTAPI Uninitialize();