A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://patents.google.com/patent/CN101609679B/en below:

CN101609679B - Embedded codec method and device

具体实施方式 Detailed ways

为了解决现有技术对原始信号的整个时域或者频域包络信息进行嵌入式编码,造成在编码资源有限时,编码量化精度较低,解码出的信号质量较差的问题,本发明实施例提供一种嵌入式编解码方法和装置。In order to solve the problem that the prior art performs embedded coding on the entire time-domain or frequency-domain envelope information of the original signal, when the coding resources are limited, the coding and quantization precision is low, and the decoded signal quality is poor, the embodiment of the present invention Provided are an embedded codec method and device.

本发明的一个实施例编码方包括:An encoding side of an embodiment of the present invention includes:

将原始信号的时域或者频域包络信息划分为第一部分和第二部分。The time-domain or frequency-domain envelope information of the original signal is divided into a first part and a second part.

建立所述第一部分和第二部分之间的代换关系,所述代换关系用于解码时将第一部分代换得到第二部分。A substitution relationship between the first part and the second part is established, and the substitution relationship is used for substituting the first part to obtain the second part during decoding.

对所述第一部分进行嵌入式编码,生成第一码率层。Perform embedded coding on the first part to generate a first code rate layer.

本发明的另一个实施例解码方包括:Another embodiment of the present invention, the decoder includes:

对第一码率层进行解码,重构原始信号的第一部分时域或者频域包络信息。The first code rate layer is decoded, and the first part of time-domain or frequency-domain envelope information of the original signal is reconstructed.

根据所述重构的第一部分时域或者频域包络信息,以及根据编码方建立的第一部分时域或者频域包络信息与第二部分时域或者频域包络信息之间的代换关系,重构原始信号的第二部分时域或者频域包络信息。According to the reconstructed first part of time domain or frequency domain envelope information, and according to the substitution between the first part of time domain or frequency domain envelope information and the second part of time domain or frequency domain envelope information established by the encoding party Reconstruct the second part of the time-domain or frequency-domain envelope information of the original signal.

根据所述重构的第一部分和第二部分时域或者频域包络信息,重构原始信号。Reconstructing the original signal according to the reconstructed first part and the second part of time-domain or frequency-domain envelope information.

如图1所示,本发明实施例提供的嵌入式编码方法,包括:As shown in Figure 1, the embedded coding method provided by the embodiment of the present invention includes:

步骤101,将原始信号的时域或者频域包络信息划分为第一部分和第二部分。 Step 101, divide time-domain or frequency-domain envelope information of an original signal into a first part and a second part.

在本实施例中,所述第一部分可以为原始信号的时域或者频域包络信息的奇数包络部分,所述第二部分可以为原始信号的时域或者频域包络信息的偶数包络部分;或者,所述第一部分可以为原始信号的时域或者频域包络信息的偶数包络部分,所述第二部分可以为原始信号的时域或者频域包络信息的奇数包络部分。在实际的使用过程中,还可以通过其他方法对所述原始信号的时域或者频域包络信息进行划分,此处不做赘述。In this embodiment, the first part may be an odd-numbered envelope part of the time-domain or frequency-domain envelope information of the original signal, and the second part may be an even-numbered envelope part of the time-domain or frequency-domain envelope information of the original signal Alternatively, the first part may be an even envelope part of the time domain or frequency domain envelope information of the original signal, and the second part may be an odd envelope part of the time domain or frequency domain envelope information of the original signal part. During actual use, other methods may also be used to divide the time-domain or frequency-domain envelope information of the original signal, which will not be repeated here.

步骤102,建立所述第一部分和第二部分之间的代换关系,所述代换关系用于解码时将第一部分代换得到第二部分。 Step 102, establishing a substitution relationship between the first part and the second part, and the substitution relationship is used for substituting the first part to obtain the second part during decoding.

所述第一部分和第二部分之间的代换关系可以为:第二部分的时域或者频域包络信息等价于与之相邻的第一部分的时域或者频域包络信息的平均值;当然,所述第二部分和第一部分之间的代换关系还可以为其他情况,此处不对每种情况进行一一介绍。The substitution relationship between the first part and the second part may be: the time-domain or frequency-domain envelope information of the second part is equivalent to the average of the time-domain or frequency-domain envelope information of the adjacent first part value; of course, the substitution relationship between the second part and the first part can also be other situations, and each situation will not be introduced here.

步骤103,对所述第一部分进行嵌入式编码,生成第一码率层。 Step 103, perform embedded coding on the first part to generate a first code rate layer.

所述步骤103可以采用现有技术提供的编码方法,如标量量化哈夫曼编码等,对第一部分中的每个时域或者频域包络信息进行嵌入式编码;为了达到节省编码比特资源的目的,所述步骤103还可以采用如下方案对第一部分进行嵌入式编码,包括:The step 103 can use the coding method provided by the prior art, such as scalar quantization Huffman coding, etc., to perform embedded coding on each time domain or frequency domain envelope information in the first part; in order to save coding bit resources Purpose, said step 103 can also adopt the following scheme to carry out embedded coding to the first part, including:

