# US 2016/0261886 A1 · Optimization for encoding video data using non-square partitions

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

- Number: US 2016/0261886 A1
- Document ID: US20160261886A1
- Status: Published application
- Kind: A1
- Application number: 15/060,273
- Filed: 2016-03-03
- Published: 2016-09-08
- Earliest claimed: 2015-03-06
- Assignees: QUALCOMM Incorporated
- Applicants: QUALCOMM Incorporated
- Inventors: Jaehong Chon; In Suk Chong; Wei-Jung Chien; Xianglin Wang; Marta Karczewicz
- Web page: https://patentgrep.com/patent/US20160261886A1

## CPC

- H04N 19/139: Analysis of motion vectors, e.g. their magnitude, direction, variance or reliability
- H04N 19/107: between spatial and temporal predictive coding, e.g. picture refresh
- H04N 19/119: Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
- H04N 19/147: according to rate distortion criteria (rate-distortion as a criterion for motion estimation H04N19/567)
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/513: Processing of motion vectors
- H04N 19/103: Selection of coding mode or of prediction mode
- H04N 19/19: using optimisation based on Lagrange multipliers
- H04N 19/61: in combination with predictive coding
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

To encode video data, a video encoder partitions a 2N×2N block of video data into four N×N blocks, determines encoding modes for each of the four N×N blocks, calculates values representative of encoded versions of the four N×N blocks using the encoding modes for each of the four N×N blocks, determines whether to skip testing of at least one non-square partitioning mode for the 2N×2N block based on the calculated values, and encodes the 2N×2N block based at least in part on the determination of whether to skip testing of the at least one non-square partitioning mode.

## Claims

### Claim 1

A method of encoding video data, the method comprising:
partitioning a 2N×2N block of video data into four N×N blocks, wherein N is an integer value;
determining encoding modes for each of the four N×N blocks;
calculating values representative of encoded versions of the four N×N blocks using the encoding modes for each of the four N×N blocks;
determining whether to skip testing of at least one non-square partitioning mode for the 2N×2N block based on the calculated values; and
encoding the 2N×2N block based at least in part on the determination of whether to skip testing of the at least one non-square partitioning mode.

### Claim 2 (depends on 1)

The method of claim 1, wherein determining whether to skip testing comprises:
determining a horizontal value from the values representative of the encoded versions of the four N×N blocks;
determining a vertical value from the values representative of the encoded versions of the four N×N blocks; and
determining whether to skip testing of the at least one non-square partitioning mode based on whether the horizontal value is larger than the vertical value multiplied by an offset or whether the vertical value is larger than the horizontal value multiplied by the offset.

### Claim 3 (depends on 2)

The method of claim 2, wherein determining whether to skip testing comprises determining to skip testing an N×2N partitioning mode when the horizontal value is larger than the vertical value multiplied by the offset.

### Claim 4 (depends on 2)

The method of claim 2, wherein determining whether to skip testing comprises determining to skip testing a 2N×N partitioning mode when the vertical value is larger than the horizontal value multiplied by the offset.

### Claim 5 (depends on 2)

The method of claim 2,
wherein calculating the values comprises calculating motion vector difference values for motion vectors of the four N×N blocks, each of the motion vector difference values including a respective horizontal component and a respective vertical component,
wherein determining the horizontal value comprises calculating the sum of a first difference between the horizontal component of the motion vector for an upper-left block of the four N×N blocks and the horizontal component of the motion vector for an upper-right block of the four N×N blocks and a second difference between the horizontal component of the motion vector for a lower-left block of the four N×N blocks and the horizontal component of the motion vector for a lower-right block of the four N×N blocks, and
wherein determining the horizontal value comprises calculating the sum of a first difference between the horizontal component of the motion vector for an upper-left block of the four N×N blocks and the horizontal component of the motion vector for an upper-right block of the four N×N blocks and a second difference between the horizontal component of the motion vector for a lower-left block of the four N×N blocks and the horizontal component of the motion vector for a lower-right block of the four N×N blocks.

### Claim 6 (depends on 2)

The method of claim 2, wherein determining the horizontal value from the values representative of the encoded versions of the four N×N blocks and determining the vertical value from the values representative of the encoded versions of the four N×N blocks is performed in response to a first rate-distortion (RD) cost associated with encoding block of video data in a 2N×2N partition mode being greater than a second RD cost associated with encoding the block of video data in an N×N partition mode.

### Claim 7 (depends on 2)

The method of claim 2, wherein determining the horizontal value from the values representative of the encoded versions of the four N×N blocks and determining the vertical value from the values representative of the encoded versions of the four N×N blocks is performed in response to determining not to encode the 2N×2N block using an intra mode for any of the four N×N blocks.

### Claim 8 (depends on 2)

The method of claim 2, further comprising:
in response to the horizontal value being less than the vertical value multiplied by the offset and the vertical value being less than the horizontal value multiplied by the offset, testing both the N×2N partitioning mode and the 2N×N partitioning mode.

### Claim 9

