# US 2014/0233652 A1 · Scalable multi-thread video decoding

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

- Number: US 2014/0233652 A1
- Document ID: US20140233652A1
- Status: Published application
- Kind: A1
- Application number: 14/266,609
- Filed: 2014-04-30
- Published: 2014-08-21
- Earliest claimed: 2007-02-06
- Assignees: Microsoft Corporation
- Applicants: Microsoft Corporation
- Inventors: Weidong Zhao; Yaming He
- Web page: https://patentgrep.com/patent/US20140233652A1

## CPC

- H04N 19/436: using parallelised computational arrangements
- H04N 19/43: Hardware specially adapted for motion estimation or compensation
- H04N 19/439: {using cascaded computational arrangements for performing a single operation, e.g. filtering}
- H04N 19/44: Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
- H04N 19/513: Processing of motion vectors
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Decoding tasks are identified for decoding encoded video. Decoding tasks may include entropy decoding tasks, motion compensation tasks, inverse frequency transform tasks, inverse quantization tasks, intra decoding tasks, loop filtering tasks, or other tasks. Task dependencies are identified for the video decoding tasks. For example, one or more decoding tasks may depend on prior completion of entropy decoding tasks. The decoding tasks are prioritized based at least in part on the task dependencies. For example, a higher priority may be assigned to tasks that must be completed before other tasks that depend on them can begin. Prioritized decoding tasks are selected to be performed by hardware threads. For example, a first hardware thread may perform a first decoding task that does not depend on any uncompleted tasks while a second hardware thread performs a second decoding task that does not depend on any uncompleted tasks.

## Claims

### Claim at position 1

1-20. (canceled)

### Claim 21

A computer system adapted to perform a method of video decoding, the computer system comprising plural processing units and memory, the method comprising:
receiving encoded video information at a video decoder implemented with the computer system; and
decoding the encoded video information using plural decoding tasks, wherein a first video decoding stage is split into plural segmented decoding tasks among the plural decoding tasks, the plural segmented decoding tasks being associated with different segments of a picture, wherein the first video decoding stage includes one or more of entropy decoding operations, motion compensation operations, intra decoding operations, and inverse frequency transform operations, and wherein the decoding includes:
scheduling and executing plural parallel runnable segmented tasks, among the plural segmented decoding tasks, wherein at least two of the plural parallel runnable segmented tasks are at least in part executed in parallel by different ones of plural threads;
scheduling and executing another decoding task, among the plural decoding tasks, wherein the other decoding task includes a second decoding stage for the picture, wherein the second decoding stage includes loop filtering operations, wherein the other decoding task has at least one task dependency on at least one of the plural segmented decoding tasks, and wherein the other decoding task is scheduled based at least in part on the at least one task dependency on the at least one of the plural segmented decoding tasks, including performing the other decoding task with one of the plural threads.

### Claim 22 (depends on 21)

The computer system of claim 21 wherein the plural threads are hardware threads, and wherein each of the plural processing units has two or more of the plural threads.

### Claim 23 (depends on 21)

The computer system of claim 21 wherein the picture is a first frame among the plural video frames, wherein the plural decoding tasks include a decoding task for a second frame among the plural video frames, the second frame being earlier in decoding order than the first frame, wherein at least one of the plural segmented decoding tasks for the segments of the first frame has a task dependency on the decoding task for the second frame, and wherein the decoding task for the second frame is scheduled before the plural segmented decoding tasks for the segments of the first frame.

### Claim 24 (depends on 21)

The computer system of claim 21 wherein the plural decoding tasks are prioritized such that higher priority is given to tasks associated with pictures that are earlier in decoding order and lower priority is given to tasks associated with pictures that are later in decoding order.

### Claim 25 (depends on 21)

The computer system of claim 21 wherein the computer system further comprises a graphics processing unit.

### Claim 26 (depends on 21)

The computer system of claim 21 wherein the plural processing units are plural cores, and wherein each of the plural threads is a hardware thread associated with one of the plural cores.

### Claim 27 (depends on 21)

The computer system of claim 21 wherein one of the plural decoding tasks includes post-processing operations and/or color conversion operations outside of a main decoding loop that includes the plural segmented decoding tasks.

### Claim 28 (depends on 21)

The computer system of claim 21 wherein at least one of the plural segmented decoding tasks depends on another of the plural segmented decoding tasks.

