# US 2016/0366437 A1 · Search strategies for intra-picture prediction modes

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

- Number: US 2016/0366437 A1
- Document ID: US20160366437A1
- Status: Published application
- Kind: A1
- Application number: 14/738,808
- Filed: 2015-06-12
- Published: 2016-12-15
- Earliest claimed: 2015-06-12
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: You Zhou; Chih-Lung Lin; Ming-Chieh Lee; Binlong Li
- Web page: https://patentgrep.com/patent/US20160366437A1

## CPC

- H04N 19/593: involving spatial prediction techniques
- H04N 19/11: among a plurality of spatial predictive coding modes
- 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/192: the adaptation method, adaptation tool or adaptation type being iterative or recursive
- H04N 19/51: Motion estimation or motion compensation
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Innovations are presented that reduce the computational complexity of video encoding by selectively skipping certain evaluation stages during intra-picture prediction. A video encoder receives and encodes a current picture. As part of the encoding, for a current block of the current picture, the video encoder evaluates at least some intra-picture prediction modes (“IPPMs”). According to a search strategy, the video encoder selectively skips time-consuming evaluation of certain IPPMs for the current block when those IPPMs are not expected to improve rate-distortion performance, which can dramatically speed up the encoding process. For example, the video encoder conditionally performs a gradient search among angular IPPMs. Or, as another example, the video encoder selectively skips evaluation of IPPMs depending on a cost of encoding the current block using motion compensation. Or, as another example, the video encoder prioritizes IPPMs evaluated for a block of chroma sample values.

## Claims

### Claim 1

A computer system comprising a processor and memory, wherein the computer system implements a video encoder system comprising:
a buffer configured to store a current picture of a video sequence; and
a video encoder configured to encode the current picture, including, for a current block of the current picture, evaluating at least some of multiple intra-picture prediction modes (“IPPMs”) according to a search strategy, the search strategy including:
checking one or more conditions; and
upon satisfaction of the one or more conditions, performing a gradient search among angular IPPMs of the multiple IPPMs.

### Claim 2 (depends on 1)

The computer system of claim 1, wherein the evaluating at least some of multiple IPPMs includes evaluating one or more most probable modes (“MPMs”) among the multiple IPPMs, the one or more MPMs including at least one angular IPPM, wherein, if a best IPPM, among the one or more MPMs, is an angular IPPM, the evaluating at least some of multiple IPPMs further includes evaluating multiple additional angular IPPMs among the multiple IPPMs, and wherein performance of the gradient search depends at least in part on whether a best MPM is an angular IPPM.

### Claim 3 (depends on 1)

The computer system of claim 1, wherein the checking the one or more conditions includes comparing a cost of encoding the current block using motion compensation to a threshold, and wherein performance of the gradient search depends at least in part on results of the comparing.

### Claim 4 (depends on 3)

The computer system of claim 3, wherein the evaluating at least some of multiple IPPMs includes evaluating an initial set of IPPMs, and wherein, if the cost of encoding the current block using motion compensation satisfies the threshold, the current block is encoded using motion compensation or one of the initial set of IPPMs without performing the gradient search.

### Claim 5 (depends on 1)

The computer system of claim 1, wherein the evaluating at least some of multiple IPPMs includes evaluating one or more most probable modes (“MPMs”) among the multiple IPPMs, and wherein the checking the one or more conditions includes:
comparing a cost of encoding the current block using a best IPPM, among the one or more MPMs, to a threshold, wherein performance of the gradient search depends at least in part on results of the comparing.

### Claim 6 (depends on 5)

The computer system of claim 5, wherein, if the cost of encoding the current block using the best IPPM satisfies the threshold:
if the best IPPM is an angular IPPM, multiple additional adjacent angular IPPMs are evaluated for the current block, and the checking the one or more conditions further includes selecting a best angular IPPM among the evaluated IPPMs, wherein the current block is encoded using the best angular IPPM without performing the gradient search; and
otherwise, the best IPPM being a non-angular IPPM, the current block is encoded using the non-angular IPPM without performing the gradient search.

### Claim 7 (depends on 1)

The computer system of claim 1, wherein the evaluating at least some of multiple IPPMs includes evaluating one or more most probable modes (“MPMs”) among the multiple IPPMs, the one or more MPMs including at least one angular IPPM, and evaluating one or more additional angular IPPMs among the multiple IPPMs, and wherein the checking the one or more conditions includes:
checking whether a best IPPM, among the evaluated IPPMs, is an angular IPPM, wherein performance of the gradient search depends at least in part on whether the best IPPM is an angular IPPM.

### Claim 8 (depends on 1)

