2011-07-07 08:21:25 +00:00
|
|
|
/*
|
This CL contains some refactoring. Spectrum coding is main place that is affected. Therefore, I have bit-exactness test, test_spectrum_
coding.c, to be sure about the changelist. You can go through the test to be sure the changes are tested. However, I don't intend to commi
t the test, as it would be a source of confusion and requires hack to iSAC to be able to run the test. It is basically a one-time test.
The part which not covered in this test is where we limit payload for super-wideband bit-stream. I'll add a test for that as well.
I kept format changes at minimum in all files except isac.c, which was in bad shape, and coding changes were minimum. I'm planning to uplo
ad following patches to this CL where I try to address formatting issues. But I don't intend to change variable names, for the moment.
The refactoring is not yet finished, so you would find part of the code which could be cleaned up, especially KLT transforms in entropy_co
ding.c
Review URL: https://webrtc-codereview.appspot.com/580004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@2359 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-06-04 20:04:58 +00:00
|
|
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
2011-07-07 08:21:25 +00:00
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* codec.h
|
|
|
|
|
*
|
|
|
|
|
* This header file contains the calls to the internal encoder
|
|
|
|
|
* and decoder functions.
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#ifndef MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_CODEC_H_
|
|
|
|
|
#define MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_CODEC_H_
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2018-04-27 04:31:53 +02:00
|
|
|
#include <stddef.h>
|
|
|
|
|
|
2018-02-01 14:12:55 +01:00
|
|
|
#include "modules/audio_coding/codecs/isac/main/source/structs.h"
|
2018-07-26 15:07:33 +02:00
|
|
|
#include "modules/third_party/fft/fft.h"
|
2011-07-07 08:21:25 +00:00
|
|
|
|
This CL contains some refactoring. Spectrum coding is main place that is affected. Therefore, I have bit-exactness test, test_spectrum_
coding.c, to be sure about the changelist. You can go through the test to be sure the changes are tested. However, I don't intend to commi
t the test, as it would be a source of confusion and requires hack to iSAC to be able to run the test. It is basically a one-time test.
The part which not covered in this test is where we limit payload for super-wideband bit-stream. I'll add a test for that as well.
I kept format changes at minimum in all files except isac.c, which was in bad shape, and coding changes were minimum. I'm planning to uplo
ad following patches to this CL where I try to address formatting issues. But I don't intend to change variable names, for the moment.
The refactoring is not yet finished, so you would find part of the code which could be cleaned up, especially KLT transforms in entropy_co
ding.c
Review URL: https://webrtc-codereview.appspot.com/580004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@2359 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-06-04 20:04:58 +00:00
|
|
|
void WebRtcIsac_ResetBitstream(Bitstr* bit_stream);
|
|
|
|
|
|
|
|
|
|
int WebRtcIsac_EstimateBandwidth(BwEstimatorstr* bwest_str,
|
|
|
|
|
Bitstr* streamdata,
|
Update a ton of audio code to use size_t more correctly and in general reduce
use of int16_t/uint16_t.
This is the upshot of a recommendation by henrik.lundin and kwiberg on an original small change ( https://webrtc-codereview.appspot.com/42569004/#ps1 ) to stop using int16_t just because values could fit in it, and is similar in nature to a previous "mass change to use size_t more" ( https://webrtc-codereview.appspot.com/23129004/ ) which also needed to be split up for review but to land all at once, since, like adding "const", such changes tend to cause a lot of transitive effects.
This was be reviewed and approved in pieces:
https://codereview.webrtc.org/1224093003
https://codereview.webrtc.org/1224123002
https://codereview.webrtc.org/1224163002
https://codereview.webrtc.org/1225133003
https://codereview.webrtc.org/1225173002
https://codereview.webrtc.org/1227163003
https://codereview.webrtc.org/1227203003
https://codereview.webrtc.org/1227213002
https://codereview.webrtc.org/1227893002
https://codereview.webrtc.org/1228793004
https://codereview.webrtc.org/1228803003
https://codereview.webrtc.org/1228823002
https://codereview.webrtc.org/1228823003
https://codereview.webrtc.org/1228843002
https://codereview.webrtc.org/1230693002
https://codereview.webrtc.org/1231713002
The change is being landed as TBR to all the folks who reviewed the above.
BUG=chromium:81439
TEST=none
R=andrew@webrtc.org, pbos@webrtc.org
TBR=aluebs, andrew, asapersson, henrika, hlundin, jan.skoglund, kwiberg, minyue, pbos, pthatcher
Review URL: https://codereview.webrtc.org/1230503003 .
Cr-Commit-Position: refs/heads/master@{#9768}
2015-08-24 14:52:23 -07:00
|
|
|
size_t packet_size,
|
2013-04-09 00:28:06 +00:00
|
|
|
uint16_t rtp_seq_number,
|
|
|
|
|
uint32_t send_ts,
|
|
|
|
|
uint32_t arr_ts,
|
This CL contains some refactoring. Spectrum coding is main place that is affected. Therefore, I have bit-exactness test, test_spectrum_
coding.c, to be sure about the changelist. You can go through the test to be sure the changes are tested. However, I don't intend to commi
t the test, as it would be a source of confusion and requires hack to iSAC to be able to run the test. It is basically a one-time test.
The part which not covered in this test is where we limit payload for super-wideband bit-stream. I'll add a test for that as well.
I kept format changes at minimum in all files except isac.c, which was in bad shape, and coding changes were minimum. I'm planning to uplo
ad following patches to this CL where I try to address formatting issues. But I don't intend to change variable names, for the moment.
The refactoring is not yet finished, so you would find part of the code which could be cleaned up, especially KLT transforms in entropy_co
ding.c
Review URL: https://webrtc-codereview.appspot.com/580004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@2359 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-06-04 20:04:58 +00:00
|
|
|
enum IsacSamplingRate encoderSampRate,
|
|
|
|
|
enum IsacSamplingRate decoderSampRate);
|
|
|
|
|
|
2015-06-16 00:02:34 +02:00
|
|
|
int WebRtcIsac_DecodeLb(const TransformTables* transform_tables,
|
|
|
|
|
float* signal_out,
|
|
|
|
|
ISACLBDecStruct* ISACdec_obj,
|
2013-04-09 00:28:06 +00:00
|
|
|
int16_t* current_framesamples,
|
|
|
|
|
int16_t isRCUPayload);
|
This CL contains some refactoring. Spectrum coding is main place that is affected. Therefore, I have bit-exactness test, test_spectrum_
coding.c, to be sure about the changelist. You can go through the test to be sure the changes are tested. However, I don't intend to commi
t the test, as it would be a source of confusion and requires hack to iSAC to be able to run the test. It is basically a one-time test.
The part which not covered in this test is where we limit payload for super-wideband bit-stream. I'll add a test for that as well.
I kept format changes at minimum in all files except isac.c, which was in bad shape, and coding changes were minimum. I'm planning to uplo
ad following patches to this CL where I try to address formatting issues. But I don't intend to change variable names, for the moment.
The refactoring is not yet finished, so you would find part of the code which could be cleaned up, especially KLT transforms in entropy_co
ding.c
Review URL: https://webrtc-codereview.appspot.com/580004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@2359 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-06-04 20:04:58 +00:00
|
|
|
|
|
|
|
|
int WebRtcIsac_DecodeRcuLb(float* signal_out,
|
|
|
|
|
ISACLBDecStruct* ISACdec_obj,
|
2013-04-09 00:28:06 +00:00
|
|
|
int16_t* current_framesamples);
|
This CL contains some refactoring. Spectrum coding is main place that is affected. Therefore, I have bit-exactness test, test_spectrum_
coding.c, to be sure about the changelist. You can go through the test to be sure the changes are tested. However, I don't intend to commi
t the test, as it would be a source of confusion and requires hack to iSAC to be able to run the test. It is basically a one-time test.
The part which not covered in this test is where we limit payload for super-wideband bit-stream. I'll add a test for that as well.
I kept format changes at minimum in all files except isac.c, which was in bad shape, and coding changes were minimum. I'm planning to uplo
ad following patches to this CL where I try to address formatting issues. But I don't intend to change variable names, for the moment.
The refactoring is not yet finished, so you would find part of the code which could be cleaned up, especially KLT transforms in entropy_co
ding.c
Review URL: https://webrtc-codereview.appspot.com/580004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@2359 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-06-04 20:04:58 +00:00
|
|
|
|
2015-06-16 00:02:34 +02:00
|
|
|
int WebRtcIsac_EncodeLb(const TransformTables* transform_tables,
|
|
|
|
|
float* in,
|
|
|
|
|
ISACLBEncStruct* ISACencLB_obj,
|
|
|
|
|
int16_t codingMode,
|
|
|
|
|
int16_t bottleneckIndex);
|
This CL contains some refactoring. Spectrum coding is main place that is affected. Therefore, I have bit-exactness test, test_spectrum_
coding.c, to be sure about the changelist. You can go through the test to be sure the changes are tested. However, I don't intend to commi
t the test, as it would be a source of confusion and requires hack to iSAC to be able to run the test. It is basically a one-time test.
The part which not covered in this test is where we limit payload for super-wideband bit-stream. I'll add a test for that as well.
I kept format changes at minimum in all files except isac.c, which was in bad shape, and coding changes were minimum. I'm planning to uplo
ad following patches to this CL where I try to address formatting issues. But I don't intend to change variable names, for the moment.
The refactoring is not yet finished, so you would find part of the code which could be cleaned up, especially KLT transforms in entropy_co
ding.c
Review URL: https://webrtc-codereview.appspot.com/580004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@2359 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-06-04 20:04:58 +00:00
|
|
|
|
2014-12-17 15:23:29 +00:00
|
|
|
int WebRtcIsac_EncodeStoredDataLb(const IsacSaveEncoderData* ISACSavedEnc_obj,
|
This CL contains some refactoring. Spectrum coding is main place that is affected. Therefore, I have bit-exactness test, test_spectrum_
coding.c, to be sure about the changelist. You can go through the test to be sure the changes are tested. However, I don't intend to commi
t the test, as it would be a source of confusion and requires hack to iSAC to be able to run the test. It is basically a one-time test.
The part which not covered in this test is where we limit payload for super-wideband bit-stream. I'll add a test for that as well.
I kept format changes at minimum in all files except isac.c, which was in bad shape, and coding changes were minimum. I'm planning to uplo
ad following patches to this CL where I try to address formatting issues. But I don't intend to change variable names, for the moment.
The refactoring is not yet finished, so you would find part of the code which could be cleaned up, especially KLT transforms in entropy_co
ding.c
Review URL: https://webrtc-codereview.appspot.com/580004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@2359 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-06-04 20:04:58 +00:00
|
|
|
Bitstr* ISACBitStr_obj,
|
|
|
|
|
int BWnumber,
|
|
|
|
|
float scale);
|
|
|
|
|
|
|
|
|
|
int WebRtcIsac_EncodeStoredDataUb(
|
|
|
|
|
const ISACUBSaveEncDataStruct* ISACSavedEnc_obj,
|
|
|
|
|
Bitstr* bitStream,
|
2013-04-09 00:28:06 +00:00
|
|
|
int32_t jitterInfo,
|
|
|
|
|
float scale,
|
|
|
|
|
enum ISACBandwidth bandwidth);
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2013-04-09 00:28:06 +00:00
|
|
|
int16_t WebRtcIsac_GetRedPayloadUb(
|
This CL contains some refactoring. Spectrum coding is main place that is affected. Therefore, I have bit-exactness test, test_spectrum_
coding.c, to be sure about the changelist. You can go through the test to be sure the changes are tested. However, I don't intend to commi
t the test, as it would be a source of confusion and requires hack to iSAC to be able to run the test. It is basically a one-time test.
The part which not covered in this test is where we limit payload for super-wideband bit-stream. I'll add a test for that as well.
I kept format changes at minimum in all files except isac.c, which was in bad shape, and coding changes were minimum. I'm planning to uplo
ad following patches to this CL where I try to address formatting issues. But I don't intend to change variable names, for the moment.
The refactoring is not yet finished, so you would find part of the code which could be cleaned up, especially KLT transforms in entropy_co
ding.c
Review URL: https://webrtc-codereview.appspot.com/580004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@2359 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-06-04 20:04:58 +00:00
|
|
|
const ISACUBSaveEncDataStruct* ISACSavedEncObj,
|
|
|
|
|
Bitstr* bitStreamObj,
|
|
|
|
|
enum ISACBandwidth bandwidth);
|
|
|
|
|
|
2011-07-07 08:21:25 +00:00
|
|
|
/******************************************************************************
|
|
|
|
|
* WebRtcIsac_RateAllocation()
|
|
|
|
|
* Internal function to perform a rate-allocation for upper and lower-band,
|
|
|
|
|
* given a total rate.
|
|
|
|
|
*
|
|
|
|
|
* Input:
|
|
|
|
|
* - inRateBitPerSec : a total bit-rate in bits/sec.
|
|
|
|
|
*
|
|
|
|
|
* Output:
|
|
|
|
|
* - rateLBBitPerSec : a bit-rate allocated to the lower-band
|
|
|
|
|
* in bits/sec.
|
|
|
|
|
* - rateUBBitPerSec : a bit-rate allocated to the upper-band
|
|
|
|
|
* in bits/sec.
|
|
|
|
|
*
|
|
|
|
|
* Return value : 0 if rate allocation has been successful.
|
|
|
|
|
* -1 if failed to allocate rates.
|
|
|
|
|
*/
|
|
|
|
|
|
2013-04-09 00:28:06 +00:00
|
|
|
int16_t WebRtcIsac_RateAllocation(int32_t inRateBitPerSec,
|
|
|
|
|
double* rateLBBitPerSec,
|
|
|
|
|
double* rateUBBitPerSec,
|
|
|
|
|
enum ISACBandwidth* bandwidthKHz);
|
2011-07-07 08:21:25 +00:00
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
|
* WebRtcIsac_DecodeUb16()
|
|
|
|
|
*
|
|
|
|
|
* Decode the upper-band if the codec is in 0-16 kHz mode.
|
|
|
|
|
*
|
|
|
|
|
* Input/Output:
|
|
|
|
|
* -ISACdec_obj : pointer to the upper-band decoder object. The
|
|
|
|
|
* bit-stream is stored inside the decoder object.
|
|
|
|
|
*
|
|
|
|
|
* Output:
|
|
|
|
|
* -signal_out : decoded audio, 480 samples 30 ms.
|
|
|
|
|
*
|
|
|
|
|
* Return value : >0 number of decoded bytes.
|
|
|
|
|
* <0 if an error occurred.
|
|
|
|
|
*/
|
2015-06-16 00:02:34 +02:00
|
|
|
int WebRtcIsac_DecodeUb16(const TransformTables* transform_tables,
|
|
|
|
|
float* signal_out,
|
|
|
|
|
ISACUBDecStruct* ISACdec_obj,
|
2013-04-09 00:28:06 +00:00
|
|
|
int16_t isRCUPayload);
|
2011-07-07 08:21:25 +00:00
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
|
* WebRtcIsac_DecodeUb12()
|
|
|
|
|
*
|
|
|
|
|
* Decode the upper-band if the codec is in 0-12 kHz mode.
|
|
|
|
|
*
|
|
|
|
|
* Input/Output:
|
|
|
|
|
* -ISACdec_obj : pointer to the upper-band decoder object. The
|
|
|
|
|
* bit-stream is stored inside the decoder object.
|
|
|
|
|
*
|
|
|
|
|
* Output:
|
|
|
|
|
* -signal_out : decoded audio, 480 samples 30 ms.
|
|
|
|
|
*
|
|
|
|
|
* Return value : >0 number of decoded bytes.
|
|
|
|
|
* <0 if an error occurred.
|
|
|
|
|
*/
|
2015-06-16 00:02:34 +02:00
|
|
|
int WebRtcIsac_DecodeUb12(const TransformTables* transform_tables,
|
|
|
|
|
float* signal_out,
|
|
|
|
|
ISACUBDecStruct* ISACdec_obj,
|
2013-04-09 00:28:06 +00:00
|
|
|
int16_t isRCUPayload);
|
2011-07-07 08:21:25 +00:00
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
|
* WebRtcIsac_EncodeUb16()
|
|
|
|
|
*
|
|
|
|
|
* Encode the upper-band if the codec is in 0-16 kHz mode.
|
|
|
|
|
*
|
|
|
|
|
* Input:
|
|
|
|
|
* -in : upper-band audio, 160 samples (10 ms).
|
|
|
|
|
*
|
|
|
|
|
* Input/Output:
|
|
|
|
|
* -ISACdec_obj : pointer to the upper-band encoder object. The
|
|
|
|
|
* bit-stream is stored inside the encoder object.
|
|
|
|
|
*
|
|
|
|
|
* Return value : >0 number of encoded bytes.
|
|
|
|
|
* <0 if an error occurred.
|
|
|
|
|
*/
|
2015-06-16 00:02:34 +02:00
|
|
|
int WebRtcIsac_EncodeUb16(const TransformTables* transform_tables,
|
|
|
|
|
float* in,
|
|
|
|
|
ISACUBEncStruct* ISACenc_obj,
|
2013-04-09 00:28:06 +00:00
|
|
|
int32_t jitterInfo);
|
2011-07-07 08:21:25 +00:00
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
|
* WebRtcIsac_EncodeUb12()
|
|
|
|
|
*
|
|
|
|
|
* Encode the upper-band if the codec is in 0-12 kHz mode.
|
|
|
|
|
*
|
|
|
|
|
* Input:
|
|
|
|
|
* -in : upper-band audio, 160 samples (10 ms).
|
|
|
|
|
*
|
|
|
|
|
* Input/Output:
|
|
|
|
|
* -ISACdec_obj : pointer to the upper-band encoder object. The
|
|
|
|
|
* bit-stream is stored inside the encoder object.
|
|
|
|
|
*
|
|
|
|
|
* Return value : >0 number of encoded bytes.
|
|
|
|
|
* <0 if an error occurred.
|
|
|
|
|
*/
|
2015-06-16 00:02:34 +02:00
|
|
|
int WebRtcIsac_EncodeUb12(const TransformTables* transform_tables,
|
|
|
|
|
float* in,
|
|
|
|
|
ISACUBEncStruct* ISACenc_obj,
|
2013-04-09 00:28:06 +00:00
|
|
|
int32_t jitterInfo);
|
2011-07-07 08:21:25 +00:00
|
|
|
|
|
|
|
|
/************************** initialization functions *************************/
|
|
|
|
|
|
This CL contains some refactoring. Spectrum coding is main place that is affected. Therefore, I have bit-exactness test, test_spectrum_
coding.c, to be sure about the changelist. You can go through the test to be sure the changes are tested. However, I don't intend to commi
t the test, as it would be a source of confusion and requires hack to iSAC to be able to run the test. It is basically a one-time test.
The part which not covered in this test is where we limit payload for super-wideband bit-stream. I'll add a test for that as well.
I kept format changes at minimum in all files except isac.c, which was in bad shape, and coding changes were minimum. I'm planning to uplo
ad following patches to this CL where I try to address formatting issues. But I don't intend to change variable names, for the moment.
The refactoring is not yet finished, so you would find part of the code which could be cleaned up, especially KLT transforms in entropy_co
ding.c
Review URL: https://webrtc-codereview.appspot.com/580004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@2359 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-06-04 20:04:58 +00:00
|
|
|
void WebRtcIsac_InitMasking(MaskFiltstr* maskdata);
|
2011-07-07 08:21:25 +00:00
|
|
|
|
This CL contains some refactoring. Spectrum coding is main place that is affected. Therefore, I have bit-exactness test, test_spectrum_
coding.c, to be sure about the changelist. You can go through the test to be sure the changes are tested. However, I don't intend to commi
t the test, as it would be a source of confusion and requires hack to iSAC to be able to run the test. It is basically a one-time test.
The part which not covered in this test is where we limit payload for super-wideband bit-stream. I'll add a test for that as well.
I kept format changes at minimum in all files except isac.c, which was in bad shape, and coding changes were minimum. I'm planning to uplo
ad following patches to this CL where I try to address formatting issues. But I don't intend to change variable names, for the moment.
The refactoring is not yet finished, so you would find part of the code which could be cleaned up, especially KLT transforms in entropy_co
ding.c
Review URL: https://webrtc-codereview.appspot.com/580004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@2359 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-06-04 20:04:58 +00:00
|
|
|
void WebRtcIsac_InitPostFilterbank(PostFiltBankstr* postfiltdata);
|
2011-07-07 08:21:25 +00:00
|
|
|
|
|
|
|
|
/**************************** transform functions ****************************/
|
|
|
|
|
|
2015-06-16 00:02:34 +02:00
|
|
|
void WebRtcIsac_InitTransform(TransformTables* tables);
|
|
|
|
|
|
|
|
|
|
void WebRtcIsac_Time2Spec(const TransformTables* tables,
|
|
|
|
|
double* inre1,
|
|
|
|
|
double* inre2,
|
|
|
|
|
int16_t* outre,
|
|
|
|
|
int16_t* outim,
|
|
|
|
|
FFTstr* fftstr_obj);
|
|
|
|
|
|
|
|
|
|
void WebRtcIsac_Spec2time(const TransformTables* tables,
|
|
|
|
|
double* inre,
|
|
|
|
|
double* inim,
|
|
|
|
|
double* outre1,
|
|
|
|
|
double* outre2,
|
|
|
|
|
FFTstr* fftstr_obj);
|
2011-07-07 08:21:25 +00:00
|
|
|
|
|
|
|
|
/***************************** filterbank functions **************************/
|
|
|
|
|
|
This CL contains some refactoring. Spectrum coding is main place that is affected. Therefore, I have bit-exactness test, test_spectrum_
coding.c, to be sure about the changelist. You can go through the test to be sure the changes are tested. However, I don't intend to commi
t the test, as it would be a source of confusion and requires hack to iSAC to be able to run the test. It is basically a one-time test.
The part which not covered in this test is where we limit payload for super-wideband bit-stream. I'll add a test for that as well.
I kept format changes at minimum in all files except isac.c, which was in bad shape, and coding changes were minimum. I'm planning to uplo
ad following patches to this CL where I try to address formatting issues. But I don't intend to change variable names, for the moment.
The refactoring is not yet finished, so you would find part of the code which could be cleaned up, especially KLT transforms in entropy_co
ding.c
Review URL: https://webrtc-codereview.appspot.com/580004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@2359 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-06-04 20:04:58 +00:00
|
|
|
void WebRtcIsac_FilterAndCombineFloat(float* InLP,
|
|
|
|
|
float* InHP,
|
|
|
|
|
float* Out,
|
|
|
|
|
PostFiltBankstr* postfiltdata);
|
2011-07-07 08:21:25 +00:00
|
|
|
|
This CL contains some refactoring. Spectrum coding is main place that is affected. Therefore, I have bit-exactness test, test_spectrum_
coding.c, to be sure about the changelist. You can go through the test to be sure the changes are tested. However, I don't intend to commi
t the test, as it would be a source of confusion and requires hack to iSAC to be able to run the test. It is basically a one-time test.
The part which not covered in this test is where we limit payload for super-wideband bit-stream. I'll add a test for that as well.
I kept format changes at minimum in all files except isac.c, which was in bad shape, and coding changes were minimum. I'm planning to uplo
ad following patches to this CL where I try to address formatting issues. But I don't intend to change variable names, for the moment.
The refactoring is not yet finished, so you would find part of the code which could be cleaned up, especially KLT transforms in entropy_co
ding.c
Review URL: https://webrtc-codereview.appspot.com/580004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@2359 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-06-04 20:04:58 +00:00
|
|
|
/************************* normalized lattice filters ************************/
|
2011-07-07 08:21:25 +00:00
|
|
|
|
This CL contains some refactoring. Spectrum coding is main place that is affected. Therefore, I have bit-exactness test, test_spectrum_
coding.c, to be sure about the changelist. You can go through the test to be sure the changes are tested. However, I don't intend to commi
t the test, as it would be a source of confusion and requires hack to iSAC to be able to run the test. It is basically a one-time test.
The part which not covered in this test is where we limit payload for super-wideband bit-stream. I'll add a test for that as well.
I kept format changes at minimum in all files except isac.c, which was in bad shape, and coding changes were minimum. I'm planning to uplo
ad following patches to this CL where I try to address formatting issues. But I don't intend to change variable names, for the moment.
The refactoring is not yet finished, so you would find part of the code which could be cleaned up, especially KLT transforms in entropy_co
ding.c
Review URL: https://webrtc-codereview.appspot.com/580004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@2359 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-06-04 20:04:58 +00:00
|
|
|
void WebRtcIsac_NormLatticeFilterMa(int orderCoef,
|
|
|
|
|
float* stateF,
|
|
|
|
|
float* stateG,
|
|
|
|
|
float* lat_in,
|
|
|
|
|
double* filtcoeflo,
|
|
|
|
|
double* lat_out);
|
2011-07-07 08:21:25 +00:00
|
|
|
|
This CL contains some refactoring. Spectrum coding is main place that is affected. Therefore, I have bit-exactness test, test_spectrum_
coding.c, to be sure about the changelist. You can go through the test to be sure the changes are tested. However, I don't intend to commi
t the test, as it would be a source of confusion and requires hack to iSAC to be able to run the test. It is basically a one-time test.
The part which not covered in this test is where we limit payload for super-wideband bit-stream. I'll add a test for that as well.
I kept format changes at minimum in all files except isac.c, which was in bad shape, and coding changes were minimum. I'm planning to uplo
ad following patches to this CL where I try to address formatting issues. But I don't intend to change variable names, for the moment.
The refactoring is not yet finished, so you would find part of the code which could be cleaned up, especially KLT transforms in entropy_co
ding.c
Review URL: https://webrtc-codereview.appspot.com/580004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@2359 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-06-04 20:04:58 +00:00
|
|
|
void WebRtcIsac_NormLatticeFilterAr(int orderCoef,
|
|
|
|
|
float* stateF,
|
|
|
|
|
float* stateG,
|
|
|
|
|
double* lat_in,
|
|
|
|
|
double* lo_filt_coef,
|
|
|
|
|
float* lat_out);
|
2011-07-07 08:21:25 +00:00
|
|
|
|
This CL contains some refactoring. Spectrum coding is main place that is affected. Therefore, I have bit-exactness test, test_spectrum_
coding.c, to be sure about the changelist. You can go through the test to be sure the changes are tested. However, I don't intend to commi
t the test, as it would be a source of confusion and requires hack to iSAC to be able to run the test. It is basically a one-time test.
The part which not covered in this test is where we limit payload for super-wideband bit-stream. I'll add a test for that as well.
I kept format changes at minimum in all files except isac.c, which was in bad shape, and coding changes were minimum. I'm planning to uplo
ad following patches to this CL where I try to address formatting issues. But I don't intend to change variable names, for the moment.
The refactoring is not yet finished, so you would find part of the code which could be cleaned up, especially KLT transforms in entropy_co
ding.c
Review URL: https://webrtc-codereview.appspot.com/580004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@2359 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-06-04 20:04:58 +00:00
|
|
|
void WebRtcIsac_Dir2Lat(double* a, int orderCoef, float* sth, float* cth);
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#endif /* MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_CODEC_H_ */
|