# US 2016/0261861 A1 · Adaptive mode checking order for video encoding

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

- Number: US 2016/0261861 A1
- Document ID: US20160261861A1
- Status: Published application
- Kind: A1
- Application number: 14/737,252
- Filed: 2015-06-11
- Published: 2016-09-08
- Earliest claimed: 2015-03-06
- Assignees: QUALCOMM Incorporated
- Applicants: QUALCOMM Incorporated
- Inventors: Chengjie Tu; Wei-Jung Chien; Xianglin Wang; Jaehong Chon; In Suk Chong; Marta Karczewicz; Woo-Shik Kim; Xin Zhao
- Web page: https://patentgrep.com/patent/US20160261861A1

## CPC

- H04N 19/14: Coding unit complexity, e.g. amount of activity or edge presence estimation (H04N19/146 takes precedence)
- H04N 19/109: among a plurality of temporal predictive coding modes
- 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/157: Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/174: the region being a slice, e.g. a line of blocks or a group of blocks
- H04N 19/567: Motion estimation based on rate distortion criteria
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A video encoding device comprises a memory configured and at least one processor configured to: determine whether a metric meets a condition based on statistics, wherein the statistics are associated with a first video encoding mode checking order and a second video encoding mode checking order, responsive to determining that the metric meets the condition, select a first encoding mode checking order to encode the first block of video data responsive to determining that the condition is not met, select a second encoding mode checking order different from the first encoding mode checking order to encode the first block of video data, update the statistics based on the selected first or second encoding mode checking order, and encode a second block of video data, based on the updated statistics, and using the first or second mode checking order.

## Claims

### Claim 1

A method for encoding video data, the method comprising:
determining whether a metric meets a condition based on statistics, wherein the statistics are associated with a first video encoding mode checking order and a second video encoding mode checking order,
responsive to determining that the metric meets the condition, selecting a first encoding mode checking order to encode the first block of video data;
responsive to determining that the condition is not met, selecting a second encoding mode checking order different from the first encoding mode checking order to encode the first block of video data;
updating the statistics based on the selected first or second encoding mode checking order; and
encoding a second block of video data, based on the updated statistics, and using the first encoding mode checking order or the second encoding mode checking order.

### Claim 2 (depends on 1)

The method of claim 1, wherein the statistics comprise statistics determined from previously encoded blocks of the video data.

### Claim 3 (depends on 1)

The method of claim 1, wherein the first video encoding mode checking order comprises a first prediction unit mode checking order,
wherein the second video encoding mode checking order comprises a second prediction unit mode checking order, and
wherein the first video prediction unit mode checking order is different from the second prediction unit mode checking order.

### Claim 4 (depends on 3)

The method of claim 3, wherein:
the first prediction unit mode checking order comprises:
determining a rate-distortion (RD) cost of using skip mode to encode the first block before determining an RD cost of using advanced motion vector prediction to (AMVP) encode the first block, and
the second prediction unit mode checking order comprises:
determining the RD cost of using AMVP to encode the first block before conditionally determining the RD cost of using skip mode to encode the first block.

### Claim 5 (depends on 3)

The method of claim 3, wherein the condition comprises a temporal layer of pictures,
wherein the temporal layer is associated with the first block of video data.

### Claim 6 (depends on 1)

The method of claim 1, wherein the first encoding mode checking order comprises a first prediction unit (PU) partition size checking order,
wherein the second video encoding mode checking order comprises a second PU partition size checking order, and
wherein the first PU partition size checking order is different from the second PU partition size checking order.

### Claim 7 (depends on 6)

The method of claim 6, wherein:
the first PU partition size checking order comprises:
determining a rate-distortion (RD) cost of using a 2N×N PU size to encode the first block before conditionally determining an RD cost of using an N×2N PU size to encode the first block, wherein N is an integer number of samples, and
the second PU partition size checking order comprises:
determining the RD cost of using the N×2N PU size to encode the first block before conditionally determining the RD cost of using the 2N×N PU size to encode the first block.