从所述第一部分的第二个时域或者频域包络信息开始,获取当前时域或者频域包络信息相对于前一个时域或者频域包络信息的第一差分信号;Starting from the second time-domain or frequency-domain envelope information of the first part, obtain a first differential signal of the current time-domain or frequency-domain envelope information relative to the previous time-domain or frequency-domain envelope information;

对所述第一部分的第一个时域或者频域包络信息进行嵌入式编码;performing embedded encoding on the first time-domain or frequency-domain envelope information of the first part;

对获取的一个以上的第一差分信号进行嵌入式编码;performing embedded encoding on the obtained one or more first differential signals;

根据上述编码结果生成第一码率层。Generate the first code rate layer according to the above encoding result.

在本实施例中,步骤103对一个以上的第一差分信号进行嵌入式编码具体可以为对一个以上的第一差分信号进行嵌入式熵编码。In this embodiment, performing embedded encoding on more than one first differential signal in step 103 may specifically be performing embedded entropy encoding on more than one first differential signal.

由于熵编码能够根据待编码序列中各种信号出现的概率分布规律建立码表,对出现概率高的信号分配编码比特少的码字,对出现概率低的信号分配编码比特多的码字,所以所述步骤103利用嵌入式熵编码对所述一个以上的第一差分信号进行编码能够使平均编码比特较少,节省编码比特资源。Since entropy coding can establish a code table according to the probability distribution of various signals in the sequence to be encoded, assign codewords with fewer coding bits to signals with high occurrence probability, and assign codewords with more coding bits to signals with low occurrence probability, so In step 103, encoding the one or more first differential signals by using embedded entropy coding can reduce the number of coding bits on average and save coding bit resources.

如图1所示,为了进一步提高编码量化精度,所述步骤102之后,还可以包括:As shown in Figure 1, in order to further improve the encoding and quantization accuracy, after the step 102, it may also include:

步骤104,获取所述第二部分与用第一部分代换后的第二部分之间的第二差分信号。 Step 104, acquiring a second differential signal between the second part and the second part replaced by the first part.

则所述步骤103之后,还可以包括:Then after the step 103, it may also include:

步骤105,对所述第二差分信号进行嵌入式编码,生成第二码率层。为了节省比特资源,所述步骤105具体可以为对所述第二差分信号进行嵌入式熵编码。 Step 105, perform embedded coding on the second differential signal to generate a second code rate layer. In order to save bit resources, the step 105 may specifically be performing embedded entropy coding on the second differential signal.

在本实施例中,所述步骤105不仅可以将所述第二差分信号编码在第二码率层,当所述步骤103编码后,第一码率层还有剩余的编码比特资源时,所述步骤105还可以将一部分第二差分信号编码在第一码率层,然后将剩余的第二差分信号编码在第二码率层;In this embodiment, the step 105 can not only encode the second differential signal in the second code rate layer, but when the first code rate layer has remaining coding bit resources after the step 103 is encoded, the The above step 105 can also encode a part of the second differential signal in the first code rate layer, and then encode the remaining second differential signal in the second code rate layer;

为达到上述目的,所述步骤104之后,还可以包括:将所述第二差分信号划分成第一子部分和第二子部分;则所述步骤105具体可以为:In order to achieve the above purpose, after the step 104, it may also include: dividing the second differential signal into a first sub-section and a second sub-section; then the step 105 may specifically be:

对所述第一子部分进行嵌入式编码,生成第一码率层;Perform embedded coding on the first sub-part to generate a first code rate layer;

对所述第二子部分进行嵌入式编码,生成第二码率层。Perform embedded coding on the second sub-part to generate a second code rate layer.

本发明实施例提供的嵌入式编码方法,由于预先建立了第一部分和第二部分之间的代换关系,所以编码端可以只对原始信号时域或者频域包络信息的第一部分进行嵌入式编码,解决了现有技术对原始信号的整个时域或者频域包络信息进行编码,造成编码比特资源有限时,所述时域或者频域包络信息的量化精度较低的问题。本发明实施例提供的嵌入式编码方法,在编码比特资源有限时,也能够对所述第一部分信息进行较精确的量化;并且,本发明实施例提供的嵌入式编码方法,除对第一部分进行嵌入式编码外不占用额外的编码比特资源,所述第一部分与第二部分之间的代换关系算法简单、稳定性高。由于本发明实施例提供的嵌入式编码方法,还可以对所述第二差分信息进行嵌入式编码,所以使得本方法编码效果更好,编码质量更高。In the embedded encoding method provided by the embodiment of the present invention, since the substitution relationship between the first part and the second part is established in advance, the encoding end can only embed the first part of the original signal time domain or frequency domain envelope information. The encoding solves the problem that the prior art encodes the entire time-domain or frequency-domain envelope information of the original signal, resulting in limited encoding bit resources, and the quantization accuracy of the time-domain or frequency-domain envelope information is low. The embedded coding method provided by the embodiment of the present invention can also perform more accurate quantization on the first part of information when the coding bit resources are limited; and, the embedded coding method provided by the embodiment of the present invention, in addition to performing The embedded coding does not occupy additional coding bit resources, and the algorithm of the substitution relationship between the first part and the second part is simple and highly stable. Since the embedded encoding method provided by the embodiment of the present invention can also perform embedded encoding on the second difference information, the encoding effect of this method is better and the encoding quality is higher.

