Encoder, decoder and corresponding methods

By obtaining syntax elements in the video code stream to determine inter-layer prediction, and optimizing the inter-layer prediction and encoding of video, it solves the problem of compression and decompression of video data in bandwidth-limited networks, and improves the compression ratio and storage efficiency of video data.

CN118764645APending Publication Date: 2024-10-11HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410077076.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2019-10-07
Filing Date
2020-09-30
Publication Date
2024-10-11

Smart Images

  • Figure CN118764645A_ABST
    Figure CN118764645A_ABST
Patent Text Reader

Abstract

There is provided a method of decoding a coded video bitstream, the method comprising: obtaining a first syntax element from the coded video bitstream, the first syntax element representing whether the first layer uses inter-layer prediction; obtaining one or more second syntax elements related to one or more second layers from the coded video bitstream, each second syntax element representing whether a second layer is a direct reference layer of the first layer; wherein, if the value of the first syntax element indicates that the first layer is allowed to use inter-layer prediction, at least one second syntax element of the one or more second syntax elements has a value indicating that the second layer is a direct reference layer of the first layer; and performing inter-layer prediction on the image of the first layer by using the image of the second layer related to the at least one second syntax element as a reference image.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application. The application number of the original application is 202080070703.5, and the original application date is September 30, 2020. The entire contents of the original application are incorporated into this application by reference. Technical Field

[0002] Embodiments of the present application (invention) generally relate to the field of image processing, and more specifically to inter-layer prediction. Background Art

[0003] Video coding (video encoding and decoding) is widely used in digital video applications such as broadcast digital television, video transmission over the Internet and mobile networks, real-time conversation applications such as video chat, video conferencing, DVD and Blu-ray discs, video content acquisition and editing systems, and security applications in camcorders.

[0004] Even in the case of shorter videos, large amounts of video data need to be described, which can cause difficulties when the data is to be transmitted or otherwise transferred across a communication network with limited bandwidth capacity. Therefore, video data is often compressed before being transmitted across modern telecommunication networks. The size of the video can also be an issue when storing the video in a storage device, since memory resources may be limited. Video compression devices typically use software and / or hardware on the source side to encode the video data before transmission or storage, thereby reducing the amount of data required to represent the digital video image. A video decompression device that decodes the video data then receives the compressed data at the destination side. With limited network resources and a growing demand for higher video quality, there is a need for improved compression and decompression techniques that can increase the compression ratio with little impact on image quality. Summary of the invention

[0005] The embodiments of the present application provide the encoding and decoding methods and devices described in the independent claims.

[0006] The above and other objects are achieved by the subject matter claimed in the independent claims. Other implementations are apparent from the dependent claims, the description and the drawings.

[0007] Particular embodiments are outlined in the accompanying independent claims, further embodiments are outlined in the dependent claims.

[0008] According to a first aspect, the present invention relates to a method for decoding a decoded video code stream. The method is performed by a decoding device. The method comprises: obtaining a first syntax element from the decoded video code stream, the first syntax element indicating whether the first layer uses inter-layer prediction; obtaining one or more second syntax elements related to one or more second layers from the decoded video code stream, each second syntax element indicating whether the second layer is a direct reference layer of the first layer; wherein, when the value of the first syntax element indicates that the first layer is allowed to use inter-layer prediction, at least one of the one or more second syntax elements has a value indicating that the second layer is a direct reference layer of the first layer; performing inter-layer prediction on an image of the first layer by using an image of the second layer related to the at least one second syntax element as a reference image.

[0009] Alternatively, the first syntax element indicates whether the one or more second syntax elements associated with one or more second layers exist in the decoded video code stream. In addition, the first syntax element is equal to 1, indicating that the one or more second syntax elements associated with one or more second layers do not exist in the decoded video code stream; or, the first syntax element is equal to 0, indicating that the one or more second syntax elements associated with one or more second layers exist in the decoded video code stream.

[0010] A layer consists of a series of coded pictures with the same layer index.

[0011] The layer index of the one or more second layers is smaller than the layer index of the first layer.

[0012] Second layers associated with different second syntax elements have different layer indexes.

[0013] The one or more second syntax elements correspond one-to-one to the one or more second layers.

[0014] A bitstream is a sequence of bits that form one or more coded video sequences (CVS).

[0015] A coded video sequence (CVS) is a series of AUs.

[0016] A coded layer video sequence (CLVS) is a series of PUs with the same nuh_layer_id value.

[0017] An access unit (AU) is a set of PUs belonging to different layers and contains coded pictures associated with the same time output from the DPB.

[0018] A picture unit (PU) is a set of NAL units associated with each other according to a specified classification rule, which are consecutive in decoding order and contain exactly one coded picture.

[0019] An inter-layer reference picture (ILRP) is a picture in the same AU as the current picture, and its nuh_layer_id is smaller than the nuh_layer_id of the current picture.

[0020] An SPS is a syntax structure that contains syntax elements that apply to zero or more entire CLVSs.

[0021] If layer A uses layer B as a reference layer, then layer B is the direct reference layer of layer A; if layer A uses layer B as a reference layer, layer B uses layer C as a reference layer, but layer A does not use layer C as a reference layer, then layer C is not the direct reference layer of layer A.

[0022] According to the first aspect, in a possible implementation of the method, the first syntax element is equal to 1, indicating that the first layer does not use inter-layer prediction; or the first syntax element is equal to 0, indicating that the first layer is allowed to use inter-layer prediction.

[0023] According to the first aspect or any one of the above implementations of the first aspect, in a possible implementation of the method, the second syntax element is equal to 0, indicating that the second layer related to the second syntax element is not the direct reference layer of the first layer; or the second syntax element is equal to 1, indicating that the second layer related to the second syntax element is the direct reference layer of the first layer.

[0024] According to the first aspect or any one of the above implementations of the first aspect, in one possible implementation of the method, obtaining the one or more second syntax elements is performed when the value of the first syntax element indicates that the first layer is allowed to use inter-layer prediction.

[0025] According to the first aspect or any one of the above implementations of the first aspect, in a possible implementation of the method, the method further includes: when the value of the first syntax element indicates that the first layer does not use inter-layer prediction, performing prediction on the image of the first layer, without using the image of the layer associated with the at least one second syntax element as a reference image.

[0026] According to a second aspect, the present invention relates to a method for encoding a decoded video code stream. The method is performed by an encoder. The method comprises: determining whether at least one second layer is a direct reference layer of a first layer; encoding a syntax element into the decoded video code stream, wherein the syntax element indicates whether the first layer uses inter-layer prediction; wherein, in the case where none of the at least one second layer is a direct reference layer of the first layer, the value of the syntax element indicates that the first layer does not use inter-layer prediction.

[0027] The method of determining whether at least one second layer is a direct reference layer of the first layer includes: determining that the second layer is the direct reference layer of the first layer based on determining that the first rate-distortion cost is less than or equal to the second rate-distortion cost; determining that the second layer is not the direct reference layer of the first layer based on determining that the first rate-distortion cost is greater than or equal to the second rate-distortion cost; wherein the first rate-distortion cost is the cost of using the second layer as the direct reference layer of the first layer, and the second rate-distortion cost is the cost of not using the second layer as the direct reference layer of the first layer.

[0028] According to the second aspect, in a possible implementation of the method, when the at least one second layer is a direct reference layer of the first layer, the value of the syntax element indicates that the first layer is allowed to use inter-layer prediction.

[0029] According to a third aspect, the present invention relates to a device for decoding a decoded video code stream. The device comprises: an acquisition unit for acquiring a first syntax element from the decoded video code stream, the first syntax element indicating whether the first layer uses inter-layer prediction; the acquisition unit is also used to acquire one or more second syntax elements related to one or more second layers from the decoded video code stream, each second syntax element indicating whether the second layer is a direct reference layer of the first layer; wherein, when the value of the first syntax element indicates that the first layer is allowed to use inter-layer prediction, at least one of the one or more second syntax elements has a value indicating that the second layer is a direct reference layer of the first layer; a prediction unit for performing inter-layer prediction on an image of the first layer by using an image of the second layer related to the at least one second syntax element as a reference image.

[0030] According to the third aspect, in a possible implementation of the method, the first syntax element is equal to 1, indicating that the first layer does not use inter-layer prediction; or the first syntax element is equal to 0, indicating that the first layer is allowed to use inter-layer prediction.

[0031] According to the third aspect or any one of the above implementations of the third aspect, in a possible implementation of the method, the second syntax element is equal to 0, indicating that the second layer associated with the second syntax element is not the direct reference layer of the first layer; or the second syntax element is equal to 1, indicating that the second layer associated with the second syntax element is the direct reference layer of the first layer.

[0032] According to the third aspect or any one of the above implementations of the third aspect, in one possible implementation of the method, the prediction unit for obtaining the one or more second syntax elements is performed when the value of the first syntax element indicates that the first layer is allowed to use inter-layer prediction.

[0033] According to a fourth aspect, the present invention relates to an apparatus for encoding a decoded video code stream. The apparatus comprises: a determination unit, configured to determine whether at least one second layer is a direct reference layer of a first layer; an encoding unit, configured to encode a syntax element into the decoded video code stream, wherein the syntax element indicates whether the first layer uses inter-layer prediction; wherein, in the case where none of the at least one second layer is a direct reference layer of the first layer, the value of the syntax element indicates that the first layer does not use inter-layer prediction.

[0034] According to the fourth aspect, in a possible implementation of the method, when the at least one second layer is a direct reference layer of the first layer, the value of the syntax element indicates that the first layer is allowed to use inter-layer prediction.

[0035] The method provided in the first aspect of the present invention may be executed by the apparatus provided in the third aspect of the present invention. Other features and implementations of the method provided in the third aspect of the present invention correspond to the features and implementations of the apparatus provided in the first aspect of the present invention.

[0036] The method provided in the second aspect of the present invention may be performed by the device provided in the fourth aspect of the present invention. Other features and implementations of the method provided in the fourth aspect of the present invention correspond to the features and implementations of the device provided in the second aspect of the present invention.

[0037] The method described in the second aspect can be extended to correspond to the implementation of the first device described in the first aspect. Therefore, the implementation of the method includes one or more features of the corresponding implementation of the first device.

[0038] The advantages of the method provided by the second aspect are the same as the advantages of the corresponding implementation of the first device provided by the first aspect.

[0039] According to a fifth aspect, the present invention relates to an apparatus for decoding a video stream, the apparatus comprising a processor and a memory, wherein the memory stores instructions, and the instructions enable the processor to execute the method according to the first aspect.

[0040] According to a sixth aspect, the present invention relates to an apparatus for encoding a video stream, the apparatus comprising a processor and a memory, wherein the memory stores instructions, and the instructions enable the processor to execute the method according to the second aspect.

[0041] According to a seventh aspect, a computer-readable storage medium storing instructions is provided, wherein the instructions, when executed, cause one or more processors to decode video data. The instructions cause the one or more processors to perform the method provided by the first aspect or the second aspect or any possible embodiment of the first aspect or the second aspect.

[0042] According to an eighth aspect, the present invention relates to a computer program, comprising a program code, wherein the program code is used to execute the method provided by the first aspect or the second aspect or any possible embodiment of the first aspect or the second aspect when executed in a computer.

[0043] According to the ninth aspect, the present invention relates to a non-transitory storage medium, which includes a coded code stream to be decoded by a device, the code stream being generated by dividing a frame of a video signal or an image signal into multiple blocks, and including multiple syntax elements, wherein the multiple syntax elements include: a first syntax element, the first syntax element indicating whether the first layer uses inter-layer prediction; and one or more second syntax elements related to one or more second layers, each second syntax element indicating whether the second layer is a direct reference layer of the first layer; wherein, when the value of the first syntax element indicates that the first layer is allowed to use inter-layer prediction, at least one of the one or more second syntax elements has a value indicating that the second layer is a direct reference layer of the first layer.

[0044] One or more embodiments will be described in detail in the drawings and the following description. Other features, objects, and advantages will be apparent from the description, drawings, and claims.

[0045] In addition, the following examples are provided.

[0046] In one embodiment, a method for decoding a decoded video stream is provided, the method comprising:

[0047] Parsing a first syntax element, where the first syntax element indicates whether a layer with index i uses inter-layer prediction, where i is an integer greater than 0;

[0048] When the first condition is met, parsing a second syntax element, the second syntax element indicating whether the layer with index j is a direct reference layer of the layer with index i, where j is an integer, j is less than i and greater than or equal to 0, wherein the first condition includes that the first syntax element indicates that the layer with index i can use inter-layer prediction, j is equal to i-1, and any layer with index less than j is not a direct reference layer of the layer with index i;

[0049] The image of the layer with index i is predicted according to the value of the second syntax element.

[0050] In one embodiment, when the first syntax element indicates that the layer indexed by i can use inter-layer prediction, the sum of vps_direct_dependency_flag[i][k] is greater than 0, where k corresponds to all integers in the range of 0 to i–1, where vps_direct_dependency_flag is equal to 1 to indicate that the layer indexed by k is the direct reference layer of the layer indexed by I, and vps_direct_dependency_flag is equal to 0 to indicate that the layer indexed by k is not the direct reference layer of the layer indexed by i.

[0051] In one embodiment, when the first syntax element indicates that the layer indexed by i can use inter-layer prediction, at least one value of vps_direct_dependency_flag[i][k] is equal to 1, where k is an integer and k is in the range of 0 to i-1, where vps_direct_dependency_flag equal to 1 indicates that the layer indexed by k is the direct reference layer of the layer indexed by I, and vps_direct_dependency_flag equal to 0 indicates that the layer indexed by k is not the direct reference layer of the layer indexed by i.

[0052] In one embodiment, the image of the layer indexed i includes the image in the layer indexed i or the image related to the layer indexed i.

[0053] In one embodiment, a method for decoding a decoded video stream is provided, the method comprising:

[0054] Parsing a syntax element, wherein the syntax element indicates whether the layer with index i uses inter-layer prediction, where i is an integer greater than 0;

[0055] Predicting an image of a layer indexed i by using the layer indexed j as a direct reference layer of the layer indexed i when a condition is met, where j is an integer and j is equal to i–1, wherein the condition includes that the syntax element indicates that the layer indexed i can use inter-layer prediction.

[0056] In one embodiment, the image of the layer indexed i includes the image in the layer indexed i or the image related to the layer indexed i.

[0057] In one embodiment, a method for decoding a decoded video stream is provided, the method comprising:

[0058] Parsing syntax elements indicating whether at least one long-term reference picture (LTRP) is used for inter prediction of any coded picture in a coded video sequence (CVS), wherein each picture of the at least one LTRP is identified as "used for long-term reference" but is not an inter-layer reference picture (ILRP);

[0059] One or more coded pictures in the CVS are predicted based on the values ​​of the syntax elements.

[0060] In one embodiment, a method for decoding a decoded video stream is provided, the method comprising:

[0061] Determining whether a condition is satisfied, wherein the condition includes that a layer index of a current layer is greater than a preset value;

[0062] When the condition is met, parsing a first syntax element, the first syntax element indicating whether to use at least one inter-layer reference picture (ILRP) to perform inter-frame prediction on any coded picture in a coded video sequence (CVS);

[0063] One or more coded pictures in the CVS are predicted based on the value of the first syntax element.

[0064] In one embodiment, the preset value is 0.

[0065] In one embodiment, the condition further includes that the second syntax element (eg, sps_video_parameter_set_id) is greater than zero.

[0066] In one embodiment, a method for decoding a decoded video stream is provided, the method comprising:

[0067] Determining whether a condition is satisfied, wherein the condition includes that a layer index of the current layer is greater than a preset value, and a current entry in the reference picture list structure is an ILRP entry;

[0068] When the condition is met, parse the syntax element representing the index of the layer list directly related to the current layer;

[0069] One or more coded pictures in the CVS are predicted based on a reference picture list structure, wherein the current entry of the reference picture list structure is an ILRP entry obtained using an index into a directly related layer list.

[0070] In one embodiment, the preset value is 1.

[0071] In one embodiment, an encoder (20) is provided, the encoder comprising a processing circuit, the processing circuit being used to execute the method described in the second aspect and any possible implementation thereof.

[0072] In one embodiment, a decoder (30) is provided, the decoder comprising a processing circuit, the processing circuit being configured to execute the method described in the first aspect and any possible implementation thereof.

[0073] In one embodiment, a computer program product including a program code is provided. When the program code is executed in a computer or a processor, the program code is used to execute the method according to the first aspect or the second aspect and any possible implementation manner thereof.

[0074] In one embodiment, a decoder is provided, comprising:

[0075] one or more processors;

[0076] A non-transitory computer-readable storage medium is coupled to the processor and stores a program executed by the processor, wherein when the processor executes the program, the decoder executes the method described in the first aspect and any possible implementation thereof.

[0077] In one embodiment, an encoder is provided, comprising:

[0078] one or more processors;

[0079] A non-transitory computer-readable storage medium is coupled to the processor and stores a program executed by the processor, wherein when the processor executes the program, the encoder is caused to execute the method described in the aforementioned second aspect and any possible implementation thereof.

