# US 2016/0366443 A1 · Sub-block transform coding of prediction residuals

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

- Number: US 2016/0366443 A1
- Document ID: US20160366443A1
- Status: Published application
- Kind: A1
- Application number: 15/246,237
- Filed: 2016-08-24
- Published: 2016-12-15
- Earliest claimed: 2001-12-17
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Thomas W. Holcomb; Chih-Lung Lin
- Web page: https://patentgrep.com/patent/US20160366443A1

## CPC

- H04N 19/523: with sub-pixel accuracy
- G06T 3/40: Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06T 7/0012: {Biomedical image inspection}
- H04N 19/105: Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
- H04N 19/115: Selection of the code volume for a coding unit prior to coding
- H04N 19/117: Filters, e.g. for pre-processing or post-processing (sub-band filter banks H04N19/635)
- H04N 19/119: Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
- H04N 19/122: Selection of transform size, e.g. 8x8 or 2x4x8 DCT; Selection of sub-band transforms of varying structure or type
- H04N 19/124: Quantisation
- H04N 19/129: Scanning of coding units, e.g. zig-zag scan of transform coefficients or flexible macroblock ordering [FMO]
- H04N 19/132: Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
- H04N 19/136: Incoming video signal characteristics or properties
- H04N 19/137: Motion inside a coding unit, e.g. average field, frame or block difference
- H04N 19/146: Data rate or code amount at the encoder output
- H04N 19/147: according to rate distortion criteria (rate-distortion as a criterion for motion estimation H04N19/567)
- H04N 19/15: by monitoring actual compressed data size at the memory before deciding storage at the transmission buffer
- H04N 19/154: Measured or subjectively estimated visual quality after decoding, e.g. measurement of distortion (use of rate-distortion criteria H04N19/147)
- H04N 19/172: the region being a picture, frame or field
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/18: the unit being a set of transform coefficients
- H04N 19/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- H04N 19/50: using predictive coding (H04N19/61 takes precedence)
- H04N 19/513: Processing of motion vectors
- H04N 19/52: by predictive encoding
- H04N 19/527: Global motion vector estimation
- H04N 19/533: Motion estimation using multistep search, e.g. two-dimensional [2D]-log search or one-at-a-time search [OTS]
- H04N 19/547: Motion estimation performed in a transform domain
- H04N 19/57: Motion estimation characterised by a search window with variable size or shape
- H04N 19/59: involving spatial sub-sampling or interpolation, e.g. alteration of picture size or resolution
- H04N 19/593: involving spatial prediction techniques
- H04N 19/61: in combination with predictive coding
- H04N 19/625: using discrete cosine transform [DCT]
- H04N 19/63: using sub-band based transform, e.g. wavelets
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N 19/80: Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation (H04N19/635, H04N19/86 take precedence)
- H04N 19/82: involving filtering within a prediction loop
- H04N 19/86: involving reduction of coding artifacts, e.g. of blockiness
- H04N 19/895: in combination with error concealment
- H04N 19/182: the unit being a pixel
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

Techniques and tools for sub-block transform coding are described. For example, a video encoder adaptively switches between 8×8, 8×4, and 4×8 DCTs when encoding 8×8 prediction residual blocks; a corresponding video decoder switches between 8×8, 8×4, and 4×8 inverse DCTs during decoding. The video encoder may determine the transform sizes as well as switching levels (e.g., frame, macroblock, or block) in a closed loop evaluation of the different transform sizes and switching levels. The encoder and decoder may use different scan patterns for different transform sizes when scanning values from two-dimensional blocks into one-dimensional arrays, or vice versa. The encoder and decoder may use sub-block pattern codes to indicate the presence or absence of information for the sub-blocks of particular blocks.

## Claims

### Claim at position 1

-67. (canceled)

### Claim 68

A computer system comprising one or more processors and memory, wherein the computer system implements a video encoder configured to perform operations to encode one or more video frames, the operations comprising:
encoding one or more video frames to produce encoded data using a variable-block-size frequency transform with support for switching of transform size at varying levels within the one or more video frames, wherein the one or more video frames include plural blocks, and wherein the encoding for one of the plural blocks includes:
evaluating values of transform coefficients of prediction residual data for the block; and
determining, based at least in part on the values of the transform coefficients, sub-block pattern information that indicates an information pattern for presence or absence in a bitstream of the prediction residual data for plural sub-blocks of the block; and
outputting the encoded data in the bitstream, wherein the encoded data includes the sub-block pattern information.