如图2所示,本发明实施例提供的嵌入式解码方法,包括:As shown in Figure 2, the embedded decoding method provided by the embodiment of the present invention includes:

步骤201,对第一码率层进行解码,重构原始信号的第一部分时域或者频域包络信息。Step 201: Decode the first code rate layer, and reconstruct the first part of time-domain or frequency-domain envelope information of the original signal.

与图1所示的本发明实施例提供的嵌入式编码方法相对应地,本实施例所述的第一部分时域或者频域包络信息为原始信号时域或者频域的奇数包络信息;或者原始信号时域或者频域的偶数包络信息。Corresponding to the embedded coding method provided by the embodiment of the present invention shown in FIG. 1 , the first part of time domain or frequency domain envelope information described in this embodiment is the odd envelope information of the original signal time domain or frequency domain; Or the even envelope information of the original signal in time domain or frequency domain.

在本实施例中,所述步骤201具体可以包括:In this embodiment, the step 201 may specifically include:

对第一码率层进行解码,获得原始信号第一部分时域或者频域包络信息的第一个时域或者频域包络信息以及一个以上的第一差分信息;Decoding the first code rate layer to obtain the first time domain or frequency domain envelope information of the first part of the time domain or frequency domain envelope information of the original signal and more than one first difference information;

根据所述第一个时域或者频域包络信息以及第一差分信息,重构所述第一部分时域或者频域包络信息的后续时域或者频域包络信息。Reconstruct subsequent time domain or frequency domain envelope information of the first part of time domain or frequency domain envelope information according to the first time domain or frequency domain envelope information and the first difference information.

步骤202,根据所述重构的第一部分时域或者频域包络信息,以及根据编码方建立的第一部分时域或者频域包络信息与第二部分时域或者频域包络信息之间的代换关系,重构原始信号的第二部分时域或者频域包络信息。其中,代换关系可以由编码方和解码方预先协商,也可以为预先设定的代换关系。本实施例所述的第二部分时域或者频域包络信息为原始信号时域或者频域的偶数包络信息;或者原始信号时域或者频域的奇数包络信息; Step 202, according to the reconstructed first part of time-domain or frequency-domain envelope information, and according to the difference between the first part of time-domain or frequency-domain envelope information and the second part of time-domain or frequency-domain envelope information established by the encoder The substitution relationship of the original signal reconstructs the second part of the time-domain or frequency-domain envelope information of the original signal. Wherein, the substitution relationship may be pre-negotiated by the encoding side and the decoding side, or may be a preset substitution relationship. The second part of time-domain or frequency-domain envelope information described in this embodiment is even-numbered envelope information in the time-domain or frequency-domain of the original signal; or odd-numbered envelope information in the time-domain or frequency-domain of the original signal;

所述步骤202具体可以根据如图1所示的步骤102中建立的第一部分与第二部分之间的代换关系重构原始信号的第二部分时域或者频域包络信息。The step 202 may specifically reconstruct the time-domain or frequency-domain envelope information of the second part of the original signal according to the substitution relationship between the first part and the second part established in step 102 as shown in FIG. 1 .

步骤203,根据所述重构的第一部分和第二部分时域或者频域包络信息,重构原始信号。Step 203: Reconstruct the original signal according to the reconstructed first part and the second part of time-domain or frequency-domain envelope information.

在本实施例中,当所述第一码率层中包含第二差分信息,或者当解码端接收到的码流中包含第二码率层时,如图2所示,所述步骤202之后,还可以包括:In this embodiment, when the first code rate layer contains the second differential information, or when the code stream received by the decoding end contains the second code rate layer, as shown in FIG. 2 , after the step 202 , which can also include:

步骤204,获取第二差分信息。具体为:从第二码率层获取第二差分信息,或者从当所述第一码率层中包含第二差分信息时,也可以从第一码率层中获取第二差分信息。 Step 204, acquiring second difference information. Specifically, the second difference information is obtained from the second code rate layer, or when the first code rate layer includes the second difference information, the second difference information may also be obtained from the first code rate layer.

