Apparatus and method for encoding/decoding signal
An encoding method and apparatus and a decoding method and apparatus are provided. The decoding method includes extracting a compatible down-mix signal optimized for a first multi-channel decoder from the input bitstream, converting the compatible down-mix signal to be optimized for a second multi-channel signal by performing a compatibility processing operation on the compatible down-mix signal, and generating a three-dimensional (3D) down-mix signal by performing a 3D rendering operation on the converted down-mix signal. Accordingly, it is possible to efficiently encode multi-channel signals with 3D effects and to adaptively restore and reproduce audio signals with optimum sound quality according to the characteristics of an audio reproduction environment.
1. A method for decoding a signal, comprising:
receiving a down-mix signal from an input bitstream;
receiving spatial information and down-mix identification information from the input bitstream, the down-mix identification information indicating whether the down-mix signal is a compatible down-mix signal optimized for a first multi-channel decoder;
if the down-mix identification information indicates that the down-mix signal is the compatible down-mix signal,
converting the compatible down-mix signal into a down-mix signal optimized for a second multi-channel decoder by performing a compatibility processing operation on the compatible down-mix signal; and
generating a three-dimensional (3D) down-mix signal by performing a 3D rendering operation on the converted down-mix signal using a head related transfer function (HRTF) and the spatial information,
wherein the spatial information includes at least one of a channel level difference (CLD) which indicates level differences between two channels, a channel prediction coefficient (CPC) which is a prediction coefficient used to generate a 3-channel signal based on a 2-channel signal, and inter-channel correlation (ICC) which indicates the amount of correlation between two channels.
2. The method of claim 1 , wherein the converting of the compatible down-mix signal comprises:
converting the compatible down-mix signal from a first domain to a second domain;
converting the compatible down-mix signal in the second domain into a down-mix signal optimized for the second multi-channel decoder using compatibility information; and,
converting the down-mix signal optimized for the second multi-channel decoder from the second domain to the first domain.
3. The method of claim 1 , wherein the generating of the 3D down-mix signal comprises:
converting the converted down-mix signal to a 3D rendering domain; and,
performing a 3D rendering operation on the converted down-mix signal in the 3D rendering domain.
4. The method of claim 1 , further comprising generating a multi-channel signal using the converted down-mix signal and the spatial information.
5. A non-transitory computer-readable recording medium having a computer program for executing the decoding method of claim 1 .
6. An apparatus for decoding a signal, comprising:
a bit unpacking unit receiving a down-mix signal, spatial information and down-mix identification information from an input bitstream, the down-mix identification information indicating whether the down-mix signal is a compatible down-mix signal optimized for a first multi-channel decoder;
if the down-mix identification information indicates that the down-mix signal is the compatible down-mix signal, a down-mix compatibility processing unit converting the compatible down-mix signal into a down-mix signal optimized for a second multi-channel decoder by performing a compatibility processing operation on the compatible down-mix signal; and
a 3D rendering unit generating a three-dimensional (3D) down-mix signal by performing a 3D rendering operation on the converted compatible down-mix signal using a head related transfer function (HRTF) and the spatial information,
wherein the spatial information includes at least one of a channel level difference (CLD) which indicates level differences between two channels, a channel prediction coefficient (CPC) which is a prediction coefficient used to generate a 3-channel signal based on a 2-channel signal, and inter-channel correlation (ICC) which indicates the amount of correlation between two channels.
7. The apparatus of claim 6 , wherein the down-mix compatibility processing unit comprises;
a first domain conversion unit converting the compatible down-mix signal from a first domain to a second domain;
a compatibility processor converting the compatible down-mix signal in the second domain into a down-mix signal optimized for the second multi-channel decoder using compatibility information; and,
a second domain conversion unit converting the down-mix signal optimized for the second multi-channel decoder from the second domain to the first domain.
8. The apparatus of claim 6 , wherein the 3D rendering unit converts the converted down-mix signal to a 3D rendering domain, and performs a 3D rendering operation on the converted down-mix signal in the 3D rendering domain.
9. The apparatus of claim 6 , further comprising a multi-channel decoder generating a multi-channel signal using the converted down-mix signal and the spatial information.