diff options
author | Jean-Michel Trivi <jmtrivi@google.com> | 2013-08-27 15:57:28 -0700 |
---|---|---|
committer | Jean-Michel Trivi <jmtrivi@google.com> | 2013-08-27 15:57:28 -0700 |
commit | 3a0a695565d1d360f9a82173469c8ef858bc08a0 (patch) | |
tree | 11ca521b5ca3b674f02a605d0fc08d11624b205f /libFDK/src/qmf.cpp | |
parent | 16c472c201c197d3660334df5952eb4084897f9f (diff) | |
download | fdk-aac-3a0a695565d1d360f9a82173469c8ef858bc08a0.tar.gz fdk-aac-3a0a695565d1d360f9a82173469c8ef858bc08a0.tar.bz2 fdk-aac-3a0a695565d1d360f9a82173469c8ef858bc08a0.zip |
FDK update for downsampled SBR
Add missing support for downsampled SBR in libFDK
Bug 9428126
Change-Id: Idb732f8d31a115d36dd4b22916599db7fab98cae
Diffstat (limited to 'libFDK/src/qmf.cpp')
-rw-r--r-- | libFDK/src/qmf.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libFDK/src/qmf.cpp b/libFDK/src/qmf.cpp index 19c522f..54526dd 100644 --- a/libFDK/src/qmf.cpp +++ b/libFDK/src/qmf.cpp @@ -1017,8 +1017,14 @@ qmfInitFilterBank (HANDLE_QMF_FILTER_BANK h_Qmf, /*!< Handle to return */ break; case 32: h_Qmf->p_filter = qmf_64; + if (flags & QMF_FLAG_DOWNSAMPLED) { + h_Qmf->t_cos = qmf_phaseshift_cos_downsamp32; + h_Qmf->t_sin = qmf_phaseshift_sin_downsamp32; + } + else { h_Qmf->t_cos = qmf_phaseshift_cos32; h_Qmf->t_sin = qmf_phaseshift_sin32; + } h_Qmf->p_stride = 2; h_Qmf->FilterSize = 640; h_Qmf->filterScale = 0; |