IP Library Granted Patent US 8,723,700
Granted Patent B2
US 8,723,700 · App. 13/325,993 · Granted May 13, 2014

Method and device for pulse encoding, method and device for pulse decoding

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 8,723,700
App. No.
13/325,993
Granted
May 13, 2014
Kind
B2
Abstract

The present invention discloses a method and a device for pulse encoding, and a method and a device for pulse decoding. The method for pulse encoding includes: calculating an index value of an input pulse; selecting an adjustment threshold value according to the number of pulses, and comparing the index value of the pulse with the adjustment threshold value; if the index value is smaller than the adjustment threshold value, adopting the first number of encoding bits to encode the index value, if the index value is not smaller than the adjustment threshold value, adopting the second number of encoding bits to encode the index value plus an offset value, where the first number is smaller than the second number, the first number and the second number are both positive integers, and the offset value is greater than or equal to the adjustment threshold value.

Claims (46)

1. A method for pulse encoding, the method comprising:

calculating an index value of an input pulse;

selecting an adjustment threshold value according to the number of pulses, and comparing the index value of the pulse with the adjustment threshold value; and

if the index value is smaller than the adjustment threshold value, adopting the first number of encoding bits to encode the index value, if the index value is not smaller than the adjustment threshold value, adopting the second number of encoding bits to encode the index value plus an offset value, wherein the first number is smaller than the second number, the first number and the second number are both positive integers, and the offset value is greater than or equal to the adjustment threshold value.

2. The method for pulse encoding according to claim 1 , wherein the second number is a value obtained by rounding up a theoretical value of encoding bits required to encode the pulse.

3. The method for pulse encoding according to claim 2 , wherein before the calculating the index value of the input pulse, the method further comprises:

setting an adjustment threshold value within a codebook space wherein the index value is located; and

inserting a remaining space after the adjustment threshold value, wherein the remaining space is a remaining part of a value range corresponding to the number of encoding bits obtained by rounding up the theoretical value minus the codebook space.

4. The method for pulse encoding according to claim 3 , wherein the adjustment threshold value is smaller than or equal to the number of numerical values in the remaining space.

5. The method for pulse encoding according to claim 3 , wherein if the number of adjustment threshold values is at least two, the inserting the remaining space after the adjustment threshold values comprises:

dividing the remaining space into sub-remaining spaces, wherein the number of sub-remaining spaces is smaller than or equal to the number of the adjustment threshold values; and

inserting the sub-remaining spaces after the adjustment threshold values, wherein the number of the adjustment threshold values is the same as the number of the sub-remaining spaces.

6. The method for pulse encoding according to claim 5 , wherein the dividing the remaining space into at least two sub-remaining spaces comprises:

dividing the remaining space into sub-remaining spaces on average.

7. The method for pulse encoding according to claim 1 , wherein the number of adjustment threshold values selected according to the number of pulses is at least two;

before the comparing the index value of the pulse with the adjustment threshold value, the method further comprises:

comparing the index value with the at least two adjustment threshold values;

if the index value is smaller than a minimum adjustment threshold value of the at least two adjustment threshold values, selecting the minimum adjustment threshold value; or

if the index value is greater than a maximum adjustment threshold value of the at least two adjustment threshold values, selecting the maximum adjustment threshold value; or

if the index value is within a range formed by two adjacent adjustment threshold values of the at least two adjustment threshold values, selecting the smaller adjustment threshold value of the two adjacent adjustment threshold values.

8. A method for pulse decoding, the method comprising:

demultiplexing an encoding code stream and extracting the first number of encoding bits from the demultiplexed encoding code stream;

if a decoded value of the first number of encoding bits is smaller than an adjustment threshold value, outputting the decoded value of the first number of encoding bits; and

if the decoded value of the first number of encoding bits is greater than or equal to the adjustment threshold value, decoding the second number of encoding bits, wherein the second number of encoding bits is extracted from the code stream, and outputting a decoded value of the second number of encoding bits, wherein the first number is smaller than the second number, and the first number and the second number are both positive integers.