[0080] In one embodiment, a non-transitory computer-readable storage medium carrying program code is provided. When a computer device executes the program code, the computer device executes the method according to the first aspect or the second aspect above and any possible implementation manner of each. BRIEF DESCRIPTION OF THE DRAWINGS

[0081] The following is a detailed description of the embodiments of the present invention in conjunction with the accompanying drawings. In the accompanying drawings:

[0082] Figure 1A A block diagram of an example of a video decoding system for implementing an embodiment of the present invention;

[0083] Figure 1B is a block diagram of another example of a video decoding system for implementing an embodiment of the present invention;

[0084] Figure 2 A block diagram of an example of a video encoder for implementing an embodiment of the present invention;

[0085] Figure 3 is a block diagram of an exemplary structure of a video decoder for implementing an embodiment of the present invention;

[0086] Figure 4 A block diagram of an example of an encoding device or a decoding device;

[0087] Figure 5 A block diagram of another example of an encoding device or a decoding device;

[0088] Figure 6 is a block diagram showing adaptive coding with 2 layers;

[0089] Figure 7 A block diagram of an exemplary structure of a content provision system for implementing a content distribution service;

[0090] Figure 8 A block diagram showing an example structure of a terminal device;

[0091] Fig. 9 A flowchart of a decoding method provided by an embodiment;

[0092] Fig.10 A flowchart of an encoding method provided by an embodiment;

[0093] Fig.11 A schematic diagram of a decoder provided for one embodiment;

[0094] Fig.12 A schematic diagram of an encoder is provided for one embodiment.

[0095] In the following, unless explicitly stated otherwise, identical reference signs refer to identical or at least functionally equivalent features. DETAILED DESCRIPTION

[0096] In the following description, reference is made to the accompanying drawings that form part of the present invention and that illustrate specific aspects of embodiments of the present invention or in which specific aspects of embodiments of the present invention may be used by way of illustration. It is understood that embodiments of the present invention may be used in other aspects and may include structural changes or logical changes not described in the accompanying drawings. Therefore, the following detailed description should not be understood in a restrictive sense, and the scope of the present invention is defined by the appended claims.

[0097] It is understood that the disclosure related to the described method is also applicable to the corresponding device or system for performing the method, and vice versa. For example, if one or more specific method steps are described, the corresponding device may include one or more units (e.g., functional units) to perform the described one or more method steps (e.g., one unit performs one or more steps, or multiple units each perform one or more steps in multiple steps), even if such one or more units are not explicitly described or shown in the drawings. On the other hand, for example, if a specific device is described according to one or more units (e.g., functional units), the corresponding method may include a step to perform the function of one or more units (e.g., one step performs the function of one or more units, or multiple steps each perform the function of one or more units in multiple units), even if such one or more units are not explicitly described or shown in the drawings. In addition, it is understood that, unless otherwise explicitly stated, the features of the various exemplary embodiments and / or aspects described herein may be combined with each other.

[0098] Video decoding generally refers to the processing of a series of images that constitute a video or video sequence. In the field of video decoding, the terms "frame" and "picture / image" can be used as synonyms. Video decoding (or generally decoding) includes two parts: video encoding and video decoding. Video encoding is performed on the source side and generally includes processing (for example, by compression) the original video image to reduce the amount of data required to represent the video image (thereby achieving more efficient storage and / or transmission). Video decoding is performed on the destination side and generally includes inverse processing relative to the encoder to reconstruct the video image. The "decoding" of the video image (or generally the image) involved in the embodiment should be understood as the "encoding" or "decoding" of the video image or the corresponding video sequence. The encoding part and the decoding part are also collectively referred to as codec (encoding and decoding, CODEC).

[0099] In the case of lossless video decoding, the original video image can be reconstructed, that is, the reconstructed video image has the same quality as the original video image (assuming that there is no transmission loss or other data loss during storage or transmission). In the case of lossy video decoding, further compression is performed by quantization, etc. to reduce the amount of data representing the video image, and the decoder side cannot completely reconstruct the video image, that is, the quality of the reconstructed video image is lower or worse than the quality of the original video image.

[0100] Several video coding standards belong to the group of "lossy hybrid video codecs" (i.e., combining spatial prediction and temporal prediction in the sample domain with 2D transform coding in the transform domain for quantization). Each image in a video sequence is usually divided into a set of non-overlapping blocks, which are usually decoded at the block level. In other words, on the encoder side, the video is usually processed (i.e., encoded) at the block (video block) level, for example, a prediction block is generated by spatial (intra-frame) prediction and / or temporal (inter-frame) prediction; the prediction block is subtracted from the current block (currently processed / to be processed block) to obtain a residual block; the residual block is transformed in the transform domain and quantized to reduce the amount of data to be sent (compressed), while on the decoder side, the coded or compressed block is processed inversely with respect to the encoder to reconstruct the current block for representation. In addition, the encoder and decoder processing steps are the same, so that the encoder and decoder perform the same prediction (e.g., intra-frame prediction and inter-frame prediction) and / or reconstruction to process (i.e., decode) subsequent blocks.

[0101] In the following embodiment of the video decoding system 10, the video encoder 20 and the video decoder 30 are based on Figures 1A to 3 Give a description.

[0102] Figure 1A 1 is a schematic block diagram of an exemplary decoding system 10, for example, a video decoding system 10 (or simply a decoding system 10) that can utilize the techniques of the present application. The video encoder 20 (or simply an encoder 20) and the video decoder 30 (or simply a decoder 30) in the video decoding system 10 are examples of devices that can be used to perform various techniques according to various examples described in the present application.

[0103] like Figure 1A As shown, the decoding system 10 includes a source device 12 for providing the encoded image data 21 to a destination device 14 or the like for decoding the encoded image data 13 .

[0104] The source device 12 includes an encoder 20 , and may additionally (ie, optionally) include an image source 16 , a pre-processor (or pre-processing unit) 18 (eg, image pre-processor 18 ), and a communication interface or communication unit 22 .

[0105] The image source 16 may include or may be any type of image capture device, such as a camera for capturing real-world images; and / or any type of image generation device, such as a computer graphics processor for generating computer-animated images; or any type of other device for acquiring and / or providing real-world images, computer-generated images (e.g., screen content, virtual reality (VR) images), and / or any combination thereof (e.g., augmented reality (AR) images). The image source may be any type of memory (memory / storage) that stores any of the above images.

[0106] In order to distinguish the pre-processor 18 and the processing performed by the pre-processing unit 18 , the image or image data 17 may also be referred to as a raw image or raw image data 17 .

[0107] The preprocessor 18 is used to receive (raw) image data 17 and perform preprocessing on the image data 17 to obtain a preprocessed image 19 or preprocessed image data 19. The preprocessing performed by the preprocessor 18 may include trimming, color format conversion (e.g., from RGB to YCbCr), color adjustment or denoising, etc. It can be understood that the preprocessing unit 18 may be an optional component.

[0108] The video encoder 20 is used to receive the pre-processed image data 19 and provide the encoded image data 21 (hereinafter referred to as Figure 2 etc. are described in further detail).

[0109] The communication interface 22 in the source device 12 can be used to receive the encoded image data 21 and send the encoded image data 21 (or data obtained after further processing of the encoded image data 21) to another device (for example, the destination device 14) or any other device through the communication channel 13 for storage or direct reconstruction.

[0110] Destination device 14 includes a decoder 30 (eg, video decoder 30 ) and may additionally (ie, optionally) include a communication interface or communication unit 28 , a post-processor 32 (or post-processing unit 32 ), and a display device 34 .

[0111] The communication interface 28 in the destination device 14 is used to receive the encoded image data 21 (or data obtained after further processing of the encoded image data 21) directly from the source device 12 or from any other source such as a storage device (such as an encoded image data storage device), and provide the encoded image data 21 to the decoder 30.

[0112] Communication interface 22 and communication interface 28 can be used to send or receive encoded image data 21 or encoded data 13 via a direct communication link (e.g., a direct wired or wireless connection) between source device 12 and destination device 14 or via any type of network (e.g., a wired network, a wireless network, or any combination thereof, or any type of private and public network, or any type of combination thereof).

[0113] For example, the communication interface 22 may be used to encapsulate the encoded image data 21 into a suitable format (eg, data packets), and / or process the encoded image data by any type of transmission coding or processing for transmission over a communication link or communication network.

[0114] For example, the communication interface 28 corresponding to the communication interface 22 may be used to receive the transmission data and process the transmission data by any type of corresponding transmission decoding or processing and / or decapsulation to obtain the encoded image data 21 .

[0115] Both the communication interface 22 and the communication interface 28 can be configured as Figure 1A The unidirectional communication interface represented by the arrow of the communication channel 13 pointing from the source device 12 to the destination device 14 may be configured as a bidirectional communication interface and may be used to send and receive messages, etc. to establish a connection, confirm and exchange any other information related to the communication link and / or data transmission (e.g., encoded image data transmission), etc.

[0116] The decoder 30 is used to receive the encoded image data 21 and provide decoded image data 31 or decoded image 31 (hereinafter referred to as Figure 3 or Figure 5 etc. are described in further detail).

[0117] The post-processor 32 of the destination device 14 is used to post-process the decoded image data 31 (also referred to as reconstructed image data) (e.g., decoded image 31) to obtain post-processed image data 33 (e.g., post-processed image 33). For example, the post-processing performed by the post-processing unit 32 may include color format conversion (e.g., from YCbCr to RGB), color matching, cropping or resampling, or any other processing, for example, for providing the decoded image data 31 for display by a display device 34 or the like.

[0118] The display device 34 in the destination device 14 is used to receive the post-processed image data 33 to display the image to a user or viewer, etc. The display device 34 can be or include any type of display for displaying the reconstructed image, such as an integrated or external display screen or display. For example, the display can include a liquid crystal display (LCD), an organic light emitting diode (OLED) display, a plasma display, a projector, a micro LED display, a liquid crystal on silicon (LCoS), a digital light processor (DLP), or any other type of display.

[0119] although Figure 1A The source device 12 and the destination device 14 are described as separate devices, but the device embodiments may also include two devices or two functions, namely the source device 12 or the corresponding functions and the destination device 14 or the corresponding functions. In these embodiments, the source device 12 or the corresponding functions and the destination device 14 or the corresponding functions may be implemented using the same hardware and / or software or using separate hardware and / or software or any combination thereof.

[0120] According to the description, Figure 1A The presence and (exact) division of different units or functions in the source device 12 and / or destination device 14 shown may vary depending on the actual device and application, as will be apparent to the skilled person.

[0121] The encoder 20 (eg, video encoder 20) or the decoder 30 (eg, video decoder 30), or both the encoder 20 and the decoder 30 may be configured as follows: Figure 1B The processing circuitry shown may be implemented, for example, by one or more microprocessors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), discrete logic, hardware, video decoding dedicated processors, or any combination thereof. Encoder 20 may be implemented by processing circuitry 46 to embody reference Figure 2 The various modules discussed in the encoder 20 and / or any other encoder system or subsystem described herein. The decoder 30 may be implemented by the processing circuit 46 to embody the reference Figure 3The processing circuitry may be used to perform the various operations described below. Figure 5 As shown, if the technology is partially implemented in software, the device can store the instructions of the software in a suitable non-transitory computer-readable storage medium, and can use one or more processors to execute the instructions in hardware to perform the technology of the present invention. One of the video encoder 20 and the video decoder 30 can be integrated into a single device as part of a combined codec (encoder / decoder, CODEC), such as Figure 1B shown.

[0122] Source device 12 and destination device 14 may include any of a variety of devices, including any type of handheld or fixed device, such as a notebook or laptop computer, a mobile phone, a smart phone, a tablet / tabletcomputer, a camera, a desktop computer, a set-top box, a television, a display device, a digital media player, a video game console, a video streaming device (such as a content service server or a content distribution server), a broadcast receiver device, a broadcast transmitter device, etc., and may not use or use any type of operating system. In some cases, source device 12 and destination device 14 may be equipped for wireless communication. Therefore, source device 12 and destination device 14 may be wireless communication devices.

[0123] In some cases, Figure 1A The video decoding system 10 shown is merely exemplary, and the techniques in the present application can be applied to video decoding settings (e.g., video encoding or video decoding) that do not necessarily include any data communication between the encoding device and the decoding device. In other examples, data is retrieved from a local memory, transmitted over a network, and so on. The video encoding device can encode the data and store the data in a memory, and / or the video decoding device can retrieve the data from the memory and decode the data. In some examples, the encoding and decoding are performed by devices that do not communicate with each other but only encode the data to the memory and / or retrieve the data from the memory and decode the data.

[0124] For ease of description, this document describes embodiments of the present invention with reference to high-efficiency video coding (HEVC) or versatile video coding (VVC) (next generation video coding standard) reference software developed by the ITU-T video coding experts group (VCEG) and the ISO / IEC motion picture experts group (MPEG) video coding joint collaboration team (JCT-VC) (next generation video coding standard). Those skilled in the art understand that embodiments of the present invention are not limited to HEVC or VVC.

[0125] Encoders and encoding methods

[0126] Figure 2 FIG. 2 is a schematic block diagram of an exemplary video encoder 20 for implementing the technology of the present application. Figure 2 In the example of , the video encoder 20 includes an input terminal 201 (or an input interface 201), a residual calculation unit 204, a transform processing unit 206, a quantization unit 208, an inverse quantization unit 210 and an inverse transform processing unit 212, a reconstruction unit 214, a loop filter unit 220, a decoded picture buffer (DPB) 230, a mode selection unit 260, an entropy coding unit 270 and an output terminal 272 (or an output interface 272). The mode selection unit 260 may include an inter-frame prediction unit 244, an intra-frame prediction unit 254 and a segmentation unit 262. The inter-frame prediction unit 244 may include a motion estimation unit and a motion compensation unit (not shown). Figure 2 The illustrated video encoder 20 may also be referred to as a hybrid video encoder or a video encoder according to a hybrid video codec.