步骤205,根据所述第二差分信号以及所述重构的第二部分时域或者频域包络信息,生成增强的第二部分时域或者频域包络信息。Step 205: Generate enhanced second part of time domain or frequency domain envelope information according to the second differential signal and the reconstructed second part of time domain or frequency domain envelope information.

则所述步骤203具体可以为:Then the step 203 can specifically be:

当所述码流中包含第二码率层时,根据所述重构的第一部分时域或者频域包络信息和增强的第二部分时域或者频域包络信息,生成重构的原始信号;When the code stream contains the second code rate layer, according to the reconstructed first part of the time domain or frequency domain envelope information and the enhanced second part of the time domain or frequency domain envelope information, generate the reconstructed original Signal;

当所述码流中仅包含第一码率层时,根据所述重构的第一部分和第二部分时域或者频域包络信息以及增强的第二部分时域或者频域包络信息,重构原始信号。When the code stream only includes the first code rate layer, according to the reconstructed first part and second part of time domain or frequency domain envelope information and the enhanced second part of time domain or frequency domain envelope information, Reconstruct the original signal.

本发明实施例提供的嵌入式解码方法,在解码出原始信号的第一部分时域或者频域包络信息以后,可以根据预先设置的代换关系重构出原始信号的第二部分时域或者频域包络信息,能够适应本发明实施例提供的嵌入式编码方法,并且,能够重构出质量较好的原始信号。The embedded decoding method provided by the embodiment of the present invention can reconstruct the second part of the original signal in the time domain or frequency domain according to the preset substitution relationship after decoding the first part of the time domain or frequency domain envelope information of the original signal. The domain envelope information can adapt to the embedded coding method provided by the embodiment of the present invention, and can reconstruct an original signal with better quality.

为了使本领域技术人员能够更清楚地解码本发明实施例提供的技术方案,下面结合具体的实施例对以上所述的本发明实施例提供的嵌入式编解码方法做详细说明。In order to enable those skilled in the art to decode the technical solutions provided by the embodiments of the present invention more clearly, the embedded encoding and decoding methods provided by the above-mentioned embodiments of the present invention will be described in detail below in conjunction with specific embodiments.

实施例1:超宽带嵌入式编码器的输入信号是32kHz采样率,带宽为16kHz,处理帧长为20ms,采用本发明实施例提供的嵌入式编解码方法对超宽带部分的频域包络进行处理,超宽带码率层编码比特资源有限。Embodiment 1: the input signal of the ultra-wideband embedded encoder is 32kHz sampling rate, the bandwidth is 16kHz, and the processing frame length is 20ms, and the frequency-domain envelope of the ultra-wideband part is carried out using the embedded codec method provided by the embodiment of the present invention Processing, UWB code rate layer coding bit resources are limited.

编码端:Encoder:

第一,获取所述输入信号超宽带部分的频域包络信息。First, the frequency-domain envelope information of the ultra-wideband part of the input signal is acquired.

所述输入信号在8至16kHz频带内的采样点个数为320个 ( 16 - 8 16 ( 32 kHz × 20 ms ) = 320 ) , 8至16kHz频带内的时域信号为{y_hi(0),y_hi(1),……,y_hi(319)},经修正的离散余弦变换(MDCT)得到该频带内的频域信号{y_swb(0),y_swb(1),……,y_swb(319)},由于超宽带嵌入式编码器的超宽带部分进处理8至14kHz频带内的信号,所以从获得频域信号中提取该8至14kHz频带内的频域信号{y_swb(0),y_swb(1),……,y_swb(239)},将所述8至14kHz频带内的频域信号分为N个子带,在本实施例中所述N=15,获得一组频域包络信息{enve(0),enve(1),……,enve(14)}。The number of sampling points of the input signal in the 8-16kHz frequency band is 320 ( 16 - 8 16 ( 32 kHz × 20 ms ) = 320 ) , The time domain signal in the 8 to 16kHz frequency band is {y_hi(0), y_hi(1),...,y_hi(319)}, and the frequency domain signal {y_swb( 0), y_swb(1), ..., y_swb(319)}, since the UWB part of the UWB embedded encoder processes signals in the 8 to 14kHz frequency band, the 8 to 14kHz is extracted from the obtained frequency domain signal The frequency domain signal {y_swb(0), y_swb(1), ..., y_swb(239)} in the frequency band, divides the frequency domain signal in the 8 to 14kHz frequency band into N subbands, and in this embodiment Said N=15, a set of frequency-domain envelope information {enve(0), enve(1), ..., enve(14)} is obtained.

第二,将第一步中获得的频域包络信息划分为奇数包络部分{enve(1),enve(3),……,enve(13)}和偶数包络部分{enve(0),enve(2),……,enve(14)}。Second, the frequency-domain envelope information obtained in the first step is divided into odd envelope parts {enve(1), enve(3), ..., enve(13)} and even envelope parts {enve(0) , enve(2), ..., enve(14)}.