### Claim 29 (depends on 21)

The computer system of claim 21 wherein none of the plural segmented decoding tasks depends on any other tasks of the plural segmented decoding tasks.

### Claim 30 (depends on 21)

The computer system of claim 21 wherein the segments are arbitrarily sized portions of the picture.

### Claim 31 (depends on 21)

The computer system of claim 21 wherein the loop filtering operations depend on completion of the motion compensation operations and the intra decoding operations for the picture.

### Claim 32

One or more computer-readable media storing computer-executable instructions for causing a computer system programmed thereby to perform a method of video decoding, the computer system comprising plural processing units and memory, wherein the one or more computer-readable media are selected from the group consisting of memory, magnetic disk storage, CD ROM and DVD, the method comprising:
receiving encoded video information at a video decoder implemented with the computer system; and
decoding the encoded video information using plural decoding tasks, wherein a first video decoding stage is split into plural segmented decoding tasks among the plural decoding tasks, the plural segmented decoding tasks being associated with different segments of a picture, wherein the first video decoding stage includes one or more of entropy decoding operations, motion compensation operations, intra decoding operations, and inverse frequency transform operations, and wherein the decoding includes:
scheduling and executing plural parallel runnable segmented tasks, among the plural segmented decoding tasks, wherein at least two of the plural parallel runnable segmented tasks are at least in part executed in parallel by different ones of plural threads; and
scheduling and executing another decoding task, among the plural decoding tasks, wherein the other decoding task includes a second decoding stage for the picture, wherein the second decoding stage includes loop filtering operations, wherein the other decoding task has at least one task dependency on at least one of the plural segmented decoding tasks, and wherein the other decoding task is scheduled based at least in part on the at least one task dependency on the at least one of the plural segmented decoding tasks, including performing the other decoding task with one of the plural threads.

### Claim 33 (depends on 32)

The one or more computer-readable media of claim 32 wherein the plural threads are hardware threads, and wherein each of the plural processing units has two or more of the plural threads.

### Claim 34 (depends on 32)

The one or more computer-readable media of claim 32 wherein the plural decoding tasks are prioritized such that higher priority is given to tasks associated with pictures that are earlier in decoding order and lower priority is given to tasks associated with pictures that are later in decoding order.

### Claim 35 (depends on 32)

The one or more computer-readable media of claim 32 wherein the plural processing units are plural cores, and wherein each of the plural threads is a hardware thread associated with one of the plural cores.

### Claim 36 (depends on 32)

The one or more computer-readable media of claim 32 wherein the method is performed in response to a call to a function of an application programming interface.

### Claim 37 (depends on 32)

The one or more computer-readable media of claim 32 wherein the segments are arbitrarily sized portions of the picture.

### Claim 38 (depends on 32)

The one or more computer-readable media of claim 32 wherein none of the plural segmented decoding tasks depends on any other tasks of the plural segmented decoding tasks.

### Claim 39 (depends on 32)

The one or more computer-readable media of claim 32 wherein the loop filtering operations depend on completion of the motion compensation operations and the intra decoding operations for the picture.

### Claim 40

In a computer system, a method of video decoding, the computer system comprising plural processing units and memory, the method comprising:
receiving encoded video information at a video decoder implemented with the computer system, wherein the computer system has plural hardware threads, and wherein each of the plural processing units has two or more of the plural hardware threads; and
decoding the encoded video information using plural decoding tasks, wherein a first video decoding stage is split into plural segmented decoding tasks among the plural decoding tasks, the plural segmented decoding tasks being associated with different segments of a picture, wherein the first video decoding stage includes entropy decoding operations, motion compensation operations, intra decoding operations, and inverse frequency transform operations, and wherein the decoding includes:
scheduling and executing plural parallel runnable segmented tasks, among the plural segmented decoding tasks, wherein at least two of the plural parallel runnable segmented tasks are at least in part executed in parallel by different ones of the plural hardware threads; and
scheduling and executing another decoding task, among the plural decoding tasks, wherein the other decoding task includes a second decoding stage for the picture, wherein the second decoding stage includes loop filtering operations, wherein the other decoding task has at least one task dependency on at least one of the plural segmented decoding tasks, and wherein the other decoding task is scheduled based at least in part on the at least one task dependency on the at least one of the plural segmented decoding tasks, including performing the other decoding task with one of the plural hardware threads.