A device for encoding video data, the device comprising:
a memory configured to store the video data; and
one or more processors configured to:
partition a 2N×2N block of video data into four N×N blocks, wherein N is an integer value;
determine encoding modes for each of the four N×N blocks;
calculate values representative of encoded versions of the four N×N blocks using the encoding modes for each of the four N×N blocks;
determine whether to skip testing of at least one non-square partitioning mode for the 2N×2N block based on the calculated values; and
encode the 2N×2N block based at least in part on the determination of whether to skip testing of the at least one non-square partitioning mode.

### Claim 10 (depends on 9)

The device of claim 9, wherein determining whether to skip testing comprises:
determining a horizontal value from the values representative of the encoded versions of the four N×N blocks;
determining a vertical value from the values representative of the encoded versions of the four N×N blocks; and
determining whether to skip testing of the at least one non-square partitioning mode based on whether the horizontal value is larger than the vertical value multiplied by an offset or whether the vertical value is larger than the horizontal value multiplied by the offset.

### Claim 11 (depends on 10)

The device of claim 10, wherein to determine whether to skip testing, the one or more processors are further configured to determine to skip testing an N×2N partitioning mode when the horizontal value is larger than the vertical value multiplied by the offset.

### Claim 12 (depends on 10)

The device of claim 10, wherein to determine whether to skip testing, the one or more processors are further configured to determine to skip testing a 2N×N partitioning mode when the vertical value is larger than the horizontal value multiplied by the offset.

### Claim 13 (depends on 10)

The device of claim 10,
wherein to calculate the values, the one or more processors are further configured to calculate motion vector difference values for motion vectors of the four N×N blocks, each of the motion vector difference values including a respective horizontal component and a respective vertical component,
wherein to determine the horizontal value, the one or more processors are further configured to calculate the sum of a first difference between the horizontal component of the motion vector for an upper-left block of the four N×N blocks and the horizontal component of the motion vector for an upper-right block of the four N×N blocks and a second difference between the horizontal component of the motion vector for a lower-left block of the four N×N blocks and the horizontal component of the motion vector for a lower-right block of the four N×N blocks, and
wherein to determine the horizontal value, the one or more processors are further configured to calculate the sum of a first difference between the horizontal component of the motion vector for an upper-left block of the four N×N blocks and the horizontal component of the motion vector for an upper-right block of the four N×N blocks and a second difference between the horizontal component of the motion vector for a lower-left block of the four N×N blocks and the horizontal component of the motion vector for a lower-right block of the four N×N blocks.

### Claim 14 (depends on 10)

The device of claim 10, wherein the one or more processors are further configured to determine the horizontal value from the values representative of the encoded versions of the four N×N blocks and determine the vertical value from the values representative of the encoded versions of the four N×N blocks in response to a first rate-distortion (RD) cost associated with encoding block of video data in a 2N×2N partition mode being greater than a second RD cost associated with encoding the block of video data in an N×N partition mode.

### Claim 15 (depends on 10)

The device of claim 10, wherein the one or more processors are further configured to determine the horizontal value from the values representative of the encoded versions of the four N×N blocks and determine the vertical value from the values representative of the encoded versions of the four N×N blocks in response to determining not to encode the 2N×2N block using an intra mode for any of the four N×N blocks.

### Claim 16 (depends on 10)

The device of claim 10, wherein the one or more processors are further configured to test both the N×2N partitioning mode and the 2N×N partitioning mode in response to the horizontal value being less than the vertical value multiplied by the offset and the vertical value being less than the horizontal value multiplied by the offset.

### Claim 17 (depends on 9)

The device of claim 9, wherein the device comprises a wireless communication device comprising a transmitter configured to transmit encoded data.

### Claim 18 (depends on 17)

The device of claim 17, wherein the wireless communication device comprises a cellular telephone and the encoded video data is modulated according to a cellular communication standard prior to being transmitted by the transmitter.

### Claim 19

An apparatus for encoding video data, the apparatus comprising:
means for partitioning a 2N×2N block of video data into four N×N blocks, wherein N is an integer value;
means for determining encoding modes for each of the four N×N blocks;
means for calculating values representative of encoded versions of the four N×N blocks using the encoding modes for each of the four N×N blocks;
means for determining whether to skip testing of at least one non-square partitioning mode for the 2N×2N block based on the calculated values; and
means for encoding the 2N×2N block based at least in part on the determination of whether to skip testing of the at least one non-square partitioning mode.

### Claim 20 (depends on 19)

The apparatus of claim 19, wherein the means for determining whether to skip testing comprises:
means for determining a horizontal value from the values representative of the encoded versions of the four N×N blocks;
means for determining a vertical value from the values representative of the encoded versions of the four N×N blocks; and
means for determining whether to skip testing of the at least one non-square partitioning mode based on whether the horizontal value is larger than the vertical value multiplied by an offset or whether the vertical value is larger than the horizontal value multiplied by the offset.

### Claim 21 (depends on 20)

The apparatus for claim 20, wherein the means for determining whether to skip testing comprises means for determining to skip testing an N×2N partitioning mode when the horizontal value is larger than the vertical value multiplied by the offset.