第三,对所述偶数包络部分进行量化,得到量化后的频域包络信息{enveq(0),enveq(2),……,enveq(14)},建立奇数包络部分{enve(1),enve(3),……,enve(13)}和量化后的偶数包络部分各量化后的频域包络信息{enveq(0),enveq(2),……,enveq(14)}之间的对应关系enve′(i)=(enveq(i-1)+enveq(i+1))/2,(i=1,3,5……13)。Third, quantize the even-numbered envelope part to obtain quantized frequency-domain envelope information {enve q (0), enve q (2), ..., enve q (14)}, and establish an odd-numbered envelope part {enve(1), enve(3), ..., enve(13)} and quantized frequency-domain envelope information {enve q (0), enve q (2), ... ..., the correspondence between enve q (14)} enve'(i)=(enve q (i-1)+enve q (i+1))/2, (i=1, 3, 5...13 ).

第四,对偶数包络部分进行嵌入式编码,生成超宽带第一码率层,包括:Fourth, perform embedded encoding on the even-numbered envelope to generate the first ultra-wideband code rate layer, including:

首先,对所述偶数包络部分量化后的第一个频域包络enveq(0)进行编码,得到编码索引index(0);First, encode the first frequency-domain envelope enve q (0) after quantization of the even-numbered envelope part to obtain an encoding index index (0);

然后,求取偶数包络部分其他量化后的的频域包络相对于前一个量化后的频域包络的第一差分信号,即di=enveq(i)-enveq(i-2),(i=2,4,6……14);Then, obtain the first differential signal of other quantized frequency-domain envelopes of the even-numbered envelope part relative to the previous quantized frequency-domain envelope, that is, d i =enve q (i)-enve q (i-2 ), (i=2, 4, 6...14);

最后,对所述第一差分信号进行量化,获得量化后的第一差分信号di q,并对所述量化后的第一差分信号进行嵌入式熵编码,得到其编码索引index(i/2),将{index(0),…,index(7),index(8),…,index(14)}加入到超宽带第一码率层中。Finally, quantize the first differential signal to obtain the quantized first differential signal d i q , and perform embedded entropy coding on the quantized first differential signal to obtain its coding index index(i/2 ), adding {index(0), ..., index(7), index(8), ..., index(14)} to the first code rate layer of ultra-wideband.

第五,获取奇数包络部分enve(i)(i=1,3,……15)与代换后的奇数包络部分enve′(i)(i=1,3,……15)之间的第二差分信号d′i=enve(i)-enve′(i)(i=1,3,……13),对所述第二差分信号d′i进行嵌入式熵编码,得到其编码索引index((i+1)/2+7)(i=1,3,……13),将{index(8),…,index(14)}加入到超宽带第二码率层中。Fifth, obtain the difference between the odd envelope part enve(i) (i=1, 3, ... 15) and the replaced odd envelope part enve'(i) (i = 1, 3, ... 15) The second differential signal d' i =enve(i)-enve'(i)(i=1, 3,...13), the embedded entropy coding is performed on the second differential signal d' i to obtain its code Index index ((i+1)/2+7) (i=1, 3, ... 13), add {index (8), ..., index (14)} to the second UWB code rate layer.

解码端:Decoder:

第一,对超宽带第一码率层进行解码,重构偶数包络部分的频域包络信息,包括:First, decode the first code rate layer of the ultra-wideband, and reconstruct the frequency-domain envelope information of the even-numbered envelope part, including:

首先,从超宽带第一码率层中获取偶数包络部分的索引信息{index(0),…,index(7)},根据该索引信息解码得到{enveq(0),d2 q,d4 q,…,d14 q};First, obtain the index information {index(0),...,index(7)} of the even-numbered envelope part from the ultra-wideband first code rate layer, and decode according to the index information to obtain {enve q (0), d 2 q , d 4 q ,...,d 14 q };

然后,根据公式di=enveq(i)-enveq(i-2),(i=2,4,6……14),获取偶数包络部分量化后的其他时域包络信息,得到偶数包络部分量化后的频域包络信息{enveq(0),enveq(2),…enveq(14)}。Then, according to the formula d i =enve q (i)-enve q (i-2), (i=2, 4, 6...14), obtain other time-domain envelope information after quantization of the even-numbered envelope part, and obtain The frequency-domain envelope information {enve q (0), enve q (2), ...enve q (14)} after quantization of the even envelope part.

第二,根据与编码端相同的奇数包络部分与偶数包络部分之间的代换关系enve′(i)=(enveq(i-1)+enveq(i+1))/2,(i=1,3,5……13),重构奇数包络部分的频域包络信息{enve′(1),enve′(3),…,enve′(13)}。Second, according to the substitution relationship enve'(i)=(enve q (i-1)+enve q (i+1))/2 between the odd envelope part and the even envelope part same as the encoding end, (i=1, 3, 5...13), reconstruct the frequency-domain envelope information {enve'(1), enve'(3),...,enve'(13)} of the odd-numbered envelope part.