[0127] The residual calculation unit 204, the transform processing unit 206, the quantization unit 208 and the mode selection unit 260 may constitute a forward signal path of the encoder 20, and the inverse quantization unit 210, the inverse transform processing unit 212, the reconstruction unit 214, the buffer 216, the loop filter 220, the decoded picture buffer (DPB) 230, the inter-frame prediction unit 244 and the intra-frame prediction unit 254 may constitute a backward signal path of the video encoder 20, wherein the backward signal path of the video encoder 20 corresponds to the decoder (see Figure 3The inverse quantization unit 210, the inverse transform processing unit 212, the reconstruction unit 214, the loop filter 220, the decoded picture buffer (DPB) 230, the inter-frame prediction unit 244 and the intra-frame prediction unit 254 also constitute the “built-in decoder” of the video encoder 20.

[0128] Images and image segmentation (images and blocks)

[0129] The encoder 20 may be configured to receive an image 17 (or image data 17), such as an image of a series of images forming a video or a video sequence, via an input 201 or the like. The received image or image data may also be a pre-processed image 19 (or pre-processed image data 19). For simplicity, the following description uses image 17. Image 17 may also be referred to as a current image or an image to be encoded (particularly in video decoding to distinguish the current image from other images (e.g., previously encoded images and / or decoded images) in the same video sequence (i.e., a video sequence that also includes the current image)).

[0130] A (digital) image is or can be considered as a two-dimensional array or matrix of samples with intensity values. The samples in the array can also be called pixels (pixel / pel) (short for picture elements). The number of samples in the horizontal and vertical directions (or axes) of the array or image defines the size and / or resolution of the image. Three color components are usually used to represent colors, that is, the image can be represented as or include three sample arrays. In the RGB format or color space, the image includes corresponding red, green and blue sample arrays. However, in video decoding, each pixel is usually represented by a brightness and chrominance format or in a color space, for example, YCbCr, including a brightness component represented by Y (sometimes also represented by L) and two chrominance components represented by Cb and Cr. The brightness (luminance, abbreviated as luma) component Y represents the brightness or grayscale intensity (for example, in a grayscale image), while the two chrominance (chroma, abbreviated as chroma) components Cb and Cr represent the chrominance or color information components. Accordingly, an image in YCbCr format includes a luma sample array of luma sample values ​​(Y) and two chroma sample arrays of chroma values ​​(Cb and Cr). An image in RGB format can be converted or transformed into YCbCr format and vice versa, a process also referred to as color conversion or color transformation. If the image is black and white, the image may include only a luma sample array. Accordingly, for example, an image may be a luma sample array in black and white format or a luma sample array and two corresponding chroma sample arrays in 4:2:0, 4:2:2 and 4:4:4 color formats.

[0131] An embodiment of the video encoder 20 may include an image segmentation unit ( Figure 2 ), for partitioning the image 17 into a plurality of (usually non-overlapping) image blocks 203. These blocks may also be referred to as root blocks, macroblocks (H.264 / AVC), or coding tree blocks (CTB) or coding tree units (CTU) (H.265 / HEVC and VVC). The image partitioning unit may be used to use the same block size for all images in a video sequence and a corresponding grid of defined block sizes, or to vary the block size between images or subsets or groups of images, and to partition each image into corresponding blocks.

[0132] In other embodiments, the video encoder may be configured to directly receive the block 203 in the image 17, for example, one, several or all blocks constituting the image 17. The image block 203 may also be referred to as a current image block or an image block to be encoded.

[0133] Similar to the image 17, the image block 203 is also or can be regarded as a two-dimensional array or matrix of samples with intensity values ​​(sample values), but the size of the image block 203 is smaller than that of the image 17. In other words, the block 203 may include one sample array (e.g., a luminance array in the case of the black and white image 17 or a luminance array or a chrominance array in the case of a color image) or three sample arrays (e.g., one luminance array and two chrominance arrays in the case of the color image 17) or any other number and / or type of arrays according to the color format adopted. The number of samples in the horizontal direction and the vertical direction (or axis) of the block 203 defines the size of the block 203. Accordingly, the block may be, for example, an M×N (M columns×N rows) sample array, or an M×N transform coefficient array, etc.

[0134] Figure 2 The illustrated embodiment of the video encoder 20 may be used to encode the image 17 block by block, for example, by encoding and predicting the block 203 .

[0135] Figure 2 The illustrated embodiment of the video encoder 20 may also be used to segment and / or encode an image using slices (also referred to as video slices), wherein an image may be segmented or encoded using one or more slices (usually non-overlapping). Each slice may include one or more blocks (e.g., CTUs) or one or more groups of blocks (e.g., tiles (H.265 / HEVC and VVC) or bricks (VVC)).

[0136] Figure 2The illustrated embodiment of the video encoder 20 may also be used to segment and / or encode an image using slice / block groups (also referred to as video block groups) and / or blocks (also referred to as video blocks), wherein one or more slice / block groups (usually non-overlapping) may be used to segment or encode an image. Each slice / block group may include one or more blocks (e.g., CTUs) or one or more blocks, etc., wherein each block may be rectangular or other shaped, and may include one or more blocks (e.g., CTUs), such as complete or partial blocks.

[0137] Residual calculation

[0138] The residual calculation unit 204 can be used to calculate the residual block 205 (also referred to as residual 205) based on the image block 203 and the prediction block 265 (more details of the prediction block 265 are provided later), for example, by subtracting the sample value of the prediction block 265 from the sample value of the image block 203 sample by sample (pixel by pixel) to obtain the residual block 205 in the sample domain.

[0139] Transform

[0140] The transform processing unit 206 may be used to perform discrete cosine transform (DCT) or discrete sine transform (DST) on the sample values ​​of the residual block 205 to obtain transform coefficients 207 in the transform domain. The transform coefficients 207 may also be called transform residual coefficients, representing the residual block 205 in the transform domain.

[0141] The transform processing unit 206 can be used to apply an integer approximation of a DCT / DST (e.g., a transform specified for H.265 / HEVC). Compared to an orthogonal DCT transform, this integer approximation is typically scaled by a factor. In order to maintain the norm of the residual block processed by the forward transform and the inverse transform, other scaling factors are applied as part of the transform process. The scaling factor is typically selected based on certain constraints, such as whether the scaling factor is a power of 2 for the shift operation, the bit depth of the transform coefficients, a trade-off between precision and implementation cost, etc. For example, a specific scaling factor is specified for the inverse transform by the inverse transform processing unit 212, etc. (and on the video decoder 30 side, the corresponding inverse transform by the inverse transform processing unit 312, etc.); accordingly, a corresponding scaling factor can be specified for the forward transform by the transform processing unit 206, etc. on the encoder 20 side.

[0142] Embodiments of the video encoder 20 (and accordingly, the transform processing unit 206) may be configured to encode or compress output transform parameters (e.g., one or more transform types) directly or via an entropy coding unit 270, such that, for example, the video decoder 30 may receive and use the transform parameters for decoding.

[0143] Quantification

[0144] The quantization unit 208 may be configured to quantize the transform coefficients 207 by applying scalar quantization or vector quantization, etc., to obtain quantized coefficients 209 . The quantized coefficients 209 may also be referred to as quantized transform coefficients 209 or quantized residual coefficients 209 .

[0145] The quantization process may reduce the bit depth associated with some or all of the transform coefficients 207. For example, an n-bit transform coefficient may be rounded down to an m-bit transform coefficient during quantization, where n is greater than m. The degree of quantization may be modified by adjusting a quantization parameter (QP). For example, for scalar quantization, different degrees of scaling may be applied to achieve finer or coarser quantization. A smaller quantization step size corresponds to a finer quantization, while a larger quantization step size corresponds to a coarser quantization. A suitable quantization step size may be represented by a quantization parameter (QP). For example, a quantization parameter may be an index of a predefined set of suitable quantization step sizes. For example, a smaller quantization parameter may correspond to fine quantization (a smaller quantization step size), a larger quantization parameter may correspond to coarse quantization (a larger quantization step size), and vice versa. Quantization may include dividing by a quantization step size, while corresponding dequantization and / or corresponding inverse dequantization performed by the inverse quantization unit 210 or the like may include multiplying by a quantization step size. Embodiments according to some standards such as HEVC may use a quantization parameter to determine a quantization step size. Typically, a quantization step size may be calculated using a fixed-point approximation of an equation including division according to a quantization parameter. Other scaling factors may be introduced for quantization and dequantization to recover the norm of the residual block that may be modified by the scaling used in the fixed-point approximation of the equations for the quantization step size and the quantization parameter. In one exemplary implementation, the scaling of the inverse transform and dequantization may be combined. Alternatively, a custom quantization table may be used and signaled from the encoder to the decoder in the bitstream, etc. Quantization is a lossy operation, where the larger the quantization step size, the greater the loss.

[0146] In an embodiment, the video encoder 20 (correspondingly, the quantization unit 208) can be used to output a quantization parameter (QP), for example, directly output or output after being encoded by the entropy coding unit 270, so that, for example, the video decoder 30 can receive and use the quantization parameter for decoding.

[0147] Dequantization

[0148] The inverse quantization unit 210 is used to perform inverse quantization of the quantization unit 208 on the quantized coefficients to obtain dequantized coefficients 211, for example, according to or using the same quantization step size as the quantization unit 208, and perform an inverse quantization scheme of the quantization scheme performed by the quantization unit 208. The dequantized coefficients 211 may also be referred to as dequantized residual coefficients 211, corresponding to the transform coefficients 207, but due to the loss caused by quantization, the dequantized coefficients 211 are usually different from the transform coefficients.

[0149] Inverse Transform

[0150] The inverse transform processing unit 212 is used to perform an inverse transform of the transform performed by the transform processing unit 206, such as an inverse discrete cosine transform (DCT) or an inverse discrete sine transform (DST), to obtain a reconstructed residual block 213 (or a corresponding dequantized coefficient 213) in the sample domain. The reconstructed residual block 213 may also be referred to as a transform block 213.

[0151] reconstruction

[0152] The reconstruction unit 214 (e.g., adder or summer 214) is used to add the transform block 213 (i.e., the reconstructed residual block 213) to the prediction block 265 by adding the sample values ​​of the reconstructed residual block 213 and the sample values ​​of the prediction block 265 sample by sample to obtain the reconstructed block 215 in the sample domain.

[0153] Filtering

[0154] The loop filter unit 220 (or simply "loop filter" 220) is used to filter the reconstructed block 215 to obtain a filtered block 221, or is generally used to filter the reconstructed sample to obtain a filtered sample value. For example, the loop filter unit is used to smooth pixel transitions or improve video quality. The loop filter unit 220 may include one or more loop filters, such as a deblocking filter, a sample-adaptive offset (SAO) filter, or one or more other filters, such as an adaptive loop filter (ALF), a noise suppression filter (NSF), or any combination thereof. In one example, the loop filter unit 220 may include a deblocking filter, an SAO filter, and an ALF. The order of the filtering process may be a deblocking filter, an SAO filter, and an ALF. In another example, a process called luma mapping with chroma scaling (LMCS) (i.e., adaptive in-loop reshaping) is added. This process is performed before deblocking filtering. In another example, the deblocking filtering process may also be applied to internal sub-block edges, such as affine sub-block edges, ATMVP sub-block edges, sub-block transform (SBT) edges, and intra sub-partition (ISP) edges. Figure 2 2 is shown as an in-loop filter, but in other configurations, the loop filter unit 220 may be implemented as a post-loop filter. The filtered block 221 may also be referred to as a filtered reconstruction block 221.

[0155] In an embodiment, the video encoder 20 (correspondingly, the loop filter unit 220) can be used to output loop filter parameters (e.g., SAO filter parameters or ALF parameters or LMCS parameters), for example, directly output or output after being encoded by the entropy coding unit 270, so that (for example) the decoder 30 can receive and use the same loop filter parameters or the corresponding loop filter for decoding.

[0156] Decode image buffer

[0157] The decoded picture buffer (DPB) 230 may be a memory that stores reference images or generally stores reference image data for use by the video encoder 20 when encoding video data. The DPB 230 may be formed by any of a variety of memory devices, such as a dynamic random access memory (DRAM), including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM) or other types of memory devices. The decoded picture buffer (DPB) 230 may be used to store one or more filtered blocks 221. The decoded picture buffer 230 may also be used to store other previously filtered blocks (e.g., previously filtered reconstructed blocks 221) in the same current image or in different images (e.g., previously reconstructed images), and may provide previously fully reconstructed (i.e., decoded) images (and corresponding reference blocks and samples) and / or partially reconstructed current images (and corresponding reference blocks and samples) for inter-frame prediction, etc. If the reconstructed block 215 is not filtered by the loop filter unit 220, the decoded picture buffer (DPB) 230 can also be used to store one or more unfiltered reconstructed blocks 215, or generally store unfiltered reconstructed samples, or reconstructed blocks or reconstructed samples without any other processing.

[0158] Mode selection (segmentation and prediction)

[0159] The mode selection unit 260 includes a segmentation unit 262, an inter-frame prediction unit 244, and an intra-frame prediction unit 254, and is used to receive or obtain original image data such as the original block 203 (the current block 203 in the current image 17) and reconstructed image data (such as filtered and / or unfiltered reconstructed samples or blocks in the same (current) image and / or one or more previously decoded images) from the decoded image buffer 230 or other buffers (such as line buffers, not shown in the figure). The reconstructed image data is used as reference image data required for prediction such as inter-frame prediction or intra-frame prediction to obtain a prediction block 265 or a prediction value 265.

[0160] The mode selection unit 260 can be used to determine or select a partitioning mode for the current block prediction mode (including non-partitioning) and determine or select a prediction mode (for example, an intra-frame prediction mode or an inter-frame prediction mode), generate a corresponding prediction block 265, calculate the residual block 205 and reconstruct the reconstruction block 215.

[0161] In an embodiment, the mode selection unit 260 can be used to select a segmentation method and a prediction mode (for example, selected from prediction modes supported or available by the mode selection unit 260), wherein the prediction mode provides the best match or minimum residual (minimum residual means better compression in transmission or storage), or provides minimum indication overhead (minimum indication overhead means better compression in transmission or storage), or considers or balances both of the above. The mode selection unit 260 can be used to determine the segmentation and prediction mode according to rate distortion optimization (RDO), that is, to select the prediction mode that provides the minimum rate distortion. The terms "best", "minimum", "optimal", etc. in this document do not necessarily mean "best", "minimum", "optimal", etc. in general, but may also refer to situations where termination or selection criteria are met, such as values ​​exceeding or below a threshold or other constraints may result in a "suboptimal selection", but will reduce complexity and reduce processing time.

[0162] In other words, the segmentation unit 262 can be used to segment the image of the video sequence into a series of coding tree units (CTUs), and the CTU 203 can be further segmented into smaller partitions or sub-blocks (forming blocks again), for example, using quad-tree (QT) segmentation, binary-tree (BT) segmentation or triple-tree (TT) segmentation or any combination thereof iteratively, and predicting each block partition or sub-block, etc., wherein the mode selection includes selecting a tree structure of the partition block 203, and applying a prediction mode to each block partition or sub-block.

[0163] The segmentation (eg, performed by segmentation unit 260) and prediction processes (performed by inter-prediction unit 244 and intra-prediction unit 254) performed by video encoder 20 will be described in detail below.

[0164] segmentation

[0165] The partitioning unit 262 can be used to partition an image in a video sequence into a series of coding tree units (CTUs). The partitioning unit 262 can partition (or divide) the coding tree unit (CTU) 203 into smaller partitions, such as square or rectangular tiles. For an image with 3 sample arrays, 1 CTU consists of an N×N luma sample block and 2 corresponding chroma sample blocks. The maximum allowed size of a luma block in a CTU is specified as 128×128 in the developing universal video coding (VVC), but may be specified as a value different from 128×128 in the future, such as 256×256. The CTUs of an image can be aggregated / grouped into stripe / block groups, blocks or bricks. A block covers a rectangular area of ​​an image, and a block can be divided into one or more bricks. A brick consists of multiple CTU rows within a block. Blocks that are not partitioned into multiple bricks can be called bricks. However, bricks are a proper subset of blocks and are not called blocks. VVC supports two block group modes, namely raster scan strip / block group mode and rectangular strip mode. In raster scan block group mode, a strip / block group includes a series of blocks under the block raster scan of the image. In rectangular strip mode, a strip includes multiple bricks of the image, which together constitute a rectangular area of ​​the image. The bricks within the rectangular strip are arranged in the order of the brick raster scan of the strip. These smaller blocks (also called sub-blocks) can be further divided into even smaller partitions. This is also called tree partitioning or hierarchical tree partitioning, in which the root block of, for example, root tree level 0 (hierarchical level 0, depth 0) can be recursively partitioned, for example, into blocks of two or more next lower tree levels, such as nodes of tree level 1 (hierarchical level 1, depth 1). These blocks can be partitioned again into blocks of two or more next lower levels, such as tree level 2 (hierarchical level 2, depth 2), etc., until the partitioning ends, for example, because the end criteria are met (for example, the maximum tree depth or the minimum block size is reached). Blocks that are not further divided are also called leaf blocks or leaf nodes of the tree. A tree divided into two parts is called a binary tree (BT), a tree divided into three parts is called a ternary tree (TT), and a tree divided into four parts is called a quadtree (QT).

[0166] For example, a coding tree unit (CTU) may be or may include a CTB of luma samples in an image with three sample arrays, two corresponding CTBs of chroma samples in the image, or a CTB of samples in a black and white image or an image decoded using three separate color planes and syntax structures. These syntax structures are used to decode the samples. Correspondingly, a coding tree block (CTB) may be an N×N block of samples, where N may be set to a certain value, so that the component is divided into multiple CTBs, which is a partition. A coding unit (CU) may be or may include a coding block of luma samples in an image with three sample arrays, two corresponding coding blocks of chroma samples, or a coding block of samples in a black and white image or an image decoded using three separate color planes and syntax structures. These syntax structures are used to decode the above samples. Correspondingly, a coding block (CB) may be an M×N block of samples, where M and N may be set to a certain value, so that a CTB is divided into multiple coding blocks, which is a partitioning method.

[0167] In an embodiment, for example according to HEVC, a coding tree unit (CTU) can be divided into multiple CUs by a quadtree structure represented as a coding tree. At the leaf CU level, it is decided whether to use inter-frame (temporal) prediction or intra-frame (spatial) prediction to decode the image area. Each leaf CU can be further divided into 1, 2 or 4 PUs according to the PU partition type. The same prediction process is applied within a PU, and relevant information is sent to the decoder in units of PUs. After the residual block is obtained by performing the prediction process according to the PU partition type, the CU can be divided into transform units (TUs) according to other quadtree structures similar to the coding tree for the leaf CU.

[0168] In an embodiment, for example, according to the latest video coding standard currently under development called universal video coding (VVC), a combined quadtree nested multi-type tree (using binary and ternary trees) divides the segmentation structure, for example, for segmenting coding tree units. In the coding tree structure within the coding tree unit, a CU can be a square or a rectangle. For example, the coding tree unit (CTU) is first segmented by a quadtree structure. Then, the quadtree leaf nodes are further segmented by a multi-type tree structure. There are 4 types of segmentation in the multi-type tree structure: vertical binary tree segmentation (SPLIT_BT_VER), horizontal binary tree segmentation (SPLIT_BT_HOR), vertical ternary tree segmentation (SPLIT_TT_VER) and horizontal ternary tree segmentation (SPLIT_TT_HOR). The multi-type leaf nodes are called coding units (CUs), and unless the size of the CU is too large for the maximum transform length, such segmentation is used for prediction and transform processing without any further segmentation. This means that in most cases, the block sizes of CU, PU, ​​and TU in the coding block structure of the quadtree nested multi-type tree are the same. This exception occurs when the maximum supported transform length is less than the width or height of the color component of the CU. VVC has formulated a unique indication mechanism for the split partition information in the coding tree structure with a quadtree nested multi-type tree. In the indication mechanism, the coding tree unit (CTU) as the root of the quadtree is first split by the quadtree structure. Then, each quadtree leaf node (when large enough to be split) is further split by the multi-type tree structure. In the multi-type tree structure, the first flag (mtt_split_cu_flag) is indicated to indicate whether the node is further split; when the node is further split, the second flag (mtt_split_cu_vertical_flag) is first indicated to indicate the split direction, and then the third flag (mtt_split_cu_binary_flag) is indicated to indicate whether the split is a binary tree split or a ternary tree split. According to the values ​​of mtt_split_cu_vertical_flag and mtt_split_cu_binary_flag, the decoder can derive the multi-type tree partitioning mode (MttSplitMode) of the CU based on predefined rules or tables. It should be noted that for certain designs, such as the 64×64 luma block and 32×32 chroma pipeline design in the VVC hardware decoder, when the width or height of the luma coding block is greater than 64, TT partitioning is prohibited, such as Figure 6As shown. TT splitting is also prohibited when the width or height of the chroma coding block is greater than 32. The pipeline design divides the image into multiple virtual pipeline data units (VPDUs), each VPDU is defined as a non-overlapping unit in the image. In the hardware decoder, multiple pipeline stages process consecutive VPDUs simultaneously. In most pipeline stages, the VPDU size is roughly proportional to the buffer size, so it is necessary to keep the VPDU small. In most hardware decoders, the VPDU size can be set to the maximum transform block (TB) size. However, in VVC, ternary tree (TT) and binary tree (BT) splitting may increase the size of the VPDU.

