iSAC: Functions for importing and exporting bandwidth est. info
They make it possible to send bandwidth estimation info from decoder to encoder even if they are separate objects (which we want them to be because multithreading). R=henrik.lundin@webrtc.org Review URL: https://codereview.webrtc.org/1208923002. Cr-Commit-Position: refs/heads/master@{#9535}
This commit is contained in:
@ -68,6 +68,10 @@ struct IsacFloat {
|
||||
static inline int16_t Free(instance_type* inst) {
|
||||
return WebRtcIsac_Free(inst);
|
||||
}
|
||||
static inline void GetBandwidthInfo(instance_type* inst,
|
||||
IsacBandwidthInfo* bwinfo) {
|
||||
WebRtcIsac_GetBandwidthInfo(inst, bwinfo);
|
||||
}
|
||||
static inline int16_t GetErrorCode(instance_type* inst) {
|
||||
return WebRtcIsac_GetErrorCode(inst);
|
||||
}
|
||||
@ -75,7 +79,10 @@ struct IsacFloat {
|
||||
static inline int16_t GetNewFrameLen(instance_type* inst) {
|
||||
return WebRtcIsac_GetNewFrameLen(inst);
|
||||
}
|
||||
|
||||
static inline void SetBandwidthInfo(instance_type* inst,
|
||||
const IsacBandwidthInfo* bwinfo) {
|
||||
WebRtcIsac_SetBandwidthInfo(inst, bwinfo);
|
||||
}
|
||||
static inline int16_t SetDecSampRate(instance_type* inst,
|
||||
uint16_t sample_rate_hz) {
|
||||
return WebRtcIsac_SetDecSampRate(inst, sample_rate_hz);
|
||||
|
||||
@ -11,9 +11,7 @@
|
||||
#ifndef WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_INTERFACE_ISAC_H_
|
||||
#define WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_INTERFACE_ISAC_H_
|
||||
|
||||
/*
|
||||
* Define the fixed-point numeric formats
|
||||
*/
|
||||
#include "webrtc/modules/audio_coding/codecs/isac/bandwidth_info.h"
|
||||
#include "webrtc/typedefs.h"
|
||||
|
||||
typedef struct WebRtcISACStruct ISACStruct;
|
||||
@ -708,6 +706,12 @@ extern "C" {
|
||||
int16_t* decoded,
|
||||
int16_t* speechType);
|
||||
|
||||
/* Fills in an IsacBandwidthInfo struct. */
|
||||
void WebRtcIsac_GetBandwidthInfo(ISACStruct* inst, IsacBandwidthInfo* bwinfo);
|
||||
|
||||
/* Uses the values from an IsacBandwidthInfo struct. */
|
||||
void WebRtcIsac_SetBandwidthInfo(ISACStruct* inst,
|
||||
const IsacBandwidthInfo* bwinfo);
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user