第三,从超宽带第二码率层中获取偶数包络部分的索引信息{index(8),…,index(14)},根据该索引信息解码出{d1 q,d3 q,…,d13 q}。Third, obtain the index information {index(8),...,index(14)} of the even-numbered envelope part from the ultra-wideband second code rate layer, and decode {d 1 q , d 3 q ,... , d 13 q }.

第四,根据{enve′(1),enve′(3),…,enve′(13)}和{d1 q,d3 q,…,d13 q},获得增强的奇数包络部分的频域包络信息{enveq(1),enveq(3),…,enveq(13)}。Fourth, according to {enve′(1), enve′(3),…,enve′(13)} and {d 1 q , d 3 q ,…, d 13 q }, obtain the enhanced odd envelope part Frequency-domain envelope information {enve q (1), enve q (3), ..., enve q (13)}.

第五,根据{enveq(0),enveq(2),…enveq(14)}和{enveq(1),enveq(3),…,enveq(13)},重构原始的输入信号。 Fifth , reconstruct the original _ input signal.

实施例2:超宽带嵌入式编码器的输入信号是32kHz采样率,带宽为16kHz,处理帧长为20ms,采用本发明实施例提供的嵌入式编解码方法对超宽带部分的频域包络进行处理,超宽带码率层编码比特资源相对充足。Embodiment 2: the input signal of the ultra-wideband embedded encoder is 32kHz sampling rate, the bandwidth is 16kHz, and the processing frame length is 20ms, and the frequency-domain envelope of the ultra-wideband part is carried out using the embedded encoding and decoding method provided by the embodiment of the present invention Processing, UWB code rate layer encoding bit resources are relatively sufficient.

本实施例与实施例1的编码和解码步骤相似,其区别在于:This embodiment is similar to the encoding and decoding steps of Embodiment 1, the difference is that:

编码端:Encoder:

在实施例1所述编码端第五步基础上,将获得的第二差分信号d′i=enve(i)-enve′(i)划分成两个子带,即将{index(8),…,index(14)}划分为两个子带{index(8),…,index(k)}和{index(k+1),…,index(14)},将{index(8),…,index(k)}加入超宽带第一码率层,将{index(k+1),…,index(14)}加入超宽带第二码率层。On the basis of the fifth step at the encoding end described in Embodiment 1, the obtained second differential signal d' i =enve(i)-enve'(i) is divided into two subbands, that is, {index(8),..., index(14)} is divided into two subbands {index(8),...,index(k)} and {index(k+1),...,index(14)}, and {index(8),...,index (k)} is added to the first UWB code rate layer, and {index(k+1),..., index(14)} is added to the UWB second code rate layer.

解码端:Decoder:

实施例1解码端的第三步骤所述的{d1 q,d3 q,…,d13 q},在本实施例中是从超宽带第一码率层和第二码率层中解码获得的,即从超宽带第一码率层中获得{d1 q,d3 q,…,dk q},从超宽带第一码率层中获得{dk+1 q,d3 q,…,d13 q}。The {d 1 q , d 3 q , ..., d 13 q } described in the third step of the decoding end in Embodiment 1 is obtained by decoding from the ultra-wideband first code rate layer and the second code rate layer in this embodiment , that is, {d 1 q , d 3 q , ..., d k q } are obtained from the first ultra-wideband code rate layer, and {d k+1 q , d 3 q , ..., d 13 q }.

