Abstract:
A method for processing an audio signal, including: sound is converted to an analog audio input signal and converted into a digital audio signal; a windowed time domain signal is obtained and then a twiddled signal is obtained; the twiddled signal is pre-rotated and then an FFT is performed; an in-place fixed rotate compensation is performed on the FFT signal and then an post-rotated is performed; a quantized signal is obtained and then wrote into a bitstream for transmitting or storing.

Description:
CROSS-REFERENCE TO RELATED APPLICATIONS 
       [0001]    This application is a continuation of U.S. patent application Ser. No. 15/345,074, filed on Nov. 7, 2016, which is a continuation of U.S. patent application Ser. No. 13/938,834, filed on Jul. 10, 2013, now U.S. Pat. No. 9,519,619, which is a continuation of International Application No. PCT/CN2011/085197, filed on Dec. 31, 2011. The International Application claims priority to Chinese Patent Application No. 201110004032.5, filed on Jan. 10, 2011. All of the afore-mentioned patent applications are hereby incorporated by reference in their entireties. 
     
    
     TECHNICAL FIELD 
       [0002]    The present invention relates to the field of digital signal processing technologies, and in particular, to a signal processing method and device. 
       BACKGROUND 
       [0003]    In the field of digital communications, transmission of speeches, pictures, audios and videos has a very broad application requirement, such as cell phone communications, audio/video conferences, broadcast television, and multimedia entertainment. In order to reduce the resource occupied during storage or transmission of audio/video signals, audio/video compression coding technologies emerge. Many different technique branches emerge during the development of the audio/video compression coding technologies, where a technique of transforming a signal from a time domain to a frequency domain and then performing coding processing, also referred to as a transform-domain coding technique, is widely applied due to desired compression characteristics. 
         [0004]    Many methods for transforming the signal from the time domain to the frequency domain exist in the transform-domain coding technique, where the time-frequency transform such as Fourier transform (Discrete Fourier transform, DFT), Discrete Cosine Transform (Discrete Cosine Transform, DCT), Discrete sine transform (Discrete sine transform, DST) and Modified Discrete Cosine Transform (Modified Discrete Cosine Transform, MDCT) has broad applications, especially in fields such as spectrum analysis, picture coding and speech coding. The signal that has undergone the time-frequency transform may be compression coded through a quantization technology, and may also be coded by using other parameter audio coding methods, thereby achieving the objective of data compression. 
         [0005]    However, the inventor finds that, performing DCT-IV or MDCT forward transform and inverse transform directly according to transform formulas will result in high computational complexity and storage amount, and therefore, providing a time domain-frequency domain transform method with low storage amount becomes an urgent need. 
       SUMMARY 
       [0006]    Embodiments of the present invention aim to provide a data processing method, so as to reduce the storage amount of time domain-frequency domain transform processing during audio/video coding. 
         [0007]    A data processing method according to an embodiment of the present invention includes: 
         [0008]    twiddling input data, so as to obtain twiddled data; 
         [0009]    pre-rotating the twiddled data by using a symmetric rotate factor, where the rotate factor is a·W 4L   2p+1 , p=0, . . . , L/2−1, and a is a constant; 
         [0010]    performing a Fast Fourier (Fast Fourier Transform, FFT) transform of L/2 point on the pre-rotated data, where L is the length of the input data; 
         [0011]    post-rotating the data that has undergone the FFT transform by using a symmetric rotate factor, where the rotate factor is b·W 4L   2q+1 , q=0, . . . , L/2−1, and b is a constant; and obtaining output data. 
         [0012]    A time-domain to frequency-domain signal processing method according to another embodiment of the present invention includes: 
         [0013]    pre-processing time domain data, so as to obtain pre-processed data; 
         [0014]    pre-rotating the pre-processed data by using a rotate factor a·W N   n+0.5 ; 
         [0015]    performing Fast Fourier Transform of N/4 point on the pre-rotated data; and 
         [0016]    post-rotating the data that has undergone the Discrete Fourier Transform by using a rotate factor b·W N   k+0.5  so as to obtain frequency domain data; 
         [0017]    where, before the obtaining the frequency domain data, the method further includes: a step of performing fixed rotate compensation by using a fixed rotate compensation factor; the a and b are constants, the N is the length of the time domain data, and 
         [0000]    
       
         
           
             
               W 
               N 
             
             = 
             
               
                 e 
                 
                   
                     - 
                     j 
                   
                    
                   
                     
                       2 
                        
                       π 
                     
                     N 
                   
                 
               
               . 
             
           
         
       
     
         [0018]    A frequency-domain to time-domain signal processing method according to another embodiment of the present invention includes: 
         [0019]    pre-processing frequency domain data, so as to obtain pre-processed data; 
         [0020]    pre-rotating the pre-processed data by using a rotate factor c·W N   k+0.5 ; 
         [0021]    performing Fast Fourier Transform of N/4 point on the pre-rotated data; 
         [0022]    post-rotating the data that has undergone the Fast Fourier Transform by using a rotate factor d·W N   n+0.5 ; and 
         [0023]    post-processing the post-rotated data, so as to obtain time domain data; 
         [0024]    where, before the obtaining the time domain data, the method further includes: a step of performing fixed rotate compensation by using a fixed rotate compensation factor; the c and d are constants, the N is twice the length of the frequency domain data, and 
         [0000]    
       
         
           
             
               W 
               N 
             
             = 
             
               
                 e 
                 
                   
                     - 
                     j 
                   
                    
                   
                     
                       2 
                        
                       π 
                     
                     N 
                   
                 
               
               . 
             
           
         
       
     
         [0025]    A signal processing device according to another embodiment of the present invention includes: 
         [0026]    a twiddle unit, configured to twiddle input data, so as to obtain twiddled data; 
         [0027]    a pre-rotate unit, configured to pre-rotate the twiddled data by using a symmetric rotate factor, where the rotate factor is a·W 4L   2p+1 , p=0, . . . , L/2−1, and a is a constant; 
         [0028]    a transform unit, configured to perform a Fast Fourier (Fast Fourier Transform, FFT) transform of L/2 point on the pre-rotated data, where L is the length of the input data; 
         [0029]    a post-rotate unit, configured to post-rotate the data that has undergone the FFT transform by using a symmetric rotate factor, where the rotate factor is b·W 4L   2q+1 , q=0, . . . , L/2−1, and b is a constant; and 
         [0030]    an output unit, configured to obtain output data. 
         [0031]    A time-domain to frequency-domain signal processing device according to another embodiment of the present invention includes: 
         [0032]    a pre-processing unit, configured to pre-process time domain data, so as to obtain pre-processed data; 
         [0033]    a pre-rotate unit, configured to pre-rotate the pre-processed data by using a rotate factor a·W N   n+0.5 ; 
         [0034]    a transform unit, configured to perform Fast Fourier Transform of N/4 point on the pre-rotated data; 
         [0035]    a post-rotate unit, configured to post-rotate the data after the Discrete Fourier Transform by using a rotate factor b·W N   k+0.5 , so as to obtain frequency domain data; wherein, the device further includes: 
         [0036]    a fixed compensation unit, configured to perform fixed rotate compensation by using a fixed rotate compensation factor; the a and b are constants, the N is the length of the time domain data, and 
         [0000]    
       
         
           
             
               W 
               N 
             
             = 
             
               
                 e 
                 
                   
                     - 
                     j 
                   
                    
                   
                     
                       2 
                        
                       π 
                     
                     N 
                   
                 
               
               . 
             
           
         
       
     
         [0037]    A frequency-domain to time-domain processing device according to another embodiment of the present invention includes: 
         [0038]    a pre-processing unit, configured to pre-process frequency domain data, so as to obtain pre-processed data; 
         [0039]    a pre-rotate unit, configured to pre-rotate the pre-processed data by using a rotate factor c·W N   k+0.5 ; 
         [0040]    a transform unit, configured to perform Fast Fourier Transform of N/4 point on the pre-rotated data; 
         [0041]    a post-rotate unit, configured to post-rotate the data that has undergone the Fast Fourier Transform by using a rotate factor d·W N   n+0.5 ; where, the device further includes: 
         [0042]    a fixed compensation unit, configured to perform fixed rotate compensation by using a fixed rotate compensation factor; the c and d are constants, the N is twice the length of the frequency domain data, and 
         [0000]    
       
         
           
             
               W 
               N 
             
             = 
             
               
                 e 
                 
                   
                     - 
                     j 
                   
                    
                   
                     
                       2 
                        
                       π 
                     
                     N 
                   
                 
               
               . 
             
           
         
       
     
         [0043]    In the embodiments of the present invention, the rotate factors used in the pre-rotate and post-rotate steps have symmetry, thereby reducing the storage amount of the data. At the same time, the FFT may accelerate the speed of the transform, and reduce the computational complexity. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0044]    To describe the technical solutions according to the embodiments of the present invention or in the prior art more clearly, the accompanying drawings for describing the embodiments or the prior art are introduced briefly in the following. Apparently, the accompanying drawings in the following description are only some embodiments of the present invention, and persons of ordinary skill in the art can derive other drawings from the accompanying drawings without creative efforts. 
           [0045]      FIG. 1  is a schematic flow chart of an embodiment of a time-domain to frequency-domain DCT-IV transform method provided in the present invention; 
           [0046]      FIG. 2  is a schematic flow chart of another embodiment of a time-domain to frequency-domain DCT-IV transform method provided in the present invention; 
           [0047]      FIG. 3  is a schematic flow chart of another embodiment of a time-domain to frequency-domain DCT-IV transform method provided in the present invention; 
           [0048]      FIG. 4  is a schematic flow chart of an embodiment of a time-domain to frequency-domain MDCT transform method provided in the present invention; 
           [0049]      FIG. 5  is a schematic flow chart of an embodiment of a frequency-domain to time-domain MDCT transform method provided in the present invention; 
           [0050]      FIG. 6  is a schematic flow chart of another embodiment of a time-domain to frequency-domain MDCT transform method provided in the present invention; 
           [0051]      FIG. 7  is a schematic flow chart of another embodiment of a frequency-domain to time-domain MDCT transform method provided in the present invention; 
           [0052]      FIG. 8  is a schematic structural diagram of an embodiment of a signal processing device provided in the present invention; 
           [0053]      FIG. 9  is a schematic structural diagram of an embodiment of a time-domain to frequency-domain signal processing device provided in the present invention; and 
           [0054]      FIG. 10  is a schematic structural diagram of an embodiment of a frequency-domain to time-domain processing device provided in the present invention. 
       
    
    
     DETAILED DESCRIPTION 
       [0055]    The technical solutions of the present invention are clearly and completely described in the following with reference to the accompanying drawings. It is obvious that the embodiments to be described are only a part rather than all of the embodiments of the present invention. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention. 
         [0056]    In the field of digital signal processing, audio codec and video codec are widely applied in various electronic apparatuses, such as a mobile phone, a wireless device, a personal data assistant (PDA), a handheld or portable computer, a GPS receiver/navigation device, a camera, an audio/video player, a video camera, a video recorder, and a monitoring apparatus. Generally, the electronic apparatus includes an audio coder or audio decoder, the audio coder or decoder may be implemented directly by a digital circuit or chip such as a DSP (digital signal processor), or be implemented by software codes driving a processor to execute a process in the software codes. 
         [0057]    For example, there is an audio coder. The audio coder first performs a framing processing on an input signal, so as to obtain time domain data 20 ms per frame; performs a windowing processing on the time domain data, so as to obtain a windowed signal; performs frequency domain transform on the windowed time domain signal, for example, MDCT transform or DCT-IV transform so as to transform the signal from a time domain signal to a frequency domain signal; performs a band splitting processing on the frequency domain signal, so as to obtain the band-split frequency domain signal; calculates energy of each sub-band signal, performs quantization coding on the sub-band energy, and transmits it to a decoder; next, performs self-adaptive bit allocation based on auditory masking effect according to the quantized sub-band energy, so as to obtain the number of bits for quantization coding of each sub-band; and finally performs a normalization processing on frequency points in each sub-band, performs through a vector quantization technique, according to the allocated number of bits for coding, vector quantization on the frequency points in the sub-band that are undergone the normalization processing, so as to obtain a vector quantized code book index, codes it and then transmits to the decoder. After receiving a compressed code stream transmitted from the coder, the decoder searches for a code book index of energy of each sub-band signal from the code stream according to a corresponding decoding step, and obtains a quantization value of the energy of each sub-band signal; adopts a bit allocation technique consistent with the that of the coder according to the quantization values, so as to obtain the number of bits allocated for each sub-band; according to the number of bits allocated for each sub-band, and the code book index of vector quantization of each sub-band that is acquired from the code stream, obtains a normalization frequency domain coefficient after quantization of each sub-band; performs a denormalization processing on the normalization frequency domain coefficient after quantization of each sub-band according to the quantization value of the energy of each sub-band signal, so as to obtain a complete frequency domain signal; transforms the signal from the frequency domain to the time domain by adopting an inverse transform corresponding to the transform used by the coder on the frequency domain signal obtained through decoding, and post-processes the time domain signal to obtain a composite signal, that is, an output signal of the decoder. The time domain to frequency domain signal processing method may also be referred to as forward transform, and the frequency domain to time domain signal processing method may also be referred to as inverse transform. 
         [0058]    The DCT, as spatial transform, has the largest characteristic of having energy compaction, which results in that a coding system based on the DTC has desired compression performance. A type 4 DCT (DCT-IV) is often used in audio and video data compression. A formula of the DCT-IV transform is: 
         [0000]    
       
         
           
             
               y 
                
               
                 ( 
                 k 
                 ) 
               
             
             = 
             
               
                 ∑ 
                 
                   n 
                   = 
                   0 
                 
                 
                   L 
                   - 
                   1 
                 
               
                
               
                   
               
                
               
                 
                   
                     x 
                     ~ 
                   
                    
                   
                     ( 
                     n 
                     ) 
                   
                 
                  
                 
                   cos 
                    
                   
                     [ 
                     
                       
                         ( 
                         
                           n 
                           + 
                           
                             1 
                             2 
                           
                         
                         ) 
                       
                        
                       
                         ( 
                         
                           k 
                           + 
                           
                             1 
                             2 
                           
                         
                         ) 
                       
                        
                       
                         π 
                         L 
                       
                     
                     ] 
                   
                 
               
             
           
         
       
       
         
           
             
               k 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               L 
               - 
               1 
             
             , 
           
         
       
     
         [0059]    where, k is an integer from 0 to L−1. It can be seen that, performing the DCT-IV forward transform and inverse transform directly according to the transform formula will result in high computational complexity and large storage amount. The DCT-IV transform is widely applied in the field of real-time communications, especially in audio coding, so reducing the storage amount of the DCT-IV transform method becomes an urgent need. 
         [0060]    Referring to  FIG. 1 , a signal processing method provided in an embodiment of the present invention is used to implement time-domain to frequency-domain DCT-IV transform during a coding procedure, so as to reduce the storage amount in the transform. The method includes the following steps: 
         [0061]    S 101 : Twiddle time domain data, so as to obtain twiddled data. 
         [0062]    It is assumed that {tilde over (x)}(n) is data requiring DCT-IV transform, and the data may be data undergone pre-processing steps such as windowing. Twiddle the data {tilde over (x)}(n), so as to obtain twiddled data z(p); 
         [0000]        z ( p )={tilde over ( x )}(2 p )+ j·{tilde over (x)} ( L− 1−2 p ),  p= 0,1,2, . . . , L/ 2−1
 
         [0063]    S 102 : Pre-rotate the twiddled data by using a symmetric rotate factor, where the rotate factor is a·W 4L   2p+1 , p=0, 1, 2, . . . , L/2−1, and a is a constant. 
         [0064]    Pre-rotate the twiddled data z(p), where the rotate factor is a·W 4L   2p+1 , p=0, 1, 2, . . . , L/2−1. 
         [0000]    
       
         
           
             
               
                 W 
                 
                   4 
                    
                   
                       
                   
                    
                   L 
                 
                 
                   
                     2 
                      
                     
                         
                     
                      
                     p 
                   
                   + 
                   1 
                 
               
               = 
               
                 
                   cos 
                    
                   
                     
                       2 
                        
                       
                         π 
                          
                         
                           ( 
                           
                             
                               2 
                                
                               
                                   
                               
                                
                               p 
                             
                             + 
                             1 
                           
                           ) 
                         
                       
                     
                     
                       4 
                        
                       
                           
                       
                        
                       L 
                     
                   
                 
                 - 
                 
                   j 
                    
                   
                       
                   
                    
                   sin 
                    
                   
                     
                       2 
                        
                       
                         π 
                          
                         
                           ( 
                           
                             
                               2 
                                
                               
                                   
                               
                                
                               p 
                             
                             + 
                             1 
                           
                           ) 
                         
                       
                     
                     
                       4 
                        
                       
                           
                       
                        
                       L 
                     
                   
                 
               
             
             , 
             
               
 
             
              
             
               p 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 L 
                 2 
               
               - 
               1 
             
             , 
           
         
       
     
         [0000]    and a is a constant. 
         [0065]    W 4L   2p+1  in the rotate factor may also be expressed in the following form: 
         [0000]    
       
         
           
             
               
                 W 
                 
                   4 
                    
                   
                       
                   
                    
                   L 
                 
                 
                   
                     2 
                      
                     
                         
                     
                      
                     p 
                   
                   + 
                   1 
                 
               
               = 
               
                 
                   cos 
                    
                   
                     
                       2 
                        
                       
                         π 
                          
                         
                           ( 
                           
                             
                               2 
                                
                               
                                   
                               
                                
                               p 
                             
                             + 
                             1 
                           
                           ) 
                         
                       
                     
                     
                       4 
                        
                       
                           
                       
                        
                       L 
                     
                   
                 
                 - 
                 
                   j 
                    
                   
                       
                   
                    
                   sin 
                    
                   
                     
                       2 
                        
                       
                         π 
                          
                         
                           ( 
                           
                             
                               2 
                                
                               
                                   
                               
                                
                               p 
                             
                             + 
                             1 
                           
                           ) 
                         
                       
                     
                     
                       4 
                        
                       
                           
                       
                        
                       L 
                     
                   
                 
               
             
             , 
             
               
 
             
              
             
               p 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 L 
                 2 
               
               - 
               1 
             
             , 
           
         
       
     
         [0066]    which satisfies conditions of 
         [0000]    
       
         
           
             
               
                 cos 
                  
                 
                   
                     2 
                      
                     
                       π 
                        
                       
                         ( 
                         
                           
                             2 
                              
                             
                               ( 
                               
                                 
                                   L 
                                   / 
                                   2 
                                 
                                 - 
                                 1 
                                 - 
                                 q 
                               
                               ) 
                             
                           
                            
                           
                               
                           
                           + 
                           1 
                         
                         ) 
                       
                     
                   
                   
                     4 
                      
                     
                         
                     
                      
                     L 
                   
                 
               
               = 
               
                 
                   cos 
                    
                   
                     
                       2 
                        
                       
                         π 
                          
                         
                           ( 
                           
                             L 
                             - 
                             
                               ( 
                               
                                 
                                   2 
                                    
                                   
                                       
                                   
                                    
                                   q 
                                 
                                 + 
                                 1 
                               
                               ) 
                             
                           
                           ) 
                         
                       
                     
                     
                       4 
                        
                       
                           
                       
                        
                       L 
                     
                   
                 
                 = 
                 
                   sin 
                    
                   
                     
                       2 
                        
                       
                         π 
                          
                         
                           ( 
                           
                             
                               2 
                                
                               
                                   
                               
                                
                               q 
                             
                             + 
                             1 
                           
                           ) 
                         
                       
                     
                     
                       4 
                        
                       
                           
                       
                        
                       L 
                     
                   
                 
               
             
             , 
             
               
 
             
              
             
                 
             
              
             
               q 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
             , 
             
                 
             
              
             
               
                 L 
                 / 
                 4 
               
               - 
               
                 1 
                  
                 
                     
                 
                  
                 and 
               
             
           
         
       
       
         
           
             
               
                 sin 
                  
                 
                   
                     2 
                      
                     
                       π 
                        
                       
                         ( 
                         
                           
                             2 
                              
                             
                               ( 
                               
                                 
                                   L 
                                   / 
                                   2 
                                 
                                 - 
                                 1 
                                 - 
                                 q 
                               
                               ) 
                             
                           
                            
                           
                               
                           
                           + 
                           1 
                         
                         ) 
                       
                     
                   
                   
                     4 
                      
                     
                         
                     
                      
                     L 
                   
                 
               
               = 
               
                 
                   sin 
                    
                   
                     
                       2 
                        
                       
                         π 
                          
                         
                           ( 
                           
                             L 
                             - 
                             
                               ( 
                               
                                 
                                   2 
                                    
                                   
                                       
                                   
                                    
                                   q 
                                 
                                 + 
                                 1 
                               
                               ) 
                             
                           
                           ) 
                         
                       
                     
                     
                       4 
                        
                       
                           
                       
                        
                       L 
                     
                   
                 
                 = 
                 
                   cos 
                    
                   
                     
                       2 
                        
                       
                         π 
                          
                         
                           ( 
                           
                             
                               2 
                                
                               
                                   
                               
                                
                               q 
                             
                             + 
                             1 
                           
                           ) 
                         
                       
                     
                     
                       4 
                        
                       
                           
                       
                        
                       L 
                     
                   
                 
               
             
             , 
             
               
 
             
              
             
                 
             
              
             
               q 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
             , 
             
                 
             
              
             
               
                 L 
                 / 
                 4 
               
               - 
               1 
             
             , 
           
         
       
     
         [0000]    and therefore, in the specific implementation, only one of a cosine data table 
         [0000]    
       
         
           
             
               
                 a 
                 · 
                 cos 
               
                
               
                 
                   2 
                    
                   
                     π 
                      
                     
                       ( 
                       
                         
                           2 
                            
                           
                               
                           
                            
                           p 
                         
                         + 
                         1 
                       
                       ) 
                     
                   
                 
                 
                   4 
                    
                   
                       
                   
                    
                   L 
                 
               
             
             , 
             
               p 
               = 
               0 
             
             , 
             1 
             , 
             
               2 
                
               
                   
               
                
               … 
             
              
             
                 
             
             , 
             
               
                 L 
                 / 
                 2 
               
               - 
               1 
             
           
         
       
     
         [0000]    or a sine data table 
         [0000]    
       
         
           
             
               
                 a 
                 · 
                 sin 
               
                
               
                   
               
                
               
                 
                   2 
                    
                   
                     π 
                      
                     
                       ( 
                       
                         
                           2 
                            
                           p 
                         
                         + 
                         1 
                       
                       ) 
                     
                   
                 
                 
                   4 
                    
                   L 
                 
               
             
             , 
             
               p 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 L 
                 / 
                 2 
               
               - 
               1 
             
           
         
       
     
         [0000]    of L/2 point needs to be stored. 
         [0067]    S 103 : Perform Fast Fourier Transform (Fast Fourier Transform, FFT) of L/2 point on the pre-rotated data. 
         [0068]    S 104 : Post-rotate the data that has undergone the FFT transform by using a symmetric rotate factor, where the rotate factor is b·W 4L   2q+1 , q=0, . . . , L/2−1, and b is a constant. 
         [0069]    Post-rotate the data that has undergone the FFT transform, where the rotate factor is b·W 4L   2q+1 , q=0, . . . , L/2−1, that is, q is an integer between 0 and L/2−1. 
         [0000]    
       
         
           
             
               
                 W 
                 
                   4 
                    
                   L 
                 
                 
                   
                     2 
                      
                     q 
                   
                   + 
                   1 
                 
               
               = 
               
                 
                   cos 
                    
                   
                       
                   
                    
                   
                     
                       2 
                        
                       
                         π 
                          
                         
                           ( 
                           
                             
                               2 
                                
                               q 
                             
                             + 
                             1 
                           
                           ) 
                         
                       
                     
                     
                       4 
                        
                       L 
                     
                   
                 
                 - 
                 
                   j 
                    
                   
                       
                   
                    
                   sin 
                    
                   
                       
                   
                    
                   
                     
                       2 
                        
                       π 
                        
                       
                         ( 
                         
                           
                             2 
                              
                             q 
                           
                           + 
                           1 
                         
                         ) 
                       
                     
                     
                       4 
                        
                       L 
                     
                   
                 
               
             
             , 
             
               
 
             
              
             
               q 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 L 
                 / 
                 2 
               
               - 
               1 
             
             , 
           
         
       
     
         [0000]    and b is a constant. 
         [0070]    W 4L   2q+1  in the rotate factor may also be expressed in the following form: 
         [0000]    
       
         
           
             
               
                 W 
                 
                   4 
                    
                   L 
                 
                 
                   
                     2 
                      
                     q 
                   
                   + 
                   1 
                 
               
               = 
               
                 
                   cos 
                    
                   
                       
                   
                    
                   
                     
                       2 
                        
                       π 
                        
                       
                         ( 
                         
                           
                             2 
                              
                             q 
                           
                           + 
                           1 
                         
                         ) 
                       
                     
                     
                       4 
                        
                       L 
                     
                   
                 
                 - 
                 
                   j 
                    
                   
                       
                   
                    
                   sin 
                    
                   
                       
                   
                    
                   
                     
                       2 
                        
                       π 
                        
                       
                         ( 
                         
                           
                             2 
                              
                             q 
                           
                           + 
                           1 
                         
                         ) 
                       
                     
                     
                       4 
                        
                       L 
                     
                   
                 
               
             
             , 
             
               
 
             
              
             
               q 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 L 
                 / 
                 2 
               
               - 
               1 
             
             , 
           
         
       
     
         [0071]    and therefore, in the specific implementation, only one of a cosine data table 
         [0000]    
       
         
           
             
               
                 b 
                 · 
                 cos 
               
                
               
                   
               
                
               
                 
                   2 
                    
                   π 
                    
                   
                     ( 
                     
                       
                         2 
                          
                         q 
                       
                       + 
                       1 
                     
                     ) 
                   
                 
                 
                   4 
                    
                   L 
                 
               
             
             , 
             
               q 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 L 
                 / 
                 2 
               
               - 
               1 
             
           
         
       
     
         [0000]    or a sine data table 
         [0000]    
       
         
           
             
               
                 b 
                 · 
                 sin 
               
                
               
                   
               
                
               
                 
                   2 
                    
                   π 
                    
                   
                     ( 
                     
                       
                         2 
                          
                         p 
                       
                       + 
                       1 
                     
                     ) 
                   
                 
                 
                   4 
                    
                   L 
                 
               
             
             , 
             
               q 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 L 
                 / 
                 2 
               
               - 
               1 
             
           
         
       
     
         [0000]    of L/2 point needs to be stored. 
         [0072]    When a product of constants a and b of the two rotate factors in the forward transform and a product of constants c and d of the two rotate factors in the inverse transform is equal to 2/L, output data of the forward transform is used directly as input data of the inverse transform, and a result of the inverse transform may finish perfect reconstruction, that is, restore to obtain the data before the forward transform. Generally, in actual operations, the perfect reconstruction is not necessarily to be implemented. To implement the perfect reconstruction, values of the constants a and b are selected as long as a product of the product of a and b in the forward transform and the product of c and d in the inverse transform is equal to 2/L. In an embodiment, the product of a and b is equal to 
         [0000]    
       
         
           
             
               
                 2 
                 2 
               
               
                 L 
                 2 
               
             
             , 
           
         
       
     
         [0000]    for example, 
         [0000]    
       
         
           
             a 
             = 
             
               b 
               = 
               
                 
                   2 
                   4 
                 
                 
                   L 
                   4 
                 
               
             
           
         
       
     
         [0000]    may be selected, and in this way, after the pre-rotate and post-rotate, only one cosine data table 
         [0000]    
       
         
           
             
               
                 
                   2 
                   4 
                 
                 
                   L 
                   4 
                 
               
                
               cos 
                
               
                   
               
                
               
                 
                   2 
                    
                   π 
                    
                   
                     ( 
                     
                       
                         2 
                          
                         p 
                       
                       + 
                       1 
                     
                     ) 
                   
                 
                 
                   4 
                    
                   L 
                 
               
             
             , 
             
               p 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 L 
                 / 
                 2 
               
               - 
               1 
             
           
         
       
     
         [0000]    of L/2 point needs to be stored. 
         [0073]    S 105 : Obtain frequency domain data. 
         [0074]    A real part of the post-rotated data is expressed as y(2q), which is the odd number frequency of the frequency domain data; and an opposite number of an imaginary part of the post-rotated data is expressed as y(L−1−2q), which is the even number frequency of the frequency domain data. 
         [0000]    
       
         
           
             { 
             
               
                 
                   
                     
                       
                         y 
                          
                         
                           ( 
                           
                             2 
                              
                             q 
                           
                           ) 
                         
                       
                       = 
                       
                         Re 
                          
                         
                           { 
                           
                             
                               Z 
                               _ 
                             
                              
                             
                               ( 
                               q 
                               ) 
                             
                           
                           } 
                         
                       
                     
                   
                 
                 
                   
                     
                       
                         y 
                          
                         
                           ( 
                           
                             L 
                             - 
                             1 
                             - 
                             
                               2 
                                
                               q 
                             
                           
                           ) 
                         
                       
                       = 
                       
                         
                           - 
                           Im 
                         
                          
                         
                           { 
                           
                             
                               Z 
                               _ 
                             
                              
                             
                               ( 
                               q 
                               ) 
                             
                           
                           } 
                         
                       
                     
                   
                 
               
               , 
               
                 q 
                 = 
                 0 
               
               , 
               1 
               , 
               2 
               , 
               … 
                
               
                   
               
               , 
               
                 
                   
                     L 
                     / 
                     2 
                   
                   - 
                   
                     1 
                      
                     
                       
 
                     
                      
                     where 
                      
                     
                       
 
                     
                      
                     
                       
                         Z 
                         _ 
                       
                        
                       
                         ( 
                         q 
                         ) 
                       
                     
                   
                 
                 = 
                 
                   
                     W 
                     
                       4 
                        
                       L 
                     
                     
                       
                         2 
                          
                         q 
                       
                       + 
                       1 
                     
                   
                    
                   
                     
                       ∑ 
                       
                         p 
                         = 
                         0 
                       
                       
                         
                           2 
                           / 
                           L 
                         
                         - 
                         1 
                       
                     
                      
                     
                       
                         { 
                         
                           
                             z 
                              
                             
                               ( 
                               p 
                               ) 
                             
                           
                           * 
                           
                             W 
                             
                               4 
                                
                               L 
                             
                             
                               
                                 2 
                                  
                                 p 
                               
                               + 
                               1 
                             
                           
                         
                         } 
                       
                        
                       
                         W 
                         
                           L 
                           / 
                           2 
                         
                         pq 
                       
                     
                   
                 
               
               , 
               p 
               , 
               
                 q 
                 = 
                 0 
               
               , 
               … 
                
               
                   
               
               , 
               
                 
                   L 
                   / 
                   2 
                 
                 - 
                 1 
               
             
           
         
       
     
         [0000]    is the post-rotated data. 
         [0075]    The original DCT-IV transform formula 
         [0000]    
       
         
           
             
               
                 y 
                  
                 
                   ( 
                   k 
                   ) 
                 
               
               = 
               
                 
                   ∑ 
                   
                     n 
                     = 
                     0 
                   
                   
                     L 
                     - 
                     1 
                   
                 
                  
                 
                   
                     
                       x 
                       ~ 
                     
                      
                     
                       ( 
                       n 
                       ) 
                     
                   
                    
                   
                     cos 
                      
                     
                       [ 
                       
                         
                           ( 
                           
                             n 
                             + 
                             
                               1 
                               2 
                             
                           
                           ) 
                         
                          
                         
                           ( 
                           
                             k 
                             + 
                             
                               1 
                               2 
                             
                           
                           ) 
                         
                          
                         
                           π 
                           L 
                         
                       
                       ] 
                     
                   
                 
               
             
             , 
             
               
 
             
              
             
               k 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               L 
               - 
               
                 1 
                  
                 
                     
                 
                  
                 is 
                  
                 
                     
                 
                  
                 equivalent 
                  
                 
                     
                 
                  
                 to 
                  
                 
                   : 
                 
               
             
           
         
       
       
         
           
             { 
             
               
                 
                   
                     
                       
                         y 
                          
                         
                           ( 
                           
                             2 
                              
                             q 
                           
                           ) 
                         
                       
                       = 
                       
                         Re 
                          
                         
                           { 
                           
                             
                               Z 
                               _ 
                             
                              
                             
                               ( 
                               q 
                               ) 
                             
                           
                           } 
                         
                       
                     
                   
                 
                 
                   
                     
                       
                         y 
                          
                         
                           ( 
                           
                             L 
                             - 
                             1 
                             - 
                             
                               2 
                                
                               q 
                             
                           
                           ) 
                         
                       
                       = 
                       
                         
                           - 
                           Im 
                         
                          
                         
                           { 
                           
                             
                               Z 
                               _ 
                             
                              
                             
                               ( 
                               q 
                               ) 
                             
                           
                           } 
                         
                       
                     
                   
                 
               
               , 
               
                 q 
                 = 
                 0 
               
               , 
               … 
                
               
                   
               
               , 
               
                 
                   L 
                   / 
                   2 
                 
                 - 
                 
                   1 
                    
                   
                     
 
                   
                    
                   where 
                 
               
               , 
               
                 
 
               
                
               
                 
                   
                     Z 
                     _ 
                   
                    
                   
                     ( 
                     q 
                     ) 
                   
                 
                 = 
                 
                   
                     W 
                     
                       2 
                        
                       L 
                     
                     q 
                   
                    
                   
                     
                       ∑ 
                       
                         p 
                         = 
                         0 
                       
                       
                         
                           L 
                           / 
                           2 
                         
                         - 
                         1 
                       
                     
                      
                     
                       
                         { 
                         
                           
                             W 
                             
                               8 
                                
                               L 
                             
                             
                               
                                 4 
                                  
                                 p 
                               
                               + 
                               1 
                             
                           
                            
                           
                             z 
                              
                             
                               ( 
                               p 
                               ) 
                             
                           
                         
                         } 
                       
                        
                       
                         W 
                         
                           L 
                           / 
                           2 
                         
                         pq 
                       
                     
                   
                 
               
               , 
               p 
               , 
               
                 q 
                 = 
                 0 
               
               , 
               … 
                
               
                   
               
               , 
               
                 
                   
                     L 
                     / 
                     2 
                   
                   - 
                   
                     1 
                      
                     
                       
 
                     
                      
                     
                       z 
                        
                       
                         ( 
                         p 
                         ) 
                       
                     
                   
                 
                 = 
                 
                   
                     
                       x 
                       ~ 
                     
                      
                     
                       ( 
                       
                         2 
                          
                         p 
                       
                       ) 
                     
                   
                   + 
                   
                     j 
                      
                     
                         
                     
                      
                     
                       
                         x 
                         ~ 
                       
                        
                       
                         ( 
                         
                           L 
                           - 
                           1 
                           - 
                           
                             2 
                              
                             p 
                           
                         
                         ) 
                       
                     
                   
                 
               
               , 
               
                 p 
                 = 
                 0 
               
               , 
               … 
                
               
                   
               
               , 
               
                 
                   L 
                   / 
                   2 
                 
                 - 
                 1 
               
               , 
               
                 
 
               
                
               
                 
                   W 
                   N 
                 
                 = 
                 
                   e 
                   
                     
                       - 
                       j 
                     
                      
                     
                       
                         
                             
                         
                          
                         
                           2 
                            
                           π 
                         
                       
                       N 
                     
                   
                 
               
               , 
               
                 
 
               
                
               
                 
                   this 
                    
                   
                       
                   
                    
                   may 
                    
                   
                       
                   
                    
                   be 
                    
                   
                       
                   
                    
                   rewritten 
                    
                   
                       
                   
                    
                   as 
                    
                   
                     : 
                   
                    
                   
                     
 
                   
                    
                   
                     
                       Z 
                       _ 
                     
                      
                     
                       ( 
                       q 
                       ) 
                     
                   
                 
                 = 
                 
                   
                     W 
                     
                       4 
                        
                       L 
                     
                     
                       - 
                       1 
                     
                   
                   * 
                   
                     W 
                     
                       4 
                        
                       L 
                     
                     
                       
                         2 
                          
                         q 
                       
                       + 
                       1 
                     
                   
                    
                   
                     
                       ∑ 
                       
                         p 
                         = 
                         0 
                       
                       
                         
                           L 
                           / 
                           2 
                         
                         - 
                         1 
                       
                     
                      
                     
                       
                         { 
                         
                           
                             W 
                             
                               8 
                                
                               L 
                             
                             
                               - 
                               1 
                             
                           
                            
                           
                             z 
                              
                             
                               ( 
                               p 
                               ) 
                             
                           
                           * 
                           
                             W 
                             
                               4 
                                
                               L 
                             
                             
                               
                                 2 
                                  
                                 p 
                               
                               + 
                               1 
                             
                           
                         
                         } 
                       
                        
                       
                         W 
                         
                           L 
                           / 
                           2 
                         
                         pq 
                       
                     
                   
                 
               
               , 
               
                 
 
               
                
               p 
               , 
               
                 q 
                 = 
                 0 
               
               , 
               1 
               , 
               2 
               , 
               … 
                
               
                   
               
               , 
               
                 
                   L 
                   / 
                   2 
                 
                 - 
                 1 
               
             
           
         
       
     
         [0076]    where, in order to simplify the computation, W 4L   −1  may be taken to be approximate to 1, and W 8L   −1  may be taken to be approximate to 
         [0000]    
       
         
           
             1. 
              
             
                 
             
              
             
               { 
               
                 
                   
                     
                       
                         
                           y 
                            
                           
                             ( 
                             
                               2 
                                
                               q 
                             
                             ) 
                           
                         
                         = 
                         
                           Re 
                            
                           
                             { 
                             
                               
                                 Z 
                                 _ 
                               
                                
                               
                                 ( 
                                 q 
                                 ) 
                               
                             
                             } 
                           
                         
                       
                     
                   
                   
                     
                       
                         
                           y 
                            
                           
                             ( 
                             
                               L 
                               - 
                               1 
                               - 
                               
                                 2 
                                  
                                 q 
                               
                             
                             ) 
                           
                         
                         = 
                         
                           
                             - 
                             Im 
                           
                            
                           
                             { 
                             
                               
                                 Z 
                                 _ 
                               
                                
                               
                                 ( 
                                 q 
                                 ) 
                               
                             
                             } 
                           
                         
                       
                     
                   
                 
                 , 
                 
                   q 
                   = 
                   0 
                 
                 , 
                 1 
                 , 
                 2 
                 , 
                 … 
                  
                 
                     
                 
                 , 
                 
                   
                     
                       L 
                       / 
                       2 
                     
                     - 
                     
                       1 
                        
                       
                         
 
                       
                        
                       where 
                        
                       
                           
                       
                        
                       
                         z 
                          
                         
                           ( 
                           p 
                           ) 
                         
                       
                     
                   
                   = 
                   
                     
                       
                         x 
                         ~ 
                       
                        
                       
                         ( 
                         
                           2 
                            
                           p 
                         
                         ) 
                       
                     
                     + 
                     
                       j 
                        
                       
                           
                       
                        
                       
                         
                           x 
                           ~ 
                         
                          
                         
                           ( 
                           
                             L 
                             - 
                             1 
                             - 
                             
                               2 
                                
                               p 
                             
                           
                           ) 
                         
                       
                     
                   
                 
                 , 
                 
                   p 
                   = 
                   0 
                 
                 , 
                 1 
                 , 
                 2 
                 , 
                 … 
                  
                 
                     
                 
                 , 
                 
                   
                     
                       L 
                       / 
                       2 
                     
                     - 
                     
                       1 
                        
                       
                         
 
                       
                        
                       
                         W 
                         
                           4 
                            
                           L 
                         
                         
                           
                             2 
                              
                             q 
                           
                           + 
                           1 
                         
                       
                     
                   
                   = 
                   
                     
                       cos 
                        
                       
                         
                           
                               
                           
                            
                           
                             2 
                              
                             
                               π 
                                
                               
                                 ( 
                                 
                                   
                                     2 
                                      
                                     q 
                                   
                                   + 
                                   1 
                                 
                                 ) 
                               
                             
                           
                         
                         
                           4 
                            
                           L 
                         
                       
                     
                     - 
                     
                       j 
                        
                       
                           
                       
                        
                       sin 
                        
                       
                         
                           
                               
                           
                            
                           
                             2 
                              
                             
                               π 
                                
                               
                                 ( 
                                 
                                   
                                     2 
                                      
                                     q 
                                   
                                   + 
                                   1 
                                 
                                 ) 
                               
                             
                           
                         
                         
                           4 
                            
                           L 
                         
                       
                     
                   
                 
                 , 
                 
                   
 
                 
                  
                 
                   q 
                   = 
                   0 
                 
                 , 
                 1 
                 , 
                 2 
                 , 
                 … 
                  
                 
                     
                 
                 , 
                 
                   
                     
                       L 
                       / 
                       2 
                     
                     - 
                     
                       1 
                        
                       
                         
 
                       
                        
                       
                         W 
                         
                           4 
                            
                           L 
                         
                         
                           
                             2 
                              
                             q 
                           
                           + 
                           1 
                         
                       
                     
                   
                   = 
                   
                     
                       cos 
                        
                       
                         
                           
                               
                           
                            
                           
                             2 
                              
                             
                               π 
                                
                               
                                 ( 
                                 
                                   
                                     2 
                                      
                                     p 
                                   
                                   + 
                                   1 
                                 
                                 ) 
                               
                             
                           
                         
                         
                           4 
                            
                           L 
                         
                       
                     
                     - 
                     
                       j 
                        
                       
                           
                       
                        
                       sin 
                        
                       
                         
                           
                               
                           
                            
                           
                             2 
                              
                             
                               π 
                                
                               
                                 ( 
                                 
                                   
                                     2 
                                      
                                     p 
                                   
                                   + 
                                   1 
                                 
                                 ) 
                               
                             
                           
                         
                         
                           4 
                            
                           L 
                         
                       
                     
                   
                 
                 , 
                 
                   
 
                 
                  
                 
                   p 
                   = 
                   0 
                 
                 , 
                 1 
                 , 
                 2 
                 , 
                 … 
                  
                 
                     
                 
                 , 
                 
                   
                     L 
                     / 
                     2 
                   
                   - 
                   1 
                 
               
             
           
         
       
     
         [0077]    The rotate factor W 4L   2q+1  is symmetric, that is, W 4L   2q+1  satisfies 
         [0000]    
       
         
           
             
               
                 cos 
                  
                 
                     
                 
                  
                 
                   
                     2 
                      
                     
                       π 
                        
                       
                         ( 
                         
                           
                             2 
                              
                             
                               ( 
                               
                                 
                                   L 
                                   / 
                                   2 
                                 
                                 - 
                                 1 
                                 - 
                                 q 
                               
                               ) 
                             
                           
                           + 
                           1 
                         
                         ) 
                       
                     
                   
                   
                     4 
                      
                     L 
                   
                 
               
               = 
               
                 
                   cos 
                    
                   
                     
                       
                           
                       
                        
                       
                         2 
                          
                         
                           π 
                            
                           
                             ( 
                             
                               L 
                               - 
                               
                                 ( 
                                 
                                   
                                     2 
                                      
                                     q 
                                   
                                   + 
                                   1 
                                 
                                 ) 
                               
                             
                             ) 
                           
                         
                       
                     
                     
                       4 
                        
                       L 
                     
                   
                 
                 = 
                 
                   sin 
                    
                   
                       
                   
                    
                   
                     
                       2 
                        
                       π 
                        
                       
                         ( 
                         
                           
                             2 
                              
                             q 
                           
                           + 
                           1 
                         
                         ) 
                       
                     
                     
                       4 
                        
                       L 
                     
                   
                 
               
             
             , 
             
               
 
             
              
             
                 
             
              
             
               q 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 L 
                 / 
                 4 
               
               - 
               1 
             
           
         
       
       
         
           
             
               
                 sin 
                  
                 
                     
                 
                  
                 
                   
                     2 
                      
                     
                       π 
                        
                       
                         ( 
                         
                           
                             2 
                              
                             
                               ( 
                               
                                 
                                   L 
                                   / 
                                   2 
                                 
                                 - 
                                 1 
                                 - 
                                 q 
                               
                               ) 
                             
                           
                           + 
                           1 
                         
                         ) 
                       
                     
                   
                   
                     4 
                      
                     L 
                   
                 
               
               = 
               
                 
                   sin 
                    
                   
                     
                       
                           
                       
                        
                       
                         2 
                          
                         
                           π 
                            
                           
                             ( 
                             
                               L 
                               - 
                               
                                 ( 
                                 
                                   
                                     2 
                                      
                                     q 
                                   
                                   + 
                                   1 
                                 
                                 ) 
                               
                             
                             ) 
                           
                         
                       
                     
                     
                       4 
                        
                       L 
                     
                   
                 
                 = 
                 
                   cos 
                    
                   
                       
                   
                    
                   
                     
                       2 
                        
                       π 
                        
                       
                         ( 
                         
                           
                             2 
                              
                             q 
                           
                           + 
                           1 
                         
                         ) 
                       
                     
                     
                       4 
                        
                       L 
                     
                   
                 
               
             
             , 
             
               
 
             
              
             
                 
             
              
             
               q 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 L 
                 / 
                 4 
               
               - 
               1 
             
           
         
       
     
         [0078]    Likewise, the rotate factor W 4L   2p+1  also satisfies the symmetry. 
         [0079]    In this embodiment, the rotate factors used in the pre-rotate and post-rotate steps have symmetry. During implementation, only a cosine table of L/2 point or a sine table of L/2 point needs to be stored for the W 4L   2q+1 , so as to reduce the storage amount of the data. At the same time, using the FFT may accelerate the speed of the DCT-IV transform, and reduce the computational complexity. Further, skipping the step of fixed rotate may further reduce the computational complexity in the situation that the transform satisfies the reconstruction characteristic. 
         [0080]    In another embodiment, before the obtaining of the frequency domain data, the method further includes a step of performing fixed rotate compensation by using a fixed rotate compensation factor. In the transform formula, the fixed rotate compensation and operation of other part are of a multiplication relationship, so the fixed rotate compensation may be performed once or more according to the communicative property of multiplication, and the execution order of the fixed rotate compensation may be any order before the obtaining of the frequency domain data. 
         [0081]    In an embodiment, W 8L   −3  is used to perform the fixed rotate compensation once; and the step of performing the fixed rotate compensation may be performed before or after the pre-rotate, and may also be performed before or after the post-rotate. When the compensation is executed once, the fixed rotate compensation factor may be W 8L   −3 . In order to further reduce the computational complexity, some approximate values may be used to replace W 8L   −3  to perform the fixed rotate compensation. 
         [0000]    
       
         
           
             
               
                 W 
                 
                   8 
                    
                   L 
                 
                 
                   - 
                   3 
                 
               
               = 
               
                 
                   e 
                   
                     
                       - 
                       j 
                     
                      
                     
                         
                     
                      
                     
                       
                         2 
                          
                         π 
                          
                         
                           ( 
                           
                             - 
                             3 
                           
                           ) 
                         
                       
                       
                         8 
                          
                         L 
                       
                     
                   
                 
                 = 
                 
                   e 
                   
                     j 
                      
                     
                         
                     
                      
                     
                       
                         3 
                          
                         π 
                       
                       
                         4 
                          
                         L 
                       
                     
                   
                 
               
             
             , 
           
         
       
     
         [0000]    and therefore, the approximation may be performed with Taylor series expansion, for example, a result of first order Taylor series expansion 
         [0000]    
       
         
           
             1 
             + 
             
               j 
                
               
                 ( 
                 
                   
                     3 
                      
                     π 
                   
                   
                     4 
                      
                     L 
                   
                 
                 ) 
               
             
           
         
       
     
         [0000]    is used as the approximate value of W 8L   −3 , where, 
         [0000]    
       
         
           
             1 
             + 
             
               j 
                
               
                 ( 
                 
                   
                     3 
                      
                     π 
                   
                   
                     4 
                      
                     L 
                   
                 
                 ) 
               
             
           
         
       
     
         [0000]    represents a complex number of which a real part and an imaginary part are 1 and 
         [0000]    
       
         
           
             
               ( 
               
                 
                   3 
                    
                   π 
                 
                 
                   4 
                    
                   
                       
                   
                    
                   L 
                 
               
               ) 
             
             , 
           
         
       
     
         [0000]    respectively. 
         [0082]    In another embodiment, when the fixed rotate compensation is performed twice, the fixed rotate compensation factors may be W 8L   −1  and W 4L   −1 , and may also be approximate values thereof. The compensation factor of the fixed rotate compensation performed for the first time may be any one of W 8L   −1  and W 4L   −1 , and the compensation factor of the fixed rotate compensation performed for the second time may be the other one of W 8L   −1  and W 4L   −1 . The fixed rotate compensation performed for the first time may be performed before or after the pre-rotate, and the fixed rotate compensation performed for the second time may be performed before or after the post-rotate. In order to further reduce the computational complexity, some approximate values, such as Taylor series expansion, may be used to replace W 8L   −1  or W 4L   −1  to perform the fixed rotate compensation. For example, a result of first order Taylor series expansion 
         [0000]    
       
         
           
             1 
             + 
             
               j 
                
               
                 ( 
                 
                   π 
                   
                     4 
                      
                     L 
                   
                 
                 ) 
               
             
           
         
       
     
         [0000]    is used as the approximate value of W 8L   −1 , and a result of first order Taylor series expansion 
         [0000]    
       
         
           
             1 
             + 
             
               j 
                
               
                 ( 
                 
                   π 
                   
                     2 
                      
                     L 
                   
                 
                 ) 
               
             
           
         
       
     
         [0000]    is used as the approximate value of W 4L   −1 . 
         [0083]    Obviously, due to the communicative property of multiplication, the fixed rotate compensation may be performed for three or more times, and a product of compensation factors may be W 8L   −3 , or at least one compensation factor is an approximate value of at least factor of which the product is W 8L   −3 . The factor of the fixed rotate compensation may also be 1. 
         [0084]    In this embodiment, the step of fixed rotate compensation is added, so that it is ensured that data obtained after the transform consists with the data obtained after the original DCT-IV transform, thereby improving the accuracy of the DCT-IV transform. 
         [0085]    In addition, the inverse transform of the DCT-IV has steps substantially the same as those in the forward transform, only except that in the inverse transform, frequency domain data is first twiddled, time domain data is obtained after the final transform, and constants a and b in the rotate factors are changed to constants c and d. 
         [0086]    Referring to  FIG. 2 , a signal processing method provided in an embodiment of the present invention is used to implement time-domain to frequency-domain DCT-IV transform during a coding procedure, so as to reduce the storage amount in the transform. The method includes the following steps: 
         [0087]    S 201 : Twiddle time domain data, so as to obtain twiddled data. 
         [0088]    It is assumed that {tilde over (x)}(n) is data requiring DCT-IV transform, and the data may be data undergone pre-processing steps such as windowing. Twiddle the data (n), so as to obtain twiddled data z (p); 
         [0000]        z ( p )={tilde over ( x )}(2 p )+ j·{tilde over (x)} ( L− 1−2 p ),  p= 0,1,2, . . . , L/ 2−1
 
         [0089]    S 202 : Pre-rotate the twiddled data by using a symmetric rotate factor, where the rotate factor is a·W 4L   2p+1 , p=0, 1, 2, . . . , L/2−1, and a is a constant. 
         [0090]    Pre-rotate the twiddled data z(p), where the rotate factor is a·W 4L   2p+1 , and p=0, 1, 2, . . . , L/2−1. 
         [0000]    
       
         
           
             
               
                 W 
                 
                   4 
                    
                   
                       
                   
                    
                   L 
                 
                 
                   
                     2 
                      
                     
                         
                     
                      
                     p 
                   
                   + 
                   1 
                 
               
               = 
               
                 
                   cos 
                    
                   
                     
                       2 
                        
                       
                           
                       
                        
                       
                         π 
                          
                         
                           ( 
                           
                             
                               2 
                                
                               
                                   
                               
                                
                               p 
                             
                             + 
                             1 
                           
                           ) 
                         
                       
                     
                     
                       4 
                        
                       
                           
                       
                        
                       L 
                     
                   
                 
                 - 
                 
                   j 
                    
                   
                       
                   
                    
                   sin 
                    
                   
                     
                       2 
                        
                       
                         π 
                          
                         
                           ( 
                           
                             
                               2 
                                
                               p 
                             
                             + 
                             1 
                           
                           ) 
                         
                       
                     
                     
                       4 
                        
                       
                           
                       
                        
                       L 
                     
                   
                 
               
             
             , 
             
               
 
             
              
             
               p 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 L 
                 2 
               
               - 
               1 
             
             , 
           
         
       
     
         [0000]    and a is a constant. 
         [0091]    W 4L   2p+1  in the rotate factor may also be expressed in the following form: 
         [0000]    
       
         
           
             
               
                 W 
                 
                   4 
                    
                   
                       
                   
                    
                   L 
                 
                 
                   
                     2 
                      
                     
                         
                     
                      
                     p 
                   
                   + 
                   1 
                 
               
               = 
               
                 
                   cos 
                    
                   
                     
                       2 
                        
                       
                           
                       
                        
                       
                         π 
                          
                         
                           ( 
                           
                             
                               2 
                                
                               
                                   
                               
                                
                               p 
                             
                             + 
                             1 
                           
                           ) 
                         
                       
                     
                     
                       4 
                        
                       
                           
                       
                        
                       L 
                     
                   
                 
                 - 
                 
                   j 
                    
                   
                       
                   
                    
                   sin 
                    
                   
                     
                       2 
                        
                       
                         π 
                          
                         
                           ( 
                           
                             
                               2 
                                
                               p 
                             
                             + 
                             1 
                           
                           ) 
                         
                       
                     
                     
                       4 
                        
                       
                           
                       
                        
                       L 
                     
                   
                 
               
             
             , 
             
               
 
             
              
             
               p 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 L 
                 2 
               
               - 
               1 
             
           
         
       
     
         [0092]    which satisfies conditions of 
         [0000]    
       
         
           
             
                 
             
              
             
               
                 
                   cos 
                    
                   
                     
                       2 
                        
                       
                           
                       
                        
                       
                         π 
                          
                         
                           ( 
                           
                             
                               2 
                                
                               
                                 ( 
                                 
                                   
                                     L 
                                     2 
                                   
                                   - 
                                   1 
                                   - 
                                   q 
                                 
                                 ) 
                               
                             
                             + 
                             1 
                           
                           ) 
                         
                       
                     
                     
                       4 
                        
                       L 
                     
                   
                 
                 = 
                 
                   
                     cos 
                      
                     
                       
                         2 
                          
                         
                             
                         
                          
                         
                           π 
                            
                           
                             ( 
                             
                               L 
                               - 
                               
                                 ( 
                                 
                                   
                                     2 
                                      
                                     q 
                                   
                                   + 
                                   1 
                                 
                                 ) 
                               
                             
                             ) 
                           
                         
                       
                       
                         4 
                          
                         
                             
                         
                          
                         L 
                       
                     
                   
                   = 
                   
                     sin 
                      
                     
                       
                         2 
                          
                         
                             
                         
                          
                         
                           π 
                            
                           
                             ( 
                             
                               
                                 2 
                                  
                                 q 
                               
                               + 
                               1 
                             
                             ) 
                           
                         
                       
                       
                         4 
                          
                         
                             
                         
                          
                         L 
                       
                     
                   
                 
               
               , 
               
                 
 
               
                
               
                   
               
                
               
                 q 
                 = 
                 0 
               
               , 
               1 
               , 
               2 
               , 
               … 
                
               
                   
               
               , 
               
                 
                   L 
                   4 
                 
                 - 
                 
                   1 
                    
                   
                       
                   
                    
                   and 
                 
               
             
           
         
       
       
         
           
             
               
                 sin 
                  
                 
                   
                     2 
                      
                     
                         
                     
                      
                     
                       π 
                        
                       
                         ( 
                         
                           
                             2 
                              
                             
                               ( 
                               
                                 
                                   L 
                                   2 
                                 
                                 - 
                                 1 
                                 - 
                                 q 
                               
                               ) 
                             
                           
                           + 
                           1 
                         
                         ) 
                       
                     
                   
                   
                     4 
                      
                     L 
                   
                 
               
               = 
               
                 
                   sin 
                    
                   
                     
                       2 
                        
                       
                           
                       
                        
                       
                         π 
                          
                         
                           ( 
                           
                             L 
                             - 
                             
                               ( 
                               
                                 
                                   2 
                                    
                                   q 
                                 
                                 + 
                                 1 
                               
                               ) 
                             
                           
                           ) 
                         
                       
                     
                     
                       4 
                        
                       
                           
                       
                        
                       L 
                     
                   
                 
                 = 
                 
                   cos 
                    
                   
                     
                       2 
                        
                       
                           
                       
                        
                       
                         π 
                          
                         
                           ( 
                           
                             
                               2 
                                
                               q 
                             
                             + 
                             1 
                           
                           ) 
                         
                       
                     
                     
                       4 
                        
                       
                           
                       
                        
                       L 
                     
                   
                 
               
             
             , 
             
               
 
             
              
             
                 
             
              
             
               q 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 L 
                 4 
               
               - 
               1 
             
             , 
           
         
       
     
         [0000]    and therefore, in the specific implementation, only one of a cosine data table 
         [0000]    
       
         
           
             
               
                 a 
                 · 
                 cos 
               
                
               
                 
                   2 
                    
                   
                       
                   
                    
                   
                     π 
                      
                     
                       ( 
                       
                         
                           2 
                            
                           p 
                         
                         + 
                         1 
                       
                       ) 
                     
                   
                 
                 
                   4 
                    
                   L 
                 
               
             
             , 
             
               p 
               = 
               0 
             
             , 
             1 
             , 
             
               2 
                
               
                   
               
                
               … 
             
              
             
                 
             
             , 
             
               
                 L 
                 2 
               
               - 
               1 
             
           
         
       
     
         [0000]    or a sine data table 
         [0000]    
       
         
           
             
               
                 a 
                 · 
                 sin 
               
                
               
                 
                   2 
                    
                   
                       
                   
                    
                   
                     π 
                      
                     
                       ( 
                       
                         
                           2 
                            
                           p 
                         
                         + 
                         1 
                       
                       ) 
                     
                   
                 
                 
                   4 
                    
                   L 
                 
               
             
             , 
             
               p 
               = 
               0 
             
             , 
             1 
             , 
             
               2 
                
               
                   
               
                
               … 
             
              
             
                 
             
             , 
             
               
                 L 
                 2 
               
               - 
               1 
             
           
         
       
     
         [0000]    of L/2 point needs to be stored. 
         [0093]    S 203 : Perform fixed rotate compensation for the first time. 
         [0094]    Perform the fixed rotate compensation on the pre-rotated data, and a fixed rotate compensation factor is W 8L   −1 . In order to further reduce the computational complexity, some approximate values, such as Taylor series expansion, may be used to replace W 8L   −1  to perform the fixed rotate compensation. For example, a result of first order Taylor series expansion 
         [0000]    
       
         
           
             1 
             + 
             
               j 
                
               
                 ( 
                 
                   π 
                   
                     4 
                      
                     
                         
                     
                      
                     L 
                   
                 
                 ) 
               
             
           
         
       
     
         [0000]    is used as the approximate value of W 8L   −1  to perform the fixed rotate compensation. 
         [0095]    S 204 : Perform. FFT transform of L/2 point on the data that has undergone the fixed rotate compensation. 
         [0096]    S 205 : Perform the fixed rotate compensation for the second time. 
         [0097]    The data that has undergone the FFT transform is multiplied with W 4L   −1  to perform the fixed rotate compensation, or the data that has undergone the FFT transform is multiplied with an approximate value of W 4L   −1  to perform the fixed rotate compensation, and the approximate value may be obtained by using the Taylor series expansion of W 4L   −1 , for example, a result of first order Taylor series expansion 
         [0000]    
       
         
           
             1 
             + 
             
               j 
                
               
                 ( 
                 
                   π 
                   
                     2 
                      
                     L 
                   
                 
                 ) 
               
             
           
         
       
     
         [0000]    is used as the approximate value of W 4L   −1 . 
         [0098]    S 206 : Post-rotate the data that has undergone the fixed rotate compensation by using a symmetric rotate factor, where the rotate factor is b·W 4L   2q+1 , q=0, 1, 2, . . . , L/2−1. 
         [0000]    
       
         
           
             
               
                 W 
                 
                   4 
                    
                   
                       
                   
                    
                   L 
                 
                 
                   
                     2 
                      
                     
                         
                     
                      
                     q 
                   
                   + 
                   1 
                 
               
               = 
               
                 
                   cos 
                    
                   
                     
                       2 
                        
                       
                           
                       
                        
                       
                         π 
                          
                         
                           ( 
                           
                             
                               2 
                                
                               
                                   
                               
                                
                               q 
                             
                             + 
                             1 
                           
                           ) 
                         
                       
                     
                     
                       4 
                        
                       
                           
                       
                        
                       L 
                     
                   
                 
                 - 
                 
                   j 
                    
                   
                       
                   
                    
                   sin 
                    
                   
                     
                       2 
                        
                       
                         π 
                          
                         
                           ( 
                           
                             
                               2 
                                
                               q 
                             
                             + 
                             1 
                           
                           ) 
                         
                       
                     
                     
                       4 
                        
                       
                           
                       
                        
                       L 
                     
                   
                 
               
             
             , 
             
               q 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 L 
                 2 
               
               - 
               1 
             
             , 
           
         
       
     
         [0000]    and b is a constant. 
         [0099]    W 4L   2q+1  in the rotate factor may also be expressed in the following form: 
         [0000]    
       
         
           
             
               
                 W 
                 
                   4 
                    
                   
                       
                   
                    
                   L 
                 
                 
                   
                     2 
                      
                     
                         
                     
                      
                     q 
                   
                   + 
                   1 
                 
               
               = 
               
                 
                   cos 
                    
                   
                     
                       2 
                        
                       
                           
                       
                        
                       
                         π 
                          
                         
                           ( 
                           
                             
                               2 
                                
                               
                                   
                               
                                
                               q 
                             
                             + 
                             1 
                           
                           ) 
                         
                       
                     
                     
                       4 
                        
                       
                           
                       
                        
                       L 
                     
                   
                 
                 - 
                 
                   j 
                    
                   
                       
                   
                    
                   sin 
                    
                   
                     
                       2 
                        
                       
                         π 
                          
                         
                           ( 
                           
                             
                               2 
                                
                               q 
                             
                             + 
                             1 
                           
                           ) 
                         
                       
                     
                     
                       4 
                        
                       
                           
                       
                        
                       L 
                     
                   
                 
               
             
             , 
             
               q 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 L 
                 2 
               
               - 
               1 
             
           
         
       
     
         [0100]    and therefore, in the specific implementation, only one of a cosine data table 
         [0000]    
       
         
           
             
               
                 b 
                 · 
                 cos 
               
                
               
                 
                   2 
                    
                   
                       
                   
                    
                   
                     π 
                      
                     
                       ( 
                       
                         
                           2 
                            
                           q 
                         
                         + 
                         1 
                       
                       ) 
                     
                   
                 
                 
                   4 
                    
                   L 
                 
               
             
             , 
             
               q 
               = 
               0 
             
             , 
             1 
             , 
             
               2 
                
               
                   
               
                
               … 
             
              
             
                 
             
             , 
             
               
                 L 
                 2 
               
               - 
               1 
             
           
         
       
     
         [0000]    or a sine data table 
         [0000]    
       
         
           
             
               
                 b 
                 · 
                 sin 
               
                
               
                 
                   2 
                    
                   
                       
                   
                    
                   
                     π 
                      
                     
                       ( 
                       
                         
                           2 
                            
                           p 
                         
                         + 
                         1 
                       
                       ) 
                     
                   
                 
                 
                   4 
                    
                   L 
                 
               
             
             , 
             
               q 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 L 
                 2 
               
               - 
               1 
             
           
         
       
     
         [0000]    of L/2 point needs to be stored. 
         [0101]    To implement the perfect reconstruction, values of the constants a and b are selected as long as a product of the product of constants a and b of the two rotate factors in the forward transform and the product of constants c and d of the two rotate factors in the inverse transform is equal to 2/L. In an embodiment, the product of a and b is equal to 
         [0000]    
       
         
           
             
               
                 2 
                 2 
               
               
                 L 
                 2 
               
             
             , 
           
         
       
     
         [0000]    and the product of c and d is also equal to 
         [0000]    
       
         
           
             
               
                 2 
                 2 
               
               
                 L 
                 2 
               
             
             . 
           
         
       
     
         [0000]    In another embodiment, the product of a and b is equal to 1, and the product of c and d is equal to 2/L. In another embodiment, 
         [0000]    
       
         
           
             a 
             = 
             
               b 
               = 
               
                 
                   2 
                   4 
                 
                 
                   L 
                   4 
                 
               
             
           
         
       
     
         [0000]    is selected, and in this way, after the pre-rotate and post-rotate, only one Cosine data table 
         [0000]    
       
         
           
             
               
                 
                   2 
                   4 
                 
                 
                   L 
                   4 
                 
               
                
               cos 
                
               
                 
                   2 
                    
                   
                     π 
                      
                     
                       ( 
                       
                         
                           2 
                            
                           p 
                         
                         + 
                         1 
                       
                       ) 
                     
                   
                 
                 
                   4 
                    
                   L 
                 
               
             
             , 
             
               p 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 L 
                 2 
               
               - 
               1 
             
           
         
       
     
         [0000]    of L/2 point needs to be stored. 
         [0102]    S 207 : Obtain frequency domain data that has undergone the transform. 
         [0103]    A real part of the post-rotated data is expressed as y(2q), which is the odd number frequency of the frequency domain data; and 
         [0104]    an opposite number of an imaginary part of the post-rotated data is expressed as y(L−1−2q), which is the even number frequency of the frequency domain data. 
         [0000]    
       
         
           
             { 
             
               
                 
                   
                     
                       
                         y 
                          
                         
                           ( 
                           
                             2 
                              
                             
                                 
                             
                              
                             q 
                           
                           ) 
                         
                       
                       = 
                       
                         Re 
                          
                         
                           { 
                           
                             
                               Z 
                               _ 
                             
                              
                             
                               ( 
                               q 
                               ) 
                             
                           
                           } 
                         
                       
                     
                   
                 
                 
                   
                     
                       
                         y 
                          
                         
                           ( 
                           
                             L 
                             - 
                             1 
                             - 
                             
                               2 
                                
                               q 
                             
                           
                           ) 
                         
                       
                       = 
                       
                         
                           - 
                           Im 
                         
                          
                         
                           { 
                           
                             
                               Z 
                               _ 
                             
                              
                             
                               ( 
                               q 
                               ) 
                             
                           
                           } 
                         
                       
                     
                   
                 
               
               , 
               
                 q 
                 = 
                 0 
               
               , 
               1 
               , 
               2 
               , 
               … 
                
               
                   
               
               , 
               
                 
                   
                     L 
                     / 
                     2 
                   
                   - 
                   
                     1 
                      
                     
                       
 
                     
                      
                     where 
                      
                     
                         
                     
                      
                     
                       
                         Z 
                         _ 
                       
                        
                       
                         ( 
                         q 
                         ) 
                       
                     
                   
                 
                 = 
                 
                   
                     W 
                     
                       4 
                        
                       L 
                     
                     
                       - 
                       1 
                     
                   
                   * 
                   
                     W 
                     
                       4 
                        
                       
                           
                       
                        
                       L 
                     
                     
                       
                         2 
                          
                         
                             
                         
                          
                         q 
                       
                       + 
                       1 
                     
                   
                    
                   
                     
                       ∑ 
                       
                         p 
                         = 
                         0 
                       
                       
                         
                           L 
                           / 
                           2 
                         
                         - 
                         1 
                       
                     
                      
                     
                         
                     
                      
                     
                       
                         { 
                         
                           
                             W 
                             
                               8 
                                
                               
                                   
                               
                                
                               L 
                             
                             
                               - 
                               1 
                             
                           
                            
                           
                             z 
                              
                             
                               ( 
                               p 
                               ) 
                             
                           
                           * 
                           
                             W 
                             
                               4 
                                
                               
                                   
                               
                                
                               L 
                             
                             
                               
                                 2 
                                  
                                 p 
                               
                                
                               
                                   
                               
                               + 
                               1 
                             
                           
                         
                         } 
                       
                        
                       
                         W 
                         
                           L 
                           / 
                           2 
                         
                         pq 
                       
                     
                   
                 
               
               , 
               
                 
 
               
                
               p 
               , 
               
                 q 
                 = 
                 0 
               
               , 
               … 
                
               
                   
               
               , 
               
                 
                   L 
                   / 
                   2 
                 
                 - 
                 1 
               
               , 
               
                 
 
               
                
               
                 
                   or 
                    
                   
                     
 
                   
                    
                   
                     
                       Z 
                       _ 
                     
                      
                     
                       ( 
                       q 
                       ) 
                     
                   
                 
                 = 
                 
                   
                     ( 
                     
                       1 
                       + 
                       
                         j 
                          
                         
                           π 
                           
                             2 
                              
                             
                                 
                             
                              
                             L 
                           
                         
                       
                     
                     ) 
                   
                   * 
                   
                     W 
                     
                       4 
                        
                       
                           
                       
                        
                       L 
                     
                     
                       
                         2 
                          
                         
                             
                         
                          
                         q 
                       
                       + 
                       1 
                     
                   
                    
                   
                     
                       ∑ 
                       
                         p 
                         = 
                         0 
                       
                       
                         
                           L 
                           / 
                           2 
                         
                         - 
                         1 
                       
                     
                      
                     
                         
                     
                      
                     
                       
                         { 
                         
                           
                             ( 
                             
                               1 
                               + 
                               
                                 j 
                                  
                                 
                                   π 
                                   
                                     4 
                                      
                                     
                                         
                                     
                                      
                                     L 
                                   
                                 
                               
                             
                             ) 
                           
                           * 
                           
                             z 
                              
                             
                               ( 
                               p 
                               ) 
                             
                           
                           * 
                           
                             W 
                             
                               4 
                                
                               
                                   
                               
                                
                               L 
                             
                             
                               
                                 2 
                                  
                                 
                                     
                                 
                                  
                                 p 
                               
                               + 
                               1 
                             
                           
                         
                         } 
                       
                        
                       
                         W 
                         
                           L 
                           / 
                           2 
                         
                         pq 
                       
                     
                   
                 
               
               , 
               
                 
 
               
                
               p 
               , 
               
                 q 
                 = 
                 0 
               
               , 
               … 
                
               
                   
               
               , 
               
                 
                   L 
                   / 
                   2 
                 
                 - 
                 1 
               
               , 
             
           
         
       
     
         [0000]    which is the post-rotated data. 
         [0105]    It should be noted that, the step of performing the fixed rotate compensation by using W 8L   −1  may not only be performed after the pre-rotate, and may also be performed before the pre-rotate, and the step of performing the fixed rotate compensation by using W 4L   −1  may not only be performed before the post-rotate, and may also be performed after the post-rotate. In addition, in the transform formula, the fixed rotate compensation performed two times and the operation of other part are of a multiplication relationship, so the communicative property of multiplication is applicable, and therefore the step of performing the fixed rotate compensation by using W 8L   −1  may be exchanged with the step W 4L   −1  of performing the fixed rotate compensation by using. 
         [0106]    In this embodiment, the steps for performing the fixed rotate compensation performed twice are performed, so that it is ensured that input data of the FFT transform consists with the input data of the FFT in the original DCT-IV transform, and it is also ensured that data obtained after the transform consists with the data obtained after the original DCT-IV transform, thereby improving the accuracy of the DCT-IV transform. 
         [0107]    In addition, the inverse transform of the DCT-IV has steps substantially the same as those in the forward transform, only except that in the inverse transform, frequency domain data is first twiddled, time domain data is obtained after the final transform, and constants a and b in the rotate factors are changed to constants c and d. 
         [0108]    Referring to  FIG. 3 , a signal processing method provided in an embodiment of the present invention is used to implement time-domain to frequency-domain DCT-IV transform during a coding procedure, so as to reduce the storage amount in the transform. The method includes the following steps: 
         [0109]    S 301 : Twiddle time domain data, so as to obtain twiddled data. 
         [0110]    It is assumed that {tilde over (x)}(n) is data requiring DCT-IV transform, and the data may be data undergone pre-processing steps such as windowing. Twiddle the data {tilde over (x)}(n), so as to obtain twiddled data z(p); 
         [0000]    
       
         
           
             
               
                 z 
                  
                 
                   ( 
                   p 
                   ) 
                 
               
               = 
               
                 
                   
                     x 
                     ~ 
                   
                    
                   
                     ( 
                     
                       2 
                        
                       p 
                     
                     ) 
                   
                 
                 + 
                 
                   j 
                   · 
                   
                     
                       x 
                       ~ 
                     
                      
                     
                       ( 
                       
                         L 
                         - 
                         1 
                         - 
                         
                           2 
                            
                           p 
                         
                       
                       ) 
                     
                   
                 
               
             
             , 
             
               p 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 L 
                 2 
               
               - 
               1 
             
           
         
       
     
         [0111]    S 302 : Pre-rotate the twiddled data by using a symmetric rotate factor, where the rotate factor is a·W 4L   2p+1 , p=0, 1, 2, . . . , L/2−1, and a is a constant. 
         [0112]    Pre-rotate the twiddled data z(p), where the rotate factor is a·W 4L   2p+1 , and p=0, 1, 2, . . . , L/2−1. 
         [0000]    
       
         
           
             
               
                 W 
                 
                   4 
                    
                   L 
                 
                 
                   
                     2 
                      
                     p 
                   
                   + 
                   1 
                 
               
               = 
               
                 
                   cos 
                    
                   
                     
                       2 
                        
                       
                         π 
                          
                         
                           ( 
                           
                             
                               2 
                                
                               p 
                             
                             + 
                             1 
                           
                           ) 
                         
                       
                     
                     
                       4 
                        
                       L 
                     
                   
                 
                 - 
                 
                   j 
                    
                   
                       
                   
                    
                   sin 
                    
                   
                     
                       2 
                        
                       π 
                        
                       
                           
                       
                        
                       
                         ( 
                         
                           
                             2 
                              
                             p 
                           
                           + 
                           1 
                         
                         ) 
                       
                     
                     
                       4 
                        
                       L 
                     
                   
                 
               
             
             , 
             
               
 
             
              
             
               p 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 L 
                 2 
               
               - 
               1 
             
             , 
           
         
       
     
         [0000]    and a is a constant. 
         [0113]    W 4L   2p+1  in the rotate factor may also be expressed in the following form: 
         [0000]    
       
         
           
             
               
                 
                   W 
                   
                     4 
                      
                     L 
                   
                   
                     
                       2 
                        
                       p 
                     
                     + 
                     1 
                   
                 
                 = 
                 
                   
                     cos 
                      
                     
                       
                         2 
                          
                         
                           π 
                            
                           
                             ( 
                             
                               
                                 2 
                                  
                                 p 
                               
                               + 
                               1 
                             
                             ) 
                           
                         
                       
                       
                         4 
                          
                         L 
                       
                     
                   
                   - 
                   
                     j 
                      
                     
                         
                     
                      
                     sin 
                      
                     
                       
                         2 
                          
                         π 
                          
                         
                             
                         
                          
                         
                           ( 
                           
                             
                               2 
                                
                               p 
                             
                             + 
                             1 
                           
                           ) 
                         
                       
                       
                         4 
                          
                         L 
                       
                     
                   
                 
               
               , 
               
                 
 
               
                
               
                 p 
                 = 
                 0 
               
               , 
               1 
               , 
               2 
               , 
               … 
                
               
                   
               
               , 
               
                 
                   L 
                   2 
                 
                 - 
                 1 
               
             
              
             
                 
             
           
         
       
       
         
           
             which 
              
             
                 
             
              
             satisfies 
              
             
                 
             
              
             conditions 
              
             
                 
             
              
             of 
           
         
       
       
         
           
             
               
                 
                   
                     
                       cos 
                        
                       
                         
                           2 
                            
                           
                             π 
                              
                             
                               ( 
                               
                                 
                                   2 
                                    
                                   
                                     ( 
                                     
                                       
                                         L 
                                         2 
                                       
                                       - 
                                       1 
                                       - 
                                       q 
                                     
                                     ) 
                                   
                                 
                                 + 
                                 1 
                               
                               ) 
                             
                           
                         
                         
                           4 
                            
                           
                               
                           
                            
                           L 
                         
                       
                     
                     = 
                     
                       cos 
                        
                       
                         
                           2 
                            
                           
                             π 
                              
                             
                               ( 
                               
                                 L 
                                 - 
                                 
                                   ( 
                                   
                                     
                                       2 
                                        
                                       q 
                                     
                                     + 
                                     1 
                                   
                                   ) 
                                 
                               
                               ) 
                             
                           
                         
                         
                           4 
                            
                           
                               
                           
                            
                           L 
                         
                       
                     
                   
                 
               
               
                 
                   
                     = 
                     
                       sin 
                        
                       
                         
                           2 
                            
                           
                             π 
                              
                             
                               ( 
                               
                                 
                                   2 
                                    
                                   q 
                                 
                                 + 
                                 1 
                               
                               ) 
                             
                           
                         
                         
                           4 
                            
                           L 
                         
                       
                     
                   
                 
               
             
             , 
             
               
 
             
              
             
               q 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 L 
                 4 
               
               - 
               
                 1 
                  
                 
                     
                 
                  
                 and 
               
             
           
         
       
       
         
           
             
               
                 
                   
                     
                       sin 
                        
                       
                         
                           2 
                            
                           π 
                            
                           
                               
                           
                            
                           
                             ( 
                             
                               
                                 2 
                                  
                                 
                                   ( 
                                   
                                     
                                       L 
                                       2 
                                     
                                     - 
                                     1 
                                     - 
                                     q 
                                   
                                   ) 
                                 
                               
                               + 
                               1 
                             
                             ) 
                           
                         
                         
                           4 
                            
                           L 
                         
                       
                     
                     = 
                     
                       sin 
                        
                       
                         
                           2 
                            
                           
                             π 
                              
                             
                               ( 
                               
                                 L 
                                 - 
                                 
                                   ( 
                                   
                                     
                                       2 
                                        
                                       q 
                                     
                                     + 
                                     1 
                                   
                                   ) 
                                 
                               
                               ) 
                             
                           
                         
                         
                           4 
                            
                           L 
                         
                       
                     
                   
                 
               
               
                 
                   
                     = 
                     
                       cos 
                        
                       
                         
                           2 
                            
                           
                             π 
                              
                             
                               ( 
                               
                                 
                                   2 
                                    
                                   q 
                                 
                                 + 
                                 1 
                               
                               ) 
                             
                           
                         
                         
                           4 
                            
                           L 
                         
                       
                     
                   
                 
               
             
             , 
             
               
 
             
              
             
               q 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 L 
                 4 
               
               - 
               1 
             
             , 
           
         
       
     
         [0000]    and therefore, in the specific implementation, only one of a cosine data table 
         [0000]    
       
         
           
             
               
                 a 
                 · 
                 cos 
               
                
               
                 
                   2 
                    
                   
                     π 
                      
                     
                       ( 
                       
                         
                           2 
                            
                           p 
                         
                         + 
                         1 
                       
                       ) 
                     
                   
                 
                 
                   4 
                    
                   L 
                 
               
             
             , 
             
               p 
               = 
               0 
             
             , 
             1 
             , 
             
               2 
                
               
                   
               
                
               … 
             
              
             
                 
             
             , 
             
               
                 L 
                 2 
               
               - 
               1 
             
           
         
       
     
         [0000]    or a sine data table 
         [0000]    
       
         
           
             
               
                 a 
                 · 
                 sin 
               
                
               
                 
                   2 
                    
                   
                       
                   
                    
                   
                     π 
                      
                     
                       ( 
                       
                         
                           2 
                            
                           
                               
                           
                            
                           p 
                         
                         + 
                         1 
                       
                       ) 
                     
                   
                 
                 
                   4 
                    
                   
                       
                   
                    
                   L 
                 
               
             
             , 
             
               p 
               = 
               0 
             
             , 
             1 
             , 
             
               2 
                
               
                   
               
                
               … 
             
              
             
                 
             
             , 
             
               
                 L 
                 / 
                 2 
               
               - 
               1 
             
           
         
       
     
         [0000]    of L/2 point needs to be stored. 
         [0114]    S 303 : Perform Fast Fourier Transform (Fast Fourier Transform, FFT) of L/2 point on the pre-rotated data. 
         [0115]    S 304 : Perform fixed rotate compensation. 
         [0116]    The data that has undergone the FFT transform is multiplied with W 8L   −3  to perform the fixed rotate compensation, or the data that has undergone the FFT transform is multiplied with an approximate value of W 8L   −3  to perform the fixed rotate compensation, and the approximate value may be obtained by using the Taylor series expansion of W 8L   −3 , for example, a result of first order Taylor series expansion 
         [0000]    
       
         
           
             1 
             + 
             
               j 
                
               
                 ( 
                 
                   
                     3 
                      
                     π 
                   
                   
                     4 
                      
                     L 
                   
                 
                 ) 
               
             
           
         
       
     
         [0000]    is used as the approximate value of W 8L   −3 . 
         [0117]    S 305 : Post-rotate the data that has undergone the fixed rotate compensation by using a symmetric rotate factor, where the rotate factor is b·W 4L   2q+1 , q=0, 1, 2, . . . , L/2−1. 
         [0000]    
       
         
           
             
               
                 W 
                 
                   4 
                    
                   L 
                 
                 
                   
                     2 
                      
                     q 
                   
                   + 
                   1 
                 
               
               = 
               
                 
                   cos 
                    
                   
                     
                       2 
                        
                       
                         π 
                          
                         
                           ( 
                           
                             
                               2 
                                
                               q 
                             
                             + 
                             1 
                           
                           ) 
                         
                       
                     
                     
                       4 
                        
                       L 
                     
                   
                 
                 - 
                 
                   j 
                    
                   
                       
                   
                    
                   sin 
                    
                   
                     
                       2 
                        
                       π 
                        
                       
                           
                       
                        
                       
                         ( 
                         
                           
                             2 
                              
                             q 
                           
                           + 
                           1 
                         
                         ) 
                       
                     
                     
                       4 
                        
                       L 
                     
                   
                 
               
             
             , 
             
               q 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 L 
                 2 
               
               - 
               1 
             
             , 
           
         
       
     
         [0000]    and b is a constant. 
         [0118]    W 4L   2q+1  in the rotate factor may also be expressed in the following form: 
         [0000]    
       
         
           
             
               
                 W 
                 
                   4 
                    
                   L 
                 
                 
                   
                     2 
                      
                     q 
                   
                   + 
                   1 
                 
               
               = 
               
                 
                   cos 
                    
                   
                     
                       2 
                        
                       
                         π 
                          
                         
                           ( 
                           
                             
                               2 
                                
                               q 
                             
                             + 
                             1 
                           
                           ) 
                         
                       
                     
                     
                       4 
                        
                       L 
                     
                   
                 
                 - 
                 
                   j 
                    
                   
                       
                   
                    
                   sin 
                    
                   
                     
                       2 
                        
                       π 
                        
                       
                           
                       
                        
                       
                         ( 
                         
                           
                             2 
                              
                             q 
                           
                           + 
                           1 
                         
                         ) 
                       
                     
                     
                       4 
                        
                       L 
                     
                   
                 
               
             
             , 
             
               q 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 L 
                 2 
               
               - 
               1 
             
             , 
           
         
       
     
         [0119]    and therefore, in the specific implementation, only one of a cosine data table 
         [0000]    
       
         
           
             
               
                 b 
                 · 
                 cos 
               
                
               
                 
                   2 
                    
                   
                     π 
                      
                     
                       ( 
                       
                         
                           2 
                            
                           q 
                         
                         + 
                         1 
                       
                       ) 
                     
                   
                 
                 
                   4 
                    
                   L 
                 
               
             
             , 
             
               q 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 L 
                 2 
               
               - 
               1 
             
           
         
       
     
         [0000]    or a sine data table 
         [0000]    
       
         
           
             
               
                 b 
                 · 
                 sin 
               
                
               
                 
                   2 
                    
                   
                     π 
                      
                     
                       ( 
                       
                         
                           2 
                            
                           q 
                         
                         + 
                         1 
                       
                       ) 
                     
                   
                 
                 
                   4 
                    
                   L 
                 
               
             
             , 
             
               q 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 L 
                 2 
               
               - 
               1 
             
           
         
       
     
         [0000]    of L/2 point needs to be stored. 
         [0120]    To implement the perfect reconstruction, values of the constants a and b are selected as long as a product of the product of constants a and b of the two rotate factors in the forward transform and the product of constants c and d of the two rotate factors in the inverse transform is equal to 2/L. In an embodiment, the product of a and b is equal to 
         [0000]    
       
         
           
             
               
                 2 
                 2 
               
               
                 L 
                 2 
               
             
             . 
           
         
       
     
         [0000]    In another embodiment, 
         [0000]    
       
         
           
             a 
             = 
             
               b 
               = 
               
                 
                   2 
                   4 
                 
                 
                   L 
                   4 
                 
               
             
           
         
       
     
         [0000]    is selected, in this way, after the pre-rotate and post-rotate, only one Cosine data table 
         [0000]    
       
         
           
             
               
                 
                   2 
                   4 
                 
                 
                   L 
                   4 
                 
               
                
               cos 
                
               
                 
                   2 
                    
                   
                     π 
                      
                     
                       ( 
                       
                         
                           2 
                            
                           p 
                         
                         + 
                         1 
                       
                       ) 
                     
                   
                 
                 
                   4 
                    
                   L 
                 
               
             
             , 
             
               p 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 L 
                 2 
               
               - 
               1 
             
           
         
       
     
         [0000]    of L/2 point needs to be stored. 
         [0121]    S 306 : Obtain frequency domain data. 
         [0122]    A real part of the post-rotated data is expressed as y(2q), which is the odd number frequency of the frequency domain data; and an opposite number of an imaginary part of the post-rotated data is expressed as y(L−1−2q), which is the even number frequency of the frequency domain data. 
         [0000]    
       
         
           
             { 
             
               
                 
                   
                     
                       
                         y 
                          
                         
                           ( 
                           
                             2 
                              
                             q 
                           
                           ) 
                         
                       
                       = 
                       
                         Re 
                          
                         
                           { 
                           
                             
                               Z 
                               _ 
                             
                              
                             
                               ( 
                               q 
                               ) 
                             
                           
                           } 
                         
                       
                     
                   
                 
                 
                   
                     
                       
                         y 
                          
                         
                           ( 
                           
                             L 
                             - 
                             1 
                             - 
                             
                               2 
                                
                               q 
                             
                           
                           ) 
                         
                       
                       = 
                       
                         
                           - 
                           Im 
                         
                          
                         
                           { 
                           
                             
                               Z 
                               _ 
                             
                              
                             
                               ( 
                               q 
                               ) 
                             
                           
                           } 
                         
                       
                     
                   
                 
               
               , 
               
                 q 
                 = 
                 0 
               
               , 
               1 
               , 
               2 
               , 
               … 
                
               
                   
               
               , 
               
                 
                   
                     L 
                     2 
                   
                   - 
                   
                     1 
                      
                     
                       
 
                     
                      
                     where 
                      
                     
                         
                     
                      
                     
                       
 
                     
                      
                     
                       
                         Z 
                         _ 
                       
                        
                       
                         ( 
                         q 
                         ) 
                       
                     
                   
                 
                 = 
                 
                   
                     W 
                     
                       8 
                        
                       
                           
                       
                        
                       L 
                     
                     
                       - 
                       3 
                     
                   
                   * 
                   
                     W 
                     
                       4 
                        
                       
                           
                       
                        
                       L 
                     
                     
                       
                         2 
                          
                         
                             
                         
                          
                         q 
                       
                       + 
                       1 
                     
                   
                    
                   
                     
                       ∑ 
                       
                         p 
                         = 
                         0 
                       
                       
                         
                           L 
                           / 
                           2 
                         
                         - 
                         1 
                       
                     
                      
                     
                         
                     
                      
                     
                       
                         { 
                         
                           W 
                           
                             4 
                              
                             
                                 
                             
                              
                             L 
                           
                           
                             
                               2 
                                
                               
                                   
                               
                                
                               p 
                             
                             + 
                             1 
                           
                         
                         } 
                       
                        
                       
                         W 
                         
                           L 
                           / 
                           2 
                         
                         pq 
                       
                     
                   
                 
               
               , 
               
                 
 
               
                
               p 
               , 
               
                 q 
                 = 
                 0 
               
               , 
               … 
                
               
                   
               
               , 
               
                 
                   
                     L 
                     2 
                   
                   - 
                   
                     1 
                      
                     
                       
 
                     
                      
                     or 
                      
                     
                         
                     
                      
                     
                       
 
                     
                      
                     
                       
                         Z 
                         _ 
                       
                        
                       
                         ( 
                         q 
                         ) 
                       
                     
                   
                 
                 = 
                 
                   
                     W 
                     
                       4 
                        
                       
                           
                       
                        
                       L 
                     
                     
                       
                         2 
                          
                         
                             
                         
                          
                         q 
                       
                       + 
                       1 
                     
                   
                    
                   
                     
                       ∑ 
                       
                         p 
                         = 
                         0 
                       
                       
                         
                           L 
                           / 
                           2 
                         
                         - 
                         1 
                       
                     
                      
                     
                         
                     
                      
                     
                       
                         { 
                         
                           
                             W 
                             
                               8 
                                
                               
                                   
                               
                                
                               L 
                             
                             
                               - 
                               3 
                             
                           
                           * 
                           
                             W 
                             
                               4 
                                
                               
                                   
                               
                                
                               L 
                             
                             
                               
                                 2 
                                  
                                 p 
                               
                               + 
                               1 
                             
                           
                         
                         } 
                       
                        
                       
                         W 
                         
                           L 
                           / 
                           2 
                         
                         pq 
                       
                     
                   
                 
               
               , 
               
                 
 
               
                
               p 
               , 
               
                 q 
                 = 
                 0 
               
               , 
               … 
                
               
                   
               
               , 
               
                 
                   
                     L 
                     / 
                     2 
                   
                   - 
                   
                     1 
                      
                     
                       
 
                     
                      
                     or 
                      
                     
                         
                     
                      
                     
                       
 
                     
                      
                     
                       
                         Z 
                         _ 
                       
                        
                       
                         ( 
                         q 
                         ) 
                       
                     
                   
                 
                 = 
                 
                   
                     ( 
                     
                       1 
                       + 
                       
                         j 
                          
                         
                           
                             3 
                              
                             π 
                           
                           
                             4 
                              
                             L 
                           
                         
                       
                     
                     ) 
                   
                   * 
                   
                     W 
                     
                       4 
                        
                       L 
                     
                     
                       
                         2 
                          
                         q 
                       
                       + 
                       1 
                     
                   
                    
                   
                     
                       ∑ 
                       
                         p 
                         = 
                         0 
                       
                       
                         
                           L 
                           / 
                           2 
                         
                         - 
                         1 
                       
                     
                      
                     
                         
                     
                      
                     
                       
                         { 
                         
                           
                             z 
                              
                             
                               ( 
                               p 
                               ) 
                             
                           
                           * 
                           
                             W 
                             
                               4 
                                
                               
                                   
                               
                                
                               L 
                             
                             
                               
                                 2 
                                  
                                 p 
                               
                               + 
                               1 
                             
                           
                         
                         } 
                       
                        
                       
                         
                           W 
                           
                             L 
                             / 
                             2 
                           
                           pq 
                         
                         FFT 
                       
                     
                   
                 
               
               , 
               
                 
 
               
                
               p 
               , 
               
                 q 
                 = 
                 0 
               
               , 
               … 
                
               
                   
               
               , 
               
                 
                   
                     L 
                     / 
                     2 
                   
                   - 
                   
                     1 
                      
                     
                       
 
                     
                      
                     or 
                      
                     
                         
                     
                      
                     
                       
 
                     
                      
                     
                       
                         Z 
                         _ 
                       
                        
                       
                         ( 
                         q 
                         ) 
                       
                     
                   
                 
                 = 
                 
                   
                     W 
                     
                       4 
                        
                       L 
                     
                     
                       
                         2 
                          
                         q 
                       
                       + 
                       1 
                     
                   
                    
                   
                     
                       ∑ 
                       
                         p 
                         = 
                         0 
                       
                       
                         
                           L 
                           / 
                           2 
                         
                         - 
                         1 
                       
                     
                      
                     
                         
                     
                      
                     
                       
                         { 
                         
                           
                             ( 
                             
                               1 
                               + 
                               
                                 j 
                                  
                                 
                                     
                                 
                                  
                                 
                                   
                                     3 
                                      
                                     π 
                                   
                                   
                                     4 
                                      
                                     
                                         
                                     
                                      
                                     L 
                                   
                                 
                               
                             
                             ) 
                           
                           * 
                           
                             z 
                              
                             
                               ( 
                               p 
                               ) 
                             
                           
                           * 
                           
                             W 
                             
                               4 
                                
                               
                                   
                               
                                
                               L 
                             
                             
                               
                                 2 
                                  
                                 p 
                               
                               + 
                               1 
                             
                           
                         
                         } 
                       
                        
                       
                         
                           W 
                           
                             L 
                             / 
                             2 
                           
                           pq 
                         
                         FFT 
                       
                     
                   
                 
               
               , 
               
                 
 
               
                
               p 
               , 
               
                 q 
                 = 
                 0 
               
               , 
               … 
                
               
                   
               
               , 
               
                 
                   L 
                   / 
                   2 
                 
                 - 
                 1 
               
               , 
             
           
         
       
     
         [0000]    which is the post-rotated data. 
         [0123]    The step of performing the fixed rotate compensation in the embodiment may not only be performed before the post-rotate and may also be performed before the pre-rotate or before the FFT transform or after the post-rotate. In the transform formula, the fixed rotate compensation and operation of other part are of a multiplication relationship, so the communicative property of multiplication is also applicable. 
         [0124]    In this embodiment, the step of perform the fixed rotate compensation is added, so that it is ensured that data obtained after the transform consists with the data obtained after the original DCT-IV transform, thereby improving the accuracy of the DCT-IV transform. 
         [0125]    The inverse transform of the DCT-IV has steps similar to those in the forward transform, only except that in the inverse transform, frequency domain data is input and time domain data is output. Therefore, in the foregoing embodiment, an embodiment of the inverse transform of DCT-IV is then constructed when the input data and the output data are changed into the frequency domain data and the time domain data, respectively. In addition, the inverse transform and the forward transform of DCT-IV may have different orders of performing the fixed rotate compensation. For example, in the forward transform, the fixed rotate compensation is performed after the post-rotate, and in the inverse transform, the fixed rotate compensation is performed before the pre-rotate. 
         [0126]    In audio/video coding, the MDCT transform is also widely applied because it adopts a time domain aliasing cancellation (TDAC) technique to alleviate the “boundary effect”. A formula of the MDCT transform is: 
         [0000]    
       
         
           
             
               
                 X 
                 k 
               
               = 
               
                 
                   A 
                    
                   
                     
                       ∑ 
                       
                         n 
                         = 
                         0 
                       
                       
                         N 
                         - 
                         1 
                       
                     
                      
                     
                         
                     
                      
                     
                       
                         y 
                         n 
                       
                        
                       
                         cos 
                          
                         
                           [ 
                           
                             
                               
                                 2 
                                  
                                 π 
                               
                               N 
                             
                              
                             
                               ( 
                               
                                 n 
                                 + 
                                 
                                   1 
                                   2 
                                 
                                 + 
                                 
                                   N 
                                   4 
                                 
                               
                               ) 
                             
                              
                             
                               ( 
                               
                                 k 
                                 + 
                                 
                                   1 
                                   2 
                                 
                               
                               ) 
                             
                           
                           ] 
                         
                       
                        
                       
                           
                       
                        
                       k 
                     
                   
                 
                 = 
                 0 
               
             
             , 
             
               1 
                
               
                   
               
                
               … 
             
              
             
                 
             
             , 
             
               
                 N 
                 2 
               
               - 
               1 
             
             , 
           
         
       
     
         [0127]    where A is a normalization factor, and A is a constant. It can be seen that, performing the MDCT forward transform and inverse transform directly according to the transform formula will result in high computational complexity and storage amount, especially for the MDCT transform of a larger point. The MDCT transform is widely applied in the field of real-time communications, especially in audio coding, so providing a rapid MDCT transform method also becomes an urgent need. 
         [0128]    Referring to  FIG. 4 , a signal processing method provided in an embodiment of the present invention is used to implement time-domain to frequency-domain MDCT transform during a coding procedure, so as to reduce the storage amount in the transform. The method includes the following steps: 
         [0129]    S 401 : Pre-process time domain data, so as to obtain pre-processed data. 
         [0130]    It is assumed that y n  is data requiring MDCT transform, and the data may be data undergone processing steps such as windowing. Twiddle the data y n , so as to obtain twiddled data u n : 
         [0000]    
       
         
           
             
               
                 u 
                 n 
               
               = 
               
                 
                   
                     ( 
                     
                       
                         z 
                         
                           2 
                            
                           n 
                         
                       
                       + 
                       
                         jz 
                         
                           
                             N 
                             2 
                           
                           - 
                           1 
                           - 
                           
                             2 
                              
                             n 
                           
                         
                       
                     
                     ) 
                   
                    
                   
                       
                   
                    
                   n 
                 
                 = 
                 0 
               
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 N 
                 4 
               
               - 
               1 
             
           
         
       
       
         
           
             where 
              
             
               : 
             
           
         
       
       
         
           
             { 
             
               
                 
                   
                     
                       
                         
                           
                             z 
                             
                               n 
                               + 
                               
                                 N 
                                 4 
                               
                             
                           
                           = 
                           
                             
                               y 
                               n 
                             
                             - 
                             
                               y 
                               
                                 
                                   N 
                                   2 
                                 
                                 - 
                                 1 
                                 - 
                                 n 
                               
                             
                           
                         
                       
                     
                     
                       
                         
                           
                             z 
                             
                               
                                 N 
                                 4 
                               
                               - 
                               1 
                               - 
                               n 
                             
                           
                           = 
                           
                             
                               - 
                               
                                 y 
                                 
                                   N 
                                   - 
                                   1 
                                   - 
                                   n 
                                 
                               
                             
                             - 
                             
                               y 
                               
                                 
                                   N 
                                   2 
                                 
                                 + 
                                 n 
                               
                             
                           
                         
                       
                     
                   
                    
                   
                       
                   
                    
                   n 
                 
                 = 
                 0 
               
               , 
               1 
               , 
               2 
               , 
               … 
                
               
                   
               
               , 
               
                 
                   N 
                   4 
                 
                 - 
                 
                   1 
                    
                   
                     
 
                   
                    
                   or 
                    
                   
                       
                   
                    
                   be 
                    
                   
                       
                   
                    
                   represented 
                    
                   
                       
                   
                    
                   as 
                    
                   
                     : 
                   
                    
                   
                     
 
                   
                    
                   
                     { 
                     
                       
                         
                           
                             
                               z 
                               n 
                             
                             = 
                             
                               
                                 - 
                                 
                                   y 
                                   
                                     n 
                                     + 
                                     
                                       
                                         3 
                                          
                                         N 
                                       
                                       4 
                                     
                                   
                                 
                               
                               - 
                               
                                 y 
                                 
                                   
                                     
                                       3 
                                        
                                       N 
                                     
                                     4 
                                   
                                   - 
                                   1 
                                   - 
                                   n 
                                 
                               
                             
                           
                         
                         
                           
                             
                               n 
                               = 
                               0 
                             
                             , 
                             1 
                             , 
                             2 
                             , 
                             … 
                              
                             
                                 
                             
                             , 
                             
                               
                                 N 
                                 4 
                               
                               - 
                               1 
                             
                           
                         
                       
                       
                         
                           
                             
                               z 
                               n 
                             
                             = 
                             
                               
                                 y 
                                 
                                   n 
                                   - 
                                   
                                     N 
                                     4 
                                   
                                 
                               
                               - 
                               
                                 y 
                                 
                                   
                                     
                                       3 
                                        
                                       N 
                                     
                                     4 
                                   
                                   - 
                                   1 
                                   - 
                                   n 
                                 
                               
                             
                           
                         
                         
                           
                             
                               n 
                               = 
                               
                                 N 
                                 4 
                               
                             
                             , 
                             
                               
                                 N 
                                 4 
                               
                               + 
                               1 
                             
                             , 
                             … 
                              
                             
                                 
                             
                             , 
                             
                               
                                 N 
                                 2 
                               
                               - 
                               1 
                             
                           
                         
                       
                     
                   
                 
               
             
           
         
       
     
         [0131]    S 402 : Pre-rotate the pre-processed data by using a symmetric rotate factor, where the rotate factor is a·W N   n+0.5 , and 
         [0000]    
       
         
           
             
               n 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 N 
                 4 
               
               - 
               1. 
             
           
         
       
     
         [0132]    Pre-rotate the twiddled data u n , where the rotate factor is a·W N   n+0.5 , and 
         [0000]    
       
         
           
             
               n 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 N 
                 4 
               
               - 
               1. 
             
           
         
       
     
         [0000]    
       
         
           
             
               
                 W 
                 N 
                 
                   n 
                   + 
                   0.5 
                 
               
               = 
               
                 
                   e 
                   
                     
                       - 
                       j 
                     
                      
                     
                         
                     
                      
                     
                       
                         2 
                          
                         π 
                       
                       N 
                     
                      
                     
                       ( 
                       
                         n 
                         + 
                         0.5 
                       
                       ) 
                     
                   
                 
                 = 
                 
                   
                     cos 
                      
                     
                       ( 
                       
                         
                           2 
                            
                           
                             π 
                              
                             
                               ( 
                               
                                 n 
                                 + 
                                 0.5 
                               
                               ) 
                             
                           
                         
                         N 
                       
                       ) 
                     
                   
                   - 
                   
                     j 
                      
                     
                         
                     
                      
                     
                       sin 
                        
                       
                         ( 
                         
                           
                             2 
                              
                             
                               π 
                                
                               
                                 ( 
                                 
                                   n 
                                   + 
                                   0.5 
                                 
                                 ) 
                               
                             
                           
                           N 
                         
                         ) 
                       
                     
                   
                 
               
             
             , 
           
         
       
     
         [0000]    and a is a constant. 
         [0133]    W N   n+0.5  in the rotate factor may also be expressed in the following form: 
         [0000]    
       
         
           
             
               W 
               N 
               
                 n 
                 + 
                 0.5 
               
             
             = 
             
               
                 cos 
                  
                 
                   ( 
                   
                     
                       2 
                        
                       
                         π 
                          
                         
                           ( 
                           
                             n 
                             + 
                             0.5 
                           
                           ) 
                         
                       
                     
                     N 
                   
                   ) 
                 
               
               - 
               
                 j 
                  
                 
                     
                 
                  
                 
                   sin 
                    
                   
                     ( 
                     
                       
                         2 
                          
                         
                           π 
                            
                           
                             ( 
                             
                               n 
                               + 
                               0.5 
                             
                             ) 
                           
                         
                       
                       N 
                     
                     ) 
                   
                 
               
             
           
         
       
     
         [0134]    which satisfies conditions of 
         [0000]    
       
         
           
             
               cos 
                
               
                 ( 
                 
                   
                     
                       2 
                        
                       π 
                     
                     N 
                   
                    
                   
                     ( 
                     
                       n 
                       + 
                       0.5 
                     
                     ) 
                   
                 
                 ) 
               
             
             = 
             
               sin 
                
               
                 ( 
                 
                   
                     
                       2 
                        
                       π 
                     
                     N 
                   
                    
                   
                     ( 
                     
                       
                         N 
                         4 
                       
                       - 
                       1 
                       - 
                       n 
                       + 
                       0.5 
                     
                     ) 
                   
                 
                 ) 
               
             
           
         
       
       
         
           and 
         
       
       
         
           
             
               
                 sin 
                  
                 
                   ( 
                   
                     
                       
                         2 
                          
                         π 
                       
                       N 
                     
                      
                     
                       ( 
                       
                         n 
                         + 
                         0.5 
                       
                       ) 
                     
                   
                   ) 
                 
               
               = 
               
                 cos 
                  
                 
                   ( 
                   
                     
                       
                         2 
                          
                         π 
                       
                       N 
                     
                      
                     
                       ( 
                       
                         
                           N 
                           4 
                         
                         - 
                         1 
                         - 
                         n 
                         + 
                         0.5 
                       
                       ) 
                     
                   
                   ) 
                 
               
             
             , 
           
         
       
     
         [0000]    and therefore, in the specific implementation, only one of a cosine data table 
         [0000]    
       
         
           
             
               a 
               · 
               
                 cos 
                  
                 
                   ( 
                   
                     
                       
                         2 
                          
                         π 
                       
                       N 
                     
                      
                     
                       ( 
                       
                         n 
                         + 
                         0.5 
                       
                       ) 
                     
                   
                   ) 
                 
               
             
             , 
             
               n 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 N 
                 4 
               
               - 
               1 
             
           
         
       
     
         [0000]    or a sine data table 
         [0000]    
       
         
           
             
               a 
               · 
               
                 sin 
                  
                 
                   ( 
                   
                     
                       
                         2 
                          
                         π 
                       
                       N 
                     
                      
                     
                       ( 
                       
                         n 
                         + 
                         0.5 
                       
                       ) 
                     
                   
                   ) 
                 
               
             
             , 
             
               n 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 N 
                 4 
               
               - 
               1 
             
           
         
       
     
         [0000]    of N/4 point needs to be stored. 
         [0135]    S 403 : Perform fixed rotate compensation for the first time. 
         [0136]    Perform the fixed rotate compensation on the pre-rotated data, and a fixed rotate compensation factor is W N   −0.375 . In order to further reduce the computational complexity, some approximate values, such as Taylor series expansion, may be used to replace W N   −0.375  to perform the fixed rotate compensation. For example, a result of first order Taylor series expansion 
         [0000]    
       
         
           
             1 
             + 
             
               j 
                
               
                 ( 
                 
                   
                     3 
                      
                     π 
                   
                   
                     4 
                      
                     
                         
                     
                      
                     N 
                   
                 
                 ) 
               
             
           
         
       
     
         [0000]    is used as the approximate value of W N   −0.375  to perform the fixed rotate compensation. 
         [0137]    S 404 : Perform. FFT transform of N/4 point on the data that has undergone the fixed rotate compensation. 
         [0138]    S 405 : Perform the fixed rotate compensation for the second time. 
         [0139]    The data that has undergone the FFT transform is multiplied with W N   −0.375  to perform the fixed rotate compensation, or the data that has undergone the FFT transform is multiplied with an approximate value of W N   −0.375  to perform the fixed rotate compensation, and the approximate value may be obtained by using the Taylor series expansion of W N   −0.375 , for example, a result of first order Taylor series expansion 
         [0000]    
       
         
           
             1 
             + 
             
               j 
                
               
                 ( 
                 
                   
                     3 
                      
                     π 
                   
                   
                     4 
                      
                     
                         
                     
                      
                     N 
                   
                 
                 ) 
               
             
           
         
       
     
         [0000]    is used as the approximate value of W N   −0.375 . 
         [0140]    S 406 : Post-rotate the data that has undergone the fixed rotate compensation by using a symmetric rotate factor, where the rotate factor is b·W N   k+0.5 , and 
         [0000]    
       
         
           
             
               k 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 N 
                 4 
               
               - 
               1. 
             
           
         
       
     
         [0000]    
       
         
           
             
               
                 W 
                 N 
                 
                   k 
                   + 
                   0.5 
                 
               
               = 
               
                 
                   e 
                   
                     
                       - 
                       j 
                     
                      
                     
                         
                     
                      
                     
                       
                         2 
                          
                         π 
                       
                       N 
                     
                      
                     
                       ( 
                       
                         k 
                         + 
                         0.5 
                       
                       ) 
                     
                   
                 
                 = 
                 
                   
                     cos 
                      
                     
                       ( 
                       
                         
                           2 
                            
                           
                             π 
                              
                             
                               ( 
                               
                                 k 
                                 + 
                                 0.5 
                               
                               ) 
                             
                           
                         
                         N 
                       
                       ) 
                     
                   
                   - 
                   
                     j 
                      
                     
                         
                     
                      
                     
                       sin 
                        
                       
                         ( 
                         
                           
                             2 
                              
                             π 
                              
                             
                                 
                             
                              
                             
                               ( 
                               
                                 k 
                                 + 
                                 0.5 
                               
                               ) 
                             
                           
                           N 
                         
                         ) 
                       
                     
                   
                 
               
             
             , 
           
         
       
     
         [0000]    and b is a constant. 
         [0141]    W N   k+0.5  in the rotate factor may also be expressed in the following form: 
         [0000]    
       
         
           
             
               
                 W 
                 N 
                 
                   k 
                   + 
                   0.5 
                 
               
               = 
               
                 
                   cos 
                    
                   
                     ( 
                     
                       
                         2 
                          
                         
                           π 
                            
                           
                             ( 
                             
                               k 
                               + 
                               0.5 
                             
                             ) 
                           
                         
                       
                       N 
                     
                     ) 
                   
                 
                 - 
                 
                   j 
                    
                   
                       
                   
                    
                   
                     sin 
                      
                     
                       ( 
                       
                         
                           2 
                            
                           π 
                            
                           
                               
                           
                            
                           
                             ( 
                             
                               k 
                               + 
                               0.5 
                             
                             ) 
                           
                         
                         N 
                       
                       ) 
                     
                   
                 
               
             
             , 
           
         
       
     
         [0142]    and therefore, in the specific implementation, only one of 
         [0000]    
       
         
           
             
               a 
               · 
               
                 cos 
                  
                 
                   ( 
                   
                     
                       
                         2 
                          
                         π 
                       
                       N 
                     
                      
                     
                       ( 
                       
                         k 
                         + 
                         0.5 
                       
                       ) 
                     
                   
                   ) 
                 
               
             
             , 
             
               k 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 N 
                 4 
               
               - 
               1 
             
           
         
       
     
         [0000]    a cosine data table or a sine 
         [0000]    
       
         
           
             
               a 
               · 
               
                 sin 
                  
                 
                   ( 
                   
                     
                       
                         2 
                          
                         π 
                       
                       N 
                     
                      
                     
                       ( 
                       
                         k 
                         + 
                         0.5 
                       
                       ) 
                     
                   
                   ) 
                 
               
             
             , 
             
               k 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 N 
                 4 
               
               - 
               1 
             
           
         
       
     
         [0143]    data table of N/4 point needs to be stored. 
         [0144]    S 407 : Obtain frequency domain data. 
         [0145]    A real part of the post-rotated data is expressed as X2 k , which is the odd number frequency of the frequency domain data; and an opposite number of an imaginary part of the post-rotated data is expressed as X N/2-1-2k , which is the even number frequency of the frequency domain data. 
         [0146]    The frequency domain data, that is, the final spectrum, is 
         [0000]    
       
         
           
             
                 
             
              
             
               
                 X 
                 k 
               
               , 
               
                 k 
                 = 
                 0 
               
               , 
               1 
               , 
               
                 2 
                  
                 
                     
                 
                  
                 … 
               
                
               
                   
               
               , 
               
                 
                   N 
                   2 
                 
                 - 
                 1 
               
               , 
               
                 which 
                  
                 
                     
                 
                  
                 may 
                  
                 
                     
                 
                  
                 be 
                  
                 
                     
                 
                  
                 expressed 
                  
                 
                     
                 
                  
                 as 
                  
                 
                   : 
                 
               
             
           
         
       
       
         
           
             
               
                 X 
                 
                   2 
                    
                   
                       
                   
                    
                   k 
                 
               
               = 
               
                 
                   Re 
                    
                   
                     { 
                     
                       
                         
                           W 
                           N 
                           
                             - 
                             0.375 
                           
                         
                         · 
                         b 
                         · 
                         
                           W 
                           N 
                           
                             k 
                             + 
                             0.5 
                           
                         
                       
                        
                       
                         
                           ∑ 
                           
                             n 
                             = 
                             0 
                           
                           
                             
                               N 
                               4 
                             
                             - 
                             1 
                           
                         
                          
                         
                             
                         
                          
                         
                           
                             
                               u 
                               n 
                             
                             · 
                             
                               W 
                               N 
                               
                                 - 
                                 0.375 
                               
                             
                             · 
                             a 
                             · 
                             
                               W 
                               N 
                               
                                 n 
                                 + 
                                 0.5 
                               
                             
                           
                            
                           
                             W 
                             
                               N 
                               4 
                             
                             nk 
                           
                         
                       
                     
                     } 
                   
                    
                   
                       
                   
                    
                   k 
                 
                 = 
                 0 
               
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 N 
                 4 
               
               - 
               1 
             
             , 
             
               
 
             
              
             
               
                 X 
                 
                   
                     N 
                     2 
                   
                   - 
                   1 
                   - 
                   
                     2 
                      
                     
                         
                     
                      
                     k 
                   
                 
               
               = 
               
                 
                   Im 
                    
                   
                     { 
                     
                       
                         
                           W 
                           N 
                           
                             - 
                             0.375 
                           
                         
                         · 
                         b 
                         · 
                         
                           W 
                           N 
                           
                             k 
                             + 
                             0.5 
                           
                         
                       
                        
                       
                         
                           ∑ 
                           
                             n 
                             = 
                             0 
                           
                           
                             
                               N 
                               4 
                             
                             - 
                             1 
                           
                         
                          
                         
                             
                         
                          
                         
                           
                             
                               u 
                               n 
                             
                             · 
                             
                               W 
                               N 
                               
                                 - 
                                 0.375 
                               
                             
                             · 
                             a 
                             · 
                             
                               W 
                               N 
                               
                                 n 
                                 + 
                                 0.5 
                               
                             
                           
                            
                           
                             W 
                             
                               N 
                               4 
                             
                             nk 
                           
                         
                       
                     
                     } 
                   
                    
                   
                       
                   
                    
                   k 
                 
                 = 
                 0 
               
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 N 
                 4 
               
               - 
               1 
             
             , 
             
               
 
             
              
             
               
                 X 
                 
                   2 
                    
                   
                       
                   
                    
                   k 
                 
               
               = 
               
                 
                   Re 
                    
                   
                     { 
                     
                       
                         
                           ( 
                           
                             1 
                             + 
                             
                               j 
                                
                               
                                 ( 
                                 
                                   
                                     3 
                                      
                                     π 
                                   
                                   
                                     4 
                                      
                                     
                                         
                                     
                                      
                                     N 
                                   
                                 
                                 ) 
                               
                             
                           
                           ) 
                         
                         · 
                         b 
                         · 
                         
                           W 
                           N 
                           
                             k 
                             + 
                             0.5 
                           
                         
                       
                        
                       
                         
                           ∑ 
                           
                             n 
                             = 
                             0 
                           
                           
                             
                               N 
                               4 
                             
                             - 
                             1 
                           
                         
                          
                         
                             
                         
                          
                         
                           
                             
                               u 
                               n 
                             
                             · 
                             
                               ( 
                               
                                 1 
                                 + 
                                 
                                   j 
                                    
                                   
                                     ( 
                                     
                                       
                                         3 
                                          
                                         π 
                                       
                                       
                                         4 
                                          
                                         
                                             
                                         
                                          
                                         N 
                                       
                                     
                                     ) 
                                   
                                 
                               
                               ) 
                             
                             · 
                             a 
                             · 
                             
                               W 
                               N 
                               
                                 n 
                                 + 
                                 0.5 
                               
                             
                           
                            
                           
                             W 
                             
                               N 
                               4 
                             
                             nk 
                           
                         
                       
                     
                     } 
                   
                    
                   
                       
                   
                    
                   k 
                 
                 = 
                 0 
               
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 N 
                 4 
               
               - 
               1 
             
             , 
             
               
 
             
              
             
               
                 X 
                 
                   
                     N 
                     2 
                   
                   - 
                   1 
                   - 
                   
                     2 
                      
                     
                         
                     
                      
                     k 
                   
                 
               
               = 
               
                 
                   
                     - 
                     Im 
                   
                    
                   
                     { 
                     
                       
                         
                           ( 
                           
                             1 
                             + 
                             
                               j 
                                
                               
                                 ( 
                                 
                                   
                                     3 
                                      
                                     π 
                                   
                                   
                                     4 
                                      
                                     N 
                                   
                                 
                                 ) 
                               
                             
                           
                           ) 
                         
                         · 
                         b 
                         · 
                         
                           W 
                           N 
                           
                             k 
                             + 
                             0.5 
                           
                         
                       
                        
                       
                         
                           ∑ 
                           
                             n 
                             = 
                             0 
                           
                           
                             
                               N 
                               4 
                             
                             - 
                             1 
                           
                         
                          
                         
                             
                         
                          
                         
                           
                             
                               u 
                               n 
                             
                             · 
                             
                               ( 
                               
                                 1 
                                 + 
                                 
                                   j 
                                    
                                   
                                     ( 
                                     
                                       
                                         3 
                                          
                                         π 
                                       
                                       
                                         4 
                                          
                                         N 
                                       
                                     
                                     ) 
                                   
                                 
                               
                               ) 
                             
                             · 
                             a 
                             · 
                             
                               W 
                               N 
                               
                                 n 
                                 + 
                                 0.5 
                               
                             
                           
                            
                           
                             W 
                             
                               N 
                               4 
                             
                             nk 
                           
                         
                       
                     
                     } 
                   
                    
                   
                       
                   
                    
                   k 
                 
                 = 
                 0 
               
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 N 
                 4 
               
               - 
               1 
             
             , 
           
         
       
     
         [0147]    or 
         [0148]    It should be noted that, the step of performing the fixed rotate compensation for the first time by using W N   −0.375  may not only be performed after the pre-rotate, and may also be performed before the pre-rotate, and the step of performing the fixed rotate compensation for the second time by using W N   −0.375  may not only be performed before the post-rotate, and may also be performed after the post-rotate. 
         [0149]    In the transform formula, the fixed rotate compensation and operation of other part are of a multiplication relationship, so the communicative property of multiplication is applicable, the fixed rotate compensation may be performed once or more, and the execution order of the fixed rotate compensation may be any order before the obtaining of the frequency domain data. The product of the compensation factors is W N   −0.75  or an approximate value of at least one factor of which the product is W N   −0.75 . 
         [0150]    In this embodiment, adopting the rotate factors having symmetry may reduce the storage amount, the storage amount of the method before improvement is N/2 point, and the storage amount of the method after improvement is N/4 point. The step of performing fixed rotate compensation is added, thereby improving the accuracy of the MDCT transform, so that it is ensured that data obtained after the transform consists with the data obtained after the original MDCT transform. 
         [0151]    An original formula of MDCT fast transform based on FFT of N/4 point is: 
         [0000]    
       
         
           
             
               
                 
                   X 
                   
                     2 
                      
                     
                         
                     
                      
                     k 
                   
                 
                 - 
                 
                   jX 
                   
                     
                       N 
                       2 
                     
                     - 
                     1 
                     - 
                     
                       2 
                        
                       k 
                     
                   
                 
               
               = 
               
                 
                   
                     A 
                     · 
                     
                       
                         W 
                         N 
                         
                           k 
                           + 
                           0.125 
                         
                       
                       
                         post 
                         - 
                         rotation 
                       
                     
                   
                    
                   
                     
                       ∑ 
                       
                         n 
                         = 
                         0 
                       
                       
                         
                           N 
                           4 
                         
                         - 
                         1 
                       
                     
                      
                     
                         
                     
                      
                     
                       
                         { 
                         
                           
                             
                               u 
                               n 
                             
                              
                             
                               W 
                               N 
                               
                                 n 
                                 + 
                                 0.125 
                               
                             
                           
                           
                             pre 
                             - 
                             rotation 
                           
                         
                         } 
                       
                        
                       
                         
                           W 
                           
                             N 
                             4 
                           
                           nk 
                         
                         
                           
                             N 
                             4 
                           
                            
                           point 
                            
                           
                               
                           
                            
                           s 
                            
                           
                               
                           
                            
                           DFT 
                         
                       
                        
                       
                           
                       
                        
                       k 
                     
                   
                 
                 = 
                 0 
               
             
             , 
             … 
              
             
                 
             
             , 
             
               
                 N 
                 4 
               
               - 
               1 
             
           
         
       
       
         
           
             
                 
             
              
             
               this 
                
               
                   
               
                
               may 
                
               
                   
               
                
               be 
                
               
                   
               
                
               rewritten 
                
               
                   
               
                
               as 
                
               
                 : 
               
             
           
         
       
       
         
           
             
               
                 
                   X 
                   
                     2 
                      
                     k 
                   
                 
                 - 
                 
                   jX 
                   
                     
                       N 
                       2 
                     
                     - 
                     1 
                     - 
                     
                       2 
                        
                       
                           
                       
                        
                       k 
                     
                   
                 
               
               = 
               
                 
                   
                     A 
                     · 
                     
                       W 
                       N 
                       
                         - 
                         0.375 
                       
                     
                     · 
                     
                       
                         W 
                         N 
                         
                           k 
                           + 
                           0.5 
                         
                       
                       
                         post 
                         - 
                         rotation 
                       
                     
                   
                    
                   
                     
                       ∑ 
                       
                         n 
                         = 
                         0 
                       
                       
                         
                           N 
                           4 
                         
                         - 
                         1 
                       
                     
                      
                     
                         
                     
                      
                     
                       
                         { 
                         
                           
                             W 
                             N 
                             
                               - 
                               0.375 
                             
                           
                           · 
                           
                             u 
                             n 
                           
                           · 
                           
                             
                               W 
                               N 
                               
                                 n 
                                 + 
                                 0.5 
                               
                             
                             
                               pre 
                               - 
                               rotation 
                             
                           
                         
                         } 
                       
                        
                       
                         
                           W 
                           
                             N 
                             4 
                           
                           nk 
                         
                         
                           
                             N 
                             4 
                           
                            
                           
                               
                           
                            
                           point 
                            
                           
                               
                           
                            
                           s 
                            
                           
                               
                           
                            
                           DFT 
                         
                       
                        
                       
                           
                       
                        
                       k 
                     
                   
                 
                 = 
                 0 
               
             
             , 
             … 
              
             
                 
             
             , 
             
               
                 N 
                 4 
               
               - 
               1 
             
           
         
       
       
         
           
             where 
             , 
             
                
             
              
             
               
                 W 
                 N 
                 
                   n 
                   + 
                   0.5 
                 
               
               = 
               
                 
                   e 
                   
                     
                       - 
                       j 
                     
                      
                     
                         
                     
                      
                     
                       
                         2 
                          
                         π 
                       
                       N 
                     
                      
                     
                       ( 
                       
                         n 
                         + 
                         0.5 
                       
                       ) 
                     
                   
                 
                 = 
                 
                   
                     cos 
                      
                     
                       ( 
                       
                         
                           2 
                            
                           
                             π 
                              
                             
                               ( 
                               
                                 n 
                                 + 
                                 0.5 
                               
                               ) 
                             
                           
                         
                         N 
                       
                       ) 
                     
                   
                   - 
                   
                     j 
                      
                     
                         
                     
                      
                     
                       sin 
                        
                       
                         ( 
                         
                           
                             2 
                              
                             
                               π 
                                
                               
                                 ( 
                                 
                                   n 
                                   + 
                                   0.5 
                                 
                                 ) 
                               
                             
                           
                           N 
                         
                         ) 
                       
                     
                   
                 
               
             
             , 
             
               n 
               = 
               0 
             
             , 
             1 
             , 
             
               2 
                
               
                   
               
                
               … 
             
              
             
                 
             
             , 
             
               
                 N 
                 4 
               
               - 
               1 
             
           
         
       
       
         
           
             
               
                 W 
                 N 
                 
                   k 
                   + 
                   0.5 
                 
               
               = 
               
                 
                   e 
                   
                     
                       - 
                       j 
                     
                      
                     
                         
                     
                      
                     
                       
                         2 
                          
                         π 
                       
                       N 
                     
                      
                     
                       ( 
                       
                         k 
                         + 
                         0.5 
                       
                       ) 
                     
                   
                 
                 = 
                 
                   
                     cos 
                      
                     
                       ( 
                       
                         
                           2 
                            
                           
                             π 
                              
                             
                               ( 
                               
                                 k 
                                 + 
                                 0.5 
                               
                               ) 
                             
                           
                         
                         N 
                       
                       ) 
                     
                   
                   - 
                   
                     j 
                      
                     
                         
                     
                      
                     
                       sin 
                        
                       
                         ( 
                         
                           
                             2 
                              
                             
                               π 
                                
                               
                                 ( 
                                 
                                   k 
                                   + 
                                   0.5 
                                 
                                 ) 
                               
                             
                           
                           N 
                         
                         ) 
                       
                     
                   
                 
               
             
             , 
             
               k 
               = 
               0 
             
             , 
             1 
             , 
             
               2 
                
               
                   
               
                
               … 
             
              
             
                 
             
             , 
             
               
                 N 
                 4 
               
               - 
               1 
             
           
         
       
     
         [0152]    It is easy to prove that the modified rotate factor has the feature of symmetry, that is, W N   n+0.5  satisfies: 
         [0000]    
       
         
           
             
               
                 cos 
                  
                 
                   ( 
                   
                     
                       
                         2 
                          
                         π 
                       
                       N 
                     
                      
                     
                       ( 
                       
                         n 
                         + 
                         0.5 
                       
                       ) 
                     
                   
                   ) 
                 
               
               = 
               
                 sin 
                  
                 
                   ( 
                   
                     
                       
                         2 
                          
                         π 
                       
                       N 
                     
                      
                     
                       ( 
                       
                         
                           N 
                           4 
                         
                         - 
                         1 
                         - 
                         n 
                         + 
                         0.5 
                       
                       ) 
                     
                   
                   ) 
                 
               
             
             ; 
           
         
       
       
         
           
             
               sin 
                
               
                 ( 
                 
                   
                     
                       2 
                        
                       π 
                     
                     N 
                   
                    
                   
                     ( 
                     
                       n 
                       + 
                       0.5 
                     
                     ) 
                   
                 
                 ) 
               
             
             = 
             
               
                 cos 
                  
                 
                   ( 
                   
                     
                       
                         2 
                          
                         π 
                       
                       N 
                     
                      
                     
                       ( 
                       
                         
                           N 
                           4 
                         
                         - 
                         1 
                         - 
                         n 
                         + 
                         0.5 
                       
                       ) 
                     
                   
                   ) 
                 
               
               . 
             
           
         
       
     
         [0153]    Likewise, W N   k+0.5  also satisfies such symmetry. 
         [0154]    The feature of symmetry may be used to reduce the storage amount. During implementation, only a cosine table of N/4 point or a sine table of N/4 point needs to be stored for W N   n+0.5 , the fixed rotate compensation of W N   −0.375  is performed before performing the FFT transform of N/4 point, and the fixed rotate compensation of W N   −0.375  is performed after performing the FFT transform of N/4 point. It can be proved that the transform is completely reconstructed. 
         [0155]    In order to further reduce the computational complexity, some approximate values, such as Taylor series expansion, may be used to replace W N   −0.375  to perform the fixed rotate compensation. For example, a result of first order Taylor series expansion 
         [0000]    
       
         
           
             1 
             + 
             
               j 
                
               
                 ( 
                 
                   
                     3 
                      
                     π 
                   
                   
                     4 
                      
                     
                         
                     
                      
                     N 
                   
                 
                 ) 
               
             
           
         
       
     
         [0000]    may be used as the approximate value of W N   −0.375 . 
         [0156]    Referring to  FIG. 5 , a signal processing method provided in an embodiment of the present invention is used to implement frequency-domain to time-domain MDCT transform during a coding procedure, so as to reduce the storage amount in the transform. The method includes the following steps: 
         [0157]    S 501 : Twiddle frequency domain data, so as to obtain twiddled data. 
         [0158]    An intermediate variable obtained after data twiddle is 
         [0000]    
       
         
           
             
               
                 
                   X 
                   
                     2 
                      
                     k 
                   
                 
                 + 
                 
                   
                     jX 
                     
                       
                         
                           N 
                           2 
                         
                         - 
                         1 
                         - 
                         
                           2 
                            
                           k 
                         
                       
                       , 
                       
                           
                       
                        
                       where 
                     
                   
                    
                   k 
                 
               
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 N 
                 4 
               
               - 
               1. 
             
           
         
       
     
         [0159]    S 502 : Pre-rotate the twiddled data by using a symmetric rotate factor. 
         [0160]    Pre-rotate the twiddled data 
         [0000]    
       
         
           
             
               
                 X 
                 
                   2 
                    
                   k 
                 
               
               + 
               
                 j 
                  
                 
                     
                 
                  
                 
                   X 
                   
                     
                       N 
                       2 
                     
                     - 
                     1 
                     - 
                     
                       2 
                        
                       k 
                     
                   
                 
               
             
             , 
           
         
       
     
         [0000]    where the rotate factor is c·W N   k+0.5 , and 
         [0000]    
       
         
           
             
               k 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 N 
                 4 
               
               - 
               1. 
             
           
         
       
     
         [0000]    
       
         
           
             
               
                 W 
                 N 
                 
                   k 
                   + 
                   0.5 
                 
               
               = 
               
                 
                   e 
                   
                     
                       - 
                       k 
                     
                      
                     
                       
                         2 
                          
                         π 
                       
                       N 
                     
                      
                     
                       ( 
                       
                         k 
                         + 
                         0.5 
                       
                       ) 
                     
                   
                 
                 = 
                 
                   
                     cos 
                      
                     
                       ( 
                       
                         
                           2 
                            
                           
                             π 
                              
                             
                               ( 
                               
                                 k 
                                 + 
                                 0.5 
                               
                               ) 
                             
                           
                         
                         N 
                       
                       ) 
                     
                   
                   - 
                   
                     j 
                      
                     
                         
                     
                      
                     
                       sin 
                        
                       
                         ( 
                         
                           
                             2 
                              
                             
                               π 
                                
                               
                                 ( 
                                 
                                   k 
                                   + 
                                   0.5 
                                 
                                 ) 
                               
                             
                           
                           N 
                         
                         ) 
                       
                     
                   
                 
               
             
             , 
           
         
       
     
         [0000]    and c is a constant. 
         [0161]    S 503 : Perform fixed rotate compensation for the first time. 
         [0162]    Perform fixed rotate compensation on the pre-rotated data, where a fixed rotate compensation factor is W N   −0.375 . In order to further reduce the computational complexity, some approximate values, such as Taylor series expansion, may be used to replace W N   −0.375  to perform the fixed rotate compensation. For example, a result of first order Taylor series expansion 
         [0000]    
       
         
           
             1 
             + 
             
               j 
                
               
                 ( 
                 
                   
                     3 
                      
                     π 
                   
                   
                     4 
                      
                     
                         
                     
                      
                     N 
                   
                 
                 ) 
               
             
           
         
       
     
         [0000]    is used as the approximate value of W N   −0.375  to perform the fixed rotate compensation. 
         [0163]    S 504 : Perform. FFT transform of N/4 point on the data that has undergone the fixed rotate compensation. 
         [0164]    S 505 : Perform the fixed rotate compensation for the second time. 
         [0165]    The data that has undergone the FFT transform is multiplied with W N   −0.375  to perform the fixed rotate compensation, or the data that has undergone the FFT transform is multiplied with an approximate value of W N   −0.375  to perform the fixed rotate compensation, and the approximate value may be obtained by using the Taylor series expansion of W N   −0.375  for example, a result of first order Taylor series expansion 
         [0000]    
       
         
           
             1 
             + 
             
               j 
                
               
                 ( 
                 
                   
                     3 
                      
                     π 
                   
                   
                     4 
                      
                     
                         
                     
                      
                     N 
                   
                 
                 ) 
               
             
           
         
       
     
         [0000]    is used as the approximate value of W N   −0.375 . 
         [0166]    S 506 : Post-rotate the data that has undergone the fixed rotate compensation by using a symmetric rotate factor. 
         [0167]    Post-rotate the data after the fixed rotate, where the rotate factor is d·W N   n+0.5 , and 
         [0000]    
       
         
           
             
               n 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 N 
                 4 
               
               - 
               1. 
             
           
         
       
     
         [0000]    
       
         
           
             
               
                 W 
                 N 
                 
                   n 
                   + 
                   0.5 
                 
               
               = 
               
                 
                   e 
                   
                     
                       - 
                       j 
                     
                      
                     
                         
                     
                      
                     
                       
                         2 
                          
                         π 
                       
                       N 
                     
                      
                     
                       ( 
                       
                         n 
                         + 
                         0.5 
                       
                       ) 
                     
                   
                 
                 = 
                 
                   
                     cos 
                      
                     
                       ( 
                       
                         
                           2 
                            
                           
                             π 
                              
                             
                               ( 
                               
                                 n 
                                 + 
                                 0.5 
                               
                               ) 
                             
                           
                         
                         N 
                       
                       ) 
                     
                   
                   - 
                   
                     j 
                      
                     
                         
                     
                      
                     sin 
                      
                     
                         
                     
                      
                     
                       ( 
                       
                         
                           2 
                            
                           
                             π 
                              
                             
                               ( 
                               
                                 n 
                                 + 
                                 0.5 
                               
                               ) 
                             
                           
                         
                         N 
                       
                       ) 
                     
                   
                 
               
             
             , 
           
         
       
     
         [0000]    and d is a constant. 
         [0168]    S 507 : Obtain time domain data. 
         [0169]    Obtain time domain data {circumflex over (x)} n , n=0, 1, 2, . . . , N−1. 
         [0000]    
       
         
           
             { 
             
               
                 
                   
                     
                       
                         
                           
                             
                               x 
                               ^ 
                             
                             
                               
                                 2 
                                  
                                 n 
                               
                               + 
                               
                                 N 
                                 2 
                               
                             
                           
                           = 
                           
                             Re 
                              
                             
                               { 
                               
                                 u 
                                 n 
                               
                               } 
                             
                           
                         
                       
                     
                     
                       
                         
                           
                             
                               x 
                               ^ 
                             
                             
                               N 
                               - 
                               1 
                               - 
                               
                                 2 
                                  
                                 n 
                               
                             
                           
                           = 
                           
                             
                               - 
                               Re 
                             
                              
                             
                               { 
                               
                                 u 
                                 n 
                               
                               } 
                             
                           
                         
                       
                     
                   
                    
                   n 
                 
                 = 
                 0 
               
               , 
               1 
               , 
               2 
               , 
               … 
                
               
                   
               
               , 
               
                 
                   N 
                   4 
                 
                 - 
                 
                   1 
                    
                   
                     
 
                   
                    
                   
                     { 
                     
                       
                         
                           
                             
                               
                                 
                                   x 
                                   ^ 
                                 
                                 
                                   
                                     N 
                                     4 
                                   
                                   - 
                                   1 
                                   - 
                                   
                                     2 
                                      
                                     n 
                                   
                                 
                               
                               = 
                               
                                 
                                   
                                     x 
                                     ^ 
                                   
                                   
                                     
                                       N 
                                       4 
                                     
                                     + 
                                     
                                       2 
                                        
                                       n 
                                     
                                   
                                 
                                 = 
                                 
                                   Im 
                                    
                                   
                                     { 
                                     
                                       u 
                                       n 
                                     
                                     } 
                                   
                                 
                               
                             
                           
                           
                             
                               
                                 n 
                                 = 
                                 0 
                               
                               , 
                               1 
                               , 
                               2 
                               , 
                               … 
                                
                               
                                   
                               
                               , 
                               
                                 
                                   N 
                                   8 
                                 
                                 - 
                                 1 
                               
                             
                           
                         
                         
                           
                             
                               
                                 
                                   x 
                                   ^ 
                                 
                                 
                                   
                                     2 
                                      
                                     n 
                                   
                                   - 
                                   
                                     N 
                                     4 
                                   
                                 
                               
                               = 
                               
                                 
                                   
                                     x 
                                     ^ 
                                   
                                   
                                     
                                       3 
                                        
                                       
                                         N 
                                         4 
                                       
                                     
                                     - 
                                     1 
                                     - 
                                     
                                       2 
                                        
                                       n 
                                     
                                   
                                 
                                 = 
                                 
                                   Im 
                                    
                                   
                                     { 
                                     
                                       u 
                                       n 
                                     
                                     } 
                                   
                                 
                               
                             
                           
                           
                             
                               
                                 n 
                                 = 
                                 
                                   N 
                                   8 
                                 
                               
                               , 
                               
                                 
                                   N 
                                   8 
                                 
                                 + 
                                 1 
                               
                               , 
                               … 
                                
                               
                                   
                               
                               , 
                               
                                 
                                   N 
                                   4 
                                 
                                 - 
                                 1 
                               
                             
                           
                         
                       
                        
                       
                         
 
                       
                        
                       where 
                        
                       
                           
                       
                        
                       
                         { 
                         
                           
                             
                               
                                 
                                   
                                     
                                       
                                         u 
                                         n 
                                       
                                       = 
                                       
                                         y 
                                         
                                           n 
                                           + 
                                           
                                             N 
                                             8 
                                           
                                         
                                       
                                     
                                   
                                 
                                 
                                   
                                     
                                       
                                         u 
                                         
                                           n 
                                           + 
                                           
                                             N 
                                             8 
                                           
                                         
                                       
                                       = 
                                       
                                         y 
                                         n 
                                       
                                     
                                   
                                 
                               
                                
                               n 
                             
                             = 
                             0 
                           
                           , 
                           1 
                           , 
                           2 
                           , 
                           … 
                            
                           
                               
                           
                           , 
                           
                             
                               N 
                               8 
                             
                             - 
                             1 
                           
                         
                       
                     
                   
                 
               
             
           
         
       
     
         [0170]    It should be noted that, to implement the perfect reconstruction, values of the constants a, b, c and d are selected as long as a product of the product of a and b in the forward transform and the product of c and d in the inverse transform is equal to 4/N. In this embodiment, 
         [0000]    
       
         
           
             a 
             = 
             
               b 
               = 
               
                 c 
                 = 
                 
                   d 
                   = 
                   
                     
                       2 
                     
                     
                       N 
                       4 
                     
                   
                 
               
             
           
         
       
     
         [0000]    is selected, and therefore, only one Cosine data table 
         [0000]    
       
         
           
             
               
                 
                   2 
                 
                 
                   N 
                   4 
                 
               
                
               
                 cos 
                  
                 
                   ( 
                   
                     
                       
                         2 
                          
                         π 
                       
                       N 
                     
                      
                     
                       ( 
                       
                         k 
                         + 
                         0.5 
                       
                       ) 
                     
                   
                   ) 
                 
               
             
             , 
             
               k 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 N 
                 4 
               
               - 
               1 
             
           
         
       
     
         [0000]    of N/4 point needs to be stored. 
         [0171]    Likewise, the step of performing the fixed rotate compensation for the first time by using W N   −0.375  may not only be performed after the pre-rotate, and may also be performed before the pre-rotate, and the step of performing the fixed rotate compensation for the second time by using W N   −0.375  may not only be performed before the post-rotate, and may also be performed after the post-rotate. Due to the communicative property of multiplication, the fixed rotate compensation may also be performed for three or more times, and a product of compensation factors is W N   −0.75  or an approximate value of at least one factor of which the product is W N   −0.75 . 
         [0172]    In this embodiment, the steps of fixed rotate compensation performed twice are adopted, thereby improving the accuracy of the MDCT transform, so that it is ensured that data obtained after the transform consists with the data obtained after the original MDCT transform. 
         [0173]    Referring to  FIG. 6 , a signal processing method provided in an embodiment of the present invention is used to implement time-domain to frequency-domain MDCT transform during a coding procedure, so as to reduce the storage amount in the transform. The method includes the following steps: 
         [0174]    S 601 : Pre-process time domain data, so as to obtain pre-processed data. 
         [0175]    It is assumed that y n  is data requiring MDCT transform, and the data may be data undergone processing steps such as windowing. Twiddle the data y n , so as to obtain twiddled data u n : 
         [0000]    
       
         
           
             
               u 
               n 
             
             = 
             
               ( 
               
                 
                   z 
                   
                     2 
                      
                     n 
                   
                 
                 + 
                 
                   jz 
                   
                     
                       N 
                       / 
                       2 
                     
                     - 
                     1 
                     - 
                     
                       2 
                        
                       n 
                     
                   
                 
               
               ) 
             
           
         
       
       
         
           
             
               n 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 N 
                 / 
                 4 
               
               - 
               1 
             
           
         
       
       
         
           
             where 
              
             
               : 
             
           
         
       
       
         
           
             { 
             
               
                 
                   
                     
                       
                         
                           
                             z 
                             
                               n 
                               + 
                               
                                 N 
                                 / 
                                 4 
                               
                             
                           
                           = 
                           
                             
                               y 
                               n 
                             
                             - 
                             
                               y 
                               
                                 
                                   N 
                                   / 
                                   2 
                                 
                                 - 
                                 1 
                                 - 
                                 n 
                               
                             
                           
                         
                       
                     
                     
                       
                         
                           
                             z 
                             
                               
                                 N 
                                 / 
                                 4 
                               
                               - 
                               1 
                               - 
                               n 
                             
                           
                           = 
                           
                             
                               - 
                               
                                 y 
                                 
                                   N 
                                   - 
                                   1 
                                   - 
                                   n 
                                 
                               
                             
                             - 
                             
                               y 
                               
                                 
                                   N 
                                   / 
                                   2 
                                 
                                 + 
                                 n 
                               
                             
                           
                         
                       
                     
                   
                    
                   
                     
 
                   
                    
                   n 
                 
                 = 
                 0 
               
               , 
               1 
               , 
               2 
               , 
               … 
                
               
                   
               
               , 
               
                 
                   N 
                   / 
                   4 
                 
                 - 
                 1 
               
             
           
         
       
     
         [0176]    or be represented as: 
         [0000]    
       
         
           
               
             
               { 
               
                 
                   
                     
                       
                         z 
                         n 
                       
                       = 
                       
                         
                           - 
                           
                             y 
                             
                               n 
                               + 
                               
                                 
                                   3 
                                    
                                   N 
                                 
                                 4 
                               
                             
                           
                         
                         - 
                         
                           y 
                           
                             
                               
                                 3 
                                  
                                 N 
                               
                               4 
                             
                             - 
                             1 
                             - 
                             n 
                           
                         
                       
                     
                   
                   
                     
                       
                         n 
                         = 
                         0 
                       
                       , 
                       1 
                       , 
                       2 
                       , 
                       … 
                        
                       
                           
                       
                       , 
                       
                         
                           N 
                           4 
                         
                         - 
                         1 
                       
                     
                   
                 
                 
                   
                     
                       
                         z 
                         n 
                       
                       = 
                       
                         
                           - 
                           
                             y 
                             
                               n 
                               - 
                               
                                 N 
                                 4 
                               
                             
                           
                         
                         - 
                         
                           y 
                           
                             
                               
                                 3 
                                  
                                 N 
                               
                               4 
                             
                             - 
                             1 
                             - 
                             n 
                           
                         
                       
                     
                   
                   
                     
                       
                         n 
                         = 
                         
                           N 
                           4 
                         
                       
                       , 
                       
                         
                           N 
                           4 
                         
                         + 
                         1 
                       
                       , 
                       … 
                        
                       
                           
                       
                       , 
                       
                         
                           N 
                           2 
                         
                         - 
                         1 
                       
                     
                   
                 
               
             
           
         
       
     
         [0177]    S 602 : Pre-rotate the pre-processed data by using a symmetric rotate factor, where the rotate factor and is a·W N   n+0.5 , and n=0, 1, 2, . . . , N/4−1. 
         [0178]    Pre-rotate the twiddled data u n , where the rotate factor is a·W N   n+0.5 , and 
         [0000]    
       
         
           
             
               n 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 N 
                 / 
                 4 
               
               - 
               1. 
             
           
         
       
     
         [0000]    
       
         
           
             
               
                 W 
                 N 
                 
                   n 
                   + 
                   0.5 
                 
               
               = 
               
                 
                   e 
                   
                     
                       - 
                       j 
                     
                      
                     
                         
                     
                      
                     
                       
                         2 
                          
                         π 
                       
                       N 
                     
                      
                     
                       ( 
                       
                         n 
                         + 
                         0.5 
                       
                       ) 
                     
                   
                 
                 = 
                 
                   
                     cos 
                      
                     
                       ( 
                       
                         
                           2 
                            
                           
                             π 
                              
                             
                               ( 
                               
                                 n 
                                 + 
                                 0.5 
                               
                               ) 
                             
                           
                         
                         N 
                       
                       ) 
                     
                   
                   - 
                   
                     j 
                      
                     
                         
                     
                      
                     
                       sin 
                        
                       
                         ( 
                         
                           
                             2 
                              
                             
                               π 
                                
                               
                                 ( 
                                 
                                   n 
                                   + 
                                   0.5 
                                 
                                 ) 
                               
                             
                           
                           N 
                         
                         ) 
                       
                     
                   
                 
               
             
             , 
           
         
       
     
         [0000]    and a is a constant. 
         [0179]    W N   n+0.5  in the rotate factor may also be expressed in the following form: 
         [0000]    
       
         
           
             
               
                 W 
                 N 
                 
                   n 
                   + 
                   0.5 
                 
               
               = 
               
                 
                   cos 
                    
                   
                     ( 
                     
                       
                         2 
                          
                         
                           π 
                            
                           
                             ( 
                             
                               n 
                               + 
                               0.5 
                             
                             ) 
                           
                         
                       
                       N 
                     
                     ) 
                   
                 
                 - 
                 
                   j 
                    
                   
                       
                   
                    
                   
                     sin 
                      
                     
                       ( 
                       
                         
                           2 
                            
                           
                             π 
                              
                             
                               ( 
                               
                                 n 
                                 + 
                                 0.5 
                               
                               ) 
                             
                           
                         
                         N 
                       
                       ) 
                     
                   
                 
               
             
             , 
           
         
       
     
         [0180]    which satisfies conditions of 
         [0000]    
       
         
           
             
               cos 
                
               
                 ( 
                 
                   
                     
                       2 
                        
                       π 
                     
                     N 
                   
                    
                   
                     ( 
                     
                       n 
                       + 
                       0.5 
                     
                     ) 
                   
                 
                 ) 
               
             
             = 
             
               
                 sin 
                  
                 
                   ( 
                   
                     
                       
                         2 
                          
                         π 
                       
                       N 
                     
                      
                     
                       ( 
                       
                         
                           N 
                           / 
                           4 
                         
                         - 
                         1 
                         - 
                         n 
                         + 
                         0.5 
                       
                       ) 
                     
                   
                   ) 
                 
               
                
               
                   
               
                
               and 
             
           
         
       
       
         
           
             
               
                 sin 
                  
                 
                   ( 
                   
                     
                       
                         2 
                          
                         π 
                       
                       N 
                     
                      
                     
                       ( 
                       
                         n 
                         + 
                         0.5 
                       
                       ) 
                     
                   
                   ) 
                 
               
               = 
               
                 cos 
                  
                 
                   ( 
                   
                     
                       
                         2 
                          
                         π 
                       
                       N 
                     
                      
                     
                       ( 
                       
                         
                           N 
                           / 
                           4 
                         
                         - 
                         1 
                         - 
                         n 
                         + 
                         0.5 
                       
                       ) 
                     
                   
                   ) 
                 
               
             
             , 
           
         
       
     
         [0000]    and therefore, in the specific implementation, only one of a cosine data table 
         [0000]    
       
         
           
             
               a 
               · 
               
                 cos 
                  
                 
                   ( 
                   
                     
                       
                         2 
                          
                         π 
                       
                       N 
                     
                      
                     
                       ( 
                       
                         n 
                         + 
                         0.5 
                       
                       ) 
                     
                   
                   ) 
                 
               
             
             , 
             
               n 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 N 
                 / 
                 4 
               
               - 
               1 
             
           
         
       
     
         [0000]    or a sine data table 
         [0000]    
       
         
           
             
               a 
               · 
               
                 sin 
                  
                 
                   ( 
                   
                     
                       
                         2 
                          
                         π 
                       
                       N 
                     
                      
                     
                       ( 
                       
                         n 
                         + 
                         0.5 
                       
                       ) 
                     
                   
                   ) 
                 
               
             
             , 
             
               n 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 N 
                 / 
                 4 
               
               - 
               1 
             
           
         
       
     
         [0000]    of N/4 point needs to be stored. 
         [0181]    S 603 : Perform fixed rotate compensation. 
         [0182]    Perform the fixed rotate compensation on the pre-rotated data, where a fixed rotate compensation factor is W N   −0.75 . In order to further reduce the computational complexity, some approximate values, such as Taylor series expansion, may be used to replace W N   −0.75  to perform the fixed rotate compensation. For example, a result of first order Taylor series expansion 
         [0000]    
       
         
           
             1 
             + 
             
               j 
                
               
                 ( 
                 
                   
                     3 
                      
                     π 
                   
                   
                     2 
                      
                     N 
                   
                 
                 ) 
               
             
           
         
       
     
         [0000]    is used as the approximate value of W N   −0.75  to perform the fixed rotate compensation. 
         [0183]    S 604 : Perform. FFT transform of N/4 point on the data that has undergone the fixed rotate compensation. 
         [0184]    S 605 : Post-rotate the data that has undergone the FFT transform by using a symmetric rotate factor. 
         [0185]    Post-rotate the data that has undergone the FFT transform, where a rotate factor is b·W N   k+0.5 , and 
         [0000]    
       
         
           
             
               k 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 N 
                 / 
                 4 
               
               - 
               1. 
             
           
         
       
     
         [0000]    
       
         
           
             
               
                 W 
                 N 
                 
                   k 
                   + 
                   0.5 
                 
               
               = 
               
                 
                   e 
                   
                     
                       - 
                       j 
                     
                      
                     
                         
                     
                      
                     
                       
                         2 
                          
                         π 
                       
                       N 
                     
                      
                     
                       ( 
                       
                         k 
                         + 
                         0.5 
                       
                       ) 
                     
                   
                 
                 = 
                 
                   
                     cos 
                      
                     
                       ( 
                       
                         
                           2 
                            
                           
                             π 
                              
                             
                               ( 
                               
                                 k 
                                 + 
                                 0.5 
                               
                               ) 
                             
                           
                         
                         N 
                       
                       ) 
                     
                   
                   - 
                   
                     j 
                      
                     
                         
                     
                      
                     
                       sin 
                        
                       
                         ( 
                         
                           
                             2 
                              
                             
                               π 
                                
                               
                                 ( 
                                 
                                   k 
                                   + 
                                   0.5 
                                 
                                 ) 
                               
                             
                           
                           N 
                         
                         ) 
                       
                     
                   
                 
               
             
             , 
           
         
       
     
         [0000]    and b is a constant. 
         [0186]    W N   k+0.5  in the rotate factor may also be expressed in the following form: 
         [0000]    
       
         
           
             
               
                 W 
                 N 
                 
                   k 
                   + 
                   0.5 
                 
               
               = 
               
                 
                   cos 
                    
                   
                     ( 
                     
                       
                         2 
                          
                         
                           π 
                            
                           
                             ( 
                             
                               k 
                               + 
                               0.5 
                             
                             ) 
                           
                         
                       
                       N 
                     
                     ) 
                   
                 
                 - 
                 
                   j 
                    
                   
                       
                   
                    
                   
                     sin 
                      
                     
                       ( 
                       
                         
                           2 
                            
                           
                             π 
                              
                             
                               ( 
                               
                                 k 
                                 + 
                                 0.5 
                               
                               ) 
                             
                           
                         
                         N 
                       
                       ) 
                     
                   
                 
               
             
             , 
           
         
       
     
         [0187]    and therefore, in the specific implementation, only one of a cosine data table 
         [0000]    
       
         
           
             
               a 
               · 
               
                 cos 
                  
                 
                   ( 
                   
                     
                       
                         2 
                          
                         π 
                       
                       N 
                     
                      
                     
                       ( 
                       
                         k 
                         + 
                         0.5 
                       
                       ) 
                     
                   
                   ) 
                 
               
             
             , 
             
               k 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 N 
                 / 
                 4 
               
               - 
               1 
             
           
         
       
     
         [0000]    or a sine data table 
         [0000]    
       
         
           
             
               a 
               · 
               
                 sin 
                  
                 
                   ( 
                   
                     
                       
                         2 
                          
                         π 
                       
                       N 
                     
                      
                     
                       ( 
                       
                         k 
                         + 
                         0.5 
                       
                       ) 
                     
                   
                   ) 
                 
               
             
             , 
             
               k 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 N 
                 / 
                 4 
               
               - 
               1 
             
           
         
       
     
         [0000]    of N/4 point needs to be stored. 
         [0188]    S 606 : Obtain frequency domain data. 
         [0189]    A real part of the post-rotated data is expressed as X2 k , which is the odd number frequency of the frequency domain data; and an opposite number of an imaginary part of the post-rotated data is expressed as 
         [0000]    
       
         
           
             
               X 
               
                 
                   N 
                   / 
                   2 
                 
                 - 
                 1 
                 - 
                 
                   2 
                    
                   k 
                 
               
             
             , 
           
         
       
     
         [0000]    which is the even number frequency of the frequency domain data. 
         [0190]    The frequency domain data, that is, the final spectrum, is X k , k=0, 1, 2 . . . , N/2−1, which may be expressed as: 
         [0000]    
       
         
           
             
                 
             
              
             
               
                 X 
                 
                   2 
                    
                   k 
                 
               
               = 
               
                 Re 
                  
                 
                   { 
                   
                     
                       b 
                       · 
                       
                         W 
                         N 
                         
                           k 
                           + 
                           0.5 
                         
                       
                     
                      
                     
                       
                         ∑ 
                         
                           n 
                           = 
                           0 
                         
                         
                           
                             N 
                             / 
                             4 
                           
                           - 
                           1 
                         
                       
                        
                       
                         
                           
                             u 
                             n 
                           
                           · 
                           
                             W 
                             N 
                             
                               - 
                               0.75 
                             
                           
                           · 
                           a 
                           · 
                           
                             W 
                             N 
                             
                               n 
                               + 
                               0.5 
                             
                           
                         
                          
                         
                           W 
                           
                             N 
                             / 
                             4 
                           
                           nk 
                         
                       
                     
                   
                   } 
                 
               
             
           
         
       
       
         
           
             
                 
             
              
             
               
                 k 
                 = 
                 0 
               
               , 
               … 
                
               
                   
               
               , 
               
                 
                   N 
                   / 
                   4 
                 
                 - 
                 1 
               
             
           
         
       
       
         
           
             
                 
             
              
             
               
                 X 
                 
                   
                     N 
                     / 
                     2 
                   
                   - 
                   1 
                   - 
                   
                     2 
                      
                     k 
                   
                 
               
               = 
               
                 
                   - 
                   Im 
                 
                  
                 
                   { 
                   
                     
                       b 
                       · 
                       
                         W 
                         N 
                         
                           k 
                           + 
                           0.5 
                         
                       
                     
                      
                     
                       
                         ∑ 
                         
                           n 
                           = 
                           0 
                         
                         
                           
                             N 
                             / 
                             4 
                           
                           - 
                           1 
                         
                       
                        
                       
                         
                           
                             u 
                             n 
                           
                           · 
                           
                             W 
                             N 
                             
                               - 
                               0.75 
                             
                           
                           · 
                           a 
                           · 
                           
                             W 
                             N 
                             
                               n 
                               + 
                               0.5 
                             
                           
                         
                          
                         
                           W 
                           
                             N 
                             / 
                             4 
                           
                           nk 
                         
                       
                     
                   
                   } 
                 
               
             
           
         
       
       
         
           
             
                 
             
              
             
               
                 k 
                 = 
                 0 
               
               , 
               … 
                
               
                   
               
               , 
               
                 
                   N 
                   / 
                   4 
                 
                 - 
                 1 
               
               , 
               
                 
 
               
                
               
                   
               
                
               or 
             
           
         
       
       
         
           
             
                 
             
              
             
               
                 X 
                 
                   2 
                    
                   k 
                 
               
               = 
               
                 Re 
                  
                 
                   { 
                   
                     
                       b 
                       · 
                       
                         W 
                         N 
                         
                           k 
                           + 
                           0.5 
                         
                       
                     
                      
                     
                       
                         ∑ 
                         
                           n 
                           = 
                           0 
                         
                         
                           
                             N 
                             / 
                             4 
                           
                           - 
                           1 
                         
                       
                        
                       
                         
                           
                             u 
                             n 
                           
                           · 
                           
                             ( 
                             
                               1 
                               + 
                               
                                 j 
                                  
                                 
                                   ( 
                                   
                                     
                                       3 
                                        
                                       π 
                                     
                                     
                                       2 
                                        
                                       N 
                                     
                                   
                                   ) 
                                 
                               
                             
                             ) 
                           
                           · 
                           a 
                           · 
                           
                             W 
                             N 
                             
                               n 
                               + 
                               0.5 
                             
                           
                         
                          
                         
                           W 
                           
                             N 
                             / 
                             4 
                           
                           nk 
                         
                       
                     
                   
                   } 
                 
               
             
           
         
       
       
         
           
             
                 
             
              
             
               
                 k 
                 = 
                 0 
               
               , 
               … 
                
               
                   
               
               , 
               
                 
                   
                     N 
                     / 
                     4 
                   
                   - 
                   
                     1 
                      
                     
                       
 
                     
                      
                     
                       X 
                       
                         
                           N 
                           / 
                           2 
                         
                         - 
                         1 
                         - 
                         
                           2 
                            
                           k 
                         
                       
                     
                   
                 
                 = 
                 
                   
                     
                       - 
                       Im 
                     
                      
                     
                       { 
                       
                         
                           b 
                           · 
                           
                             W 
                             N 
                             
                               k 
                               + 
                               0.5 
                             
                           
                         
                          
                         
                           
                             ∑ 
                             
                               n 
                               = 
                               0 
                             
                             
                               
                                 N 
                                 / 
                                 4 
                               
                               - 
                               1 
                             
                           
                            
                           
                             
                               
                                 u 
                                 n 
                               
                               · 
                               
                                 ( 
                                 
                                   1 
                                   + 
                                   
                                     j 
                                      
                                     
                                       ( 
                                       
                                         
                                           3 
                                            
                                           π 
                                         
                                         
                                           2 
                                            
                                           N 
                                         
                                       
                                       ) 
                                     
                                   
                                 
                                 ) 
                               
                               · 
                               · 
                               a 
                               · 
                               
                                 W 
                                 N 
                                 
                                   n 
                                   + 
                                   0.5 
                                 
                               
                             
                              
                             
                               W 
                               
                                 N 
                                 / 
                                 4 
                               
                               nk 
                             
                           
                         
                       
                       } 
                     
                      
                     
                       
 
                     
                      
                     
                         
                     
                      
                     k 
                   
                   = 
                   0 
                 
               
               , 
               … 
                
               
                   
               
               , 
               
                 
                   N 
                   / 
                   4 
                 
                 - 
                 1 
               
             
           
         
       
     
         [0191]    It should be noted that, the step of performing the fixed rotate compensation in the embodiment may be performed after the pre-rotate or performed before the pre-rotate, and may also be performed before the post-rotate or after the pre-rotate. In the transform formula, the fixed rotate compensation and operation of other part are of a multiplication relationship, so the communicative property of multiplication is also applicable. 
         [0192]    Referring to  FIG. 7 , a signal processing method provided in an embodiment of the present invention is used to implement frequency-domain to time-domain MDCT transform during a coding procedure, so as to reduce the storage amount in the transform. The method includes the following steps: 
         [0193]    S 701 : Twiddle frequency domain data, so as to obtain twiddled data. 
         [0194]    An intermediate variable obtained after data twiddle is 
         [0000]    
       
         
           
             
               
                 X 
                 
                   2 
                    
                   
                       
                   
                    
                   k 
                 
               
               + 
               
                 j 
                  
                 
                     
                 
                  
                 
                   X 
                   
                     
                       N 
                       2 
                     
                     - 
                     1 
                     - 
                     
                       2 
                        
                       
                           
                       
                        
                       k 
                     
                   
                 
               
             
             , 
             
               
                 where 
                  
                 
                     
                 
                  
                 k 
               
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 N 
                 4 
               
               - 
               1. 
             
           
         
       
     
         [0195]    S 702 : Pre-rotate the twiddled data by using a symmetric rotate factor. 
         [0196]    Pre-rotate the twiddled data 
         [0000]    
       
         
           
             
               ( 
               
                 
                   X 
                   
                     2 
                      
                     
                         
                     
                      
                     k 
                   
                 
                 + 
                 
                   jX 
                   
                     
                       N 
                       2 
                     
                     - 
                     1 
                     - 
                     
                       2 
                        
                       
                           
                       
                        
                       k 
                     
                   
                 
               
               ) 
             
             , 
           
         
       
     
         [0000]    where the rotate factor is c·W N   k+0.5  and 
         [0000]    
       
         
           
             
               k 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 N 
                 4 
               
               - 
               1. 
             
           
         
       
     
         [0000]    
       
         
           
             
               
                 W 
                 N 
                 
                   k 
                   + 
                   0.5 
                 
               
               = 
               
                 
                   e 
                   
                     
                       - 
                       j 
                     
                      
                     
                       
                         2 
                          
                         π 
                       
                       N 
                     
                      
                     
                       ( 
                       
                         k 
                         + 
                         0.5 
                       
                       ) 
                     
                   
                 
                 = 
                 
                   
                     cos 
                      
                     
                       ( 
                       
                         
                           2 
                            
                           
                             π 
                              
                             
                               ( 
                               
                                 k 
                                 + 
                                 0.5 
                               
                               ) 
                             
                           
                         
                         N 
                       
                       ) 
                     
                   
                   - 
                   
                     j 
                      
                     
                         
                     
                      
                     
                       sin 
                        
                       
                         ( 
                         
                           
                             2 
                              
                             
                               π 
                                
                               
                                 ( 
                                 
                                   k 
                                   + 
                                   0.5 
                                 
                                 ) 
                               
                             
                           
                           N 
                         
                         ) 
                       
                     
                   
                 
               
             
             , 
           
         
       
     
         [0000]    and c is a constant. 
         [0197]    S 703 : Perform fixed rotate compensation. 
         [0198]    Perform the fixed rotate compensation on the pre-rotated data, where a fixed rotate compensation factor is W N   −0.75 . In order to further reduce the computational complexity, some approximate values, such as Taylor series expansion, may be used to replace W N   −0.75  to perform the fixed rotate compensation. For example, a result of first order Taylor series expansion 
         [0000]    
       
         
           
             1 
             + 
             
               j 
                
               
                 ( 
                 
                   
                     3 
                      
                     π 
                   
                   
                     2 
                      
                     
                         
                     
                      
                     N 
                   
                 
                 ) 
               
             
           
         
       
     
         [0000]    is used as the approximate value of W N   −0.75  to perform the fixed rotate compensation. 
         [0199]    S 704 : Perform FFT transform of N/4 point on the data that has undergone the fixed rotate compensation. 
         [0200]    S 705 : Post-rotate the data that has undergone the FFT transform by using a symmetric rotate factor. 
         [0201]    Post-rotate the data that has undergone the FFT transform, where the rotate factor is d·W N   n+0.5 , and 
         [0000]    
       
         
           
             
               n 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 N 
                 4 
               
               - 
               1. 
             
           
         
       
     
         [0000]    
       
         
           
             
               
                 W 
                 N 
                 
                   n 
                   + 
                   0.5 
                 
               
               = 
               
                 
                   e 
                   
                     
                       - 
                       j 
                     
                      
                     
                       
                         2 
                          
                         π 
                       
                       N 
                     
                      
                     
                       ( 
                       
                         n 
                         + 
                         0.5 
                       
                       ) 
                     
                   
                 
                 = 
                 
                   
                     cos 
                      
                     
                       ( 
                       
                         
                           2 
                            
                           
                             π 
                              
                             
                               ( 
                               
                                 n 
                                 + 
                                 0.5 
                               
                               ) 
                             
                           
                         
                         N 
                       
                       ) 
                     
                   
                   - 
                   
                     j 
                      
                     
                         
                     
                      
                     
                       sin 
                        
                       
                         ( 
                         
                           
                             2 
                              
                             
                               π 
                                
                               
                                 ( 
                                 
                                   n 
                                   + 
                                   0.5 
                                 
                                 ) 
                               
                             
                           
                           N 
                         
                         ) 
                       
                     
                   
                 
               
             
             , 
           
         
       
     
         [0000]    and d is a constant. 
         [0202]    S 706 : Obtain time domain data. 
         [0203]    Obtain time domain data {circumflex over (x)} n , n=0, 1, 2, . . . , N−1. 
         [0000]    
       
         
           
             { 
             
               
                 
                   
                     
                       
                         
                           
                             
                               x 
                               ^ 
                             
                             
                               
                                 2 
                                  
                                 n 
                               
                               + 
                               
                                 N 
                                 2 
                               
                             
                           
                           = 
                           
                             Re 
                              
                             
                               { 
                               
                                 u 
                                 n 
                               
                               } 
                             
                           
                         
                       
                     
                     
                       
                         
                           
                             
                               x 
                               ^ 
                             
                             
                               N 
                               - 
                               1 
                               - 
                               
                                 2 
                                  
                                 n 
                               
                             
                           
                           = 
                           
                             
                               - 
                               Re 
                             
                              
                             
                               { 
                               
                                 u 
                                 n 
                               
                               } 
                             
                           
                         
                       
                     
                   
                    
                   n 
                 
                 = 
                 0 
               
               , 
               1 
               , 
               2 
               , 
               … 
                
               
                   
               
               , 
               
                 
                   N 
                   4 
                 
                 - 
                 
                   1 
                    
                   
                     
 
                   
                    
                   
                     { 
                     
                       
                         
                           
                             
                               
                                 
                                   x 
                                   ^ 
                                 
                                 
                                   
                                     N 
                                     4 
                                   
                                   - 
                                   1 
                                   - 
                                   
                                     2 
                                      
                                     n 
                                   
                                 
                               
                               = 
                               
                                 
                                   
                                     x 
                                     ^ 
                                   
                                   
                                     
                                       N 
                                       4 
                                     
                                     + 
                                     
                                       2 
                                        
                                       n 
                                     
                                   
                                 
                                 = 
                                 
                                   Im 
                                    
                                   
                                     { 
                                     
                                       u 
                                       n 
                                     
                                     } 
                                   
                                 
                               
                             
                           
                           
                             
                               
                                 n 
                                 = 
                                 0 
                               
                               , 
                               1 
                               , 
                               2 
                               , 
                               
                                 
                                   … 
                                    
                                   
                                       
                                   
                                    
                                   
                                     N 
                                     8 
                                   
                                 
                                 - 
                                 1 
                               
                             
                           
                         
                         
                           
                             
                               
                                 
                                   x 
                                   ^ 
                                 
                                 
                                   
                                     2 
                                      
                                     N 
                                   
                                   - 
                                   
                                     N 
                                     4 
                                   
                                 
                               
                               = 
                               
                                 
                                   
                                     x 
                                     ^ 
                                   
                                   
                                     
                                       3 
                                        
                                       
                                         N 
                                         4 
                                       
                                     
                                     - 
                                     1 
                                     - 
                                     
                                       2 
                                        
                                       n 
                                     
                                   
                                 
                                 = 
                                 
                                   Im 
                                    
                                   
                                     { 
                                     
                                       u 
                                       n 
                                     
                                     } 
                                   
                                 
                               
                             
                           
                           
                             
                               
                                 n 
                                 = 
                                 
                                   N 
                                   8 
                                 
                               
                               , 
                               
                                 
                                   N 
                                   8 
                                 
                                 + 
                                 1 
                               
                               , 
                               … 
                                
                               
                                   
                               
                               , 
                               
                                 
                                   N 
                                   4 
                                 
                                 - 
                                 1 
                               
                             
                           
                         
                       
                        
                       
                         
 
                       
                        
                       where 
                        
                       
                           
                       
                        
                       
                         
 
                       
                        
                       
                         { 
                         
                           
                             
                               
                                 
                                   
                                     
                                       
                                         u 
                                         n 
                                       
                                       = 
                                       
                                         y 
                                         
                                           n 
                                           + 
                                           
                                             N 
                                             8 
                                           
                                         
                                       
                                     
                                   
                                 
                                 
                                   
                                     
                                       
                                         u 
                                         
                                           n 
                                           + 
                                           
                                             N 
                                             8 
                                           
                                         
                                       
                                       = 
                                       
                                         y 
                                         n 
                                       
                                     
                                   
                                 
                               
                                
                               
                                   
                               
                                
                               n 
                             
                             = 
                             0 
                           
                           , 
                           1 
                           , 
                           2 
                           , 
                           … 
                            
                           
                               
                           
                           , 
                           
                             
                               N 
                               8 
                             
                             - 
                             1 
                           
                         
                       
                     
                   
                 
               
             
           
         
       
     
         [0204]    It should be noted that, to implement the perfect reconstruction, values of the constants a, b, c and d are selected as long as a product of the product of a and b in the forward transform and the product of c and d in the inverse transform is equal to 4/N. In this embodiment, 
         [0000]    
       
         
           
             a 
             = 
             
               b 
               = 
               
                 c 
                 = 
                 
                   d 
                   = 
                   
                     
                       2 
                     
                     
                       N 
                       4 
                     
                   
                 
               
             
           
         
       
     
         [0000]    is selected, and therefore, only one Cosine data table 
         [0000]    
       
         
           
             
               
                 
                   2 
                 
                 
                   N 
                   4 
                 
               
                
               
                 cos 
                  
                 
                   ( 
                   
                     
                       
                         2 
                          
                         π 
                       
                       N 
                     
                      
                     
                       ( 
                       
                         k 
                         + 
                         0.5 
                       
                       ) 
                     
                   
                   ) 
                 
               
             
             , 
             
               k 
               = 
               0 
             
             , 
             1 
             , 
             2 
             , 
             … 
              
             
                 
             
             , 
             
               
                 N 
                 4 
               
               - 
               1 
             
           
         
       
     
         [0000]    of N/4 point needs to be stored. 
         [0205]    Likewise, the step of performing the fixed rotate compensation in the embodiment may be performed after the pre-rotate or performed before the pre-rotate, and may also be performed before the post-rotate or after the pre-rotate. In the transform formula, the fixed rotate compensation and operation of other part are of a multiplication relationship, so the communicative property of multiplication is also applicable. 
         [0206]    Those of ordinary skill in the art should understand that all or a part of the process of the method according to the embodiments of the present invention may be implemented by a computer program instructing relevant hardware. The program may be stored in a computer readable storage medium. When the program is run, the processes of the methods according to the embodiments of the present invention are performed. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (Read-Only Memory, ROM), or a Random. Access Memory (Random Access Memory, RAM). 
         [0207]    Referring to  FIG. 8  that correlates to the foregoing method embodiment, an embodiment of a signal processing device of the present invention includes: 
         [0208]    a twiddle unit  801 , configured to twiddle input data, so as to obtain twiddled data; 
         [0209]    a pre-rotate unit  802 , configured to pre-rotate the twiddled data by using a symmetric rotate factor, where the rotate factor is a·W 4L   2p+1 , p=0, . . . , L/2−1, and a is a constant; 
         [0210]    a transform unit  803 , configured to perform a Fast Fourier (Fast Fourier Transform, FFT) transform of L/2 point on the pre-rotated data, where L is the length of the input data; 
         [0211]    a post-rotate unit  804 , configured to post-rotate the data that has undergone the FFT transform by using a symmetric rotate factor, where the rotate factor is b·W 4L   2p+1 , q=0, . . . , L/2−1, and b is a constant; and 
         [0212]    an output unit  805 , configured to obtain output data. 
         [0213]    The signal processing device may be used to implement time-domain to frequency-domain or frequency-domain to time-domain DCT-IV transform in the coding/decoding procedure, in the forward transform, input data is time domain data, the output data is frequency domain data; and in the inverse transform, the input data is frequency domain data, the output data is the time domain data. 
         [0214]    In another embodiment, the signal processing device further includes: 
         [0215]    a fixed rotate compensation unit, configured to perform fixed rotate compensation by using a fixed rotate compensation factor. 
         [0216]    In an embodiment, the fixed rotate compensation unit is configured to perform fixed rotate compensation at least one time, and a product of a rotate compensation factor of the at least one time fixed rotate compensation is W 8L   −3 . 
         [0217]    In another embodiment, the fixed rotate compensation unit is configured to perform fixed rotate compensation at least one time, and a rotate compensation factor of the at least one time fixed rotate compensation is a first order Taylor series expansion of at least one factor a product of which is W 8L   −3 . 
         [0218]    In order to satisfy reconstruction, the product of a and b may be equal to 
         [0000]    
       
         
           
             
               
                 2 
                 2 
               
               
                 L 
                 2 
               
             
             , 
           
         
       
     
         [0000]    and in an embodiment, for example, 
         [0000]    
       
         
           
             a 
             = 
             
               b 
               = 
               
                 
                   
                     2 
                     4 
                   
                   
                     L 
                     4 
                   
                 
                 . 
               
             
           
         
       
     
         [0219]    An embodiment of a time-domain to frequency-domain signal processing device provided in the present invention is used to implement the time-domain to frequency-domain MDCT transform in the coding procedure, so as to reduce the storage amount in the transform. Referring to  FIG. 9 , the signal processing device includes: 
         [0220]    a pre-processing unit  901 , configured to pre-process time domain data, so as to obtain pre-processed data; 
         [0221]    a pre-rotate unit  902 , configured to pre-rotate the pre-processed data by using a rotate factor a·W N   n+0.5 ; 
         [0222]    a transform unit  903 , configured to perform Fast Fourier Transform of N/4 point on the pre-rotated data; 
         [0223]    a post-rotate unit  904 , configured to post-rotate the data that has undergone the Discrete Fourier Transform by using a rotate factor b·W N   k+0.5 , so as to obtain frequency domain data; where, the device further includes: 
         [0224]    a fixed compensation unit  905 , configured to perform fixed rotate compensation by using a fixed rotate compensation factor; where the a and b are constants, the N is the length of the time domain data, and 
         [0000]    
       
         
           
             
               W 
               N 
             
             = 
             
               
                 e 
                 
                   
                     - 
                     j 
                   
                    
                   
                       
                   
                    
                   
                     
                       2 
                        
                       π 
                     
                     N 
                   
                 
               
               . 
             
           
         
       
     
         [0225]    In an embodiment, the fixed rotate compensation unit is configured to perform fixed rotate compensation at least one time, and a product of a rotate compensation factor of the at least one time fixed rotate compensation is W N   −0.75 . 
         [0226]    In another embodiment, the fixed rotate compensation unit is configured to perform fixed rotate compensation at least one time, and a rotate compensation factor of the at least one time fixed rotate compensation is a first order Taylor series expansion of at least one factor a product of which is W N   −0.75 . 
         [0227]    An embodiment of a frequency-domain to time-domain signal processing device provided in the present invention is used to implement the frequency-domain to time-domain MDCT transform in the coding procedure, so as to reduce the storage amount in the transform. Referring to  FIG. 10 , the signal processing device includes: 
         [0228]    a twiddle unit  1001 , configured to twiddle frequency domain data, so as to obtain twiddled data; 
         [0229]    a pre-rotate unit  1002 , configured to pre-rotate the twiddled data by using a rotate factor c·W N   k+0.5 ; 
         [0230]    a transform unit  1003 , configured to perform Fast Fourier Transform of N/4 point on the pre-rotated data; 
         [0231]    a post-rotate unit  1004 , configured to post-rotate the data that has undergone the Fast Fourier Transform by using a rotate factor d·W N   n+0.5 ; where, the device further includes: 
         [0232]    a fixed compensation unit  1005 , configured to perform fixed rotate compensation by using a fixed rotate compensation factor; where the c and d are constants, the N is twice the length of the frequency domain data, and 
         [0000]    
       
         
           
             
               W 
               N 
             
             = 
             
               
                 e 
                 
                   
                     - 
                     j 
                   
                    
                   
                       
                   
                    
                   
                     
                       2 
                        
                       π 
                     
                     N 
                   
                 
               
               . 
             
           
         
       
     
         [0233]    In an embodiment, the fixed rotate compensation unit is configured to perform fixed rotate compensation at least one time, and a product of a rotate compensation factor of the at least one time fixed rotate compensation is W N   −0.75 . 
         [0234]    In another embodiment, the fixed rotate compensation unit is configured to perform fixed rotate compensation at least one time, and a rotate compensation factor of the at least one time fixed rotate compensation unit is a first order Taylor series expansion of at least one factor a product of which is W N   −0.75 . 
         [0235]    Exemplary logical blocks, modules and circuits in the description correlated to the embodiments disclosed in the specification may be constructed or implemented by using the following devices: a universal processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logical devices, discrete gate or transistor logic, discrete hardware components, or any combination designed for implementing the functions in the preceding part of the text. The universal processor may be a microprocessor, but alternatively, the processor may also be any regular processor, controller, micro-controller, or state machine. The processor may be constructed as a combination of computing devices, for example, a combination of a DSP and a microprocessor, a combination of multiple microprocessors, a combination of one or more microprocessors and a DSP core, or any one of other such configuration. 
         [0236]    Described are only several embodiments of the present invention, and persons skilled in the art can make various modifications or variations of the present invention according to the disclosure of the application without departing from the spirit and scope of the present invention.