9. The method for pulse decoding according to claim 8 , wherein the decoding the second number of encoding bits, wherein the second number of encoding bits is extracted from the code stream, comprises:

extracting encoding bits from the code stream, wherein a sum of the number of extracted encoding bits and the first number is equal to the second number;

obtaining an intermediate value by adding a reference value to the decoded value of the first number of encoding bits and then adding the decoded value of the extracted encoding bits; and

obtaining the decoded value of the second number of encoding bits by subtracting an offset value from the intermediate value, wherein the offset value is greater than or equal to the adjustment threshold value.

10. A device for pulse encoding, the device comprising:

a calculating unit, configured to calculate an index value of an input pulse;

a selection unit, configured to select an adjustment threshold value according to the number of pulses; and

an encoding unit, configured to adopt the first number of encoding bits to encode the index value if the index value calculated and obtained by the calculating unit is smaller than the adjustment threshold value selected by the selection unit, and adopt the second number of encoding bits to encode the index value plus an offset value if the index value calculated and obtained by the calculating unit is greater than or equal to the adjustment threshold value selected by the selection unit, wherein the first number is smaller than the second number, the first number and the second number are both positive integers, and the offset value is greater than or equal to the adjustment threshold value.

11. The device for pulse encoding according to claim 10 , further comprising:

a setting unit, configured to set an adjustment threshold within a codebook space wherein the index value calculated and obtained by the calculating unit is located; and

an insertion unit, configured to insert a remaining space after the adjustment threshold set by the setting unit, wherein the remaining space is a remaining part of a value range corresponding to the number of encoding bits obtained by rounding up a theoretical value of encoding bits required to encode the pulse minus the codebook space.

12. The device for pulse encoding according to claim 11 , wherein the insertion unit comprises:

a dividing unit, configured to divide the remaining space into sub-remaining spaces, wherein the number of sub-remaining spaces is smaller than or equal to the number of the adjustment threshold values; and

a space insertion unit, configured to respectively insert the sub-remaining spaces after the adjustment threshold values, wherein the number of the adjustment threshold values is the same as the number of the sub-remaining spaces.

13. A device for pulse decoding, the device comprising:

an extraction unit, configured to demultiplex an encoding code stream and extract the first number of encoding bits from the demultiplexed encoding code stream;

a decoding unit, configured to decode the first number of encoding bits, wherein the first number of encoding bits is extracted by the extraction unit, and if a decoded value of the first number of encoding bits is greater than or equal to an adjustment threshold value, decode the second number of encoding bits, wherein the second number of encoding bits is extracted from the encoding code stream; and

an output unit, configured to output the decoded value of the first number of encoding bits if the decoded value of the first number of encoding bits decoded by the decoding unit is smaller than the adjustment threshold value, and output a decoded value of the second number of encoding bits if the decoded value of the first number of encoding bits decoded by the decoding unit is not smaller than the adjustment threshold value, wherein the first number is smaller than the second number, and the first number and the second number are both positive integers.

14. The device for pulse decoding according to claim 13 , wherein the extraction unit is further configured to extract encoding bits from the code stream if the decoded value of the first number of encoding bits is greater than or equal to the adjustment threshold value, wherein a sum of the number of the extracted encoding bits and the first number is equal to the second number; and

the decoding unit comprises:

a calculating unit, configured to obtain an intermediate value by adding a reference value to the decoded value of the first encoding bits and then adding the decoded value of the extracted encoding bits; and

an adjustment decoding unit, configured to obtain the decoded value of the second number of encoding bits by subtracting an offset value from the intermediate value, wherein the offset value is greater than or equal to the adjustment threshold value.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 30, 2023
From: HUAWEI TECHNOLOGIES CO., LTD.
To: TOP QUALITY TELEPHONY, LLC
Reel/Frame 064757/0541 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 14, 2011
From: MA, FUWEI; ZHANG, DEJUN; ZHANG, QING; XIE, MINJIE
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 027383/0671 →