You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.1 KiB
27 lines
1.1 KiB
6 years ago
|
function [S, sfc, G] = AACquantizer(frameF, frameType, SMR)
|
||
|
%Implementation of Quantizer
|
||
|
% Usage [S, sfc, G] = AACquantizer(frameF, frameType, SMR), where:
|
||
|
% Inputs
|
||
|
% - frameF is the frame in the frequency domain, in MDCT coefficients
|
||
|
% representation containing only one of the audio channels stored in
|
||
|
% a vector of length 1024
|
||
|
% - frameType is the type of the current frame in string
|
||
|
% representation, can be one of "OLS" (ONLY_LONG_SEQUENCE), "LSS"
|
||
|
% (LONG_START_SEQUENCE), "ESH" (EIGHT_SHORT_SEQUENCE), "LPS"
|
||
|
% (LONG_STOP_SEQUENCE)
|
||
|
% - SMR is the signal to mask ratio array of dimensions 42X8 for
|
||
|
% EIGHT_SHORT_SEQUENCE frames and 69X1 otherwise
|
||
|
%
|
||
|
% Output
|
||
|
% - S are the MDCT quantization symbols of one audio channel stored
|
||
|
% in a vector of length 1024
|
||
|
% - sfc are the scalefactors per band stored in an array of
|
||
|
% dimensions NBX8 for EIGHT_SHORT_SEQUENCE frames and NBX1
|
||
|
% otherwise, where NB is the number of bands
|
||
|
% - G is the global gain stored in an array of dimensions 1X8 for
|
||
|
% EIGHT_SHORT_SEQUENCE frames and a single value otherwise
|
||
|
|
||
|
|
||
|
end
|
||
|
|