# US 2021/0084307 A1 · Block-level lossless video coding using in-loop reshaping

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

- Number: US 2021/0084307 A1
- Document ID: US20210084307A1
- Status: Published application
- Kind: A1
- Application number: 17/008,671
- Filed: 2020-09-01
- Published: 2021-03-18
- Earliest claimed: 2019-09-17
- Assignees: Dolby Laboratories Licensing Corporation
- Applicants: Dolby Laboratories Licensing Corporation
- Inventors: Peng Yin; Taoran Lu; Fangjun Pu; Sean Thomas McCarthy
- Web page: https://patentgrep.com/patent/US20210084307A1

## CPC

- H04N 19/117: Filters, e.g. for pre-processing or post-processing (sub-band filter banks H04N19/635)
- H04N 19/159: Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
- H04N 19/107: between spatial and temporal predictive coding, e.g. picture refresh
- H04N 19/157: Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/36: Scalability techniques involving formatting the layers as a function of picture distortion after decoding, e.g. signal-to-noise [SNR] scalability
- H04N 19/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- H04N 19/51: Motion estimation or motion compensation
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N 19/82: involving filtering within a prediction loop
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

To support lossless mode at the block level when in-loop reshaping (LMCS) is enabled, the following changes are proposed to the existing LMCS pipeline. In intra mode, encode lossless blocks in the original domain, thus bypassing inverse mapping after reconstruction in the decoder. In inter mode, encode lossless blocks in the original domain, thus bypassing both forward mapping after motion compensation and inverse mapping after reconstruction in the decoder. In both modes, disable any LMCS-related color scaling.

## Claims

### Claim 1

A method to decode a coded video bitstream using in-loop reshaping in lossless mode, the method performed by a processor and comprising:
receiving a coded bitstream comprising coded blocks;
receiving a flag indicating that luma mapping and chroma scaling (LMCS) is enabled at a slice level of the coded bitstream;
for a coded block under a slice wherein LMCS is enabled, if receiving a flag indicating that LMCS for the coded block is disabled, then:
if in intra mode:
applying intra reconstruction for the coded block in an original domain to generate a reconstructed intra block;
bypassing LMCS inverse reshaping for the reconstructed intra block; and
applying loop filtering to the reconstructed intra block to generate a decoded video block;
else if in inter mode:
applying inter reconstruction for the coded block without applying LMCS forward reshaping after motion compensation, to generate a reconstructed inter block in the original domain;
bypassing LMCS inverse reshaping for the reconstructed inter block; and
applying loop filtering to the reconstructed inter block to generate the decoded video block.

### Claim 2 (depends on 1)

The method of claim 1, wherein in intra mode, further comprising:
if decoding of the coded block is depending on a neighbor block and the neighbor block was decoded with LMCS enabled, then applying LMCS inverse mapping to pixels of the neighbor block before generating the reconstructed intra block.

### Claim 3 (depends on 1)

The method of claim 1, wherein in either intra or inter mode, LMCS chroma scaling of pixel values in the coded block is bypassed.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
if not receiving the flag indicating that LMCS for the coded block is disabled, then:
if in intra mode:
applying intra reconstruction for the coded block in a reshaped domain to generate a reconstructed intra block in the reshaped domain;
applying LMCS inverse reshaping to the reconstructed intra block to generate an intra block in the original domain; and
applying loop filtering to the reconstructed intra block in to generate the decoded video block;
else if in inter mode:
applying inter reconstruction for the coded block with LMCS forward reshaping after motion compensation, to generate the reconstructed inter block in the reshaped domain;
applying LMCS inverse reshaping to the reconstructed inter block to generate an inter block in the original domain; and
applying loop filtering to the inter block in the original domain to generate the decoded video block.

### Claim 5 (depends on 4)

The method of claim 4, wherein if in intra mode, further comprising:
if decoding of the coded block is depending on a neighbor block and the neighbor block was decoded with LMCS disabled, then applying LMCS forward mapping to pixels of the neighbor block before generating the reconstructed intra block in the reshaped domain.

### Claim 6

A non-transitory processor-readable medium having stored thereon an encoded video stream structure, the video stream structure comprising:
an encoded picture section including an encoding of a sequence of video pictures; and
a signaling section including an encoding of:
a flag indicating whether coding at the bitstream level is in lossless mode;
a flag indicating whether luma-mapping chroma residual scaling (LMCS) coding is enabled or not at the slice level is; and
if coding at the bitstream level is in lossless mode and LMCS is enabled at the slice level, a flag indicating whether LMCS is enabled at a block level or not.

### Claim 7 (depends on 1)

An apparatus comprising a processor and configured to perform a method as recited in claim 1.

### Claim 8 (depends on 1)

A non-transitory computer-readable storage medium having stored thereon computer-executable instructions for executing a method with one or more processors in accordance with claim 1.