### Claim 8 (depends on 6)

The method of claim 6, wherein the condition comprises a concentration of prediction error within the first block.

### Claim 9 (depends on 1)

The method of claim 1, wherein the first encoding mode checking order comprises a first transform unit (TU) partition size checking order,
wherein the second video encoding mode checking order comprises a second TU partition size checking order, and
wherein the first TU partition size checking order is different from the second TU partition size checking order.

### Claim 10 (depends on 9)

The method of claim 9, wherein:
the first TU partition size checking order comprises:
determining a rate-distortion (RD) cost of using an 8×8 TU size to encode the first block before conditionally determining an RD cost of using an 4×4 TU size to encode the first block, wherein N is an integer number of samples, and
the second TU partition size checking order comprises:
determining the RD cost of using the 4×4 TU size to encode the first block before conditionally determining the RD cost of using the 8×8 TU size to encode the first block.

### Claim 11 (depends on 9)

The method of claim 9, wherein the condition comprises a concentration of prediction error within the first block.

### Claim 12 (depends on 1)

The method of claim 1, wherein the first encoding mode checking order comprises a first coding unit (CU) partition size checking order,
wherein the second video encoding mode checking order comprises a second CU partition size checking order, and
wherein the first CU partition size checking order is different from the second CU partition size checking order.

### Claim 13 (depends on 12)

The method of claim 12, wherein the CU partition size checking order comprises:
determining a rate-distortion (RD) cost of using a 2N×2N CU size to encode the first block before conditionally determining an RD cost of using an N×N CU size to encode the first block, wherein N is an integer number of samples, and
the second CU partition size checking order comprises:
determining the RD cost of using the N×N CU size to encode the first block before conditionally determining the RD cost of using the 2N×2N CU size to encode the first block.

### Claim 14 (depends on 1)

The method of claim 1, wherein the condition is based on one or more threshold values.

### Claim 15

A video encoding device comprising:
a memory configured to store video data; and
at least one processor configured to:
determine whether a metric meets a condition based on statistics, wherein the statistics are associated with a first video encoding mode checking order and a second video encoding mode checking order,
responsive to determining that the metric meets the condition, select a first encoding mode checking order to encode the first block of video data;
responsive to determining that the condition is not met, select a second encoding mode checking order different from the first encoding mode checking order to encode the first block of video data;
update the statistics based on the selected first or second encoding mode checking order; and
encode a second block of video data, based on the updated statistics, and using the first or second mode checking order.

### Claim 16 (depends on 15)

The device of claim 15, wherein the statistics comprise statistics determined from previously encoded blocks of the video data.

### Claim 17 (depends on 15)

The device of claim 15, wherein the first video encoding mode checking order comprises a first prediction unit mode checking order,
wherein the second video encoding mode checking order comprises a second prediction unit mode checking order, and
wherein the first video prediction unit mode checking order is different from the second prediction unit mode checking order.

### Claim 18 (depends on 17)

The device of claim 17, wherein:
to perform the first prediction unit mode checking order, the at least one processor is configured to:
determine a rate-distortion (RD) cost of using skip mode to encode the first block before determining an RD cost of using advanced motion vector prediction to (AMVP) encode the first block, and
to perform the second prediction unit mode checking order, the at least one processor is configured to:
determine the RD cost of using AMVP to encode the first block before conditionally determining the RD cost of using skip mode to encode the first block.

### Claim 19 (depends on 17)

The device of claim 17, wherein the condition comprises a temporal layer of pictures,
wherein the temporal layer is associated with the first block of video data.

### Claim 20 (depends on 15)

The device of claim 15, wherein the first encoding mode checking order comprises a first prediction unit (PU) partition size checking order,
wherein the second video encoding mode checking order comprises a second PU partition size checking order, and
wherein the first PU partition size checking order is different from the second PU partition size checking order.

### Claim 21 (depends on 20)