在本实施例中,当解码端接收到的码流中不包含超宽带第二码率层信息时,可以根据{enveq(0),enveq(2),…enveq(14)}、{enveq(1),enveq(3),…,enveq(k)}以及{enve′(k+1),enve′(3),…,enve′(13)},重构原始的输入信号。In this embodiment, when the code stream received by the decoding end does not contain the information of the second code rate layer of ultra-wideband, it can be based on {enve q (0), enve q (2), ... enve q (14)}, {enve q (1), enve q (3), ..., enve q (k)} and {enve'(k+1), enve'(3), ..., enve'(13)}, reconstruct the original input signal.

如图3所示,本发明实施例提供的嵌入式编码装置,包括:As shown in Figure 3, the embedded encoding device provided by the embodiment of the present invention includes:

包络信息划分单元301,用于将原始信号的时域或者频域包络信息划分为第一部分和第二部分;An envelope information division unit 301, configured to divide the time-domain or frequency-domain envelope information of the original signal into a first part and a second part;

代换关系建立单元302,用于建立所述第一部分和第二部分之间的代换关系,所述代换关系用于解码时将第一部分代换得到第二部分;A substitution relationship establishment unit 302, configured to establish a substitution relationship between the first part and the second part, and the substitution relationship is used to substitute the first part to obtain the second part during decoding;

嵌入式编码单元303,用于对所述第一部分进行嵌入式编码,生成第一码率层。The embedded encoding unit 303 is configured to perform embedded encoding on the first part to generate a first code rate layer.

进一步地,如图4所示,所述嵌入式编码单元303可以包括:Further, as shown in FIG. 4, the embedded coding unit 303 may include:

第一差分信号获取单元3031,用于从所述第一部分的第二个时域或者频域包络信息开始,获取当前时域或者频域包络信息相对于前一个时域或者频域包络信息的第一差分信号;The first differential signal acquiring unit 3031 is configured to start from the second time domain or frequency domain envelope information of the first part, and acquire the current time domain or frequency domain envelope information relative to the previous time domain or frequency domain envelope information a first differential signal of information;

编码单元3032,用于对所述第一部分的第一个时域或者频域包络信息以及第一差分信号获取单元获取的至少一个第一差分信号进行嵌入式编码,生成第一码率层。The coding unit 3032 is configured to perform embedded coding on the first time-domain or frequency-domain envelope information of the first part and at least one first differential signal obtained by the first differential signal obtaining unit to generate a first code rate layer.

进一步地,如图4所示,所述嵌入式编码装置,还可以包括:Further, as shown in Figure 4, the embedded coding device may also include:

第二差分信号获取单元304,用于获取所述第二部分与用第一部分代换后的第二部分之间的第二差分信号;A second differential signal acquiring unit 304, configured to acquire a second differential signal between the second part and the second part replaced by the first part;

所述嵌入式编码单元303,还用于对所述第二差分信号进行嵌入式编码,生成第二码率层。The embedded encoding unit 303 is further configured to perform embedded encoding on the second differential signal to generate a second code rate layer.

进一步地,如图4所示,所述嵌入式编码装置,还可以包括:第二差分信号划分单元305,用于将所述第二差分信号划分成第一子部分和第二子部分;Further, as shown in FIG. 4, the embedded encoding device may further include: a second differential signal dividing unit 305, configured to divide the second differential signal into a first sub-part and a second sub-part;

所述嵌入式编码单元303,还用于对所述包络信息划分单元301获得的第一部分,以及所述第二差分信号划分单元305获得的第一子部分进行嵌入式编码,生成第一码率层,对第二差分信号划分单元305获得的第二子部分进行嵌入式编码,生成第二码率层。The embedded coding unit 303 is further configured to perform embedded coding on the first part obtained by the envelope information division unit 301 and the first sub-part obtained by the second differential signal division unit 305, to generate a first code rate layer, and perform embedded coding on the second sub-part obtained by the second differential signal dividing unit 305 to generate a second code rate layer.

本发明实施例提供的嵌入式编码装置,由于预先建立了第一部分和第二部分之间的代换关系,所以编码端可以只对原始信号时域或者频域包络信息的第一部分进行嵌入式编码,解决了现有技术对原始信号的整个时域或者频域包络信息进行编码,造成编码比特资源有限时,所述时域或者频域包络信息的量化精度较低的问题。本发明实施例提供的嵌入式编码装置,在编码比特资源有限时,也能够对所述第一部分信息进行较精确的量化;并且,本发明实施例提供的嵌入式编码装置,除对第一部分进行嵌入式编码外不占用额外的编码比特资源,所述第一部分与第二部分之间的代换关系算法简单、稳定性高。由于本发明实施例提供的嵌入式编码装置,还可以对所述第二差分信息进行嵌入式编码,所以使得本方法编码效果更好,编码质量更高。In the embedded encoding device provided by the embodiment of the present invention, since the substitution relationship between the first part and the second part is established in advance, the encoding end can only embed the first part of the original signal time domain or frequency domain envelope information. The encoding solves the problem that the prior art encodes the entire time-domain or frequency-domain envelope information of the original signal, resulting in limited encoding bit resources, and the quantization accuracy of the time-domain or frequency-domain envelope information is low. The embedded coding device provided by the embodiment of the present invention can also perform more accurate quantization on the first part of information when the coding bit resources are limited; and, the embedded coding device provided by the embodiment of the present invention, in addition to performing The embedded coding does not occupy additional coding bit resources, and the algorithm of the substitution relationship between the first part and the second part is simple and highly stable. Since the embedded encoding device provided by the embodiment of the present invention can also perform embedded encoding on the second difference information, the encoding effect of the method is better and the encoding quality is higher.

如图5所示,本发明实施例提供的嵌入式解码装置,包括:As shown in Figure 5, the embedded decoding device provided by the embodiment of the present invention includes:

第一部分信息重构单元501,用于对第一码率层进行解码,重构原始信号的第一部分时域或者频域包络信息;The first partial information reconstruction unit 501 is configured to decode the first code rate layer, and reconstruct the first partial time domain or frequency domain envelope information of the original signal;

第二部分信息重构单元502,用于根据所述第一部分信息重构单元501重构的第一部分时域或者频域包络信息,以及根据编码方建立的第一部分时域或者频域包络信息与第二部分时域或者频域包络信息之间的代换关系,重构原始信号的第二部分时域或者频域包络信息;The second partial information reconstruction unit 502 is configured to reconstruct the first partial time domain or frequency domain envelope information according to the first partial information reconstruction unit 501, and the first partial time domain or frequency domain envelope established by the encoding party A substitution relationship between the information and the second part of the time-domain or frequency-domain envelope information, reconstructing the second part of the time-domain or frequency-domain envelope information of the original signal;

原始信号重构单元503,用于根据所述第一部分信息重构单元501和第二部分信息重构单元502重构的第一部分和第二部分时域或者频域包络信息,重构原始信号。The original signal reconstruction unit 503 is configured to reconstruct the original signal according to the first part and the second part of time domain or frequency domain envelope information reconstructed by the first part of information reconstruction unit 501 and the second part of information reconstruction unit 502 .

进一步地,如图6所示,所述第一部分信息重构单元501可以包括:Further, as shown in FIG. 6, the first partial information reconstruction unit 501 may include:

解码单元5011,用于对第一码率层进行解码,获得原始信号第一部分时域或者频域包络信息的第一个时域或者频域包络信息,以及一个以上的第一差分信息;The decoding unit 5011 is configured to decode the first code rate layer, and obtain the first time domain or frequency domain envelope information of the first part of the time domain or frequency domain envelope information of the original signal, and more than one first difference information;

信息重构单元5012,用于根据所述解码单元5011获得的第一个时域或者频域包络信息以及第一差分信息,重构所述第一部分时域或者频域包络信息的后续时域或者频域包络信息。An information reconstruction unit 5012, configured to reconstruct a subsequent time period of the first part of the time domain or frequency domain envelope information according to the first time domain or frequency domain envelope information and the first difference information obtained by the decoding unit 5011. domain or frequency domain envelope information.

进一步地,如图6所示,所述嵌入式解码装置,还可以包括:Further, as shown in Figure 6, the embedded decoding device may also include:

第二差分信号获取单元503,用于获取第二差分信号;A second differential signal acquiring unit 503, configured to acquire a second differential signal;

增强的第二部分信息生成单元504,用于根据所述第二差分信号以及所述重构的第二部分时域或者频域包络信息,生成增强的第二部分时域或者频域包络信息;An enhanced second partial information generation unit 504, configured to generate an enhanced second partial time domain or frequency domain envelope according to the second differential signal and the reconstructed second partial time domain or frequency domain envelope information information;

所述原始信号重构单元503,还用于根据所述重构的第一部分时域或者频域包络信息和增强的第二部分时域或者频域包络信息,生成重构的原始信号;或The original signal reconstruction unit 503 is further configured to generate a reconstructed original signal according to the reconstructed first part of time domain or frequency domain envelope information and the enhanced second part of time domain or frequency domain envelope information; or

根据所述重构的第一部分和第二部分时域或者频域包络信息以及增强的第二部分时域或者频域包络信息,重构原始信号。The original signal is reconstructed according to the reconstructed first part and the second part of time-domain or frequency-domain envelope information and the enhanced second part of time-domain or frequency-domain envelope information.

本发明实施例提供的嵌入式解码装置,在解码出原始信号的第一部分时域或者频域包络信息以后,可以根据预先设置的代换关系重构出原始信号的第二部分时域或者频域包络信息,能够适应本发明实施例提供的嵌入式编码方法,并且,能够重构出质量较好的原始信号。The embedded decoding device provided by the embodiment of the present invention can reconstruct the second part of the original signal in the time domain or frequency domain according to the preset substitution relationship after decoding the first part of the time domain or frequency domain envelope information of the original signal. The domain envelope information can adapt to the embedded coding method provided by the embodiment of the present invention, and can reconstruct an original signal with better quality.

本发明实施例提供的嵌入式编解码方法和装置适用于对语音和音频等信号的嵌入式编码,以满足高质量的音/视频会议、电视电话会议、网络通信、移动通信、网络拥塞控制以及第三代和第四代移动通信对嵌入式语音与音频编码的广泛需求。The embedded coding and decoding method and device provided by the embodiments of the present invention are suitable for embedded coding of voice and audio signals to meet the requirements of high-quality audio/video conferences, video conferences, network communications, mobile communications, network congestion control and The third and fourth generation mobile communications have extensive requirements for embedded speech and audio coding.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一计算机可读存储介质中,如ROM/RAM、磁碟或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the method of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, etc. disc or disc, etc.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4