[0169] In addition, it should be noted that when a part of the tree node block exceeds the lower boundary or the right boundary of the image, the tree node block is forcibly divided until all samples of each decoded CU are located within the image boundary.

[0170] In one example, an intra sub-partition (ISP) tool may vertically or horizontally divide the luma intra prediction block into 2 or 4 sub-partitions according to the block size.

[0171] In one example, mode selection unit 260 in video encoder 20 may be used to perform any combination of the segmentation techniques described herein.

[0172] As described above, the video encoder 20 is used to determine or select the best or optimal prediction mode from a (eg, predetermined) prediction mode set. The prediction mode set may include intra-frame prediction mode and / or inter-frame prediction mode, etc.

[0173] Intra prediction

[0174] The intra prediction mode set may include 35 different intra prediction modes, for example, non-directional modes such as DC (or mean) mode and plane mode, or directional modes as defined in HEVC, or may include 67 different intra prediction modes, for example, non-directional modes such as DC (or mean) mode and plane mode, or directional modes as defined in VVC. In one example, several traditional angle intra prediction modes are adaptively replaced with wide-angle intra prediction modes for non-square blocks defined in VVC. In another example, in order to avoid the division operation of DC prediction, only the longer side is used to calculate the average value of non-square blocks. Moreover, the intra prediction result of the plane mode can also be modified using the position dependent intra prediction combination (PDPC) method.

[0175] The intra prediction unit 254 is configured to generate an intra prediction block 265 using reconstructed samples of neighboring blocks in the same current image according to an intra prediction mode in the intra prediction mode set.

[0176] The intra-frame prediction unit 254 (or generally the mode selection unit 260) is also used to output intra-frame prediction parameters (or generally information representing the selected intra-frame prediction mode of the block) to the entropy coding unit 270 in the form of syntax elements 266 to be included in the encoded image data 21, so that, for example, the video decoder 30 can receive and use the prediction parameters for decoding.

[0177] Inter-frame prediction (including inter-layer prediction)

[0178] The set of (possible) inter-frame prediction modes is based on the available reference image (i.e., for example, the at least partially decoded image stored in the DPB 230 as mentioned above) and other inter-frame prediction parameters, for example, based on whether the entire reference image is used or only a part of the reference image is used (e.g., a search window area around the area of ​​the current block) to search for the best matching reference block, and / or for example, based on whether pixel interpolation is performed, such as half / half pixel interpolation, quarter pixel interpolation and / or 1 / 16 pixel interpolation.

[0179] In addition to the above prediction modes, skip mode, direct mode and / or other inter-frame prediction modes may also be used.

[0180] For example, in extended fusion prediction, the fusion candidate list of this mode consists of the following five candidate types in order: spatial MVP of spatially adjacent CUs, temporal MVP of juxtaposed CUs, history-based MVP in the FIFO table, pairwise average MVP, and zero MV. Moreover, decoder side motion vector refinement (DMVR) based on bilateral matching can be used to improve the accuracy of MV in fusion mode. Merge mode with MVD (MMVD) comes from fusion mode with motion vector difference. The MMVD flag indicates immediately after sending the skip flag and the merge flag to indicate whether the CU uses the MMVD mode. Moreover, the CU-level adaptive motion vector resolution (AMVR) scheme can be applied. AMVR supports decoding the MVD of the CU with different precisions. According to the prediction mode of the current CU, the MVD of the current CU can be adaptively selected. When the CU is decoded using the fusion mode, the combined inter / intra prediction (CIIP) mode can be applied to the current CU, and the weighted average of the inter and intra prediction signals is performed to obtain the CIIP prediction signal; affine motion compensation prediction, the affine motion field of the block is described by the motion information of 2 control points (4 parameters) or 3 control points (6 parameters) motion vectors, subblock-based temporal motion vector prediction (SbTMVP) is similar to the temporal motion vector prediction (TMVP) in HEVC, but predicts the motion vector of the sub-CU within the current CU, bidirectional optical flow (BDOF) formerly known as BIO, is a simplified version that requires very little computation (especially in terms of the number of multiplications and the size of the multiplier); triangular partitioning mode, in which the CU is evenly divided into 2 triangular partitions using diagonal partitioning or anti-diagonal partitioning. In addition, the bidirectional prediction mode is extended on the basis of simple averaging to support weighted averaging of 2 prediction signals.

[0181] The inter-frame prediction unit 244 may include a motion estimation (ME) unit and a motion compensation (MC) unit (both are not included in the Figure 2). The motion estimation unit may be configured to receive or acquire an image block 203 (a current image block 203 in a current image 17) and a decoded image 231, or at least one or more previous reconstructed blocks (e.g., reconstructed blocks in one or more other / different previous decoded images 231) for motion estimation. For example, a video sequence may include a current image and a previous decoded image 231, or in other words, the current image and the previous decoded image 231 may be part of or constitute a series of images, which constitute a video sequence.

[0182] For example, the encoder 20 may be configured to select a reference block from a plurality of reference blocks of the same or different images in a plurality of other images, and provide the reference image (or reference image index) and / or the offset (spatial offset) between the position (x coordinate, y coordinate) of the reference block and the position of the current block as an inter-frame prediction parameter to the motion estimation unit. This offset is also referred to as a motion vector (MV).

[0183] The motion compensation unit is used to obtain (e.g., receive) inter-frame prediction parameters, and perform inter-frame prediction based on or using the inter-frame prediction parameters to obtain an inter-frame prediction block 265. The motion compensation performed by the motion compensation unit may include extracting or generating a prediction block based on a motion / block vector determined by motion estimation, and may also include performing interpolation on sub-pixel precision. Interpolation filtering can generate samples of other pixels based on samples of known pixels, thereby potentially increasing the number of candidate prediction blocks that can be used to decode the image block. When receiving the motion vector of the PU corresponding to the current image block, the motion compensation unit can locate the prediction block pointed to by the motion vector in one of the reference image lists.

[0184] The motion compensation unit may also generate syntax elements associated with blocks and video slices for use by the video decoder 30 when decoding image blocks of the video slices. In addition to or as an alternative to slices and corresponding syntax elements, tile groups and / or tiles and corresponding syntax elements may also be generated or used.

[0185] Entropy Coding

[0186] The entropy coding unit 270 is used to apply or not apply an entropy coding algorithm or scheme (e.g., a variable length coding (VLC) scheme, a context adaptive VLC (CAVLC) scheme, an arithmetic coding scheme, binarization, context adaptive binary arithmetic coding (CABAC), syntax-based context-adaptive binary arithmetic coding (SBAC), probability interval partitioning entropy (PIPE) coding or other entropy coding methods or techniques) to (uncompressed) quantization coefficients 209, inter-frame prediction parameters, intra-frame prediction parameters, loop filter parameters and / or other syntax elements to obtain coded image data 21 that can be output through an output terminal 272 in the form of a coded bitstream 21, etc., so that, for example, the video decoder 30 can receive and use these parameters for decoding. The coded bitstream 21 can be sent to the video decoder 30, or it can be stored in a memory and sent or retrieved by the video decoder 30 later.

[0187] The video stream may be encoded using other receiving forms of the video encoder 20. For example, a non-transform based encoder 20 may directly quantize the residual signal of certain blocks or frames without the transform processing unit 206. In another implementation, the encoder 20 may have the quantization unit 208 and the inverse quantization unit 210 combined into a single unit.

[0188] Decoder and decoding method

[0189] Figure 3 An example of a video decoder 30 for implementing the technology of the present application is shown. The video decoder 30 is used to receive the encoded image data 21 (e.g., the encoded code stream 21) encoded by the encoder 20, and obtain a decoded image 331. The encoded image data or code stream includes information for decoding the encoded image data, such as data representing image blocks of encoded video slices (and / or partition groups or partitions) and related syntax elements.

[0190] exist Figure 3In the example of , decoder 30 includes an entropy decoding unit 304, an inverse quantization unit 310, an inverse transform processing unit 312, a reconstruction unit 314 (e.g., a summer 314), a loop filter 320, a decoded picture buffer (DPB) 330, a mode application unit 360, an inter-frame prediction unit 344, and an intra-frame prediction unit 354. Inter-frame prediction unit 344 may be or include a motion compensation unit. In some examples, video decoder 30 may perform substantially the same operations as for Figure 2 The encoding pass described in the video encoder 100 is the inverse of the decoding pass.

[0191] As described for encoder 20, inverse quantization unit 210, inverse transform processing unit 212, reconstruction unit 214, loop filter 220, decoded picture buffer (DPB) 230, inter prediction unit 344, and intra prediction unit 354 also constitute the “built-in decoder” of video encoder 20. Accordingly, inverse quantization unit 310 may be functionally identical to inverse quantization unit 110, inverse transform processing unit 312 may be functionally identical to inverse transform processing unit 212, reconstruction unit 314 may be functionally identical to reconstruction unit 214, loop filter 320 may be functionally identical to loop filter 220, and decoded picture buffer 330 may be functionally identical to decoded picture buffer 230. Therefore, the explanation of the corresponding units and functions of video encoder 20 applies accordingly to the corresponding units and functions of video decoder 30.

[0192] Entropy decoding

