# US 2025/0159231 A1 · Video encoder, video encoding method, and video decoder

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

- Number: US 2025/0159231 A1
- Document ID: US20250159231A1
- Status: Published application
- Kind: A1
- Application number: 18/647,601
- Filed: 2024-04-26
- Published: 2025-05-15
- Earliest claimed: 2023-11-09
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Seung Hoon JEE; Paul OH; Young Hun SUNG; Jung Yeop YANG; Do Kwan OH; Jun Hee LEE; Dong Won JANG; Jong Seong CHOI; Chan Sol HWANG
- Web page: https://patentgrep.com/patent/US20250159231A1

## CPC

- H04N 19/513: Processing of motion vectors
- G06T 3/02: Affine transformations (for image registration G06T3/147; for image mosaicing G06T3/4038)
- G06V 10/82: using neural networks
- H04N 19/119: Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
- H04N 19/59: involving spatial sub-sampling or interpolation, e.g. alteration of picture size or resolution
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

A video encoder is provided. The video encoder according to an example embodiment includes: a differentiable prediction (DP) module configured to output an optimal initial search position by performing full search in a predetermined area by using a pair of frames of a video as input; and a motion estimation (ME) module configured to perform motion estimation by moving a search position toward the optimal initial search position output by the DP module.

## Claims

### Claim 1

A video encoder comprising:
a differentiable prediction (DP) module configured to output an optimal initial search position by performing full search in a predetermined area by using a pair of frames of a video as input; and
a motion estimation (ME) module configured to perform motion estimation by moving a search position toward the optimal initial search position output by the DP module.

### Claim 2 (depends on 1)

The video encoder of claim 1, wherein the DP module is configured to generate a predicted image for each of a plurality of initial search positions in the predetermined area, and configured to output an initial search position, at which a residual between the generated predicted image and a first frame of the pair of frames is minimized, as the optimal initial search position.

### Claim 3 (depends on 2)

The video encoder of claim 2, wherein the DP module comprises:
an affine transformation module configured to perform affine transformation on a second frame of the pair of frames for each of the plurality of initial search positions; and
a motion estimation motion compensation (MEMC) module configured to:
perform motion estimation on the second frame, which is affine transformed for each of the plurality of initial search positions, to output motion in a kernel form; and
perform motion compensation based on the motion in the kernel form, to generate the predicted image.

### Claim 4 (depends on 3)

The video encoder of claim 3, wherein the MEMC module is configured to:
for each block of a plurality of blocks of the affine-transformed second frame, perform unfolding of a block to divide the block into a plurality of patches, and calculate a sum of absolute differences (SAD) between the plurality of patches of the block and a corresponding block of the first frame; and
generate the motion in the kernel form based on calculated SADs of the plurality of blocks, by using softmax.

### Claim 5 (depends on 1)

The video encoder of claim 1, wherein the DP module is configured to perform parallel processing on a plurality of pairs of frames of the video by using one or more processors.

### Claim 6 (depends on 5)

The video encoder of claim 5, wherein the one or more processors comprise a graphic processing unit (GPU).

### Claim 7 (depends on 1)

The video encoder of claim 1, further comprising a scaler configured to scale the pair of frames of the video to a size to be processed by the DP module.

### Claim 8 (depends on 1)

The video encoder of claim 1, wherein at least one of a number and a size of the predetermined area is preset based on at least one of computing power, target processing speed, of accuracy of the motion estimation.

### Claim 9

A video encoder comprising:
an initial search position optimization (ISPO) module including a neural network that is trained to output an optimal initial search position by using a pair of frames of a video as input; and
a motion estimation (ME) module configured to perform motion estimation by moving a search position toward the optimal initial search position output by the ISPO module,
wherein the neural network is trained to output the optimal initial search position by using a ground truth (GT) initial search position generated by performing full search in a predetermined area by an differentiable prediction (DP) module.

### Claim 10 (depends on 9)

The video encoder of claim 9, wherein the neural network comprises a convolutional neural network (CNN).

### Claim 11 (depends on 9)

The video encoder of claim 9, wherein the neural network is trained to output the optimal initial search position as an affine matrix value.

### Claim 12 (depends on 9)

The video encoder of claim 9, wherein the neural network is trained by using the GT initial search position, which is output by generating a predicted image for a plurality of initial search positions in the predetermined area, and determining an initial search position, at which a residual between the predicted image and a first frame of the pair of frames is minimized.

### Claim 13

A video encoding method comprising:
outputting, by a differentiable prediction (DP) module, an optimal initial search position by performing full search in a predetermined area by using a pair of frames of a video as input; and
performing, by a motion estimation (ME) module, motion estimation by moving a search position toward the optimal initial search position output by the DP module.

### Claim 14 (depends on 13)

The video encoding method of claim 13, wherein the outputting of the optimal initial search position comprises:
generating a predicted image for a plurality of initial search positions in the predetermined area; and
outputting an initial search position, at which a residual between the generated predicted image and a first frame of the pair of frames is minimized, as the optimal initial search position.

### Claim 15 (depends on 14)

The video encoding method of claim 14, wherein the generating of the predicted image comprises:
performing affine transformation on a second frame of the pair of frames for each of the plurality of initial search positions;
performing motion estimation on the second frame, which is affine transformed for each of the plurality of initial search positions, to output motion in a kernel form; and
performing motion compensation based on the motion in the kernel form to generate the predicted image.

### Claim 16 (depends on 15)

The video encoding method of claim 15, wherein the outputting of the motion in the kernel form comprises:
for each block of a plurality of blocks of the affine-transformed second frame, performing unfolding of a block to divide the block into a plurality of patches, and calculating a sum of absolute differences (SAD) between the plurality of patches of the block and a corresponding block of the first frame; and
generating the motion in the kernel form based on calculated SADs of the plurality of blocks, by using softmax.

### Claim 17 (depends on 13)

The video encoding method of claim 13, wherein the outputting of the optimal initial search position comprises performing parallel processing on a plurality of pairs of frames of the video by using one or more processors.

### Claim 18 (depends on 13)

The video encoding method of claim 13, further comprising scaling the pair of frames of the video to a size to be processed by the DP module.

### Claim 19

A video decoder comprising:
a motion compensation (MC) module configured to perform motion compensation based on a motion vector, the motion vector extracted by motion estimation of a pair of frames of a video based on an optimal initial search position which is obtained by performing full search for the pair of frames of the video by a video encoder; and
a decoding module configured to decode the video based on a result of the motion compensation.

### Claim 20

An electronic device comprising:
a position estimation device configured to output an optimal initial search position by using a pair of frames of a video as input;
an image processing device configured to perform motion estimation based on the output optimal initial search position, and configured to perform image processing based on a result of the motion estimation; and
one or more processors configured to control the image processing device and process a request thereof,
wherein the position estimation device comprises a differentiable prediction (DP) module configured to output the optimal initial search position by performing full search in a predetermined area, or an initial search position optimization (ISPO) module including a neural network which is trained to output the optimal initial search position by using a ground truth (GT) initial search position generated by performing full search in the predetermined area by the DP module.
