# US 2024/0205413 A1 · Picture encoding method and apparatus, picture decoding method and apparatus, electronic device and storage medium

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

- Number: US 2024/0205413 A1
- Document ID: US20240205413A1
- Status: Published application
- Kind: A1
- Application number: 18/555,851
- Filed: 2022-04-02
- Published: 2024-06-20
- Earliest claimed: 2021-04-19
- Assignees: Zte Corporation
- Applicants: Zte Corporation
- Inventors: Pinlong CAI; Zhao WU; Ping WU; Ying GAO; Shaowei XIE
- Web page: https://patentgrep.com/patent/US20240205413A1

## CPC

- H04N 19/136: Incoming video signal characteristics or properties
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N 19/172: the region being a picture, frame or field
- H04N 19/186: the unit being a colour or a chrominance component
- H04N 19/85: using pre-processing or post-processing specially adapted for video compression
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Provided are a picture encoding method, a picture encoding apparatus, a picture decoding method, a picture decoding apparatus, an electronic device and a storage medium. The encoding method includes: acquiring a video picture, and determining a picture feature of the video picture; determining in-loop identification information and out-loop identification information according to the picture feature; processing the video picture according to the in-loop identification information and the out-loop identification information; and encoding the processed video picture to generate a code stream, and writing the in-loop identification information and the out-loop identification information into the code stream. Therefore, the processing of a video picture is achieved both encoding and decoding out-loop and encoding and decoding in-loop according to the picture feature during a picture transmission process, thereby effectively improving the video encoding and decoding efficiency and improving the quality of a decoded picture at the same code rate.

## Claims

### Claim 1

A picture encoding method, comprising:
acquiring a video picture, and determining a picture feature of the video picture;
determining in-loop identification information and out-loop identification information according to the picture feature;
processing the video picture according to the in-loop identification information and the out-loop identification information; and
encoding the processed video picture to generate a code stream, and writing the in-loop identification information and the out-loop identification information into the code stream.

### Claim 2 (depends on 1)

The method of claim 1, wherein the picture feature comprises at least one of the following:
a luma dynamic range, a color space, texture information, a shape feature or a spatial relationship.

### Claim 3 (depends on 1)

The method of claim 1, wherein at least one of the in-loop identification information or the out-loop identification information is carried in at least one of the following:
network abstraction layer unit header information, a sequence-layer parameter set, a picture-layer parameter set, a slice-layer parameter set, supplemental enhancement information, video useability information or customized unit information.

### Claim 4 (depends on 1)

The method of claim 1, wherein processing the video picture according to the in-loop identification information and the out-loop identification information comprises one of the following:
performing first mapping transformation on the video picture according to the out-loop identification information, and performing second mapping transformation on the video picture obtained after the first mapping transformation according to the in-loop identification information;
performing first mapping transformation on the video picture according to the out-loop identification information, and determining not to perform second mapping transformation on the video picture obtained after the first mapping transformation according to the in-loop identification information;
determining not to perform first mapping transformation on the video picture according to the out-loop identification information, and performing second mapping transformation on the video picture according to the in-loop identification information; or
determining not to perform first mapping transformation on the video picture according to the out-loop identification information, and determining not to perform second mapping transformation on the video picture according to the in-loop identification information.

### Claim 5 (depends on 4)

The method of claim 4, wherein the first mapping transformation and the second mapping transformation comprise luma mapping transformation and chroma mapping transformation, respectively, wherein the luma mapping transformation comprises luma component value mapping, the luma component value mapping is used for altering a luma dynamic range, and the chroma mapping transformation comprises chroma component value mapping or chroma scaling processing dependent on the luma mapping transformation.

### Claim 6 (depends on 1)

The method of claim 1, wherein at least one of the in-loop identification information or the out-loop identification information comprises control information and parameter information,
wherein the control information is carried in at least one of the following: network abstraction layer unit header information, a sequence-layer parameter set, a picture-layer parameter set, a slice-layer parameter set, supplemental enhancement information, video useability information or customized unit information, and
wherein the parameter information in the code stream is carried in at least one of the following: an adaptation parameter set, supplemental enhancement information or a customized network abstraction layer unit.

### Claim 7 (depends on 6)

The method of claim 6, wherein the parameter information of the in-loop identification information in the code stream and the parameter information of the out-loop identification information in the code stream are each carried in one of the following manners:
the parameter information of the in-loop identification information and the parameter information of the out-loop identification information are each carried in a data packet oriented to luma and chroma mapping transformation in the adaptation parameter set;
the parameter information of the in-loop identification information is carried in a data packet oriented to luma and chroma mapping transformation in the adaptation parameter set, and the parameter information of the out-loop identification information is carried in a data packet of customized supplemental enhancement information; or
the parameter information of the in-loop identification information and the parameter information of the out-loop identification information are each carried in a data packet oriented to luma and chroma mapping transformation in the customized network abstraction layer unit.

### Claim 8

A picture decoding method, comprising:
acquiring a code stream, and parsing the code stream to obtain in-loop identification information and out-loop identification information in the code stream;
processing the code stream according to the in-loop identification information and the out-loop identification information; and
decoding the processed code stream to generate a video picture.

### Claim 9 (depends on 8)

The method of claim 8, wherein at least one of the in-loop identification information or the out-loop identification information is carried in at least one of the following:
network abstraction layer unit header information, a sequence-layer parameter set, a picture-layer parameter set, a slice-layer parameter set, supplemental enhancement information, video useability information or customized unit information.

### Claim 10 (depends on 8)