The computer system of claim 1, wherein the gradient search includes, from a starting angular IPPM, in each of one or more iterations:
evaluating one or more offset angular IPPMs each at an offset from the starting angular IPPM; and
if the starting angular IPPM is better than each of the one or more offset angular IPPMs:
if the offset satisfies a threshold, reducing the offset and continuing the gradient search in a next iteration of the one or more iterations;
otherwise, the offset not satisfying the threshold, finishing the gradient search with the starting angular IPPM as final angular IPPM;
otherwise, at least one of the one or more offset angular IPPMs being better than the starting angular IPPM:
if the offset satisfies the threshold, reducing the offset, setting the starting angular IPPM as the best of the one or more offset angular IPPMs, and continuing the gradient search in the next iteration of the one or more iterations;
otherwise, the offset not satisfying the threshold, finishing the gradient search with the best of the one or more offset angular IPPMs as the final angular IPPM.

### Claim 9

One or more computer-readable media storing computer-executable instructions for causing a processor, when programmed thereby, to perform operations comprising:
receiving a current picture of a video sequence; and
encoding the current picture, including, for a current block of the current picture, evaluating at least some of multiple intra-picture prediction modes (“IPPMs”) according to a search strategy, the search strategy including:
identifying an anchor angular IPPM among the multiple IPPMs, the multiple IPPMs having a range of angular IPPMs;
identifying multiple new angular IPPMs, the anchor angular IPPM and the multiple new angular IPPMs being, at least approximately, evenly spread throughout the range of angular IPPMs; and
evaluating each of the multiple new angular IPPMs.

### Claim 10 (depends on 9)

The one or more computer-readable media of claim 9, wherein the search strategy further comprises:
evaluating one or more most probable modes (“MPMs”) among the multiple IPPMs, wherein the anchor angular IPPM is one of the one or more MPMs.

### Claim 11 (depends on 10)

The one or more computer-readable media of claim 10, wherein the identifying the anchor angular IPPM includes comparing a cost measure for each angular IPPM among the one or more MPMs.

### Claim 12 (depends on 9)

The one or more computer-readable media of claim 9, wherein the anchor angular IPPM and the multiple new angular IPPMs are, at least approximately, evenly spaced from each other and separated from each other by multiple other angular IPPMs of the multiple IPPMs.

### Claim 13 (depends on 9)

The one or more computer-readable media of claim 9, wherein the multiple new angular IPPMs include, relative to the anchor angular IPPM:
a first new angular IPPM that is offset by approximately or exactly 45 degrees in a first direction;
a second new angular IPPM that is offset by approximately or exactly 90 degrees in the first direction; and
a third new angular IPPM that is offset by approximately or exactly 135 degrees in the first direction, or that is offset by approximately or exactly 45 degrees in a second direction opposite the first direction.

### Claim 14 (depends on 9)

The one or more computer-readable media of claim 9, wherein the search strategy further comprises:
performing a gradient search starting from a best angular IPPM among the anchor angular IPPM and the multiple new angular IPPMs.

### Claim 15 (depends on 9)

The one or more computer-readable media of claim 9, wherein the identifying the anchor angular IPPM, the identifying the multiple new angular IPPMs, and the evaluating each of the multiple new angular IPPMs are contingent on satisfaction of one or more conditions in the search strategy.

### Claim 16

In a computer system that implements a video encoder, a method comprising:
receiving a current picture of a video sequence; and
encoding the current picture, including, for a current block of chroma sample values, evaluating at least some of multiple intra-picture prediction modes (“IPPMs”) according to a search strategy, the search strategy including:
in a first stage, evaluating an IPPM selected for a corresponding block of luma sample values;
depending on results of the first-stage evaluation, in a second stage, evaluating one or more other IPPMs possible for the current block; and
depending on results of the second-stage evaluation, in a third stage, evaluating one or more remaining IPPMs possible for the current block.

### Claim 17 (depends on 16)

The method of claim 16, wherein the one or more other IPPMs possible for the current block and the one or more remaining IPPMs possible for the current block are part of a subset of the multiple IPPMs, the subset being defined according to bitstream syntax for a format or standard.

### Claim 18 (depends on 17)

The method of claim 17, wherein:
the one or more other IPPMs include three of a planar IPPM, a DC IPPM, a horizontal IPPM, and a vertical IPPM; and
the one or more remaining IPPMs include only a left-down IPPM or vertical IPPM.

### Claim 19 (depends on 16)

The method of claim 16, wherein the search strategy further includes:
comparing, to a threshold, a cost of encoding the current block using the IPPM selected for the corresponding block of luma sample values, wherein performance of the second-stage evaluation depends at least in part on results of the comparing.

### Claim 20 (depends on 16)

The method of claim 16, wherein the search strategy further includes:
comparing, to a threshold, a cost of encoding the current block using an IPPM selected for the current block in the second-stage evaluation, wherein performance of the third-stage evaluation depends at least in part on results of the comparing.
