History

Add a new public method for initializing SEncParamExt to default values

This simplifies forward source compatibility when new fields are added to SEncParamExt - when new fields are added to SEncParamExt, this method makes sure those fields are initialized to the default value - otherwise all API users would have to manually check SEncParamExt every time it is updated to make sure there's no new fields that should be set to a nonzero value by default (e.g. like bEnableFrameSkip).

Martin Storsjö committed 12 years ago

Commit c7ff8871 parent 6021ff35 files · +16 −0Browse files

Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 5 files). Show all

Unified · Split

codec/encoder/plus/src/welsEncoderExt.cpp+5−0
@@ -197,6 +197,11 @@ void CWelsH264SVCEncoder::InitEncoder (void) { · 196 unmodified lines
197197
198198 /* Interfaces override from ISVCEncoder */
199199
200+int CWelsH264SVCEncoder::GetDefaultParams (SEncParamExt* argv) {
201+ SWelsSvcCodingParam::FillDefault(*argv, true);
202+ return cmResultSuccess;
203+}
204+
200205 /*
201206 * SVC Encoder Initialization
202207 */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t