The method of claim 8, wherein processing the code stream according to the in-loop identification information and the out-loop identification information comprises one of the following:
performing fourth mapping transformation on the code stream according to the in-loop identification information, and performing third mapping transformation on the code stream obtained after the fourth mapping transformation according to the out-loop identification information;
performing fourth mapping transformation on the code stream according to the in-loop identification information, and determining not to perform third mapping transformation on the code stream obtained after the fourth mapping transformation according to the out-loop identification information;
determining not to perform fourth mapping transformation on the code stream according to the in-loop identification information, and performing third mapping transformation on the code stream according to the out-loop identification information; or
determining not to perform fourth mapping transformation on the code stream according to the in-loop identification information, and determining not to perform third mapping transformation on the code stream according to the out-loop identification information.

### Claim 11 (depends on 10)

The method of claim 10, wherein the third mapping transformation and the fourth mapping transformation comprise luma mapping transformation and chroma mapping transformation, respectively, wherein the luma mapping transformation comprises luma component value mapping, the luma component value mapping is used for altering a luma dynamic range, and the chroma mapping transformation comprises chroma component value mapping or chroma scaling processing dependent on the luma mapping transformation.

### Claim 12 (depends on 8)

The method of claim 8, wherein at least one of the in-loop identification information or the out-loop identification information comprises control information and parameter information, wherein the control information is carried in at least one of the following: network abstraction layer unit header information, a sequence-layer parameter set, a picture-layer parameter set, a slice-layer parameter set, supplemental enhancement information, video useability information or customized unit information, and the parameter information in the code stream is carried in at least one of the following: an adaptation parameter set, supplemental enhancement information or a customized network abstraction layer unit.

### Claim 13 (depends on 12)

The method of claim 12, wherein the parameter information of the in-loop identification information in the code stream and the parameter information of the out-loop identification information in the code stream are each carried in one of the following manners:
the parameter information of the in-loop identification information and the parameter information of the out-loop identification information are each carried in a data packet oriented to luma and chroma mapping transformation in the adaptation parameter set;
the parameter information of the in-loop identification information is carried in a data packet oriented to luma and chroma mapping transformation in the adaptation parameter set, and the parameter information of the out-loop identification information is carried in a data packet of customized supplemental enhancement information; or
the parameter information of the in-loop identification information and the parameter information of the out-loop identification information are each carried in a data packet oriented to luma and chroma mapping transformation in the customized network abstraction layer unit.

### Claim at position 14

14-15. (canceled)

### Claim 16

An electronic device, comprising:
one or more processors; and
a memory configured to store one or more programs;
wherein the one or more programs, when executed by the one or more processors, enable the one or more processors to perform at least one of picture encoding or picture decoding,
wherein the picture encoding comprises:
acquiring a video picture, and determining a picture feature of the video picture:
determining in-loop identification information and out-loop identification information according to the picture feature:
processing the video picture according to the in-loop identification information and the out-loop identification information; and
encoding the processed video picture to generate a code stream, and writing the in-loop identification information and the out-loop identification information into the code stream; and, wherein the picture decoding comprises:
acquiring the code stream, and parsing the code stream to obtain the in-loop identification information and the out-loop identification information in the code stream:
processing the code stream according to the in-loop identification information and the out-loop identification information; and
decoding the processed code stream to generate the video picture.

### Claim 17 (depends on 1)

A non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, performs the picture encoding method of claim 1.

### Claim 18 (depends on 16)

The electronic device according to claim 16, wherein the picture feature comprises at least one of the following:
a luma dynamic range, a color space, texture information, a shape feature or a spatial relationship.

### Claim 19 (depends on 16)

The electronic device according to claim 16, wherein at least one of the in-loop identification information or the out-loop identification information is carried in at least one of the following:
network abstraction layer unit header information, a sequence-layer parameter set, a picture-layer parameter set, a slice-layer parameter set, supplemental enhancement information, video useability information or customized unit information.

### Claim 20 (depends on 16)

The electronic device according to claim 16, wherein processing the video picture according to the in-loop identification information and the out-loop identification information comprises one of the following:
performing first mapping transformation on the video picture according to the out-loop identification information, and performing second mapping transformation on the video picture obtained after the first mapping transformation according to the in-loop identification information;
performing first mapping transformation on the video picture according to the out-loop identification information, and determining not to perform second mapping transformation on the video picture obtained after the first mapping transformation according to the in-loop identification information;
determining not to perform first mapping transformation on the video picture according to the out-loop identification information, and performing second mapping transformation on the video picture according to the in-loop identification information; or
determining not to perform first mapping transformation on the video picture according to the out-loop identification information, and determining not to perform second mapping transformation on the video picture according to the in-loop identification information.

### Claim 21 (depends on 20)

The electronic device according to claim 20, wherein the first mapping transformation and the second mapping transformation comprise luma mapping transformation and chroma mapping transformation, respectively, wherein the luma mapping transformation comprises luma component value mapping, the luma component value mapping is used for altering a luma dynamic range, and the chroma mapping transformation comprises chroma component value mapping or chroma scaling processing dependent on the luma mapping transformation.

### Claim 22 (depends on 16)

The electronic device according to claim 16, wherein at least one of the in-loop identification information or the out-loop identification information comprises control information and parameter information,
wherein the control information is carried in at least one of the following: network abstraction layer unit header information, a sequence-layer parameter set, a picture-layer parameter set, a slice-layer parameter set, supplemental enhancement information, video useability information or customized unit information, and
wherein the parameter information in the code stream is carried in at least one of the following: an adaptation parameter set, supplemental enhancement information or a customized network abstraction layer unit.
