# US 2026/0156290 A1 · Scalable multistage full pixel search 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 2026/0156290 A1
- Document ID: US20260156290A1
- Status: Published application
- Kind: A1
- Application number: 18/965,533
- Filed: 2024-12-02
- Published: 2026-06-04
- Earliest claimed: 2024-12-02
- Assignees: NVIDIA Corporation
- Applicants: NVIDIA Corporation
- Inventors: Yongmao TANG; Michael WANG; Jianjun CHEN; Zejun HU; Wei FENG; Xi HE
- Web page: https://patentgrep.com/patent/US20260156290A1

## CPC

- H04N 19/53: Multi-resolution motion estimation; Hierarchical motion estimation
- H04N 19/57: Motion estimation characterised by a search window with variable size or shape
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/436: using parallelised computational arrangements
- H04N 19/52: by predictive encoding
- H04N 19/523: with sub-pixel accuracy
- H04N 19/533: Motion estimation using multistep search, e.g. two-dimensional [2D]-log search or one-at-a-time search [OTS]
- H04N 19/56: Motion estimation with initialisation of the vector search, e.g. estimating a good candidate to initiate a search
- H04N 19/567: Motion estimation based on rate distortion criteria
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Various embodiments include techniques for encoding media frames using a multistage search without the processing overhead of pyramidal motion estimation techniques. The first stage of the multistage search generates many motion vectors, where each motion vector is based on a small range full pixel search of a pixel group in the media frame. The video encoder selects a full pixel best motion (FBM) vector for all pixel groups from the motion vectors generated during the first stage. The second and subsequent phases of the multistage search is based on the FBM vector from the prior stage as a starting point, where the search range for each subsequent phase is larger than the search range of the prior stage. The multistage search can be performed over a fixed number of stages. Alternatively, the multistage search can be terminated when the cost value for the current stage is below a threshold value.

## Claims

### Claim 1

A computer-implemented method for encoding a current media frame included in a video stream, the method comprising:
selecting, for a first group of pixels included in the current media frame, a first motion vector from a plurality of motion vectors corresponding to a first search area included in a plurality of search areas based on a first cost included in a plurality of costs;
generating a second motion vector for the first group of pixels corresponding to a second search area that is not included in the plurality of search areas, wherein a first endpoint of the first motion vector and a second endpoint of the second motion vector are both located within the second search area;
generating a second cost associated with the second motion vector;
determining a first best motion vector by selecting between the first motion vector and the second motion vector based on the first cost and the second cost; and
encoding the current media frame based at least in part on the first best motion vector.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, further comprising:
generating a plurality of motion vectors for a first group of pixels, wherein each motion vector included in the plurality of motion vectors corresponds to a different search area included in a plurality of search areas; and
generating a plurality of costs, wherein each cost included in the plurality of costs is associated with a different motion vector included in the plurality of motion vectors.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein selecting the first motion vector from the plurality of motion vectors comprises:
determining that the first cost is less than all other costs included in the plurality of costs; and
selecting a motion vector included in the plurality of motion vectors corresponding to the first cost as the first motion vector.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein each search area included in the plurality of search areas is a same size as all other search areas included in the plurality of search areas.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein the second search area is larger than the first search area.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, further comprising:
determining that at least one of the first cost and the second cost are below a threshold level; and
setting a final best motion vector as the first best motion vector.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, further comprising:
determining that neither the first cost nor the second cost is below a threshold level;
generating a third motion vector for the first group of pixels corresponding to a third search area that is not included in the plurality of search areas, wherein the second endpoint of the second motion vector and a third endpoint of the third motion vector are both located within the third search area;
generating a third cost associated with the third motion vector; and
determining a second best motion vector by selecting between the first best motion vector and the second motion vector based on the third cost and a lower of the first cost and the second cost.

### Claim 8 (depends on 7)

The computer-implemented method of claim 7, wherein encoding the current media frame is further based at least in part on the second best motion vector.

### Claim 9 (depends on 7)

The computer-implemented method of claim 7, wherein the third search area is a same size as the second search area.

### Claim 10 (depends on 1)

The computer-implemented method of claim 1, wherein the first search area is 32 pixels horizontally by 32 pixels vertically.

### Claim 11 (depends on 1)

The computer-implemented method of claim 1, wherein the second search area is 96 pixels horizontally by 48 pixels vertically.

### Claim 12 (depends on 1)

The computer-implemented method of claim 1, wherein the first best motion vector comprises one of a full pixel best motion (FBM) vector selected during a full pixel search or a subpixel best motion (SBM) vector selected during a subpixel search.

### Claim 13

A system comprising:
a memory including pixel data for a current media frame; and
a video encoder coupled to the memory that:
selects, for a first group of pixels included in the current media frame, a first motion vector from a plurality of motion vectors corresponding to a first search area included in a plurality of search areas based on a first cost included in a plurality of costs;
generates a second motion vector for the first group of pixels corresponding to a second search area that is not included in the plurality of search areas, wherein a first endpoint of the first motion vector and a second endpoint of the second motion vector are both located within the second search area;
generates a second cost associated with the second motion vector;
determines a first best motion vector by selecting between the first motion vector and the second motion vector based on the first cost and the second cost; and
encodes the current media frame based at least in part on the first best motion vector.

### Claim 14 (depends on 13)

The system of claim 13, wherein the video encoder further:
generates a plurality of motion vectors for a first group of pixels, wherein each motion vector included in the plurality of motion vectors corresponds to a different search area included in a plurality of search areas; and
generates a plurality of costs, wherein each cost included in the plurality of costs is associated with a different motion vector included in the plurality of motion vectors.

### Claim 15 (depends on 13)

The system of claim 13, wherein to select the first motion vector from the plurality of motion vectors, the video encoder:
determines that the first cost is less than all other costs included in the plurality of costs; and
selects a motion vector included in the plurality of motion vectors corresponding to the first cost as the first motion vector.

### Claim 16 (depends on 13)

The system of claim 13, wherein each search area included in the plurality of search areas is a same size as all other search areas included in the plurality of search areas.

### Claim 17 (depends on 13)

The system of claim 13, wherein the video encoder further:
determines that at least one of the first cost and the second cost are below a threshold level; and
sets a final best motion vector as the first best motion vector.

### Claim 18 (depends on 13)

The system of claim 13, wherein the video encoder further:
determines that neither the first cost nor the second cost is below a threshold level;
generates a third motion vector for the first group of pixels corresponding to a third search area that is not included in the plurality of search areas, wherein the second endpoint of the second motion vector and a third endpoint of the third motion vector are both located within the third search area;
generates a third cost associated with the third motion vector; and
determines a second best motion vector by selecting between the first best motion vector and the second motion vector based on the third cost and a lower of the first cost and the second cost, wherein encoding the current media frame is further based at least in part on the second best motion vector.

### Claim 19 (depends on 13)

The system of claim 13, wherein the first search area is 32 pixels horizontally by pixels vertically.

### Claim 20 (depends on 13)

The system of claim 13, wherein the second search area is 96 pixels horizontally by 48 pixels vertically.
