# US 2021/0344921 A1 · Method and apparatus for processing video signal

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0344921 A1
- Document ID: US20210344921A1
- Status: Published application
- Kind: A1
- Application number: 17/283,243
- Filed: 2019-01-21
- Published: 2021-11-04
- Earliest claimed: 2019-01-21
- Assignees: LG Electronics Inc.
- Applicants: LG Electronics Inc.
- Inventors: Yoonjung KIM; Jonghun YOO; Dahyun YOON; Nara LEE; Sangheon LEE; Jaehyeok LEE; Taggun LEE; Heamin LEE; Taeil CHUNG
- Web page: https://patentgrep.com/patent/US20210344921A1

## CPC

- H04N 19/124: Quantisation
- H04N 19/132: Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
- H04N 19/136: Incoming video signal characteristics or properties
- H04N 19/18: the unit being a set of transform coefficients
- H04N 19/184: the unit being bits, e.g. of the compressed video stream
- H04N 19/63: using sub-band based transform, e.g. wavelets
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N 19/91: Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

The present invention relates to a method for encoding a video signal and apparatus therefor, and more particularly, to a method and an apparatus therefor, the method for determining, when the number of significant bits of wavelet coefficient information of a current precinct is greater than a truncation position, a bit budget for code information of the wavelet coefficient information as 1, determining, when the number of significant bits of the wavelet coefficient information is smaller than the truncation position, the bit budget of the code information of the wavelet coefficient information as 0, performing, when the number of significant bits is same as the truncation position, quantization on the wavelet coefficient information, determining, when a result of the quantization is 0, the bit budget for the code information of the wavelet coefficient information as 0, and determining, when the result of the quantization is not 0, the bit budget for the code information of the wavelet coefficient information as 1.

## Claims

### Claim 1

A method of encoding a video signal in an encoding device, the method comprising:
determining a bit budget for a current precinct; and
determining a quantization parameter for the current precinct based on the determined bit budget,
wherein the current precinct includes wavelet coefficient information,
wherein the wavelet coefficient information is grouped into a code group,
wherein the determining the bit budget for the current precinct comprises
determining a bit budget for sign information of the wavelet coefficient information based on that the number of significant bits of the wavelet coefficient information is greater than a truncation position,
determining the bit budget for the sign information of the wavelet coefficient information as 0 based on that the significant bit number of the wavelet coefficient information is smaller than the truncation position,
performing quantization on the wavelet coefficient information based on that the significant bit number of the wavelet coefficient information is equal to the truncation position,
determining the bit budget for the sign information of the wavelet coefficient information as 0 based on that a result of the quantization is 0, and
determining the bit budget for the sign information of the wavelet coefficient information as 1 based on that a result of the quantization is not 0.

### Claim 2 (depends on 1)

The method of claim 1, wherein the quantization is skipped based on that the significant bit number of the wavelet coefficient information is greater than the truncation position.

### Claim 3 (depends on 2)

The method of claim 2, wherein the quantization is skipped based on that the significant bit number of the wavelet coefficient information is smaller than the truncation position.

### Claim 4 (depends on 1)

The method of claim 1, wherein the quantization includes uniform quantization based on the truncation position and a bitplane count of the code group.

### Claim 5 (depends on 4)

The method of claim 4, wherein the uniform quantization is performed based on a following equation:
v=((d<<ζ)−d+(1<<M))>>(M+1), ζ=M−T+1
wherein the v indicates the result of the quantization, wherein the d indicates an absolute value of the wavelet coefficient information, wherein the M indicates the bitplane count of the code group, and wherein the T indicates the truncation position.

### Claim 6 (depends on 4)

The method of claim 4, wherein the bitplane count indicates the number of bitplanes ranging from a least significant bitplane to a non-zero most significant bitplane among bitplanes of the code group and wherein the bitplane indicates arrangement of bits located at the same significance in the wavelet coefficient information of the code group.

### Claim 7 (depends on 1)

The method of claim 1, wherein the truncation position indicates the number of least significant bitplanes to be received from each wavelet coefficient information of the code group by the quantization.

### Claim 8 (depends on 1)

The method of claim 1, wherein the code group includes four consecutive wavelet coefficient informations in the current precinct.

### Claim 9 (depends on 1)

The method of claim 1, wherein the significant bit number of the wavelet coefficient information indicates the bit number ranging from a least significant bit to a non-zero most significant bit in an absolute value of the wavelet coefficient information.

### Claim 10 (depends on 1)

The method of claim 1, further comprising obtaining quantization index information by performing the quantization on the wavelet coefficient information based on the determined quantization parameter.

### Claim 11 (depends on 10)

The method of claim 10, further comprising performing entropy encoding based on the quantization index information,
wherein the performing the entropy encoding comprises encoding one bit indicating sign information of the wavelet coefficient information to a sign subpacket based on that the quantization index magnitude information is not 0 and skipping encoding for the sign information of the wavelet coefficient information based on that the quantization index magnitude information is 0.

### Claim 12 (depends on 11)

The method of claim 11, further comprising generating a bitstream for the video signal based on the sign subpacket.

### Claim 13

An apparatus for encoding a video signal, the apparatus comprising:
a memory storing wavelet coefficient information configuring a current precinct; and
a bitrate controller configured to determine a bit budget for the current precinct and determine a quantization parameter for the current precinct based on the determined bit budget,
wherein the wavelet coefficient information is grouped into a code group and
wherein the bitrate controller is further configured to determine a bit budget for sign information of the wavelet coefficient information based on that the number of significant bits of the wavelet coefficient information is greater than a truncation position,
determine the bit budget for the sign information of the wavelet coefficient information as 0 based on that the significant bit number of the wavelet coefficient information is smaller than the truncation position,
perform quantization on the wavelet coefficient information based on that the significant bit number of the wavelet coefficient information is equal to the truncation position,
determine the bit budget for the sign information of the wavelet coefficient information as 0 based on that a result of the quantization is 0, and
determine the bit budget for the sign information of the wavelet coefficient information as 1 based on that a result of the quantization is not 0.