### Claim 22 (depends on 20)

The apparatus for claim 20, wherein the means for determining whether to skip testing comprises means for determining to skip testing a 2N×N partitioning mode when the vertical value is larger than the horizontal value multiplied by the offset.

### Claim 23 (depends on 20)

The apparatus for claim 20,
wherein the means for calculating the values comprises means for calculating motion vector difference values for motion vectors of the four N×N blocks, each of the motion vector difference values including a respective horizontal component and a respective vertical component,
wherein the means for determining the horizontal value comprises means for calculating the sum of a first difference between the horizontal component of the motion vector for an upper-left block of the four N×N blocks and the horizontal component of the motion vector for an upper-right block of the four N×N blocks and a second difference between the horizontal component of the motion vector for a lower-left block of the four N×N blocks and the horizontal component of the motion vector for a lower-right block of the four N×N blocks, and
wherein the means for determining the horizontal value comprises means for calculating the sum of a first difference between the horizontal component of the motion vector for an upper-left block of the four N×N blocks and the horizontal component of the motion vector for an upper-right block of the four N×N blocks and a second difference between the horizontal component of the motion vector for a lower-left block of the four N×N blocks and the horizontal component of the motion vector for a lower-right block of the four N×N blocks.

### Claim 24 (depends on 20)

The apparatus for claim 20, wherein the means for determining the horizontal value from the values representative of the encoded versions of the four N×N blocks and the means for determining the vertical value from the values representative of the encoded versions of the four N×N blocks perform in response to a first rate-distortion (RD) cost associated with encoding block of video data in a 2N×2N partition mode being greater than a second RD cost associated with encoding the block of video data in an N×N partition mode.

### Claim 25

A computer-readable storage medium storing instructions that when executed by one or more processors cause the one or more processors to:
partition a 2N×2N block of video data into four N×N blocks, wherein N is an integer value;
determine encoding modes for each of the four N×N blocks;
calculate values representative of encoded versions of the four N×N blocks using the encoding modes for each of the four N×N blocks;
determine whether to skip testing of at least one non-square partitioning mode for the 2N×2N block based on the calculated values; and
encode the 2N×2N block based at least in part on the determination of whether to skip testing of the at least one non-square partitioning mode.

### Claim 26 (depends on 25)

The computer-readable storage medium of claim 25, wherein to determine whether to skip testing, the computer-readable storage medium stores further instructions that when executed cause the one or more processors to:
determine a horizontal value from the values representative of the encoded versions of the four N×N blocks;
determine a vertical value from the values representative of the encoded versions of the four N×N blocks; and
determine whether to skip testing of the at least one non-square partitioning mode based on whether the horizontal value is larger than the vertical value multiplied by an offset or whether the vertical value is larger than the horizontal value multiplied by the offset.

### Claim 27 (depends on 26)

The computer-readable storage medium of claim 26, wherein to determine whether to skip testing, the computer-readable storage medium stores further instructions that when executed cause the one or more processors to determine to skip testing an N×2N partitioning mode when the horizontal value is larger than the vertical value multiplied by the offset.

### Claim 28 (depends on 26)

The computer-readable storage medium of claim 26, wherein to determine whether to skip testing, the computer-readable storage medium stores further instructions that when executed cause the one or more processors to determine to skip testing a 2N×N partitioning mode when the vertical value is larger than the horizontal value multiplied by the offset.

### Claim 29 (depends on 26)

The computer-readable storage medium of claim 26,
wherein to calculate the values, the computer-readable storage medium stores further instructions that when executed cause the one or more processors to calculate motion vector difference values for motion vectors of the four N×N blocks, each of the motion vector difference values including a respective horizontal component and a respective vertical component,
wherein to determine the horizontal value, the computer-readable storage medium stores further instructions that when executed cause the one or more processors to calculate the sum of a first difference between the horizontal component of the motion vector for an upper-left block of the four N×N blocks and the horizontal component of the motion vector for an upper-right block of the four N×N blocks and a second difference between the horizontal component of the motion vector for a lower-left block of the four N×N blocks and the horizontal component of the motion vector for a lower-right block of the four N×N blocks, and
wherein to determine the horizontal value, the computer-readable storage medium stores further instructions that when executed cause the one or more processors to calculate the sum of a first difference between the horizontal component of the motion vector for an upper-left block of the four N×N blocks and the horizontal component of the motion vector for an upper-right block of the four N×N blocks and a second difference between the horizontal component of the motion vector for a lower-left block of the four N×N blocks and the horizontal component of the motion vector for a lower-right block of the four N×N blocks.

### Claim 30 (depends on 26)

The computer-readable storage medium of claim 26, wherein the computer-readable storage medium stores further instructions that when executed cause the one or more processors to determine the horizontal value from the values representative of the encoded versions of the four N×N blocks and to determine the vertical value from the values representative of the encoded versions of the four N×N blocks in response to a first rate-distortion (RD) cost associated with encoding block of video data in a 2N×2N partition mode being greater than a second RD cost associated with encoding the block of video data in an N×N partition mode.
