Direct Processing of Mpeg Audio Using Companding and Bfp Techniques

Direct Processing of Mpeg Audio Using Companding and Bfp Techniques

DIRECT PROCESSING OF MPEG AUDIO USING COMPANDING AND BFP TECHNIQUES Christos Vezyrtzis, Aaron (Ari) Klein, Dan Ellis and Yannis Tsividis Department of Electrical Engineering, Columbia University, New York Subband 1 samples and Subband 1 ABSTRACT scale-factors reconstruction filter u ј32 We present techniques for processing MPEG-audio encoded signals during the decoding process, using efficient fixed-point arithmetic Subband 2 reconstruction filter operations. A large signal-to-quantization-noise-ratio is achieved over a large range of input levels. By taking advantage of MPEG- u ј32 Direct audio built-in properties, quantization distortion at the outputs of our Subband 2 Input Processing samples and output MPEG Using systems is kept largely inaudible, even though only low-resolution scale-factors stream Companding . fixed-point operations are used in the processing. Or BFP . Index Terms— MPEG, DSP, companding . Subband 32 samples and Subband 32 scale-factors reconstruction filter 1. INTRODUCTION u ј32 The MPEG-1 audio coding standard is one of the most popular and widely used standards for efficient and perceptually lossless audio compression coding, since it achieves both high perceived audio fi- Fig. 1. Direct processing of MPEG-audio. Subband samples and delity and high compression rates. An excellent MPEG tutorial can corresponding scale factors are efficiently processed before denor- be found in [1]. MPEG-audio uses a digital filterbank to create 32 malization by using syllabic companding or block-floating-point narrowband filtered versions of a digital input signal, referred to as processors. “subbands,” each of which is downsampled by a factor of 32. The presence of a large signal in a particular subband makes noise in used, great savings in dynamic power can be realized by improving that subband perceptually inaudible; this phenomenon is known as the efficiency of the processing. “psychoacoustic masking”. In MPEG-1 layers I and II, scale factors, In this work, we process prior to denormalization by using the coded as a 6-bit index corresponding to one of 64 high-precision syllabic companding (compressing-expanding) DSP technique, in- predefined values, are used to compress the dynamic range of the troduced in [6], or the block-floating-point (BFP) technique of [7]; subband samples (normalization). The actual value of each subband these techniques process compressed input, along with correspond- sample is given by the normalized subband sample multiplied with ing input scale factors, and yield compressed output, along with the corresponding scale factor; this multiplication is referred to as corresponding output scale factors, provided that these scale factors “denormalization”. correspond to the the time-domain envelope of the subband samples. Processing of MPEG-audio encoded signals is conventionally The highest MPEG-audio layer for which this is the case is MPEG 1- performed by first fully decoding the input stream and then perform- Layer II (MP2), and this is the standard we used in this work. How- ing the desired processing. This method, which we refer to as “clas- ever, the techniques presented in this work can be similarly applied sical DSP,” completely ignores the features of MPEG-audio encod- to any standard in which audio is encoded in the form of normal- ing. The processor must process a signal with high dynamic range, ized time-domain subband samples and corresponding time-domain and with frequency content throughout the audio band. In [2, 3, 4, 5], scale factors; we chose MP2 since it is used for many applications, among others, the problem of how to directly process the subband including digital-video-broadcasting (DVB) and DVD players. samples is addressed, but the processing proposed therein is done The techniques presented in this work could also be used with after denormalization, so the processed subband signals, though nar- standards utilizing frequency-domain subband samples, such as the rowband, have high dynamic range. As a result, to avoid introducing popular MPEG 1- Layer III (MP3) standard, but with such standards, significant audible quantization distortion, these subband processors it would be necessary to first partially decode the input stream to ob- must be implemented in either very high resolution fixed-point or tain time-domain normalized subband samples and scale factors; for in floating point. For many applications, specifically those targeting the most part, such partial decoding is part of the standard decoding low-power, battery-operated devices, it will often be very desirable process, so it is not an overhead. to reduce the complexity of the computation required to implement The system-level block diagram for the technique we present in the processing; using only low-resolution fixed-point operations for this paper is shown in Fig. 1, where the MPEG-audio encoded signal the processing would be very desirable. This is the case regardless of is processed during decoding, before denormalization, taking advan- the implementation of the MPEG-1 decoder used, as this decoding tage of the compressed input and scale factors provided to us by the is necessary, and essentially a fixed, “sunk” cost, independent of the MPEG-audio standard. As in [3, 4], the processor shown in the fig- implementation of the processing. Even if a floating-point decoder is ure is composed of 32 “subband processors,” where each subband processor is a multiple-input, single-output system fed with subband This work was supported in part by NSF Grant CCF 07-01766. samples from all 32 subbands; the ith subband processor outputs the 978-1-4577-0539-7/11/$26.00 ©2011 IEEE 361 ICASSP 2011 exi (n) signals, referred to as “e-controls”, and normalized input, uˆ(n) yˆ(n) output and states uˆ(n), yˆ(n), and xˆi(n), such that: Subband e (n) Processor e (n) ( ) u y ˆ( )= u n u n eu(n) ˆ( )= y(n) y n ey (n) (2a) uˆ(n) yˆ(n) ˆ ( )= xi(n) 1≤ ≤ Companding xi n ( ) , i K exi n e (n) DSP u ey (n) By substituting (2a) in (1), we find that all subband processors are e (n) e (n) y identical and described by the state equations: x1 −0 8 ( ) 0 2 ( ) ˆ ( +1)= . exK n · ˆ ( )+ . eu n · ˆ( ) Envelope x1 n ( +1) xK n ( +1) u n generator ex1 n ex1 n xˆi(n +1)=ˆxi−1(n), 2 ≤ i ≤ K (2b) 1 8 ( ) 0 8 ( ) ˆ( )= . exK n · ˆ ( )+ . eu n · ˆ( ) Fig. 2. A companding subband processor. For this case study, the y n xK n u n ey(n) ey(n) processor block of Fig. 1 is composed of 32 identical copies of this th subband processor, with the i processor taking as input only the with K =64and exK (n)=ex1 (n − K +1). The e-controls th i stream of subband samples and corresponding scale factors. are constrained to be integer powers of 2, so that the ratios in (2) are efficiently implemented as subtractions of (integer) base-2 loga- subband samples corresponding to the ith subband. In contrast to rithms, and multiplying by the ratios is efficiently implemented with [2, 3, 4, 5], the processor shown in Fig. 1 can use few bits and sim- arithmetic bit-shift. Information about the input envelope for each ple low-bit fixed-point operations. Due to the compressed dynamic subband is provided in MPEG-audio in the form of a signal scale- ( ) range of the input, state, and output signals, the resulting output sig- factor. From this, the eu n control signal is generated via a lookup 14 8 nal to quantization noise ratio (SNR) is always sufficiently high that table (LUT). The LUT has a -bit input: the -bit normalized input 6 the output quantization noise is inaudible due to the psychoacous- sample, concatenated with its corresponding -bit scale-factor index. 4 2 tic masking properties exploited by the MPEG-audio reconstruction The LUT outputs a -bit integer corresponding to the base- loga- 2 filter bank. rithm of the lowest integer power of greater than the scale-factor, andanew8-bit compressed subband sample corresponding to this power-of-2 scale factor. The new 8-bit sample is used as uˆ(n) in (2), 2. DIRECT PROCESSING OF MPEG-ENCODED SIGNALS while the power-of-2 scale factor is used as eu(n) in (2). As shown in [6], the remaining e-controls should be chosen to correspond, at Due to lack of space, we present our techniques using a specific ex- least roughly, to the envelopes of the corresponding signals in the ample: an all-pass digital reverberator. A non-allpass filter could prototype, in order to maximize the dynamic range of the subband theoretically filter out some artifacts caused by our technique; by processor, and minimize the quantization distortion. Thus, as seen in using an allpass filter, we ensure that the absence of artifacts is a Fig. 2, we use an “Envelope generator” block to obtain the remain- property of our technique, rather than an “accident” related to the ing e-controls required by the companding DSP. In [6], a replica DSP type of filtering used. was used to calculate the remaining required e-controls. We could do this here as well, using 32 low-resolution fixed-point implementa- 2.1. Syllabic Companding Approach tions of the subband-prototype. However, implementing the replica DSPs adds significant overhead, so we have devised a more efficient We used the syllabic companding DSP technique, introduced in [6] technique for estimating the remaining e-controls. Our algorithm, and refined in [8], to implement a reverberator prototype, described shown in block diagram format in Fig. 3, takes advantage of the nar- in state-space by the following equations: rowband nature of the subbands, and is described in detail in the following.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    4 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us