[0193] The entropy decoding unit 304 is used to parse the code stream 21 (or generally the encoded image data 21) and perform entropy decoding on the encoded image data 21 to obtain the quantization coefficients 309 and / or the decoded encoding parameters ( Figure 3 The entropy decoding unit 304 may be used to apply a decoding algorithm or scheme corresponding to the coding scheme described for the entropy coding unit 270 in the encoder 20. The entropy decoding unit 304 may also be used to provide the inter-frame prediction parameters, intra-frame prediction parameters and / or other syntax elements to the mode application unit 360, and to provide other parameters to other units of the decoder 30. The video decoder 30 may receive syntax elements at the video slice level and / or the video block level. In addition to or as an alternative to the slices and the corresponding syntax elements, block groups and / or blocks and corresponding syntax elements may also be received and / or used.

[0194] Dequantization

[0195] The inverse quantization unit 310 may be configured to receive a quantization parameter (QP) (or generally information related to inverse quantization) and a quantization coefficient from the encoded image data 21 (e.g., parsed and / or decoded by the entropy decoding unit 304, etc.), and inverse quantize the decoded quantization coefficient 309 according to the quantization parameters to obtain a dequantized coefficient 311. The dequantized coefficient 311 may also be referred to as a transform coefficient 311. The inverse quantization process may include determining a degree of quantization using a quantization parameter determined by the video encoder 20 for each video block in a video slice (or partition or group of partitions), and also determining a degree of inverse quantization that needs to be performed.

[0196] Inverse Transform

[0197] The inverse transform processing unit 312 can be used to receive the dequantized coefficients 311 (also called transform coefficients 311) and transform the dequantized coefficients 311 to obtain a reconstructed residual block 213 in the sample domain. The reconstructed residual block 213 can also be called a transform block 313. The transform can be an inverse transform, such as an inverse DCT, an inverse DST, an inverse integer transform, or a conceptually similar inverse transform process. The inverse transform processing unit 312 can also be used to receive transform parameters or corresponding information from the encoded image data 21 (e.g., parsed and / or decoded by the entropy decoding unit 304, etc.) to determine the transform to be performed on the dequantized coefficients 311.

[0198] reconstruction

[0199] The reconstruction unit 314 (eg, an adder or summer 314 ) may be configured to add the reconstructed residual block 313 to the prediction block 365 to obtain the reconstructed block 315 in the sample domain, eg, by adding sample values ​​of the reconstructed residual block 313 to sample values ​​of the prediction block 365 .

[0200] Filtering

[0201] The loop filter unit 320 (in or after the decoding loop) is used to filter the reconstructed block 315 to obtain a filtered block 321, for example, to smooth pixel transitions or otherwise improve video quality. The loop filter unit 320 may include one or more loop filters, such as a deblocking filter, a sample-adaptive offset (SAO) filter, or one or more other filters, such as an adaptive loop filter (ALF), a noise suppression filter (NSF), or any combination thereof. In one example, the loop filter unit 220 may include a deblocking filter, an SAO filter, and an ALF. The order of the filtering process may be a deblocking filter, an SAO filter, and an ALF. In another example, a process called luma mapping with chroma scaling (LMCS) (i.e., adaptive in-loop reshaping) is added. This process is performed before deblocking filtering. In another example, the deblocking filtering process may also be applied to internal sub-block edges, such as affine sub-block edges, ATMVP sub-block edges, sub-block transform (SBT) edges, and intra sub-partition (ISP) edges. Figure 3 3. Although shown as an in-loop filter in FIG. 3, in other configurations, the loop filter unit 320 may be implemented as a post-loop filter.

[0202] Decode image buffer

[0203] The decoded video blocks 321 of the pictures are then stored in a decoded picture buffer 330 which stores decoded pictures 331 as reference pictures for subsequent motion compensation of other pictures and / or for output to a display, respectively.

[0204] The decoder 30 is used to output the decoded image 311 through an output terminal 312, etc., for display to a user or for viewing by the user.

[0205] predict

[0206] The function of the inter-frame prediction unit 344 can be the same as the inter-frame prediction unit 244 (specifically the motion compensation unit), and the intra-frame prediction unit 354 can be the same as the inter-frame prediction unit 254 in function, and performs division or segmentation and performs prediction according to the segmentation and / or prediction parameters or corresponding information received from the encoded image data 21 (for example, parsed and / or decoded by the entropy decoding unit 304, etc.). The mode application unit 360 can be used to perform prediction (intra-frame prediction or inter-frame prediction) on each block according to the reconstructed image, block or corresponding sample (filtered or unfiltered), and obtain a prediction block 365.

[0207] When the video slice is decoded as an intra-coded (I) slice, the intra-prediction unit 354 in the mode application unit 360 is used to generate a prediction block 365 for the image block of the current video slice based on the indicated intra-prediction mode and data from a previously decoded block of the current image. When the video image is decoded as an inter-coded (i.e., B or P) slice, the inter-prediction unit 344 (e.g., motion compensation unit) of the mode application unit 360 is used to generate the prediction block 365 for the video block of the current video slice based on the motion vector and other syntax elements received from the entropy decoding unit 304. For inter-prediction, these prediction blocks can be generated based on one of the reference pictures in one of the reference picture lists. The video decoder 30 can construct the reference frame lists: List 0 and List 1 using a default construction technique based on the reference pictures stored in the DPB 330. The same or similar processes may be applied to or by embodiments that use partition groups (e.g., video partition groups) and / or partitions (e.g., video partitions) in addition to or as an alternative to slices (e.g., video slices), for example, video may be decoded using I, P, or B partition groups and / or partitions.

[0208] The mode application unit 360 is used to determine prediction information for video blocks of the current video slice by parsing motion vectors or related information and other syntax elements, and use the prediction information to generate a prediction block for the current video block being decoded. For example, the mode application unit 360 uses some of the received syntax elements to determine the prediction mode (e.g., intra prediction or inter prediction) for decoding the video blocks of the video slice, the inter prediction slice type (e.g., B slice, P slice, or GPB slice), the construction information of one or more reference picture lists for the slice, the motion vector for each inter-coded video block of the slice, the inter prediction state for each inter-coded video block of the slice, and other information to decode the video blocks in the current video slice. In addition to slices (e.g., video slices) or as an alternative to slices, the same or similar process can be applied to or by embodiments using block groups (e.g., video block groups) and / or blocks (e.g., video blocks), for example, I, P or B block groups and / or blocks can be used to decode video.

[0209] Figure 3 The illustrated embodiment of the video decoder 30 may be used to segment and / or decode an image using slices (also referred to as video slices), wherein an image may be segmented or decoded using one or more slices (typically non-overlapping). Each slice may include one or more blocks (e.g., CTUs) or one or more groups of blocks (e.g., partitions (H.265 / HEVC and VVC) or bricks (VVC)).

[0210] Figure 3 The illustrated embodiment of the video decoder 30 may be used to segment and / or decode an image using slice / block groups (also referred to as video block groups) and / or blocks (also referred to as video blocks), wherein one or more slice / block groups (usually non-overlapping) may be used to segment or decode an image. Each slice / block group may include one or more blocks (e.g., CTUs) or one or more blocks, etc., wherein each block may be rectangular or other shaped, and may include one or more blocks (e.g., CTUs), such as complete or partial blocks.

[0211] Other forms of video decoders 30 may be used to decode the encoded image data 21. For example, the decoder 30 may generate an output video stream without the loop filter unit 320. For example, a non-transform based decoder 30 may directly inverse quantize the residual signal without the inverse transform processing unit 312 for certain blocks or frames. In another implementation, the video decoder 30 may have the inverse quantization unit 310 and the inverse transform processing unit 312 combined into a single unit.

[0212] It should be understood that the processing result of the current step can be further processed in the encoder 20 and the decoder 30 and then output to the next step. For example, after interpolation filtering, motion vector derivation or loop filtering, the processing result of interpolation filtering, motion vector derivation or loop filtering can be further operated, such as clipping or shifting.

[0213] It should be noted that the derived motion vector of the current block (including but not limited to the control point motion vector of the affine mode, the sub-block motion vector of the affine mode, the plane mode, the ATMVP mode, the temporal motion vector, etc.) can be further operated. For example, the value of the motion vector is limited to a predefined range according to the representation bit of the motion vector. If the representation bit of the motion vector is bitDepth, the range is –2^(bitDepth–1) to 2^(bitDepth–1)–1, where “^” represents a power. For example, if bitDepth is set to 16, the range is –32768 to 32767; if bitDepth is set to 18, the range is –131072 to 131071. For example, the value of the derived motion vector (e.g., the MV of 4 4×4 sub-blocks in an 8×8 block) is limited so that the maximum difference between the integer parts of the MVs of the 4 4×4 sub-blocks does not exceed N pixels, for example, not more than 1 pixel. Two methods of limiting motion vectors according to bitDepth are provided here.

[0214] Figure 4 Schematic diagram of a video decoding device 400 provided in an embodiment of the present invention. The video decoding device 400 is suitable for implementing the disclosed embodiments described herein. In one embodiment, the video decoding device 400 may be a decoder (e.g. Figure 1A A video decoder 30) or an encoder (such as Figure 1A video encoder 20).

[0215] The video decoding device 400 includes: an input port 410 (or input port 410) and a receiving unit (Rx) 420 for receiving data; a processor, a logic unit or a central processing unit (CPU) 430 for processing data; a transmitting unit (Tx) 440 and an output port 450 (or output port 450) for transmitting data; and a memory 460 for storing data. The video decoding device 400 may also include an optical-to-electrical (OE) component and an electrical-to-optical (EO) component coupled to the input port 410, the receiving unit 420, the transmitting unit 440 and the output port 450 for inputting and outputting optical signals or electrical signals.

[0216] The processor 430 is implemented by hardware and software. The processor 430 can be implemented as one or more CPU chips, cores (e.g., multi-core processors), FPGAs, ASICs, and DSPs. The processor 430 communicates with the input port 410, the receiving unit 420, the sending unit 440, the output port 450, and the memory 460. The processor 430 includes a decoding module 470. The decoding module 470 implements the disclosed embodiments described above. For example, the decoding module 470 performs, processes, prepares, or provides various decoding operations. Therefore, the inclusion of the decoding module 470 significantly improves the function of the video decoding device 400 and realizes the conversion of different states of the video decoding device 400. Alternatively, the decoding module 470 is implemented by instructions stored in the memory 460 and executed by the processor 430.

[0217] The memory 460 includes one or more disks, tape drives, and solid-state hard disks, and can be used as an overflow data storage device for storing such programs when such programs are selected for execution, and for storing instructions and data read during program execution. For example, the memory 460 can be volatile and / or non-volatile, and can be a read-only memory (ROM), a random access memory (RAM), a ternary content-addressable memory (TCAM), and / or a static random-access memory (SRAM).

[0218] Figure 5 A simplified block diagram of an apparatus 500 is provided for an exemplary embodiment, and the apparatus 500 may be used as Figure 1A Either or both of the source device 12 and the destination device 14 in .

[0219] The processor 502 in the apparatus 500 may be a central processing unit. Alternatively, the processor 502 may be any other type of device or devices that are currently available or will be developed in the future and are capable of manipulating or processing information. Figure 5 A single processor, such as processor 502, is shown to implement the disclosed implementations, but using more than one processor may increase speed and efficiency.

[0220] In one implementation, the memory 504 in the apparatus 500 may be a read only memory (ROM) device or a random access memory (RAM) device. Any other suitable type of storage device may be used as the memory 504. The memory 504 may include code and data 506 accessed by the processor 502 via a bus 512. The memory 504 may also include an operating system 508 and an application 510, wherein the application 510 includes at least one program that supports the processor 502 to perform the methods described herein. For example, the application 510 may include applications 1 to N, and may also include a video decoding application that performs the methods described herein.

[0221] The apparatus 500 may also include one or more output devices, such as a display 518. In one example, the display 518 may be a touch-sensitive display that combines a display with a touch-sensitive element that can be used to sense touch input. The display 518 may be coupled to the processor 502 via the bus 512.

[0222] Although the bus 512 of the device 500 is described herein as a single bus, the bus 512 may include multiple buses. In addition, the auxiliary memory 514 may be directly coupled to other components of the device 500 or may be accessed through a network, and may include a single integrated unit (e.g., one memory card) or multiple units (e.g., multiple memory cards). Therefore, the device 500 may be implemented in a variety of configurations.

[0223] Adaptive Coding

[0224] Adaptive coding, including quality adaptability (PSNR adaptability), spatial adaptability, etc. For example, Figure 6 As shown, the sequence can be downsampled to a low spatial resolution version. Both the low spatial resolution version and the original spatial resolution (high spatial resolution) version must be encoded. And usually, the low spatial resolution will be encoded first and provide a reference for the high spatial resolution encoded later.

[0225] In order to describe the information of the layer (number, relevance, output), there is a video parameterset (VPS), which is defined as follows:

[0226]

[0227] vps_max_layers_minus1 plus 1 represents the maximum allowed number of layers for the reference VPS in each CVS.

[0228] vps_all_independent_layers_flag equal to 1 indicates that all layers in the CVS are independently coded without using inter-layer prediction. vps_all_independent_layers_flag equal to 0 indicates that one or more layers in the CVS can use inter-layer prediction. When vps_all_independent_layers_flag is not present, the value of vps_all_independent_layers_flag is inferred to be equal to 1. When vps_all_independent_layers_flag is equal to 1, the value of vps_independent_layer_flag[i] is inferred to be equal to 1. When vps_all_independent_layers_flag is equal to 0, the value of vps_independent_layer_flag[0] is inferred to be equal to 1.

[0229] vps_layer_id[i] represents the nuh_layer_id value of layer i. For any two non-negative integer values ​​of m and n, when m is less than n, the value of vps_layer_id[m] shall be less than the value of vps_layer_id[n].

[0230] vps_independent_layer_flag[i] is equal to 1, indicating that the layer with index i does not use inter-layer prediction. vps_independent_layer_flag[i] is equal to 0, indicating that the layer with index i can use inter-layer prediction, and vps_layer_dependency_flag[i] exists in VPS.

[0231] vps_direct_dependency_flag[i][j] equal to 0 indicates that the layer with index j is not a direct reference layer of the layer with index i. vps_direct_dependency_flag[i][j] equal to 1 indicates that the layer with index j is a direct reference layer of the layer with index i. When vps_direct_dependency_flag[i][j] is not present (where i and j are in the range of 0 to vps_max_layers_minus1, inclusive), it is inferred to be equal to 0.

[0232] The variable DirectDependentLayerIdx[i][j] represents the jth directly related layer of the i-th layer, and is derived as follows:

[0233]

[0234] The variable GeneralLayerIdx[i] represents the layer index of the layer whose nuh_layer_id is equal to vps_layer_id[i], and is derived as follows:

[0235] for(i=0;i<=vps_max_layers_minus1;i++) (7-3)

[0236] GeneralLayerIdx[vps_layer_id[i]]=i

[0237] A brief description is as follows:

[0238] vps_max_layers_minus1 plus 1 indicates the number of layers.

[0239] vps_all_independent_layers_flag indicates whether all layers are independently coded.

[0240] vps_layer_id[i] indicates the layer ID of the i-th layer.

[0241] vps_independent_layer_flag[i] indicates whether the i-th layer is independently coded.

[0242] vps_direct_dependency_flag[i][j] indicates whether the j-th layer is used for reference of the i-th layer.

[0243] DPB management and reference image identification

[0244] In order to manage these reference images during the decoding process, the decoded images need to be saved in the decoding picture buffer (DPB) for reference in subsequent image decoding. In order to represent these images, their picture order count (POC) information needs to be indicated directly or indirectly in the slice header. Usually, there are two reference image lists, list 0 and list 1. In addition, a reference image index needs to be included to indicate the image in the list. For unidirectional prediction, the reference image is extracted from one reference image list, and for bidirectional prediction, the reference image is extracted from two reference image lists.

[0245] All reference pictures are stored in the DPB. All pictures in the DPB are identified as "used for long-term reference", "used for short-term reference" or "not used for reference", but only one of the three identification states can be identified. Once a picture is identified as "not used for reference", it will no longer be used for reference. If the picture does not need to be stored for output, it can be deleted from the DPB. The status of the reference picture can be indicated in the slice header or derived from the slice header information.

[0246] A new reference picture management method is proposed, called the reference picture list (RPL) method. RPL proposes one or more complete reference picture sets for the current coded picture, and the reference pictures in the reference picture set are used for decoding the current picture or future (later or later) pictures. Therefore, RPL reflects the picture information in DPB, even if the reference picture is not used for reference of the current picture, if the reference picture is used for reference of subsequent pictures, it needs to be stored in RPL.

[0247] After the image is reconstructed, it is stored in the DPB and marked as "for short-term reference" by default. The DPB management operation will start after parsing the RPL information in the slice header.

[0248] Reference image list construction

[0249] Reference picture information can be indicated by a slice header. In addition, there may be some RPL candidates in a sequence parameter set (SPS), in which case the slice header may include a RPL index to obtain the required RPL information without indicating the entire RPL syntax structure. Alternatively, the entire RPL syntax structure may be indicated in the slice header.

[0250] Overview of the RPL approach.

[0251] In order to save the cost bit of RPL indication, there may be some RPL candidates in SPS. The picture can use the RPL index (ref_pic_list_idx[i]) to get its RPL information from SPS. The RPL candidate indication is as follows:

[0252]

[0253]

[0254] The semantics are as follows:

[0255] rpl1_same_as_rpl0_flag equal to 1 indicates that the syntax structures num_ref_pic_lists_in_sps[1] and ref_pic_list_struct(1,rplsIdx) do not exist and the following apply:

[0256] - The value of num_ref_pic_lists_in_sps[1] is inferred to be equal to the value of num_ref_pic_lists_in_sps[0].

[0257] - The value of each syntax element in ref_pic_list_struct(1,rplsIdx) is inferred to be equal to the value of the corresponding syntax element in ref_pic_list_struct(0,rplsIdx), where rplsIdx is in the range of 0 to num_ref_pic_lists_in_sps[0]–1.

[0258] num_ref_pic_lists_in_sps[i] indicates the number of syntax structures ref_pic_list_struct(listIdx, rplsIdx) with listIdx equal to i included in the SPS. The value of num_ref_pic_lists_in_sps[i] shall be in the range of 0 to 64 (inclusive).

[0259] In addition to obtaining RPL information according to the RPL index of the SPS, RPL information can also be indicated in the stripe header.

[0260]

[0261] ref_pic_list_sps_flag[i] equal to 1 indicates that the reference picture list i of the current slice is derived from one of the syntax structures ref_pic_list_struct(listIdx, rplsIdx) with listIdx equal to i in the SPS. ref_pic_list_sps_flag[i] equal to 0 indicates that the reference picture list i of the current slice is derived from the syntax structure ref_pic_list_struct(listIdx, rplsIdx) with listIdx equal to i directly included in the slice header of the current picture.

[0262] When ref_pic_list_sps_flag[i] is not present, the following applies:

[0263] – If num_ref_pic_lists_in_sps[i] is equal to 0, the value of ref_pic_list_sps_flag[i] is inferred to be equal to 0.

[0264] – Otherwise (num_ref_pic_lists_in_sps[i] is greater than 0), if rpl1_idx_present_flag is equal to 0, the value of ref_pic_list_sps_flag[1] is inferred to be equal to the value of ref_pic_list_sps_flag[0].

[0265] – Otherwise, the value of ref_pic_list_sps_flag[i] is inferred to be equal to pps_ref_pic_list_sps_idc[i]–1.

[0266] ref_pic_list_idx[i] represents the index of the syntax structure ref_pic_list_struct(listIdx,rplsIdx) with listIdx equal to i for deriving the reference picture list i of the current picture to the list of syntax structures ref_pic_list_struct(listIdx,rplsIdx) with listIdx equal to i included in the SPS. The syntax element ref_pic_list_idx[i] is represented by Ceil(Log2(num_ref_pic_lists_in_sps[i])) bits. When ref_pic_list_idx[i] does not exist, the value of ref_pic_list_idx[i] is inferred to be equal to 0. The value of ref_pic_list_idx[i] should be in the range of 0 to num_ref_pic_lists_in_sps[i]–1 (including the end value). When ref_pic_list_sps_flag[i] is equal to 1 and num_ref_pic_lists_in_sps[i] is equal to 1, the value of ref_pic_list_idx[i] is inferred to be equal to 0. When ref_pic_list_sps_flag[i] is equal to 1 and rpl1_idx_present_flag is equal to 0, the value of ref_pic_list_idx[1] is inferred to be equal to the value of ref_pic_list_idx[0].

[0267] The variable RplsIdx[i] is derived as follows:

[0268] RplsIdx[i]=ref_pic_list_sps_flag[i]? ref_pic_list_idx[i]:num_ref_pic_lists_in_sps[i] (7-95)

[0269] slice_poc_lsb_lt[i][j] represents the picture order number of the j-th LTRP entry in the i-th reference picture list modulo the value of MaxPicOrderCntLsb. The length of the syntax element slice_poc_lsb_lt[i][j] is log2_max_pic_order_cnt_lsb_minus4+4 bits.

[0270] The variable PocLsbLt[i][j] is derived as follows:

[0271] PocLsbLt[i][j]=ltrp_in_slice_header_flag[i][RplsIdx[i]]? (7-96)

[0272] slice_poc_lsb_lt[i][j]:rpls_poc_lsb_lt[listIdx][RplsIdx[i]][j]

[0273] delta_poc_msb_present_flag[i][j] is equal to 1, indicating that delta_poc_msb_cycle_lt[i][j] is present. delta_poc_msb_present_flag[i][j] is equal to 0, indicating that delta_poc_msb_cycle_lt[i][j] is not present.

[0274] Let prevTid0Pic be the previous picture in decoding order that has the same nuh_layer_id as the current picture, has TemporalId equal to 0, and is not a RASL or RADL picture. Let setOfPrevPocVals be a set consisting of:

[0275] –PicOrderCntVal of prevTid0Pic,

[0276] – PicOrderCntVal for each picture that is referenced by an entry in RefPicList[0] or RefPicList[1] of prevTid0Pic and that has the same nuh_layer_id as the current picture,

[0277] – PicOrderCntVal of each picture that follows prevTid0Pic in decoding order and has the same nuh_layer_id as the current picture and precedes the current picture in decoding order.

[0278] When there are multiple values ​​in setOfPrevPocVals whose values ​​modulo MaxPicOrderCntLsb are equal to PocLsbLt[i][j], the value of delta_poc_msb_present_flag[i][j] shall be equal to 1.

[0279] delta_poc_msb_cycle_lt[i][j] represents the value of the variable FullPocLt[i][j], as shown below:

[0280]

[0281] The value of delta_poc_msb_cycle_lt[i][j] shall be between 0 and 2. (32–log2_max_pic_order_cnt_lsb_minus4–4) When delta_poc_msb_cycle_lt[i][j] does not exist, the value of delta_poc_msb_cycle_lt[i][j] is inferred to be equal to 0.

[0282] The grammatical structure of RPL is as follows:

[0283]

[0284]

[0285] num_ref_entries[listIdx][rplsIdx] indicates the number of entries in the syntax structure ref_pic_list_struct(listIdx, rplsIdx). The value of num_ref_entries[listIdx][rplsIdx] shall be between 0 and sps_max_dec_pic_buffering_minus1+14 (inclusive).

[0286] ltrp_in_slice_header_flag[listIdx][rplsIdx] equal to 0 indicates that the POC LSB of the LTRP entry in the syntax structure ref_pic_list_struct(listIdx, rplsIdx) exists in the syntax structure ref_pic_list_struct(listIdx, rplsIdx). ltrp_in_slice_header_flag[listIdx][rplsIdx] equal to 1 indicates that the POC LSB of the LTRP entry in the syntax structure ref_pic_list_struct(listIdx, rplsIdx) does not exist in the syntax structure ref_pic_list_struct(listIdx, rplsIdx).

[0287] inter_layer_ref_pic_flag[listIdx][rplsIdx][i] equal to 1 indicates that the i-th entry in the syntax structure ref_pic_list_struct(listIdx, rplsIdx) is an ILRP entry. inter_layer_ref_pic_flag[listIdx][rplsIdx][i] equal to 0 indicates that the i-th entry in the syntax structure ref_pic_list_struct(listIdx, rplsIdx) is not an ILRP entry. When inter_layer_ref_pic_flag[listIdx][rplsIdx][i] is not present, the value of inter_layer_ref_pic_flag[listIdx][rplsIdx][i] is inferred to be equal to 0.

[0288] st_ref_pic_flag[listIdx][rplsIdx][i] equal to 1 indicates that the i-th entry in the syntax structure ref_pic_list_struct(listIdx, rplsIdx) is a STRP entry. st_ref_pic_flag[listIdx][rplsIdx][i] equal to 0 indicates that the i-th entry in the syntax structure ref_pic_list_struct(listIdx, rplsIdx) is a LTRP entry. When inter_layer_ref_pic_flag[listIdx][rplsIdx][i] is equal to 0 and st_ref_pic_flag[listIdx][rplsIdx][i] is not present, the value of st_ref_pic_flag[listIdx][rplsIdx][i] is inferred to be equal to 1.

[0289] The variable NumLtrpEntries[listIdx][rplsIdx] is derived as follows:

[0290] for(i=0,NumLtrpEntries[listIdx][rplsIdx]=0; i <num_ref_entries[listIdx][rplsIdx];i++)

[0291] if(!inter_layer_ref_pic_flag[listIdx][rplsIdx][i]&&!st_ref_pic_flag[listIdx][rplsIdx][i])

[0292] (7-120)

[0293] NumLtrpEntries[listIdx][rplsIdx]++

[0294] abs_delta_poc_st[listIdx][rplsIdx][i] represents the value of the variable AbsDeltaPocSt[listIdx][rplsIdx][i], as shown below:

[0295]

[0296] The value of abs_delta_poc_st[listIdx][rplsIdx][i] should be between 0 and 2. 15 The value is in the range of –1 (inclusive).

[0297] strp_entry_sign_flag[listIdx][rplsIdx][i] equal to 1 indicates that the value of the i-th entry in the syntax structure ref_pic_list_struct(listIdx, rplsIdx) is greater than or equal to 0. strp_entry_sign_flag[listIdx][rplsIdx][i] equal to 0 indicates that the value of the i-th entry in the syntax structure ref_pic_list_struct(listIdx, rplsIdx) is less than 0. When strp_entry_sign_flag[listIdx][rplsIdx][i] is not present, the value of strp_entry_sign_flag[listIdx][rplsIdx][i] is inferred to be equal to 1.

[0298] The list DeltaPocValSt[listIdx][rplsIdx] is derived as follows:

[0299]

[0300] rpls_poc_lsb_lt[listIdx][rplsIdx][i] represents the value of the picture order number modulo MaxPicOrderCntLsb of the picture referenced by the i-th entry in the syntax structure ref_pic_list_struct(listIdx, rplsIdx). The length of the syntax element rpls_poc_lsb_lt[listIdx][rplsIdx][i] is log2_max_pic_order_cnt_lsb_minus4+4 bits.

[0301] Some general description about the RPL structure.

[0302] Each list has an RPL structure. First, num_ref_entries[listIdx][rplsIdx] is indicated to indicate the number of reference images in the list. ltrp_in_slice_header_flag[listIdx][rplsIdx] is used to indicate whether the least significant bit (LSB) information is indicated in the slice header. If the current reference image is not an inter-layer reference image, st_ref_pic_flag[listIdx][rplsIdx][i] is used to indicate whether it is a long-term reference image. If it is a short-term reference image, POC information (abs_delta_poc_st and strp_entry_sign_flag) is indicated. If ltrp_in_slice_header_flag[listIdx][rplsIdx] is zero, rpls_poc_lsb_lt[listIdx][rplsIdx][j++] is used to derive the LSB information of the current reference image. The most significant bit (MSB) can be derived directly or based on the information in the slice header (delta_poc_msb_present_flag[i][j] and delta_poc_msb_cycle_lt[i][j]).

[0303] Decoding process for reference picture list construction

[0304] This procedure is called at the beginning of the decoding process for each slice in a non-IDR picture.

[0305] Reference pictures are addressed by reference indices. A reference index is an index into a reference picture list. When decoding an I slice, the reference picture list is not used to decode the slice data. When decoding a P slice, only reference picture list 0 (i.e., RefPicList[0]) is used to decode the slice data. When decoding a B slice, both reference picture list 0 and reference picture list 1 (i.e., RefPicList[1]) are used to decode the slice data.

[0306] At the beginning of the decoding process for each slice in a non-IDR picture, reference picture lists RefPicList[0] and RefPicList[1] are derived. Reference picture lists are used to identify reference pictures or decoded slice data as specified in clause 8.3.3.

[0307] NOTE 1 – If the I slice in a non-IDR picture is not the first slice in the picture, then RefPicList[0] and RefPicList[1] may be derived for codestream conformance checking, but RefPicList[0] and RefPicList[1] are not necessarily required for decoding the current picture or pictures that follow the current picture in decoding order. If the P slice is not the first slice in the picture, then RefPicList[1] may be derived for codestream conformance checking, but RefPicList[1] is not necessarily required for decoding the current picture or pictures that follow the current picture in decoding order.

[0308] The reference picture lists RefPicList[0] and RefPicList[1] are constructed as follows:

[0309]

[0310]

[0311] After building RPL, refPicLayerId is the layer id of ILRP, PicOrderCntVal is the POC value of picA, and the identification process is as follows.

[0312] Decoding process for reference image identification

[0313] This process is called once per picture after the decoding process of the slice header and reconstruction of the reference picture list for the slice as specified in clause 8.3.2, but before decoding the slice data. This process may result in one or more reference pictures in the DPB being identified as "not used for reference" or "used for long-term reference".

[0314] A decoded picture in the DPB can be marked as "not used for reference", "used for short-term reference", or "used for long-term reference", but at any given moment in the decoding process, only one of these three identification states can be identified. Assigning one of these identification states to a picture implicitly deletes the other identification states (if applicable). When a picture is marked as "used for reference", this uniformly refers to marking the picture as "used for short-term reference" or "used for long-term reference" (but not both at the same time).

[0315] STRP and ILRP are identified by their nuh_layer_id and PicOrderCntVal values. LTRP is identified by its nuh_layer_id value and Log2(MaxLtPicOrderCntLsb)LSB of its PicOrderCntVal value.

[0316] If the current picture is a CLVSS picture, all reference pictures (if any) currently in the DPB that have the same nuh_layer_id as the current picture will be marked as "unused for reference".

[0317] Otherwise, the following applies:

[0318] – For each LTRP entry in RefPicList[0] or RefPicList[1], identify the picture as “used for long-term reference” when the referenced picture is a STRP with the same nuh_layer_id as the current picture.

[0319] – Each reference picture with the same nuh_layer_id as the current picture in the DPB, which is not referenced by any entry in RefPicList[0] or RefPicList[1], shall be marked as “unused for reference”.

[0320] – For each ILRP entry in RefPicList[0] or RefPicList[1], identify the referenced picture as “used for long-term reference”.

[0321] It should be noted that the inter-layer reference picture (ILRP) is marked as "used for long-term reference." There are two syntaxes related to inter-layer reference information in SPS.

[0322]

[0323] sps_video_parameter_set_id greater than 0 indicates the value of vps_video_parameter_set_id of the VPS referenced by the SPS. When sps_video_parameter_set_id is equal to 0, the SPS does not reference the VPS, and does not reference the VPS when decoding each CVS that references the SPS.

[0324] long_term_ref_pics_flag equal to 0 indicates that LTRP is not used for inter-frame prediction of any coded picture in the CVS. long_term_ref_pics_flag equal to 1 indicates that LTRP may be used for inter-frame prediction of one or more coded pictures in the CVS.

[0325] inter_layer_ref_pics_present_flag equal to 0 indicates that ILRP is not used for inter prediction of any coded picture in the CVS. inter_layer_ref_pics_flag equal to 1 indicates that ILRP may be used for inter prediction of one or more coded pictures in the CVS. When sps_video_parameter_set_id is equal to 0, the value of inter_layer_ref_pics_present_flag is inferred to be equal to 0.

[0326] A brief description is as follows:

[0327] long_term_ref_pics_flag is used to indicate whether LTRP can be used during decoding.

[0328] inter_layer_ref_pics_present_flag is used to indicate whether ILRP can be used during decoding.

[0329] Therefore, when inter_layer_ref_pics_present_flag is equal to 1, an ILRP may be present for the decoding process and identified as "used for long-term reference". In this case, the LTRP is used in the decoding process even if long_term_ref_pics_flag is equal to 0. Therefore, the semantics with long_term_ref_pics_flag are inconsistent.

[0330] In the existing method, some syntax elements of inter-layer reference information are always indicated, regardless of the index of the current layer. The present invention proposes to add some conditions in the syntax elements to improve the indication efficiency.

[0331] Since long_term_ref_pics_flag is only used to control the parsing of ltrp_in_slice_header_flag and st_ref_pic_flag, the semantics are modified to control the parsing of flags parsed in the RPL.

[0332] The syntax element indicating the inter-layer reference information is considered to be the index of the current layer. If the information can be derived from the index of the current layer, no indication information is needed.

[0333] Since long_term_ref_pics_flag is only used to control the parsing of ltrp_in_slice_header_flag and st_ref_pic_flag, the semantics are modified to control the parsing of flags parsed in the RPL.

[0334] The syntax element indicating the inter-layer reference information is considered to be the index of the current layer. If the information can be derived from the index of the current layer, no indication information is needed.

[0335] The present invention First embodiment [Semantics] (Modify the semantics of long_term_ref_pics_flag to eliminate the inconsistency between LTRP and ILRP.)

[0336] Since long_term_ref_pics_flag is only used to control the parsing of ltrp_in_slice_header_flag and st_ref_pic_flag, the semantics are modified as follows:

[0337] long_term_ref_pics_flag equal to 1 indicates that ltrp_in_slice_header_flag and st_ref_pic_flag are present in the syntax structure ref_pic_list_struct(listIdx, rplsIdx). long_term_ref_pics_flag equal to 0 indicates that these syntax elements are not present in the syntax structure ref_pic_list_struct(listIdx, rplsIdx).

[0338] Additionally, the semantics can be modified to exclude ILRP as follows:

[0339] long_term_ref_pics_flag equal to 0 indicates that LTRP is not used for inter-frame prediction of any coded picture in CVS. long_term_ref_pics_flag equal to 1 indicates that LTRP can be used for inter-frame prediction of one or more coded pictures in CVS. Here, LTRP does not include inter-layer reference picture (ILRP).

[0340] The present invention Second Example [VPS]

[0341] Proposal 1: Conditionally indicate vps_direct_dependency_flag[i][j] (consider the current layer index indicating inter-layer reference information to remove redundant information indication and improve decoding efficiency.)

[0342] Option 1.A:

[0343] It should be noted here that when i is equal to 1, this means that layer 1 needs to refer to other layers. Only layer 0 can be a reference layer, so there is no need to indicate vps_direct_dependency_flag[i][j]. Only when i is greater than 1, vps_direct_dependency_flag[i][j] needs to be indicated.

[0344]

[0345] vps_direct_dependency_flag[i][j] equal to 0 indicates that the layer with index j is not the direct reference layer of the layer with index i. vps_direct_dependency_flag[i][j] equal to 1 indicates that the layer with index j is the direct reference layer of the layer with index i. When vps_direct_dependency_flag[i][j] is not present (where i and j are in the range of 0 to vps_max_layers_minus1, inclusive), if i is equal to 1 and vps_independent_layer_flag[i] is equal to 0, vps_direct_dependency_flag[i][j] is inferred to be equal to 1, otherwise it is inferred to be equal to 0.

[0346] Option 1.B:

[0347] In addition to the above implementation method (Option 1.A), there is another method Option 1.B, which means that when vps_independent_layer_flag[i] is equal to 0 (where i and j are in the range of 0 to i–1, inclusive), and when all values ​​of vps_direct_dependency_flag[i][j] are equal to 0 (where j is in the range of 0 to i–2), the value of vps_direct_dependency_flag[i][i–1] does not need to be indicated, and it is inferred to be equal to 1.

[0348]

[0349]

[0350] vps_direct_dependency_flag[i][j] equal to 0 indicates that the layer with index j is not the direct reference layer of the layer with index i. vps_direct_dependency_flag[i][j] equal to 1 indicates that the layer with index j is the direct reference layer of the layer with index i. When vps_direct_dependency_flag[i][j] is not present (where i and j are in the range of 0 to vps_max_layers_minus1, inclusive), if vps_independent_layer_flag[i] is equal to 0, and j is equal to i–1, and the value of SumDependencyFlag is equal to 0, then vps_direct_dependency_flag[i][j] is inferred to be equal to 1, otherwise it is inferred to be equal to 0.

[0351] Proposal 2: Constrain the semantics of vps_direct_dependency_flag[i][j]

[0352] In addition, we can also add constraints to the semantics of vps_direct_dependency_flag[i][j] without changing the syntax indication method or syntax table. Basically, for i, if the layer with index i is a dependent layer (vps_independent_layer_flag[i] is equal to 0), at least one value of vps_direct_dependency_flag[i][j] is equal to 1, where j is in the range of 0 to i–1. Alternatively, the sum of vps_direct_dependency_flag[i][j] should not be equal to 0, where j is in the range of 0 to i–1. Alternatively, it should be greater than or equal to 1. (For example, >= 1). Alternatively, it should be greater than 0 (for example, > 0).

[0353] Option 2.A:

[0354] vps_direct_dependency_flag[i][j] equal to 0 indicates that the layer with index j is not the direct reference layer of the layer with index i. vps_direct_dependency_flag[i][j] equal to 1 indicates that the layer with index j is the direct reference layer of the layer with index i. When vps_direct_dependency_flag[i][j] is not present (where i and j are in the range of 0 to vps_max_layers_minus1, inclusive), it is inferred to be equal to 0. Here, when vps_independent_layer_flag[i] is equal to 0 (where i and j are in the range of 0 to i–1, inclusive), the sum of vps_direct_dependency_flag[i][j] shall be greater than 0.

[0355] Option 2.B:

[0356] vps_direct_dependency_flag[i][j] equal to 0 indicates that the layer with index j is not a direct reference layer of the layer with index i. vps_direct_dependency_flag[i][j] equal to 1 indicates that the layer with index j is a direct reference layer of the layer with index i. When vps_direct_dependency_flag[i][j] is not present (where i and j are in the range of 0 to vps_max_layers_minus1, inclusive), it is inferred to be equal to 0. Here, when vps_independent_layer_flag[i] is equal to 0 (where i and j are in the range of 0 to i–1, inclusive), at least one value of vps_direct_dependency_flag[i][j] shall be equal to 1.

[0357] Proposal 3: Proposal 1 + Proposal 2

[0358] Option 3

[0359] In fact, Option 1 and Option 2 can be combined into other implementation methods.

[0360] Such as operation 1.B + operation 2.B.

[0361]

[0362] vps_direct_dependency_flag[i][j] equal to 0 indicates that the layer with index j is not the direct reference layer of the layer with index i. vps_direct_dependency_flag[i][j] equal to 1 indicates that the layer with index j is the direct reference layer of the layer with index i. When vps_direct_dependency_flag[i][j] is not present (where i and j are in the range of 0 to vps_max_layers_minus1, inclusive), if vps_independent_layer_flag[i] is equal to 0, and j is equal to i–1, and the value of SumDependencyFlag is equal to 0, then vps_direct_dependency_flag[i][j] is inferred to be equal to 1, otherwise it is inferred to be equal to 0. Here, when vps_independent_layer_flag[i] is equal to 0 (where i and j are in the range of 0 to i–1, inclusive), at least one value of vps_direct_dependency_flag[i][j] shall be equal to 1.

[0363] There is no restriction on the combination method, and it can also be:

[0364] Such as operation 1.A + operation 2.B.

[0365] Such as operation 1.A + operation 2.A.

[0366] Such as operation 1.B + operation 2.A.

[0367] The present invention The third embodiment of [sps] (considering the index of the current layer, indicating the inter-layer reference information, so as to remove the redundant information indication and improve the decoding efficiency.)

[0368] It should be noted here that if sps_video_parameter_set_id is equal to 0, it means that there are no multiple layers, so there is no need to indicate inter_layer_ref_pics_flag, and the flag defaults to 0.

[0369]

[0370]

[0371] inter_layer_ref_pics_present_flag equal to 0 indicates that ILRP is not used for inter prediction of any coded picture in the CVS. inter_layer_ref_pics_flag equal to 1 indicates that ILRP may be used for inter prediction of one or more coded pictures in the CVS. When inter_layer_ref_pics_flag is not present, inter_layer_ref_pics_flag is inferred to be equal to 0.

[0372] It should be noted here that when GeneralLayerIdx[nuh_layer_id] is equal to 0, the current layer is layer 0 and it cannot refer to any other layer. Therefore, there is no need to indicate inter_layer_ref_pics_present_flag, and the value defaults to 0.

[0373]

[0374] inter_layer_ref_pics_present_flag equal to 0 indicates that ILRP is not used for inter prediction of any coded picture in the CVS. inter_layer_ref_pics_flag equal to 1 indicates that ILRP may be used for inter prediction of one or more coded pictures in the CVS. When inter_layer_ref_pics_flag is not present, inter_layer_ref_pics_flag is inferred to be equal to 0.

[0375] Decoding the two cases mentioned above, another application example is shown below:

[0376]

[0377]

[0378] inter_layer_ref_pics_present_flag equal to 0 indicates that ILRP is not used for inter prediction of any coded picture in the CVS. inter_layer_ref_pics_flag equal to 1 indicates that ILRP may be used for inter prediction of one or more coded pictures in the CVS. When inter_layer_ref_pics_flag is not present, inter_layer_ref_pics_flag is inferred to be equal to 0.

[0379] The present invention The fourth embodiment of [RPL]

[0380] It should be noted here that when GeneralLayerIdx[nuh_layer_id] is equal to 1, the current layer is layer 1, which can only refer to layer 0, and the ilrp_idc of layer 0 must be 0. Therefore, in this case, there is no need to indicate ilrp_idc.

[0381]

[0382]

[0383] ilrp_idc[listIdx][rplsIdx][i] represents the index of the ILRP pair directly associated layer list of the i-th entry in the syntax structure ref_pic_list_struct(listIdx,rplsIdx). The value of ilrp_idc[listIdx][rplsIdx][i] shall be in the range of 0 to GeneralLayerIdx[nuh_layer_id]–1, inclusive. When GeneralLayerIdx[nuh_layer_id] is equal to 1, the value of ilrp_idc[listIdx][rplsIdx][i] is inferred to be equal to 0.

[0384] The present invention The fifth embodiment [combination]

[0385] It should be noted here that part or all of Embodiments 1 to 4 may be combined to form a new embodiment.

[0386] For example, Example 1+Example 2+Example 3+Example 4, or Example 2+Example 3+Example 4, or other combinations.

[0387] The following explains the application of the encoding method and the decoding method shown in the above embodiments and the system using these applications.

[0388] Figure 7 31 is a block diagram of a content supply system for implementing a content distribution service. The content supply system includes a capture device 3102, a terminal device 3106, and optionally a display 3126. The capture device 3102 communicates with the terminal device 3106 via a communication link 3104. The communication link may include the communication channel 13 described above. The communication link 3104 includes, but is not limited to, Wi-Fi, Ethernet, wired, wireless (3G / 4G / 5G), USB, or any combination thereof.

[0389] Capture device 3102 is used to generate data, and data can be encoded by the coding method shown in the above embodiment. Alternatively, capture device 3102 can distribute data to a streaming media server (not shown in the figure), which encodes data and sends encoded data to terminal device 3106. Capture device 3102 includes but is not limited to a camera, a smart phone or a tablet computer, a computer or a notebook computer, a video conferencing system, a PDA, a vehicle-mounted device or any combination thereof. For example, capture device 3102 may include the above-mentioned source device 12. When data includes video, the video encoder 20 included in capture device 3102 can actually perform video encoding processing. When data includes audio (that is, sound), the audio encoder included in capture device 3102 can actually perform audio encoding processing. For some actual scenes, capture device 3102 distributes encoded video data and encoded audio data by multiplexing encoded video data and encoded audio data together. For other actual scenes, for example, in a video conferencing system, encoded audio data and encoded video data are not multiplexed. The capture device 3102 distributes the encoded audio data and the encoded video data to the terminal device 3106, respectively.

[0390] In the content supply system, the terminal device 310 receives and regenerates the encoded data. The terminal device 3106 can be a device with data receiving and recovery capabilities, such as a smart phone or tablet computer 3108, a computer or laptop computer 3110, a network video recorder (NVR) / digital video recorder (DVR) 3112, a television 3114, a set top box (STB) 3116, a video conferencing system 3118, a video surveillance system 3120, a personal digital assistant (PDA) 3122, a vehicle-mounted device 3124, or a combination of any of the above devices capable of decoding the above-mentioned encoded data. For example, the terminal device 3106 may include the destination device 14 described above. When the encoded data includes video, the video decoder 30 included in the terminal device prioritizes video decoding. When the encoded data includes audio, the audio decoder included in the terminal device prioritizes audio decoding processing.

[0391] For a terminal device with a display, such as a smartphone or tablet 3108, a computer or laptop 3110, a network video recorder (NVR) / digital video recorder (DVR) 3112, a television 3114, a personal digital assistant (PDA) 3122, or a vehicle-mounted device 3124, the terminal device can feed the decoded data to its display. For a terminal device without a display, such as an STB 3116, a video conferencing system 3118, or a video surveillance system 3120, an external display 3126 is connected therein to receive and display the decoded data.

[0392] When each device in the system performs encoding or decoding, the image encoding device or the image decoding device as shown in the above-mentioned embodiments can be used.

[0393] Figure 8 31 is a schematic diagram of an example structure of a terminal device 3106. After the terminal device 3106 receives the stream from the capture device 3102, the protocol processing unit 3202 analyzes the transmission protocol of the stream. The protocol includes but is not limited to real-time streaming protocol (RTSP), hypertext transfer protocol (HTTP), HTTP live streaming protocol (HLS), MPEG-DASH, real-time transport protocol (RTP), real-time messaging protocol (RTMP), or any combination thereof.

[0394] After the protocol processing unit 3202 processes the stream, a stream file is generated. The file is output to the demultiplexing unit 3204. The demultiplexing unit 3204 can separate the multiplexed data into encoded audio data and encoded video data. As mentioned above, in other actual scenes, for example, in a video conferencing system, the encoded audio data and the encoded video data are not multiplexed. In this case, the encoded data is not sent to the video decoder 3206 and the audio decoder 3208 by the demultiplexing unit 3204.

[0395] Through the demultiplexing process, a video elementary stream (ES), an audio ES, and optional subtitles are generated. The video decoder 3206, including the video decoder 30 explained in the above embodiment, decodes the video ES to generate a video frame by the decoding method shown in the above embodiment, and sends the data to the synchronization unit 3212. The audio decoder 3208 decodes the audio ES to generate an audio frame, and sends the data to the synchronization unit 3212. Alternatively, the video frame can be stored in a buffer ( Figure 8 Similarly, the audio frames may be stored in a buffer (not shown) before being fed to the synchronization unit 3212. Figure 8 (not shown).

[0396] The synchronization unit 3212 synchronizes the video frames and the audio frames and provides the video / audio to the video / audio display 3214. For example, the synchronization unit 3212 synchronizes the presentation of the video information and the audio information. The information may be coded in the syntax using timestamps related to the presentation of the coded audio and visual data and timestamps related to the transmission of the data stream itself.

[0397] If subtitles are included in the stream, the subtitle decoder 3210 decodes the subtitles, synchronizes the subtitles with the video frames and the audio frames, and provides the video / audio / subtitles to the video / audio / subtitle display 3216.

[0398] The present invention is not limited to the above-mentioned system, and the image encoding device or the image decoding device in the above-mentioned embodiments may be included in other systems such as automobile systems.

[0399] Mathematical operators

[0400] The mathematical operators used in this application are similar to those used in the C programming language. However, the results of integer division and arithmetic shift operations are more precisely defined, and other operations such as exponentiation and real-valued division are defined. Numbering and counting conventions generally start at 0, for example, "first" is equivalent to the 0th, "second" is equivalent to the 1st, and so on.

[0401] Arithmetic operators

[0402] Arithmetic operators are defined as follows:

[0403] + Addition

[0404] – Subtraction (as a two-argument operator) or negation (as a unary prefix operator)

[0405] * Multiplication operations, including matrix multiplication

[0406] xy Exponentiation. Expresses x raised to the power of y. In context, this may be used as a superscript rather than as a power.

[0407]

[0408] ÷ is used to represent division in mathematical equations without truncation or rounding.

[0409] Used to represent division in mathematical equations without truncation or rounding.

[0410] It is used to calculate the sum of f(i), where i takes all integer values ​​between x and y (inclusive).

[0411] x%y Modulo operation. The remainder when x is divided by y, where both x and y must be integers and x>=0 and y>0.

[0412] Logical operators

[0413] Logical operators are defined as follows:

[0414] x&&y Boolean logic "AND" operation of x and y

[0415] x||y Boolean logical "OR" operation of x and y

[0416] ! Boolean logic "not" operation

[0417] x? y:z If x is true (TRUE) or not equal to 0, it returns the value of y, otherwise it returns the value of z.

[0418] Relational operators

[0419] The relational operators are defined as follows:

[0420] > Greater than

[0421] >= greater than or equal to

[0422] < less than

[0423] <= less than or equal to

[0424] == is equal to

[0425] ! = Not equal to

[0426] When a relational operator is applied to a syntax element or variable that has been assigned the value "na" (not applicable), the value "na" is considered a different value for the syntax element or variable. The value "na" is considered not equal to any other value.

[0427] Bitwise Operators

[0428] Bitwise operators are defined as follows:

[0429] & Bitwise AND operation. When operating on integer arguments, the two's complement representation of the integer value is operated on. When operating on binary arguments, if it contains fewer bits than the other argument, the shorter argument is extended by adding more significant bits equal to 0.

[0430] | Bitwise OR operation. When operating on integer arguments, the two's complement representation of the integer value is operated on. When operating on binary arguments, if it contains fewer bits than the other argument, the shorter argument is extended by adding more significant bits equal to 0.

[0431] ^ Bitwise XOR operation. When operating on integer arguments, the two's complement representation of the integer value is operated on. When operating on binary arguments, if it contains fewer bits than the other argument, the shorter argument is extended by adding more significant bits equal to 0.

[0432] x >> y The two's complement integer representation of x is arithmetically shifted right by y binary bits. This function is defined only when y is a non-negative integer value. The value of the bit shifted into the most significant bit (MSB) due to the right shift is equal to the MSB of x before the shift operation.

[0433] x << y The two's complement integer representation of x is arithmetically shifted left by y binary bits. This function is defined only when y is a non-negative integer value. The value of the bit shifted into the least significant bit (LSB) due to the left shift is equal to 0.

[0434] Assignment operators

[0435] Arithmetic operators are defined as follows:

[0436] = Assignment operator

[0437] ++ Increment, i.e., x++ is equivalent to x = x + 1; when used in an array index, it is equal to the value of the variable before the increment operation.

[0438] –– Decrement, i.e., x–– is equal to x = x – 1; when used in an array index, it is equal to the value of the variable before the decrement operation.

[0439] += Increase by a specified amount, i.e., x += 3 is equivalent to x = x + 3, and x += (–3) is equivalent to x = x + (–3).

[0440] –= Decrease by a specified amount, i.e., x –= 3 is equivalent to x = x – 3, and x –= (–3) is equivalent to x = x – (–3).

[0441] Range Notation The following notation is used to indicate ranges of values:

[0442] x=y..zx takes integer values ​​from y to z (including y and z), where x, y and z are integers and z is greater than y.

[0443] Mathematical functions

[0444] The mathematical function is defined as follows:

[0445]

[0446] Asin(x) Trigonometric inverse sine function. For x in the range –1.0 to 1.0 (inclusive), the output value is in the range –π÷2 to π÷2 (inclusive) and is expressed in radians.

[0447] Atan(x) Trigonometric inverse tangent function. It operates on the parameter x and the output value is between –π÷2 and π÷2 (including the end values) in radians.

[0448]

[0449] Ceil(x) The smallest integer greater than or equal to x.

[0450] Clip1 Y (x)=Clip3(0,(1< <BitDepth Y )–1,x)

[0451] Clip1 C (x)=Clip3(0,(1< <BitDepth C )–1,x)

[0452]

[0453] Cos(x) Trigonometric cosine function, operates on parameter x, in radians.

[0454] Floor(x) The largest integer less than or equal to x.

[0455]

[0456] Ln(x) The natural logarithm of x (logarithm with base e, where e is the base constant of natural logarithms 2.718 281828…).

[0457] Log2(x) is the base 2 logarithm of x.

[0458] Log10(x) is the base 10 logarithm of x.

[0459]

[0460]

[0461] Round(x)=Sign(x)*Floor(Abs(x)+0.5)

[0462]

[0463] Sin(x) Trigonometric sine function, operates on parameter x, in radians.

[0464]

[0465] Swap(x,y)=(y,x)

[0466] Tan(x) is the trigonometric tangent function, which operates on the parameter x in radians.

[0467] Operation priority order

[0468] When parentheses are not used to explicitly indicate precedence in an expression, the following rules apply:

[0469] – Operations with higher priority are evaluated before any operations with lower priority.

[0470] – Operations of the same priority are evaluated from left to right.

[0471] The following table describes the priority of operations from highest to lowest. The higher the position in the table, the higher the priority.

[0472] For operators that are also used in the C programming language, the order of precedence used in this specification is the same as the order of precedence used in the C programming language.

[0473] Table: Operation priority is sorted from highest (top of table) to lowest (bottom of table)

[0474]

[0475] Text description of the logical operation

[0476] In the text, statements for logical operations are described in mathematical form as follows:

[0477]

[0478]

[0479] It can be described in the following way:

[0480] ...as follows / ...as follows:

[0481] – If condition 0 then statement 0

[0482] – Else if condition 1 then statement 1

[0483] –……

[0484] – Otherwise (informative explanation of the remaining conditions), then statement n

[0485] Each "if ... else, if ... else, ..." statement in the text begins with "... as follows" or "... the following applies" followed by "if ...". The last condition of "if ... else, if ... else, ..." is always "otherwise, ...". Intermediate "if ... else, if ... else, ..." statements can be identified by matching "... as follows" or "... the following applies" with the ending "otherwise, ...".

[0486] In the text, statements for logical operations are described in mathematical form as follows:

[0487]

[0488] It can be described in the following way:

[0489] ...as follows / ...as follows:

[0490] – Statement 0 if all of the following conditions are met:

[0491] –Condition 0a

[0492] – Condition 0b

[0493] – Otherwise, if one or more of the following conditions are met, then statement 1:

[0494] –Condition 1a

[0495] – Condition 1b

[0496] –……

[0497] – Otherwise, statement n

[0498] In the text, statements for logical operations are described in mathematical form as follows:

[0499]

[0500] It can be described in the following way:

[0501] When condition 0, statement 0

[0502] When condition 1, statement 1

[0503] Although the embodiments of the present invention are mainly described in terms of video decoding, it should be noted that the embodiments of the decoding system 10, the encoder 20 and the decoder 30 (respectively, the system 10) and other embodiments described herein can also be used for still image processing or decoding, that is, processing or decoding a single image in video decoding that is independent of any previous or consecutive images. Typically, if the image processing decoding is limited to a single image 17, only the inter-frame prediction unit 244 (encoder) and 344 (decoder) are not available. All other functions (also referred to as tools or techniques) of the video encoder 20 and the video decoder 30 can also be used for still image processing, such as residual calculation 204 / 304, transformation 206, quantization 208, inverse quantization 210 / 310, (inverse) transformation 212 / 312, segmentation 262 / 362, intra-frame prediction 254 / 354 and / or loop filtering 220 / 320, entropy coding 270 and entropy decoding 304.

[0504] Embodiments of encoders 20, decoders 30, etc., and the functions described herein related to encoders 20, decoders 30, etc. may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the various functions may be stored as one or more instructions or codes in a computer-readable medium or transmitted via a communication medium, and executed by a hardware-based processing unit. Computer-readable media may include computer-readable storage media corresponding to tangible media (e.g., data storage media), or communication media including any medium that facilitates the transfer of computer programs from one place to another (e.g., according to a communication protocol). In this manner, computer-readable media may generally correspond to (1) non-transitory tangible computer-readable storage media, or (2) communication media such as signals or carrier waves. Data storage media may be any available media accessed by one or more computers or one or more processors to retrieve instructions, codes, and / or data structures for implementing the techniques described in the present invention. A computer program product may include a computer-readable medium.

[0505] Specifically, a method for decoding a decoded video stream implemented in a decoder is provided, such as Fig. 9As shown, the method includes: S901: Obtain a first syntax element (i.e., vps_independent_layer_flag[i]) from a decoded video bitstream, the first syntax element indicating whether the first layer uses inter-layer prediction. S902: Obtain one or more second syntax elements (i.e., vps_direct_dependency_flag[i][j]) related to one or more second layers from the decoded video bitstream, each second syntax element indicating whether the second layer is a direct reference layer of the first layer; wherein, when the value of the first syntax element indicates that the first layer is allowed to use inter-layer prediction, at least one of the one or more second syntax elements has a value indicating that the second layer is a direct reference layer of the first layer. S903: Perform inter-layer prediction on an image of the first layer by using an image of the second layer associated with at least one second syntax element as a reference image.

[0506] Similarly, a method for encoding a video code stream including decoded data is provided for implementation in an encoder, such as Fig.10 As shown, the method includes: S1001: determining whether at least one second layer is a direct reference layer of a first layer; S1003: encoding a syntax element into a decoded video bitstream, wherein the syntax element indicates whether the first layer uses inter-layer prediction; in the case that none of the at least one second layer is a direct reference layer of the first layer, the value of the syntax element indicates that the first layer does not use inter-layer prediction.

[0507] Fig.11 A decoder 1100 for decoding a video bitstream including decoded data of a plurality of images is shown. The decoder 1100 described in the illustrated example includes: an acquisition unit 1110 for acquiring a first syntax element from the decoded video bitstream, the first syntax element indicating whether the first layer uses inter-layer prediction; the acquisition unit 1110 is also used to acquire one or more second syntax elements related to one or more second layers from the decoded video bitstream, each second syntax element indicating whether the second layer is a direct reference layer of the first layer; in the case where the value of the first syntax element indicates that the first layer is allowed to use inter-layer prediction, at least one of the one or more second syntax elements has a value indicating that the second layer is a direct reference layer of the first layer; and a prediction unit 1120 for performing inter-layer prediction on an image of the first layer by using an image of the second layer associated with at least one second syntax element as a reference image.

[0508] The unit may be a software module for execution by a processor or a processing circuit.

[0509] The acquisition unit 1110 may be the entropy decoding unit 304. The prediction unit 1120 may be the inter-frame prediction unit 344. The decoder 1100 may be the destination device 14, the decoder 30, the apparatus 500, the video decoder 3206 or the terminal device 3106.

[0510] Similarly, an encoder 1200 is provided for encoding a video stream including decoded data of a plurality of images, such as Fig.12 The encoder 1200 includes: a determination unit 1210, configured to determine whether at least one second layer is a direct reference layer of the first layer; an encoding unit 1220, configured to encode a syntax element into a decoded video bitstream, wherein the syntax element indicates whether the first layer uses inter-layer prediction; and in the case where none of the at least one second layer is a direct reference layer of the first layer, the value of the syntax element indicates that the first layer does not use inter-layer prediction.

[0511] The unit may be a software module for execution by a processor or a processing circuit.

[0512] The first encoding unit 1210 and the second encoding unit 1220 may be the entropy encoding unit 270. The determining unit may be the mode selecting unit 260. The encoder 1200 may be the source device 12, the encoder 20, or the apparatus 500.

[0513] As an example and not limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage or other magnetic storage devices, flash memory or any other medium that can be used to store the required program code in the form of instructions or data structures and can be accessed by a computer. In addition, any connection can be appropriately referred to as a computer-readable medium. For example, if a coaxial cable, optical fiber cable, twisted pair, digital subscriber line (DSL) or wireless technologies such as infrared, radio and microwave are used to transmit instructions from a website, server or other remote source, then the coaxial cable, optical fiber cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwave are included in the definition of the medium. However, it should be understood that computer-readable storage media and data storage media do not include connections, carriers, signals or other transient media, but rather involve non-transient tangible storage media. Disks and optical disks used herein include compact discs (CDs), laser discs, optical discs, digital versatile discs (DVDs), floppy disks and Blu-ray discs, where disks usually reproduce data magnetically, while optical discs reproduce data optically using lasers. Combinations of the above should also be included within the scope of computer-readable media.

[0514] Instructions may be executed by one or more processors such as one or more digital signal processors (DSPs), general-purpose microprocessors, application specific integrated circuits (ASICs), field programmable logic arrays (FPGAs), or other equivalent integrated or discrete logic circuits. Accordingly, the term "processor" as used herein may refer to any of the above structures or any other structure suitable for implementing the techniques described herein. In addition, in some aspects, the various functions described herein may be provided in dedicated hardware and / or software modules for encoding and decoding, or incorporated in a combined codec. Moreover, these techniques may be fully implemented in one or more circuits or logic elements.

[0515] The technology of the present invention can be implemented in a variety of devices or apparatuses, including wireless mobile phones, integrated circuits (ICs) or a group of ICs (e.g., chipsets). The present invention describes various components, modules, or units to emphasize the functional aspects of the devices used to perform the disclosed technology, but it is not necessarily required to be implemented by different hardware units. In fact, as described above, the various units can be combined in a codec hardware unit in combination with appropriate software and / or firmware, or provided by a collection of interoperable hardware units (including one or more processors as described above).

Claims

1. A method for decoding a code stream, characterized in that: The method comprises: Obtain a first syntax element from the bitstream, where the first syntax element has an index i indicating whether a first layer with index i uses inter-layer prediction; Acquire one or more second syntax elements from the codestream, each of the one or more second syntax elements having an index i and an index j, indicating whether a second layer with an index j is a direct reference layer of the first layer with an index i; Wherein, when the first syntax element with index i is equal to 0 to indicate that the first layer with index i allows inter-layer prediction, the index j in the one or more second syntax elements has at least one second syntax element with a value equal to 1 in the range of 0 to i-1; A third syntax element is obtained from the codestream, wherein the third syntax element is equal to 1, indicating that a fourth syntax element and a second reference image list structure do not exist in the codestream, and a value of the fourth syntax element is inferred to be equal to a value of a fifth syntax element, and a value of each syntax element in the second reference image list structure is inferred to be equal to a value of a corresponding syntax element in the first reference image list structure, wherein the fourth syntax element indicates the number of the second reference image list structures included in a sequence parameter set SPS, and the fifth syntax element indicates the number of the first reference image list structures included in the SPS.

2. The method according to claim 1, characterized in that The first syntax element being equal to 1 indicates that the first layer does not use inter-layer prediction.

3. The method according to claim 1 or 2, characterized in that: The second syntax element being equal to 0 indicates that the second layer with index j is not the direct reference layer of the first layer with index i; or the second syntax element being equal to 1 indicates that the second layer with index j is the direct reference layer of the first layer with index i.

4. The method according to any one of claims 1 to 3, characterized in that The first syntax element is vps_independent_layer_flag[i].

5. The method according to any one of claims 1 to 4, characterized in that The third syntax element is rpl1_same_as_rpl0_flag, and the third syntax element is in the SPS.

6. The method according to any one of claims 1 to 5, characterized in that The first reference picture list structure is ref_pic_list_struct(0, rplsIdx), and the second reference picture list structure is ref_pic_list_struct(1, rplsIdx).

7. A method for encoding a code stream, characterized in that: The method comprises: Encode a first syntax element into the bitstream, wherein the first syntax element has an index i indicating whether the first layer with index i uses inter-layer prediction; Encode one or more second syntax elements into the codestream, each of the one or more second syntax elements having an index i and an index j, indicating whether the second layer with an index j is a direct reference layer of the first layer with an index i; encoding a third syntax element into the codestream, wherein the third syntax element being equal to 1 indicates that a fourth syntax element and a second reference picture list structure do not exist in the codestream, and a value of the fourth syntax element is inferred to be equal to a value of a fifth syntax element, and a value of each syntax element in the second reference picture list structure is inferred to be equal to a value of a corresponding syntax element in the first reference picture list structure, wherein the fourth syntax element indicates the number of the second reference picture list structures included in a sequence parameter set SPS, and the fifth syntax element indicates the number of the first reference picture list structures included in the SPS; Among them, when the first syntax element with index i is equal to 0 to indicate that the first layer with index i allows inter-layer prediction, the index j in the one or more second syntax elements has at least one second syntax element with a value equal to 1 in the range of 0 to i-1.

8. The method according to claim 7, characterized in that The first syntax element being equal to 1 indicates that the first layer does not use inter-layer prediction.

9. The method according to claim 7 or 8, characterized in that: The second syntax element being equal to 0 indicates that the second layer with index j is not the direct reference layer of the first layer with index i; or the second syntax element being equal to 1 indicates that the second layer with index j is the direct reference layer of the first layer with index i.

10. The method according to any one of claims 7 to 9, characterized in that The first syntax element is vps_independent_layer_flag[i].

11. The method according to any one of claims 7 to 10, characterized in that The third syntax element is rpl1_same_as_rpl0_flag, and the third syntax element is in the SPS.

12. The method according to any one of claims 7 to 11, characterized in that The first reference picture list structure is ref_pic_list_struct(0, rplsIdx), and the second reference picture list structure is ref_pic_list_struct(1, rplsIdx).

13. An encoder, characterized in that: comprising a processing circuit for performing a method according to any one of claims 7 to 12.

14. A decoder, characterized in that: The method comprises a processing circuit for executing the method according to any one of claims 1 to 6.

15. A computer program product comprising program code, characterized in that When the program code is executed in a computer or a processor, the program code is used to execute the method according to any one of claims 1 to 6 or 7 to 12 above.

16. A decoder, characterized in that: include: one or more processors; A non-transitory computer-readable storage medium is coupled to the processor and stores a program executed by the processor, wherein when the processor executes the program, the decoder is caused to perform the method according to any one of claims 1 to 6.

17. An encoder, characterized in that: include: one or more processors; A non-transitory computer-readable storage medium is coupled to the processor and stores a program executed by the processor, wherein when the processor executes the program, the encoder is caused to perform the method according to any one of claims 7 to 12 above.

18. A non-transitory computer-readable storage medium carrying program code, characterized in that: When a computer device or a processor executes the program code, the computer device or the processor is caused to perform the method according to any one of claims 1 to 6 or 7 to 12 above.

19. A device for sending a code stream, characterized in that: including one or more memories and a transmitter; The one or more memories are used to store a code stream, the code stream comprising a first syntax element, one or more second syntax elements and a third syntax element; the first syntax element has an index i indicating whether the first layer with index i uses inter-layer prediction; Each second syntax element of the one or more second syntax elements has an index i and an index j, indicating whether the second layer with index j is a direct reference layer of the first layer with index i; The third syntax element being equal to 1 indicates that the fourth syntax element and the second reference picture list structure do not exist in the code stream, and the value of the fourth syntax element is inferred to be equal to the value of the fifth syntax element, the value of each syntax element in the second reference picture list structure is inferred to be equal to the value of the corresponding syntax element in the first reference picture list structure, the fourth syntax element indicates the number of the second reference picture list structures included in the sequence parameter set SPS, and the fifth syntax element indicates the number of the first reference picture list structures included in the SPS; wherein, when the first syntax element with index i is equal to 0 to indicate that the first layer with index i allows inter-layer prediction, the index j in the one or more second syntax elements has at least one second syntax element with a value equal to 1 in the range of 0 to i-1; The transmitter is used to send the code stream.

20. A device for storing a code stream, characterized in that: comprising a receiver and at least one memory; The receiver is used to receive a code stream. The at least one memory is used to store the code stream; The code stream includes a first syntax element, one or more second syntax elements and a third syntax element; the first syntax element has an index i indicating whether the first layer with index i uses inter-layer prediction; each second syntax element in the one or more second syntax elements has an index i and an index j, indicating whether the second layer with index j is a direct reference layer of the first layer with index i; The third syntax element being equal to 1 indicates that the fourth syntax element and the second reference image list structure do not exist in the code stream, and the value of the fourth syntax element is inferred to be equal to the value of the fifth syntax element, the value of each syntax element in the second reference image list structure is inferred to be equal to the value of the corresponding syntax element in the first reference image list structure, the fourth syntax element indicates the number of the second reference image list structures included in the sequence parameter set SPS, and the fifth syntax element indicates the number of the first reference image list structures included in the SPS; wherein, when the first syntax element with index i is equal to 0 to indicate that the first layer with index i allows inter-layer prediction, the one or more second syntax elements have at least one second syntax element with index j in the range of 0 to i-1 with a value equal to 1.

21. A method for storing a code stream, characterized in that: include: Acquire a code stream, where the code stream includes a first syntax element, one or more second syntax elements, and a third syntax element; The first syntax element has an index i indicating whether the first layer with index i uses inter-layer prediction; Each second syntax element of the one or more second syntax elements has an index i and an index j, indicating whether the second layer with index j is a direct reference layer of the first layer with index i; The third syntax element being equal to 1 indicates that the fourth syntax element and the second reference picture list structure do not exist in the code stream, and the value of the fourth syntax element is inferred to be equal to the value of the fifth syntax element, the value of each syntax element in the second reference picture list structure is inferred to be equal to the value of the corresponding syntax element in the first reference picture list structure, the fourth syntax element indicates the number of the second reference picture list structures included in the sequence parameter set SPS, and the fifth syntax element indicates the number of the first reference picture list structures included in the SPS; wherein, when the first syntax element with index i is equal to 0 to indicate that the first layer with index i allows inter-layer prediction, the index j in the one or more second syntax elements has at least one second syntax element with a value equal to 1 in the range of 0 to i-1; The acquired code stream is stored in one or more memories.

22. A system for processing a code stream, characterized in that: The system comprises: an encoding device, one or more memories and a decoding device; The encoding device is used to obtain a video signal and encode the video signal to obtain one or more code streams, wherein the code stream includes a first syntax element, one or more second syntax elements and a third syntax element; the first syntax element has an index i indicating whether the first layer with index i uses inter-layer prediction; each second syntax element in the one or more second syntax elements has an index i and an index j indicating whether the second layer with index j is a direct reference layer of the first layer with index i; the third syntax element is equal to 1, indicating that the fourth syntax element and the second reference image list structure do not exist in the code stream, and the value of the fourth syntax element is inferred to be equal to the value of the fifth syntax element, the value of each syntax element in the second reference image list structure is inferred to be equal to the value of the corresponding syntax element in the first reference image list structure, the fourth syntax element indicates the number of the second reference image list structures included in the sequence parameter set SPS, and the fifth syntax element indicates the number of the first reference image list structures included in the SPS; wherein, when the first syntax element with index i is equal to 0 to indicate that the first layer with index i allows the use of inter-layer prediction, the index j in the one or more second syntax elements has at least one second syntax element with a value equal to 1 in the range of 0 to i-1; The one or more memories are used to store the one or more code streams; The decoding device is used to decode the one or more code streams.

23. A code stream structure, characterized in that: comprising a first syntax element, one or more second syntax elements, and a third syntax element; The first syntax element has an index i indicating whether the first layer with index i uses inter-layer prediction; Each second syntax element of the one or more second syntax elements has an index i and an index j, indicating whether the second layer with index j is a direct reference layer of the first layer with index i; The third syntax element being equal to 1 indicates that the fourth syntax element and the second reference picture list structure do not exist in the codestream, and the value of the fourth syntax element is inferred to be equal to the value of the fifth syntax element, the value of each syntax element in the second reference picture list structure is inferred to be equal to the value of the corresponding syntax element in the first reference picture list structure, the fourth syntax element indicates the number of the second reference picture list structures included in the sequence parameter set SPS, and the fifth syntax element indicates the number of the first reference picture list structures included in the SPS; Among them, when the first syntax element with index i is equal to 0 to indicate that the first layer with index i allows inter-layer prediction, the index j in the one or more second syntax elements has at least one second syntax element with a value equal to 1 in the range of 0 to i-1.

24. A device for decoding a bit stream, characterized in that: The method comprises a memory and a processor, wherein the memory is used to store a code stream, wherein the code stream comprises a first syntax element, one or more second syntax elements and a third syntax element; the first syntax element has an index i indicating whether the first layer with index i uses inter-layer prediction; Each second syntax element of the one or more second syntax elements has an index i and an index j, indicating whether the second layer with index j is a direct reference layer of the first layer with index i; The third syntax element being equal to 1 indicates that the fourth syntax element and the second reference picture list structure do not exist in the code stream, and the value of the fourth syntax element is inferred to be equal to the value of the fifth syntax element, the value of each syntax element in the second reference picture list structure is inferred to be equal to the value of the corresponding syntax element in the first reference picture list structure, the fourth syntax element indicates the number of the second reference picture list structures included in the sequence parameter set SPS, and the fifth syntax element indicates the number of the first reference picture list structures included in the SPS; wherein, when the first syntax element with index i is equal to 0 to indicate that the first layer with index i allows inter-layer prediction, the index j in the one or more second syntax elements has at least one second syntax element with a value equal to 1 in the range of 0 to i-1; The processor is configured to decode the code stream to obtain the first syntax element, the one or more second syntax elements, and the third syntax element.

25. A device for encoding a bit stream, characterized in that: Including memory, processor and transmitter, The processor is used to encode a first syntax element, one or more second syntax elements and a third syntax element into a bitstream; the first syntax element has an index i indicating whether the first layer with index i uses inter-layer prediction; Each second syntax element of the one or more second syntax elements has an index i and an index j, indicating whether the second layer with index j is a direct reference layer of the first layer with index i; The third syntax element being equal to 1 indicates that the fourth syntax element and the second reference picture list structure do not exist in the code stream, and the value of the fourth syntax element is inferred to be equal to the value of the fifth syntax element, the value of each syntax element in the second reference picture list structure is inferred to be equal to the value of the corresponding syntax element in the first reference picture list structure, the fourth syntax element indicates the number of the second reference picture list structures included in the sequence parameter set SPS, and the fifth syntax element indicates the number of the first reference picture list structures included in the SPS; wherein, when the first syntax element with index i is equal to 0 to indicate that the first layer with index i allows inter-layer prediction, the index j in the one or more second syntax elements has at least one second syntax element with a value equal to 1 in the range of 0 to i-1; The memory is used to store the code stream; or, The transmitter is used to send the code stream to the server for storage.