### Claim 69 (depends on 68)

The computer system of claim 68, wherein the block is an 8×8 block and the plural sub-blocks are 4×4 sub-blocks.

### Claim 70 (depends on 68)

The computer system of claim 68, wherein the block is encoded using a transform size selected from among plural available transform sizes.

### Claim 71 (depends on 70)

The computer system of claim 70, wherein the plural available transform sizes include 8×8 and 4×4.

### Claim 72 (depends on 70)

The computer system of claim 70, wherein the encoding the one or more video frames further includes:
testing each of the plural available transform sizes, including evaluating rate and/or distortion that results from applying the transform size to blocks of prediction residual data for at least part of the one or more video frames; and
selecting the transform size to use during the encoding based on results of the evaluating.

### Claim 73 (depends on 68)

The computer system of claim 68, wherein the varying levels include frame level and block level.

### Claim 74 (depends on 68)

The computer system of claim 68, wherein, for each of the respective sub-blocks of the block, if the sub-block has at least one non-zero transform coefficient, the sub-block pattern information indicates presence in the bitstream of prediction residual data for that sub-block.

### Claim 75 (depends on 68)

The computer system of claim 68, wherein, for each of the respective sub-blocks of the block, if the sub-block has mostly zero-value transform coefficients, the sub-block pattern information indicates absence in the bitstream of prediction residual data for that sub-block.

### Claim 76

One or more computer-readable media having stored thereon encoded data that represents one or more motion-predicted video frames, the one or more motion-predicted video frames including plural blocks, wherein the one or more computer-readable media are selected from the group consisting of non-volatile memory, magnetic storage and optical storage, and wherein the encoded data is produced by operations comprising:
evaluating values of transform coefficients of motion prediction residual data for a given block of the plural blocks; and
determining, based at least in part on the values of the transform coefficients, a sub-block pattern code, wherein the sub-block pattern code indicates presence or absence in a bitstream of the motion prediction residual data for plural sub-blocks of the given block of the plural blocks; and
outputting the sub-block pattern code as part of the encoded data in the bitstream.

### Claim 77 (depends on 76)

The one or more computer-readable media of claim 76, wherein the given block is an 8×8 block and the plural sub-blocks are 4×4 sub-blocks.

### Claim 78 (depends on 76)

The one or more computer-readable media of claim 76, wherein the given block is encoded using a transform size selected from among plural available transform sizes.

### Claim 79 (depends on 78)

The one or more computer-readable media of claim 78, wherein the plural available transform sizes include 8×8 and 4×4.

### Claim 80 (depends on 76)

The one or more computer-readable media of claim 76, wherein the operations further include:
using a variable-block-size frequency transform with support for switching of transform size at varying levels within the one or more motion-predicted video frames, including selecting, from among plural available transform sizes, a transform size to apply to blocks of the motion prediction residual data for at least part of the one or more motion-predicted video frames.

### Claim 81 (depends on 80)

The one or more computer-readable media of claim 80, wherein the varying levels include frame level.

### Claim 82 (depends on 80)

The one or more computer-readable media of claim 80, wherein the varying levels include block level.

### Claim 83

A computer system comprising one or more processors and memory, wherein the computer system implements a video decoder configured to perform operations to decode one or more video frames, the operations comprising
reading encoded data from a bitstream, wherein the encoded data includes sub-block pattern information; and
decoding the encoded data to reconstruct one or more video frames using a variable-block-size inverse frequency transform with support for switching of transform size at varying levels within the one or more video frames, wherein the one or more video frames include plural blocks, wherein the decoding for one of the plural blocks further includes using the sub-block pattern information, and wherein the sub-block pattern information indicates an information pattern for presence or absence in the bitstream of prediction residual data for plural sub-blocks of the block.

### Claim 84 (depends on 83)

The computer system of claim 83, wherein the block is an 8×8 block and the plural sub-blocks are 4×4 sub-blocks.

### Claim 85 (depends on 83)

The computer system of claim 83, wherein the varying levels include frame level and block level.

### Claim 86 (depends on 83)

The computer system of claim 83, wherein the block is decoded using a transform size selected from among plural available transform sizes.

### Claim 87 (depends on 86)

The computer system of claim 86, wherein the plural available transform sizes include 8×8 and 4×4.