The device of claim 20, wherein:
to perform the first PU partition size checking order, the at least one processor is configured to:
determine a rate-distortion (RD) cost of using a 2N×N PU size to encode the first block before conditionally determining an RD cost of using an N×2N PU size to encode the first block, wherein N is an integer number of samples, and
to perform the second PU partition size checking order, the at least one processor is configured to:
determine the RD cost of using the N×2N PU size to encode the first block before conditionally determining the RD cost of using the 2N×N PU size to encode the first block.

### Claim 22 (depends on 15)

The device of claim 15, wherein the first encoding mode checking order comprises a first transform unit (TU) partition size checking order,
wherein the second video encoding mode checking order comprises a second TU partition size checking order, and
wherein the first TU partition size checking order is different from the second TU partition size checking order.

### Claim 23 (depends on 22)

The device of claim 22, wherein:
to perform the first TU partition size checking order, the at least one processor is configured to:
determine a rate-distortion (RD) cost of using an 8×8 TU size to encode the first block before conditionally determining an RD cost of using an 4×4 TU size to encode the first block, wherein N is an integer number of samples, and to perform the second TU partition size checking order, the at least one processor is configured to:
determine the RD cost of using the 4×4 TU size to encode the first block before conditionally determining the RD cost of using the 8×8 TU size to encode the first block.

### Claim 24 (depends on 15)

The device of claim 15, wherein the first encoding mode checking order comprises a first coding unit (CU) partition size checking order,
wherein the second video encoding mode checking order comprises a second CU partition size checking order, and
wherein the first CU partition size checking order is different from the second CU partition size checking order.

### Claim 25 (depends on 24)

The device of claim 24, wherein the first CU partition size checking order causes the at least one processor to:
determine a rate-distortion (RD) cost of using a 2N×2N CU size to encode the first block before conditionally determining an RD cost of using an N×N CU size to encode the first block, wherein N is an integer number of samples, and
the second CU partition size checking order causes the at least one processor to:
determine the RD cost of using the N×N CU size to encode the first block before conditionally determining the RD cost of using the 2N×2N CU size to encode the first block.

### Claim 26

An apparatus comprising means for encoding video data, the apparatus further comprising:
means for determining whether a metric meets a condition based on statistics, wherein the statistics are associated with a first video encoding mode checking order and a second video encoding mode checking order,
means for selecting a first encoding mode checking order to encode the first block of video data responsive to determining that the metric meets the condition;
means for selecting a second encoding mode checking order different from the first encoding mode checking order to encode the first block of video data responsive to determining that the condition is not met;
means for updating the statistics based on the selected first or second encoding mode checking order; and
means for encoding a second block of video data, based on the updated statistics, and using the first or second encoding mode checking order.

### Claim 27 (depends on 26)

The apparatus of claim 26, wherein the statistics comprise statistics determined from previously encoded blocks of the video data.

### Claim 28 (depends on 26)

The apparatus of claim 26, wherein the first video encoding mode checking order comprises a first prediction unit mode checking order,
wherein the second video encoding mode checking order comprises a second prediction unit mode checking order, and
wherein the first video prediction unit mode checking order is different from the second prediction unit mode checking order.

### Claim 29 (depends on 26)

The apparatus of claim 26, wherein the first encoding mode checking order comprises a first prediction unit (PU) partition size checking order,
wherein the second video encoding mode checking order comprises a second PU partition size checking order, and
wherein the first PU partition size checking order is different from the second PU partition size checking order.

### Claim 30

A non-transitory computer-readable storage medium that includes instructions stored thereon that, when executed, cause at least one processor of a video encoding device to:
determine whether a metric meets a condition based on statistics, wherein the statistics are associated with a first video encoding mode checking order and a second video encoding mode checking order different from the first encoding mode checking order,
responsive to determining that the metric meets the condition, select a first encoding mode checking order to encode the first block of video data;
responsive to determining that the condition is not met, select a second encoding mode checking order different from the first encoding mode checking order to encode the first block of video data;
update the statistics based on the selected first or second encoding mode checking order; and
encode a second block of video data, based on the updated statistics, and using the first or second encoding mode checking order.
