Initialize signal processing function pointers statically
The last run-time logic for selecting function pointers was removed in May 2016, here: https://codereview.webrtc.org/1955413003 It would be even better if we could eliminate the function pointers entirely and just have different implementations that we select at compile time; I've left a TODO asking for this. Bug: webrtc:9553 Change-Id: Ica71d71e19759da00967168f6479b7eb8b46c590 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/144053 Reviewed-by: Alessio Bazzica <alessiob@webrtc.org> Commit-Queue: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#28414}
This commit is contained in:
@ -109,7 +109,6 @@ int16_t WebRtcIsacfix_Create(ISACFIX_MainStruct **ISAC_main_inst)
|
||||
(*(ISACFIX_SubStruct**)ISAC_main_inst)->errorcode = 0;
|
||||
(*(ISACFIX_SubStruct**)ISAC_main_inst)->initflag = 0;
|
||||
(*(ISACFIX_SubStruct**)ISAC_main_inst)->ISACenc_obj.SaveEnc_ptr = NULL;
|
||||
WebRtcSpl_Init();
|
||||
WebRtcIsacfix_InitBandwidthEstimator(&tempo->bwestimator_obj);
|
||||
return(0);
|
||||
} else {
|
||||
|
||||
@ -138,8 +138,6 @@ static const int16_t time2spec_out_expected_2[kSamples] = {
|
||||
|
||||
class TransformTest : public ::testing::Test {
|
||||
protected:
|
||||
TransformTest() { WebRtcSpl_Init(); }
|
||||
|
||||
// Pass a function pointer to the Tester function.
|
||||
void Time2SpecTester(Time2Spec Time2SpecFunction) {
|
||||
// WebRtcIsacfix_Time2Spec functions hard coded the buffer lengths. It's a
|
||||
|
||||
Reference in New Issue
Block a user