Video coding and decoding method, device and system, medium and code stream storage method

By processing video slices of different NAL unit types in video encoding and decoding, determining the picture type and adjusting the time identifier constraints, the problem of ambiguous picture types and time identifier constraint conflicts caused by mixed VCL NAL unit types is solved, and random storage is achieved. Get the coexistence of decoded front and trailing pictures and the consistency of picture references between layers.

CN118632011APending Publication Date: 2024-09-10TENCENT AMERICA LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410754883.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2020-10-22
Filing Date
2020-12-16
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In the next-generation video coding specification, the design of mixed VCL NAL unit types may lead to ambiguous picture types, conflicting temporal identifier constraints, unsupported coexistence of random access decoding preamble and trailing pictures, and misaligned inter-layer picture references. question.

Method used

By receiving and decoding video slices with different NAL unit types, determine the picture type, ensure the correct decoding of trailing pictures, and adjust the NAL unit type and time identifier constraints during the encoding and decoding process to support different types of NAL units in the same Blending in PU, corrected setting of syntax elements to ensure correct picture type and time ID.

Benefits of technology

It solves the problem of ambiguous picture types and conflicting time identifier constraints, supports the coexistence of random access decoding front and trailing pictures, and ensures the consistency and correctness of picture references between layers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118632011A_ABST
    Figure CN118632011A_ABST
Patent Text Reader

Abstract

The invention provides a video coding and decoding method, device and system, a medium and a code stream storage method. The method includes receiving a first video coding layer (VCL) network abstraction layer (NAL) unit of a first slice of an encoded picture and a second VCL NAL unit of a second slice of the encoded picture, the first VCL NAL unit having a first VCL NAL unit type, the second VCL NAL unit having a second VCL NAL unit type different from the first VCL NAL unit type; and determining a picture type of the encoded picture based on a first VCL NAL unit type of the first VCL NAL unit and a second VCL NAL unit type of the second VCL NAL unit, including: indicating, based on the first VCL NAL unit type, that the first VCL NAL unit includes a gradually decoded refresh GDR picture encoded slice; and based on the second VCL NAL unit type, indicating that the second VCL NAL unit does not include an instantaneous decoding refresh (IDR) picture encoded slice or a clean random access (CRA) picture encoded slice, determining that the encoded picture is a trailing picture.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of an actively modified version of the patent application with the application date of December 16, 2020, Chinese patent application number 202080028087.7, and invention name "Video Coding Method, Device, System and Computer-readable Medium". Technical Field

[0002] Embodiments of the present application relate to video encoding and decoding, and more particularly to methods for enabling coded pictures to support hybrid network abstraction unit (NAL) types. Background Art

[0003] In the Versatile Video Coding (VVC) draft specification JVET-P2001 (the entire contents of which are incorporated herein) (edited and updated by JVET-Q0041), a hybrid network abstraction layer (NAL) unit type feature is supported, which enables the NAL unit type of one or more slice NAL units to be equal to intra random access point (IRAP) or clean random access (CRA), and enables the NAL unit type of one or more slice NAL units to be equal to non-IRAP. This feature can be used to merge two different bitstreams into one bitstream, or to support different random access periods for each local area (sub-picture). Currently, the following syntax and semantics are defined to support this feature:

[0004] An exemplary picture parameter set raw byte sequence payload (RBSP) syntax is provided in Table 1 below.

[0005] Table 1

[0006]

[0007] The syntax element mixed_nalu_types_in_pic_flag is equal to 1, indicating that each picture of the referenced picture parameter set (PPS) has more than one video coding layer (VCL) NAL unit, and the VCL NAL units do not have the same nal_unit_type value, and the picture is not an IRAP picture. The syntax element mixed_nalu_types_in_pic_flag is equal to 0, indicating that each picture of the referenced PPS has one or more VCL NAL units, and the VCL NAL units of each picture of the referenced PPS have the same nal_unit_type value.

[0008] When the syntax element no_mixed_nalu_types_in_pic_constraint_flag is equal to 1, the value of the syntax element mixed_nalu_types_in_pic_flag shall be equal to 0.

[0009] According to the current VVC specification, the NAL unit type code and the NAL unit type category are defined as shown in Table 2 below.

[0010] Table 2

[0011]

[0012]

[0013] For each slice in picture picA whose nal_unit_type value nalUnitTypeA is in the range IDR_W_RADL to CRA_NUT (inclusive) (picture picA also contains one or more slices with another nal_unit_type value (i.e., the value of mixed_nalu_types_in_pic_flag of picture picA is equal to 1)), the following applies:

[0014] (A) The slice shall belong to the sub-picture subpicA, where, for the sub-picture subpicA, the value of the corresponding syntax element subpic_treated_as_pic_flag[i] is equal to 1.

[0015] (B) A slice shall not belong to a sub-picture of picA containing a VCL NAL unit where the syntax element nal_unit_type of the slice is not equal to nalUnitTypeA.

[0016] (C) For all PUs that follow in decoding order in the coded layer video sequence (CLVS), neither RefPicList[0] nor RefPicList[1] of the slice in subpicA shall include any pictures that precede picA in decoding order in the valid entries.

[0017] For any particular picture's VCL NAL unit, the following applies:

[0018] If the syntax element mixed_nalu_types_in_pic_flag is equal to 0, the value of the syntax element nal_unit_type shall be the same for all coded slice NAL units of a picture. A picture or a PU is said to have the same NAL unit type as the coded slice NAL units of the picture or PU.

[0019] Otherwise (syntax element mixed_nalu_types_in_pic_flag is equal to 1), one or more VCL NAL units shall all have a specific nal_unit_type value in the range of IDR_W_RADL to CRA_NUT (inclusive), while other VCL NAL units shall all have a specific nal_unit_type value in the range of TRAIL_NUT to RSV_VCL_6 (inclusive), or their nal_unit_type value shall be equal to GDR_NUT. Summary of the Invention

[0020] There may be some problems with the current design of the hybrid VCL NAL unit type described in the background section above.

[0021] In some cases, when a picture consists of mixed VCL NAL unit types, the picture type of the picture may be ambiguous.

[0022] In some cases, when NAL unit types are mixed in the same PU (picture), temporal identifier (eg, TemporalId) constraints may conflict.

[0023] For example, the current VVC specification constrains TemporalId as follows: when the syntax element nal_unit_type is in the range of IDR_W_RADL to RSV_IRAP_12 (inclusive), the syntax element TemporalId shall be equal to 0. When the syntax element nal_unit_type is equal to STSA_NUT, the syntax element TemporalId shall not be equal to 0.

[0024] In some cases, if the syntax element mixed_nalu_types_in_pic_flag is signaled in the PPS, at least two PPS NAL units shall be referenced by the slice NAL unit in the CLVS. In addition, when a sub-picture is extracted, the associated PPS shall be rewritten by changing the value of the syntax element mixed_nalu_types_in_pic_flag.

[0025] In some cases, the current design may not support the coexistence of random access decode leading (RADL) / random access skip leading (RASL) NAL units with trailing pictures in a picture (PU).

[0026] In some cases, when a picture in one layer refers to another picture in a different layer, the syntax element mixed_nalu_types_in_pic_flag may not align.

[0027] Embodiments of the present application may solve one or more of the problems described above and / or other problems.

[0028] An embodiment of the present application provides a video decoding method for decoding an encoded video stream, the method comprising:

[0029] Receiving a first Video Coding Layer (VCL) Network Abstraction Layer (NAL) unit of a first slice of a coded picture and a second VCL NAL unit of a second slice of the coded picture, the first VCL NAL unit having a first VCL NAL unit type and the second VCL NAL unit having a second VCL NAL unit type different from the first VCL NAL unit type; and

[0030] Determining a picture type of the coded picture based on the first VCL NAL unit type of the first VCL NAL unit and the second VCL NAL unit type of the second VCL NAL unit includes:

[0031] Indicating, based on the first VCL NAL unit type, that the first VCL NAL unit contains a coded slice of a Gradual Decoding Refresh (GDR) picture; and

[0032] Based on the second VCL NAL unit type, indicating that the second VCL NAL unit does not include an instantaneous decoding refresh (IDR) picture coded slice or a clean random access (CRA) picture coded slice, it is determined that the coded picture is a trailing picture.

[0033] In some embodiments, the present application further provides a video decoding system, including:

[0034] a memory configured to store computer program code; and

[0035] At least one processor is configured to receive at least one encoded video stream, access the computer program code, and operate according to instructions of the computer program code to implement the video decoding method according to an embodiment of the present application to decode the encoded video stream.

[0036] In some embodiments, the present application further provides a video encoding method for generating an encoded video stream, the method comprising:

[0037] Receiving a first video coding layer (VCL) network abstraction layer (NAL) unit of a first slice of a picture to be encoded and a second VCL NAL unit of a second slice of the picture to be encoded, the first VCL NAL unit having a first VCL NAL unit type, the second VCL NAL unit having a second VCL NAL unit type different from the first VCL NAL unit type; and

[0038] Setting the picture type of the to-be-encoded picture based on the first VCL NAL unit type of the first VCL NAL unit and the second VCL NAL unit type of the second VCL NAL unit includes:

[0039] Indicating, based on the first VCL NAL unit type, that the first VCL NAL unit contains a coded slice of a progressive coding refresh (GDR) picture; and

[0040] Based on the second VCL NAL unit type, indicating that the second VCL NAL unit does not include a coded slice of an instantaneous coded refresh (IDR) picture or a coded slice of a clean random access (CRA) picture, it is determined that the picture to be coded is a trailing picture.

[0041] In some embodiments, the embodiments of the present application also provide a computer-readable medium, which stores computer instructions. When the computer instructions are executed by at least one processor, the at least one processor implements the video decoding method according to the embodiments of the present application to decode the encoded video stream, or the video encoding method according to the embodiments of the present application to generate an encoded video stream.

[0042] In some embodiments, the present application further provides a video decoding device for decoding an encoded video stream, the device comprising:

[0043] a receiving module configured to receive a first video coding layer (VCL) network abstraction layer (NAL) unit of a first slice of a coded picture and a second VCL NAL unit of a second slice of the coded picture, wherein the first VCL NAL unit has a first VCL NAL unit type and the second VCL NAL unit has a second VCL NAL unit type different from the first VCL NAL unit type; and

[0044] A decoding module, configured to determine a picture type of the coded picture based on the first VCL NAL unit type of the first VCL NAL unit and the second VCL NAL unit type of the second VCL NAL unit, comprising:

[0045] Indicating, based on the first VCL NAL unit type, that the first VCL NAL unit contains a decoded slice of a gradual coding refresh (GDR) picture; and

[0046] Based on the second VCL NAL unit type, indicating that the second VCL NAL unit does not include a decoded slice of an instantaneous coded refresh (IDR) picture or a decoded slice of a clean random access (CRA) picture, it is determined that the coded picture is a trailing picture.

[0047] In some embodiments, the present application further provides a video encoding device, the device comprising:

[0048] a memory configured to store computer program code; and

[0049] At least one processor is configured to receive video data, access the computer program code, and operate according to instructions of the computer program code to implement the video encoding method according to the embodiment of the present application to encode the video data.

[0050] In some embodiments, the embodiments of the present application further provide a method for storing a code stream, storing a video code stream on a non-temporary computer-readable storage medium, wherein the video code stream is decoded based on the video decoding method of the embodiments of the present application, or generated according to the video encoding method of the embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Further features, nature, and various advantages of the disclosed subject matter will become more apparent from the following detailed description and accompanying drawings, in which:

[0052] Figure 1 is a schematic diagram of a simplified block diagram of a communication system according to one embodiment.

[0053] Figure 2 is a schematic diagram of a simplified block diagram of a communication system according to one embodiment.

[0054] Figure 3 is a schematic diagram of a simplified block diagram of a decoder according to one embodiment.

[0055] Figure 4 is a schematic diagram of a simplified block diagram of an encoder according to one embodiment.

[0056] Figure 5 is a block diagram of a NAL unit according to one embodiment.

[0057] Figure 6 is a block diagram of a decoder according to one embodiment.

[0058] Figure 7 is a diagram of a computer system suitable for implementing an embodiment. DETAILED DESCRIPTION

[0059] Figure 1 A simplified block diagram of a communication system (100) according to an embodiment of the present application is shown. The system (100) may include at least two terminals (110, 120) interconnected by a network (150). For one-way data transmission, a first terminal (110) may encode video data at a local location for transmission to another terminal (120) via the network (150). The second terminal (120) may receive the encoded video data from the other terminal from the network (150), decode the encoded data, and display the recovered video data. One-way data transmission may be more common in applications such as media services.

[0060] Figure 1 A second pair of terminals (130, 140) is shown, configured to support bidirectional transmission of encoded video, such as may occur during a video conference. For bidirectional data transmission, each terminal (130, 140) may encode captured video data at a local location for transmission to the other terminal via a network (150). Each terminal (130, 140) may also receive encoded video data transmitted by the other terminal, may decode the encoded data, and may display the recovered video data on a local display device.

[0061] exist Figure 1 In the embodiment of the present invention, the terminals (110-140) can be shown as servers, personal computers and smart phones, and / or any other type of terminals. For example, the terminals (110-140) can be laptop computers, tablet computers, media players and / or dedicated video conferencing equipment. The network (150) represents any number of networks that transmit encoded video data between the terminals (110-140), including, for example, wired and / or wireless communication networks. The communication network (150) can exchange data in circuit switching and / or packet switching channels. Representative networks include telecommunication networks, local area networks, wide area networks and / or the Internet. For the purposes of this discussion, unless explained below, the architecture and topology of the network (150) may be irrelevant to the operation of the embodiments of the present application.

[0062] As an example of application of the disclosed subject matter, Figure 2 The placement of the video encoder and video decoder in a streaming environment is shown. The disclosed subject matter is equally applicable to other video-enabled applications including, for example, video conferencing, digital TV, storing compressed video on digital media including CDs, DVDs, memory sticks, etc.

[0063] like Figure 2As shown, a streaming system (200) may include an acquisition subsystem (213) that may include a video source (201) and an encoder (203). The video source (201) may be, for example, a digital camera and may be configured to create an uncompressed video sample stream (202). Compared to an encoded video bitstream, the uncompressed video sample stream (202) may provide a high data volume and may be processed by an encoder (203) coupled to the camera (201). The encoder (203) may include hardware, software, or a combination of hardware and software to implement or implement various aspects of the disclosed subject matter as described in more detail below. Compared to a sample stream, the encoded video bitstream (204) may provide a lower data volume and may be stored on a streaming server (205) for future use. One or more streaming clients (206) may access the streaming server (205) to retrieve a video bitstream (209), which may be a copy of the encoded video bitstream (204).

[0064] In an embodiment, the streaming server (205) may also function as a media aware network element (MANE). For example, the streaming server (205) may be configured to prune the encoded video bitstream (204) for one or more streaming clients (206) to tailor potentially different bitstreams. In an embodiment, the MANE may be provided separately from the streaming server (205) in the streaming system (200).

[0065] The streaming client (206) may include a video decoder (210) and a display (212). For example, the video decoder (210) may decode an incoming video bitstream (209), which is a copy of an encoded video bitstream (204), and create an output video sample stream (211) that can be presented on a display (212) or another presentation device (not depicted). In some streaming systems, the video bitstreams (204, 209) may be encoded according to certain video coding / compression standards. Examples of such standards include, but are not limited to, ITU-T Recommendation H.265. The video coding standard under development is informally referred to as Next Video Coding (VVC), and the disclosed subject matter may be used in the context of VVC.

[0066] Figure 3 An exemplary functional block diagram of a video decoder (210) attached to a display (212) according to one embodiment of the present application is shown.

[0067] The video decoder (210) may include a channel (312), a receiver (310), a buffer memory (315), an entropy decoder / parser (320), a scaler / inverse transform unit (351), an intra prediction unit (352), a motion compensated prediction unit (353), an aggregator (355), a loop filter unit (356), a reference picture memory (357), and a current picture memory (358). In at least one embodiment, the video decoder (210) may include an integrated circuit, a series of integrated circuits, and / or other electronic circuits. The video decoder (210) may also be partially or completely implemented in software that runs on one or more CPUs with associated memory.

[0068] In this and other embodiments, a receiver (310) may receive one or more encoded video sequences to be decoded by a decoder (210), and may receive one encoded video sequence at a time, wherein the decoding of each encoded video sequence is independent of the decoding of the other encoded video sequences. The encoded video sequence may be received from a channel (312), which may be a hardware / software link to a storage device storing the encoded video data. The receiver (310) may receive the encoded video data and other data, such as encoded audio data and / or ancillary data streams, which may be forwarded to their respective consuming entities (not depicted). The receiver (310) may separate the encoded video sequence from the other data. To prevent network jitter, a buffer memory (315) may be coupled between the receiver (310) and the entropy decoder / parser (320) (hereinafter referred to as the "parser"). When the receiver (310) receives data from a store / forward device with sufficient bandwidth and controllability or from an isochronous network, the buffer (315) may not be used, or the buffer may be made smaller. For use over a traffic packet network such as the Internet, a buffer (315) may be required, which may be relatively large and may advantageously be of an adaptive size.

[0069] The video decoder (210) may include a parser (320) to reconstruct symbols (321) from an entropy-encoded video sequence. For example, the types of symbols include information for managing the operation of the decoder (210) and potentially information for controlling a display device, such as a display (212), which may be coupled to the decoder, such as Figure 2As shown in . For example, the control information for the display device may be in the form of a parameter set fragment (not depicted) of a Supplemental Enhancement Information (SEI) message or a Video Usability Information (VUI). The parser (320) may parse / entropy decode the received coded video sequence. The coding of the coded video sequence may be performed according to a video coding technique or standard and may follow various principles known to those skilled in the art, including variable length coding, Huffman coding, arithmetic coding with or without context sensitivity, and the like. The parser (320) may extract a subgroup parameter set for at least one subgroup of the subgroups of pixels in the video decoder from the coded video sequence based on at least one parameter corresponding to the group. The subgroup may include a Group of Pictures (GOP), a picture, a tile, a slice, a macroblock, a Coding Unit (CU), a block, a Transform Unit (TU), a Prediction Unit (PU), and the like. The parser (320) may also extract information from the encoded video sequence, such as transform coefficients, quantizer parameter values, motion vectors, and so on.

[0070] The parser (320) may perform entropy decoding / parsing operations on the video sequence received from the buffer (315), thereby creating symbols (321).

[0071] Depending on the type of coded video picture or portion of coded video picture (e.g., inter-frame and intra-frame pictures, inter-frame blocks and intra-frame blocks) and other factors, the reconstruction of the symbol (321) may involve multiple different units. Which units are involved and how they are involved can be controlled by subgroup control information parsed from the coded video sequence by the parser (320). For the sake of brevity, the flow of such subgroup control information between the parser (320) and the multiple units below is not described.

[0072] In addition to the functional blocks already mentioned, decoder 210 can be conceptually subdivided into a number of functional units as described below. In actual implementations operating under commercial constraints, many of these units interact closely with each other and may be at least partially integrated with each other. However, for the purposes of describing the disclosed subject matter, the conceptual subdivision into the following functional units is appropriate.

[0073] One unit may be a scaler / inverse transform unit (351). The scaler / inverse transform unit (351) may receive quantized transform coefficients as symbols (321) from the parser (320) along with control information, including which transform mode to use, block size, quantization factor, quantization scaling matrix, etc. The scaler / inverse transform unit (351) may output a block comprising sample values, which may be input to an aggregator (355).

[0074] In some cases, the output samples of the scaler / inverse transform unit (351) may belong to an intra-coded block; that is, a block that does not use predictive information from a previously reconstructed picture, but may use predictive information from a previously reconstructed portion of the current picture. Such predictive information may be provided by the intra-picture prediction unit (352). In some cases, the intra-picture prediction unit (352) generates a block of the same size and shape as the block being reconstructed using surrounding reconstructed information extracted from the current (partially reconstructed) picture in the current picture memory (358). In some cases, the aggregator (355) adds the prediction information generated by the intra-prediction unit (352) to the output sample information provided by the scaler / inverse transform unit (351) on a per-sample basis.

[0075] In other cases, the output samples of the scaler / inverse transform unit (351) may belong to an inter-frame coded and potentially motion compensated block. In this case, the motion compensated prediction unit (353) may access the reference picture memory (357) to extract samples for prediction. After the extracted samples are motion compensated according to the symbols (321) belonging to the block, these samples may be added to the output of the scaler / inverse transform unit (351) (in this case referred to as residual samples or residual signal) by the aggregator (355), thereby generating output sample information. The retrieval of the prediction samples by the motion compensated prediction unit (353) from the address within the reference picture memory (357) may be controlled by a motion vector. The motion vector is provided to the motion compensated prediction unit (353) in the form of a symbol (321), which may have, for example, X, Y and reference picture components. Motion compensation may also include interpolation of sample values ​​extracted from the reference picture memory (357) when using sub-sample accurate motion vectors, motion vector prediction mechanisms, etc.

[0076] The output samples of the aggregator (355) may be subjected to various loop filtering techniques in a loop filter unit (356). The video compression techniques may include in-loop filtering techniques controlled by parameters included in the coded video bitstream and available to the loop filter unit (356) as symbols (321) from the parser (320), however, the video compression techniques may also be responsive to meta-information obtained during decoding of a previous (in decoding order) portion of a coded picture or coded video sequence, as well as to previously reconstructed and loop filtered sample values.

[0077] The output of the loop filter unit (356) may be a sample stream that may be output to a display device such as a display (212) and stored in a reference picture memory (357) for subsequent inter-picture prediction.

[0078] Once fully reconstructed, certain coded pictures can be used as reference pictures for future prediction. Once a coded picture is fully reconstructed and the coded picture is identified as a reference picture (e.g., by a parser (320)), the current reference picture can become part of the reference picture memory (357) and a new current picture memory can be reallocated before starting to reconstruct a subsequent coded picture.

[0079] The video decoder (210) may perform decoding operations according to a predetermined video compression technique, such as that documented in ITU-T Recommendation H.265. The coded video sequence may conform to the syntax specified by the video compression technique or standard used, in the sense that the coded video sequence follows the syntax of the video compression technique or standard, as specified in the video compression technique or standard, and in particular as specified by a profile in the video compression technique or standard. Furthermore, for compliance under some video compression techniques or standards, the complexity of the coded video sequence is also required to be within a range defined by the hierarchy of the video compression technique or standard. In some cases, the hierarchy limits a maximum picture size, a maximum frame rate, a maximum reconstruction sampling rate (measured in, for example, megasamples per second), a maximum reference picture size, etc. In some cases, the limits set by the hierarchy may be further defined by a Hypothetical Reference Decoder (HRD) specification and metadata for HRD buffer management signaled in the coded video sequence.

[0080] In one embodiment, the receiver (310) may receive additional (redundant) data along with the encoded video. The additional data may be included as part of the encoded video sequence. The additional data may be used by the video decoder (210) to properly decode the data and / or more accurately reconstruct the original video data. The additional data may be in the form of, for example, temporal, spatial, or signal-to-noise ratio (SNR) enhancement layers, redundant slices, redundant pictures, forward error correction codes, and the like.

[0081] Figure 4 An exemplary functional block diagram of a video encoder (203) associated with a video source (201) according to one embodiment of the present application is shown.

[0082] The video encoder (203) may include, for example, an encoder as a source encoder (430), a coding engine (432), a (local) decoder (433), a reference picture memory (434), a predictor (435), a transmitter (440), an entropy encoder (445), a controller (450), and a channel (460).

[0083] The encoder (203) may receive video samples from a video source (201) (not part of the encoder) that may capture video images to be encoded by the encoder (203).

[0084] The video source (201) may provide a source video sequence in the form of a digital video sample stream to be encoded by the encoder (203), the digital video sample stream may have any suitable bit depth (e.g., 8-bit, 10-bit, 12-bit, ...), any color space (e.g., BT.601 Y CrCB, RGB, ...), and any suitable sampling structure (e.g., Y CrCb 4:2:0, Y CrCb 4:4:4). In a media serving system, the video source (201) may be a storage device storing previously prepared videos. In a video conferencing system, the video source (203) may be a camera that captures local image information as a video sequence. The video data may be provided as a plurality of individual pictures that are given motion when viewed sequentially. The pictures themselves may be constructed as a spatial array of pixels, where each pixel may include one or more samples depending on the sampling structure, color space, etc. used. The relationship between pixels and samples may be readily understood by those skilled in the art. The following description focuses on samples.

[0085] According to one embodiment, the encoder (203) can encode and compress pictures of a source video sequence into an encoded video sequence (443) in real time or under any other time constraints required by the application. Implementing an appropriate encoding speed is a function of the controller (450). The controller (450) can also control other functional units as described below and can be functionally coupled to these units. For the sake of simplicity, the coupling is not shown in the figure. The parameters set by the controller (450) may include rate control related parameters (picture skipping, quantizer, lambda value of rate distortion optimization technology, etc.), picture size, picture group (GOP) layout, maximum motion vector search range, etc. A person skilled in the art can easily identify other functions of the controller (450) that may involve a video encoder (203) optimized for a certain system design.

[0086] Some video encoders operate in what those skilled in the art will readily recognize as a "coding loop." As an oversimplified description, the coding loop may include an encoding portion of a source encoder (430) responsible for creating symbols based on the input picture to be encoded and a reference picture, and a (local) decoder (433) embedded in the encoder (203) that reconstructs the symbols to create sample data in a manner similar to how a (remote) decoder may also create sample data (because, in some video compression techniques, the compression between the symbols and the encoded video bitstream is lossless). The reconstructed sample stream may be input to a reference picture memory (434). Because the decoding of the symbol stream produces bit-accurate results that are independent of the decoder's location (local or remote), the contents of the reference picture memory also correspond bit-accurately between the local encoder and the remote encoder. In other words, the reference picture samples "seen" by the prediction portion of the encoder are exactly the same sample values ​​that the decoder will "see" when using prediction during decoding. The basic principles of this reference picture synchronization (and the drift that results when synchronization cannot be maintained, for example, due to channel errors) are also known to those skilled in the art.

[0087] The operation of the "local" decoder (433) can be combined with the operation of Figure 3 The "remote" decoder (210) is identical to the one described in detail. However, when symbols are available and the entropy encoder (445) and parser (320) are capable of losslessly encoding / decoding the symbols into an encoded video sequence, the entropy decoding portion of the decoder (210), including the channel (312), receiver (310), buffer (315), and parser (320), may not be fully implemented in the local decoder (433).

[0088] At this point, it can be observed that any decoder technology other than parsing and / or entropy decoding present in a decoder must also be present in a substantially identical functional form in the corresponding encoder. For this reason, the disclosed subject matter focuses on decoder operation. The description of encoder technology can be simplified because encoder technology is the inverse of the fully described decoder technology. A more detailed description is only required in certain areas and is provided below.

[0089] During a portion of operation, the source encoder (430) may perform motion-compensated predictive coding to predictively encode an input frame with reference to one or more previously encoded frames from a video sequence designated as "reference frames." In this manner, the encoding engine (432) encodes the differences between pixel blocks of the input frame and pixel blocks of a reference frame that may be selected as a prediction reference for the input frame.

[0090] The local video decoder (433) can decode the encoded video data of the frame that can be designated as the reference frame based on the symbols created by the source encoder (430). The operation of the encoding engine (432) can advantageously be a lossy process. When the encoded video data is available at the video decoder ( Figure 4 When decoded at a remote location (not shown), the reconstructed video sequence may typically be a copy of the source video sequence with some errors. The local video decoder (433) replicates the decoding process that the video decoder may perform on the reference frame and may cause the reconstructed reference frame to be stored in the reference picture memory (434). In this way, the encoder (203) may locally store a copy of the reconstructed reference frame that has common content (absent transmission errors) with the reconstructed reference frame that will be obtained by the remote video decoder.

[0091] The predictor (435) may perform a prediction search for the encoding engine (432). That is, for a new frame to be encoded, the predictor (435) may search the reference picture memory (434) for sample data (as candidate reference pixel blocks) or certain metadata, such as reference picture motion vectors, block shapes, etc., that may serve as suitable prediction references for the new frame. The predictor (435) may operate on a pixel block-by-pixel block basis to find a suitable prediction reference. In some cases, as determined by the search results obtained by the predictor (435), the input picture may have prediction references taken from multiple reference pictures stored in the reference picture memory (434).

[0092] The controller (450) can manage encoding operations of the video encoder (430), including, for example, setting parameters and subgroup parameters for encoding video data.

[0093] The outputs of all the above functional units may be entropy coded in an entropy encoder (445). The entropy encoder performs lossless compression on the symbols generated by the various functional units according to techniques known to those skilled in the art, such as Huffman coding, variable length coding, arithmetic coding, etc., thereby converting the symbols into a coded video sequence.

[0094] The transmitter (440) can buffer the encoded video sequence created by the entropy encoder (445) in preparation for transmission over a communication channel (460), which can be a hardware / software link to a storage device where the encoded video data will be stored. The transmitter (440) can combine the encoded video data from the video encoder (430) with other data to be transmitted, such as encoded audio data and / or an auxiliary data stream (source not shown).

[0095] The controller (450) can manage the operation of the encoder (203). During encoding, the controller (450) can assign a certain coded picture type to each coded picture, but this may affect the coding techniques that can be applied to the corresponding picture. For example, a picture can generally be assigned as an intra picture (I picture), a predictive picture (P picture), or a bidirectional predictive picture (B picture).

[0096] An intra picture (I picture) can be a picture that can be encoded and decoded without using any other frame in the sequence as a prediction source. Some video codecs allow different types of intra pictures, including, for example, instantaneous decoding refresh (IDR) pictures. Those skilled in the art are aware of the variations of I pictures and their corresponding applications and features.

[0097] A predictive picture (P picture) may be a picture that may be encoded and decoded using intra prediction or inter prediction, which predicts sample values ​​of each block using at most one motion vector and a reference index.

[0098] Bidirectional predictive pictures (B pictures) can be encoded and decoded using intra prediction or inter prediction, which uses up to two motion vectors and reference indices to predict the sample values ​​of each block. Similarly, multiple predictive pictures can use more than two reference pictures and associated metadata to reconstruct a single block.

[0099] A source picture is typically spatially subdivided into blocks of samples (e.g., blocks of 4×4, 8×8, 4×8, or 16×16 samples) and coded block by block. These blocks can be predictively coded with reference to other (already coded) blocks, which are determined by the coding allocation applied to the block's corresponding picture. For example, a block of an I picture can be non-predictively coded, or the block can be predictively coded (spatial prediction or intra prediction) with reference to already coded blocks of the same picture. Pixel blocks of a P picture can be non-predictively coded using spatial prediction or temporal prediction with reference to one previously coded reference picture. Blocks of a B picture can be non-predictively coded using spatial prediction or temporal prediction with reference to one or two previously coded reference pictures.

[0100] The video encoder (203) may perform encoding operations according to a predetermined video coding technique or standard, such as ITU-T Recommendation H.265. In operation, the video encoder (203) may perform various compression operations, including predictive coding operations that exploit temporal and spatial redundancy in the input video sequence. Thus, the encoded video data may conform to the syntax specified by the video coding technique or standard used.

[0101] In an embodiment, the transmitter (440) may transmit additional data along with the encoded video. The video encoder (430) may include such data as part of the encoded video sequence. The additional data may include temporal / spatial / SNR enhancement layers, redundant pictures and slices, and other forms of redundant data, such as supplementary enhancement information (SEI) messages, and video usability information (VUI) parameter set segments.

[0102] The embodiments of the present application may modify the current VVC specification and may implement the NAL unit type codes and NAL unit type categories defined in Table 2 above.

[0103] An "intra random access point picture" (or "IRAP picture") may be a picture that does not reference any pictures other than itself for inter-frame prediction during its decoding process and may be a clean random access (CRA) picture or an instantaneous decoding refresh (IDR) picture. The first picture in the decoding order in the bitstream may be an IRAP or a gradual decoding refresh (GDR) picture. If the necessary parameter set is available when reference is needed, the IRAP picture and all subsequent non-RASL pictures in the coded video sequence (CVS) in decoding order can be correctly decoded without performing decoding processing on any pictures that precede the IRAP picture in decoding order.

[0104] A "trailing picture" may be a non-IRAP picture that follows the associated IRAP picture in output order and is not a step-by-step temporal sub-layer access (STSA) picture.

[0105] A "step-by-step temporal sub-layer access picture" (or "STSA picture") may be a picture that does not use a picture with the same TemporalId as an STSA picture used for inter-frame prediction reference. Pictures that follow the STSA picture in decoding order and have the same TemporalId as the STSA picture used for inter-frame prediction reference may not use pictures that precede the STSA picture in decoding order and have the same TemporalId as the STSA picture used for inter-frame prediction reference. STSA pictures may allow upward switching from the immediately lower sub-layer to the sub-layer containing the STSA picture at the STSA picture. STSA pictures may have a TemporalId greater than 0.

[0106] A "random access skip leading picture" (or "RASL picture") may be a picture that is an associated CRA picture, i.e., a leading picture. When the NoIncorrectPicOutputFlag of the associated CRA picture is equal to 1, the RASL picture may not be output and may not be correctly decoded because the RASL picture may contain references to pictures that are not present in the bitstream. The RASL picture may not be used as a reference picture in the decoding process of the RASL picture. When present, all RASL pictures may precede all trailing pictures of the same associated CRA picture in decoding order.

[0107] A "random access decoded leading picture" (or "RADL picture") may be a leading picture that is not used as a reference picture for the decoding process of the trailing pictures of the same associated IRAP picture. When present, all RADL pictures may precede all trailing pictures of the same associated IRAP picture in decoding order.

[0108] An "instantaneous decoding refresh picture" (or "IDR picture") may be a picture that does not have an associated preceding picture present in the bitstream (e.g., nal unit type equal to IDR_N_LP), or does not have an associated RASL picture present in the bitstream, but may have an associated RADL picture in the bitstream (e.g., nal unit type equal to IDR_W_RADL).

[0109] A "clean random access picture" (or "CRA picture") may be a picture that does not reference any pictures other than itself for inter prediction during its decoding process and may be the first picture in the bitstream in decoding order, or may appear later in the bitstream. A CRA picture may have an associated RADL or RASL picture. When the NoIncorrectPicOutputFlag of a CRA picture is equal to 1, the associated RASL picture may not be output by the decoder because the RASL picture is not decodable because the RASL picture may contain references to pictures that are not present in the bitstream.

[0110] According to one or more embodiments, when the syntax element mixed_nalu_types_in_pic_flag of a PPS referenced by a coded picture is equal to 1, the picture type of the coded picture is determined (e.g., by a decoder) as follows:

[0111] (A) When the nal_unit_type of a NAL unit of a picture is equal to TRAIL_NUT and the nal_unit_type of another NAL unit of the picture is in the range of IDR_W_RADL to CRA_NUT, the picture is determined to be a trailing picture.

[0112] (B) When the nal_unit_type of a NAL unit of a picture is equal to RADL_NUT and the nal_unit_type of another NAL unit of the picture is within the range of IDR_W_RADL to CRA_NUT, the picture is determined to be a RADL picture.

[0113] (C) When the nal_unit_type of a NAL unit of a picture is equal to STSA_NUT and the nal_unit_type of another NAL unit of the picture is IDR_W_RADL or IDR_N_LP, the picture is determined to be an STSA picture.

[0114] (D) When the nal_unit_type of a NAL unit of a picture is equal to STSA_NUT and the nal_unit_type of another NAL unit of the picture is CRA_NUT, the picture is determined to be a trailing picture.

[0115] (E) When the nal_unit_type of a NAL unit of a picture is equal to GDR_NUT and the nal_unit_type of another NAL unit of the picture is in the range of IDR_W_RADL to CRA_NUT, the picture is determined to be a trailing picture.

[0116] According to one or more embodiments, when the syntax element mixed_nalu_types_in_pic_flag of a PPS referenced by a coded picture is equal to 1, the picture type of the coded picture is determined (eg, by a decoder) to be a trailing picture.

[0117] The above aspects may provide a solution to "Problem 1" described above in the Summary of the Invention section.

[0118] According to one or more embodiments, a mixture of STS NAL units and IRAP NAL units may not be allowed.

[0119] For example, for any particular picture's VCL NAL unit, this can be implemented as follows:

[0120] If mixed_nalu_types_in_pic_flag is equal to 0, then the nal_unit_type value should be the same (eg, may be determined to be the same) for all coded slice NAL units of a picture. A picture or PU is said to have the same NAL unit type as the coded slice NAL units of the picture or PU.

[0121] Otherwise (mixed_nalu_types_in_pic_flag is equal to 1), one or more VCL NAL units shall all have (e.g., may be determined to all have) a specific nal_unit_type value in the range of IDR_W_RADL to CRA_NUT (inclusive), while other VCL NAL units shall all have (e.g., may be determined to all have) a specific nal_unit_type value in the range of RADL_NUT to RSV_VCL_6 (inclusive), or their nal_unit_type value is equal to GDR_NUT or TRAIL_NUT.

[0122] According to one embodiment, the encoder may be configured to apply the above to not allow a mixture of STS NAL units and IRA P NAL units. According to one embodiment, the decoder may be configured to determine the value of the NAL unit type based on the above.

[0123] According to one or more embodiments, the TemporalId constraint on STSA_NUT in the current VVC draft specification JVET-P2001 may be removed.

[0124] That is, for example, embodiments of the present application may not implement the following constraint: when nal_unit_type is equal to STSA_NUT, TemporalId should not be equal to 0. However, embodiments may still implement the following constraint: when nal_unit_type is in the range of IDR_W_RADL to RSV_IRAP_12 (including endpoints), TemporalId should (for example, may be determined to be) equal to 0.

[0125] According to one or more embodiments, the following constraint may be implemented: the TemporalId of a picture whose mixed_nalu_types_in_pic_flag is equal to 1 should be equal to 0. For example, an encoder or decoder of an embodiment of the present application may determine that the temporal ID of a picture is 0 based on the mixed_nalu_types_in_pic_flag being equal to 1.

[0126] The above aspects may provide a solution to "Problem 2" described above in the Summary of the Invention section.

[0127] According to one or more embodiments, the syntax element mixed_nalu_types_in_pic_flag may be set in a picture header or a slice header instead of being set in a PPS. An example of the syntax element mixed_nalu_types_in_pic_flag in a picture header is provided in Table 3 below.

[0128] Table 3

[0129]

[0130] The syntax element mixed_nalu_types_in_pic_flag is equal to 1, which may indicate that each picture associated with the picture header PH has more than one VCL NAL unit, and the VCL NAL units do not have the same nal_unit_type value, and the picture is not an IRAP picture. The syntax element mixed_nalu_types_in_pic_flag is equal to 0, which may indicate that each picture associated with the PH has one or more VCL NAL units, and the VCL NAL units of each picture associated with the PH have the same nal_unit_type value.

[0131] When the syntax element no_mixed_nalu_types_in_pic_constraint_flag is equal to 1, the value of mixed_nalu_types_in_pic_flag shall (eg, may be determined to be) equal to 0.

[0132] According to one or more embodiments, the syntax element mixed_nalu_types_in_pic_flag may be set in a picture header or a slice header, and the presence flag is located in the SPS.

[0133] An example of an SPS with a presence flag (sps_mixed_nalu_types_present_flag) is provided in Table 4 below.

[0134] Table 4

[0135]

[0136] An example of a picture header with the syntax element mixed_nalu_types_in_pic_flag is provided in Table 5 below.

[0137] Table 5

[0138]

[0139] The syntax element sps_mixed_nalu_types_present_flag is equal to 1, which indicates that zero or more pictures referencing the SPS have more than one VCL NAL unit, and the VCL NAL units do not have the same nal_unit_type value, and the picture is not an IRAP picture. The syntax element sps_mixed_nalu_types_present_flag is equal to 0, which indicates that each picture referencing the SPS has one or more VCL NAL units, and the VCL NAL units of each picture referencing the SPS have the same nal_unit_type value.

[0140] When the syntax element no_mixed_nalu_types_in_pic_constraint_flag is equal to 1, the value of the syntax element sps_mixed_nalu_types_present_flag shall (eg, may be determined to be) equal to 0.

[0141] The syntax element mixed_nalu_types_in_pic_flag is equal to 1, which may indicate that each picture associated with the PH has more than one VCL NAL unit, and the VCL NAL units do not have the same nal_unit_type value, and the picture is not an IRAP picture. The syntax element mixed_nalu_types_in_pic_flag is equal to 0, which may indicate that each picture associated with the PH has one or more VCL NAL units, and the VCL NAL units of each picture associated with the PH have the same nal_unit_type value. When not present, the value of mixed_nalu_types_in_pic_flag may be inferred (e.g., by a decoder) to be 0.

[0142] The above aspects may provide a solution to "Problem 3" described above in the Summary of the Invention section.

[0143] According to one or more embodiments, the syntax element flag mixed_nalu_types_in_pic_flag may be replaced with the indicator mixed_nalu_types_in_pic_idc.

[0144] An example of a picture parameter set with the syntax element mixed_nalu_types_in_pic_idc is provided in Table 6 below.

[0145] Table 6

[0146]

[0147] The syntax element mixed_nalu_types_in_pic_idc is equal to 1 or 2, which indicates that each picture of the referenced PPS has more than one VCL NAL unit, and the VCL NAL units do not have the same nal_unit_type value, and the picture is not an IRAP picture. The syntax element mixed_nalu_types_in_pic_idc is equal to 0, which indicates that each picture of the referenced PPS has one or more VCL NAL units, and the VCL NAL units of each picture of the referenced PPS have the same nal_unit_type value. Other values ​​of the syntax element mixed_nalu_types_in_pic_idc are reserved for future use by ITU-T|ISO / IEC.

[0148] When the syntax element no_mixed_nalu_types_in_pic_constraint_idc is equal to 1, the value of mixed_nalu_types_in_pic_idc shall be equal to 0 (eg, determined by, for example, a decoder).

[0149] For each slice in picture picA whose nal_unit_type value nalUnitTypeA is in the range of IDR_W_RADL to CRA_NUT (inclusive) (picture picA also contains one or more slices with another nal_unit_type value (i.e., the value of mixed_nalu_types_in_pic_idc of picture picA is equal to 1)), it can be implemented as follows:

[0150] (A) The slice should belong to (eg, may be determined to belong to) a sub-picture subpicA, where for the sub-picture subpicA, the value of the corresponding subpic_treated_as_pic_flag[i] is equal to 1.

[0151] (B) The slice should not belong to (eg, may be determined not to belong to) a sub-picture of picA containing a VCL NAL unit, where the nal_unit_type of the slice is not equal to nalUnitTypeA.

[0152] (C) For all PUs that follow in decoding order in the CLVS, neither RefPicList[0] nor RefPicList[1] of the slice in subpicA shall include any picture that precedes picA in decoding order in the valid entries.

[0153] RefPicList[0] may be a reference picture list for inter prediction of a P slice or a first reference picture list for inter prediction of a B slice. RefPicList[1] may be a second reference picture list for inter prediction of a B slice.

[0154] For any particular picture's VCL NAL unit, this can be implemented as follows:

[0155] (A) If the syntax element mixed_nalu_types_in_pic_idc is equal to 1, then one or more VCL NAL units shall all have (e.g., may be determined to have) a specific nal_unit_type value in the range of IDR_W_RADL to CRA_NUT (inclusive), and other VCL NAL units shall all have (e.g., may be determined to have) a specific nal_unit_type value in the range of TRAIL_NUT to RSV_VCL_6 (inclusive), or their nal_unit_type value is equal to GDR_NUT.

[0156] (B) If the syntax element mixed_nalu_types_in_pic_idc is equal to 2, one or more VCL NAL units shall all have (e.g., may be determined to have) a specific nal_unit_type value equal to RASL_NUT or RADL_NUT (inclusive) or equal to GDR-NUT, and other VCL NAL units shall all have (e.g., may be determined to have) a specific nal_unit_type value in the range of TRAIL_NUT to RSV_VCL_6 (inclusive), or their nal_unit_type value is equal to GDR_NUT, where nal_unit_type is different from other nal_unit_type.

[0157] (C) Otherwise (mixed_nalu_types_in_pic_idc is equal to 0), the nal_unit_type value shall (e.g., may be determined to be) the same for all coded slice NAL units of a picture. A picture or PU is said to have the same NAL unit type as the coded slice NAL units of the picture or PU.

[0158] When mixed_nalu_types_in_pic_idc of a PPS referenced by a coded picture is equal to 1 or 2, the picture may be determined (eg, by a decoder) to be a trailing picture.

[0159] The above aspects may provide a solution to "Problem 4" described above in the Summary of the Invention section.

[0160] According to one or more embodiments, when the syntax element mixed_nalu_types_in_pic_flag of a picture in layer A is equal to 1, the mixed_nalu_types_in_pic_flag of a picture in layer B, a reference layer of layer A, should (eg, may be determined to be) equal to 1 (in the same AU).

[0161] The above aspects may provide a solution to "Problem 5" described above in the Summary of the Invention section.

[0162] According to one or more embodiments, one or more coded video data bitstreams and the syntax structures and elements therein (such as the above-mentioned VCL NAL units and parameter sets) may be received by a decoder of an embodiment of the present application to decode the received video data. According to an embodiment of the embodiment of the present application, the decoder of the embodiment of the present application may be based on the VCL NAL units of the coded pictures with mixed VCL NAL unit types (for example, Figure 5 The VCL NAL unit (500) shown in FIG. 5 is used to decode the coded pictures of the video.

[0163] For example, reference Figure 6 The decoder (600) may include a decoding code (610) configured to cause at least one processor of the decoder (600) to decode an encoded picture based on a VCL NAL unit. According to one or more embodiments, the decoding code (610) may include a determination code (620), which is configured to cause at least one processor of the decoder (600) to: (a) determine or constrain the NAL unit type of one or more VCL NAL units of the coded picture based on the NAL unit type of another one or more VCL NAL units of the coded picture, or based on an indicator (e.g., a flag), (b) determine or constrain the picture type of the coded picture based on one or more NAL unit types of the VCL NAL units of the coded picture, or based on an indicator (e.g., a flag), (c) determine or constrain the TemporalID of the coded picture based on one or more NAL unit types of one or more VCL NAL units of the coded picture, or based on an indicator (e.g., a flag), and / or (d) determine or constrain the following indicator (e.g., a flag) based on another indicator (e.g., a flag) received or determined, the indicator (e.g., a flag) indicating whether the coded picture has multiple VCL NAL units, and the multiple VCL NAL units have mixed VCL NAL unit types.

[0164] The embodiments of the present application can be used alone or in combination in any order. In addition, each of the methods, encoders, and decoders of the present application can be implemented by processing circuits (e.g., one or more processors or one or more integrated circuits). In one example, one or more processors execute a program stored in a non-transitory computer-readable medium.

[0165] The above technology can be implemented as computer software that uses computer-readable instructions and is physically stored in one or more computer-readable media. Figure 7 A computer system (900) suitable for implementing embodiments of the disclosed subject matter is shown.

[0166] Computer software may be encoded using any suitable machine code or computer language that may be subjected to assembly, compilation, linking, or similar mechanisms to create code comprising instructions that may be executed directly by one or more computer central processing units (CPUs), graphics processing units (GPUs), etc., or through interpretation, microcode, etc.

[0167] The instructions may be executed on various types of computers or components thereof, including, for example, personal computers, tablet computers, servers, smart phones, gaming devices, IoT devices, and the like.

[0168] Figure 7 The components of the computer system (900) shown are exemplary in nature and are not intended to suggest any limitation on the scope of use or functionality of computer software implementing embodiments of the present application. Nor should the configuration of the components be interpreted as having any dependency or requirement relating to any one or combination of components shown in the exemplary embodiment of the computer system (900).

[0169] The computer system (900) may include certain human interface input devices. Such human interface input devices may be responsive to input from one or more human users, for example, through: tactile input (e.g., keystrokes, swipes, data glove movements), audio input (e.g., speech, hand clapping), visual input (e.g., gestures), olfactory input (not depicted). The human interface devices may also be used to capture certain media that are not necessarily directly related to human conscious input, such as audio (e.g., speech, music, ambient sounds), images (e.g., scanned images, photographic images from a still camera), video (e.g., two-dimensional video, three-dimensional video including stereoscopic video), etc.

[0170] The input human-machine interface device may include one or more of the following (only one of each is shown): keyboard (901), mouse (902), touchpad (903), touch screen (910), data glove, joystick (905), microphone (906), scanner (907) and camera (908).

[0171] The computer system (900) may also include certain human-computer interface output devices. Such human-computer interface output devices may stimulate one or more human user senses, for example, through tactile output, sound, light, and smell / taste. Such human-computer interface output devices may include tactile output devices (e.g., tactile feedback of a touch screen (910), a data glove, or a joystick (905), but may also be tactile feedback devices that are not input devices). For example, such devices may be audio output devices (e.g., speakers (909), headphones (not shown)), visual output devices (e.g., screens (910) including CRT screens, LCD screens, plasma screens, OLED screens, each with or without touch screen input capabilities, each with or without tactile feedback capabilities - some of which are capable of outputting two-dimensional visual output or more than three-dimensional output through devices such as stereoscopic image output, virtual reality glasses (not depicted), holographic displays and smoke boxes (not depicted), and printers (not depicted).

[0172] The computer system (900) may also include human-accessible storage devices and their associated media: for example, optical media including CD / DVD ROM / RW (920) including CD / DVD etc. media (921), thumb drives (922), removable hard drives or solid-state drives (923), traditional magnetic media such as tapes and floppy disks (not depicted), dedicated ROM / ASIC / PLD based devices such as security dongles (not depicted), etc.

[0173] Those skilled in the art will also understand that the term "computer-readable medium" used in connection with the presently disclosed subject matter does not encompass transmission media, carrier waves, or other transient signals.

[0174] The computer system (900) may also include an interface to one or more communication networks. The network may be, for example, a wireless network, a wired network, an optical network. The network may further be a local area network, a wide area network, a metropolitan area network, a vehicle and industrial network, a real-time network, a delay-tolerant network, etc. Examples of networks include local area networks such as Ethernet, wireless LANs, cellular networks including GSM, 3G, 4G, 5G, LTE, etc., television wired or wireless wide area digital networks including cable television, satellite television, and terrestrial broadcast television, vehicle and industrial television including CANBus, etc. Some networks typically require an external network interface adapter connected to some common data port or peripheral bus (949) (e.g., a USB port of the computer system (900)); as described below, other network interfaces are typically integrated into the core of the computer system 9200 by connecting to the system bus (e.g., connecting to an Ethernet interface in a PC computer system or connecting to a cellular network interface in a smartphone computer system). The computer system (900) can use any of these networks to communicate with other entities. Such communications may be one-way receive only (e.g., broadcast television), one-way send only (e.g., CANbus connected to certain CANbus devices), or bidirectional, for example, using a local area network or wide area network digital network to connect to other computer systems. Such communications may include communications with a cloud computing environment (955). As described above, certain protocols and protocol stacks may be used on each of those networks and network interfaces.

[0175] The above-mentioned human-machine interface device, human-machine accessible storage device and network interface (954) may be attached to the kernel (940) of the computer system (900).

[0176] The core (940) may include one or more central processing units (CPUs) (941), graphics processing units (GPUs) (942), specialized programmable processing units in the form of field programmable gate arrays (FPGAs) (943), hardware accelerators (944) for certain tasks, and the like. These devices, as well as read-only memory (ROM) (945), random access memory (946), and internal mass storage (947) such as an internal non-user accessible hard drive, SSD, and the like, may be connected via a system bus (948). In some computer systems, the system bus (948) may be accessed in the form of one or more physical plugs to enable expansion with additional CPUs, GPUs, and the like. Peripheral devices may be connected directly to the core's system bus (948) or to the core's system bus (948) via a peripheral bus (949). Peripheral bus architectures include PCI, USB, and the like. A graphics adapter 950 may be included in the core 940.

[0177] The CPU (941), GPU (942), FPGA (943), and accelerator (944) can execute certain instructions, which can be combined to form the above-mentioned computer code. The computer code can be stored in ROM (945) or RAM (946). Transient data can also be stored in RAM (946), while permanent data can be stored, for example, in internal mass storage (947). Fast storage and retrieval to any storage device can be achieved by using a cache, which can be closely associated with the following: one or more CPUs (941), GPUs (942), mass storage (947), ROM (945), RAM (946), etc.

[0178] Computer-readable media may have computer code thereon for performing various computer-implemented operations. The media and computer code may be those specially designed and constructed for the purposes of the embodiments of the present application, or they may be of a type well known and available to those skilled in the art of computer software.

[0179] As a non-limiting example, a computer system having architecture (900), particularly kernel (940), may provide functionality due to one or more processors (including CPUs, GPUs, FPGAs, accelerators, etc.) executing software contained in one or more tangible computer-readable media. Such computer-readable media may be media associated with a user-accessible mass storage as described above, as well as certain non-transitory memories of kernel (940), such as kernel internal mass storage (947) or ROM (945). Software for implementing various embodiments of the present application may be stored in such devices and executed by kernel (940). Depending on specific needs, the computer-readable medium may include one or more storage devices or chips. The software may cause kernel (940), particularly the processors therein (including CPUs, GPUs, FPGAs, etc.) to perform specific processes or specific parts of specific processes described herein, including defining data structures stored in RAM (946) and modifying such data structures according to processes defined by the software. Additionally or alternatively, the computer system may provide functionality due to logic hardwired or otherwise embodied in circuitry (e.g., accelerator (944)) that may replace software or operate in conjunction with software to perform a particular process or a particular portion of a particular process described herein. Where appropriate, references to software may include logic and vice versa. Where appropriate, references to computer-readable media may include circuitry (e.g., an integrated circuit (IC)) storing software for execution, circuitry embodying logic for execution, or both. Embodiments of the present application include any suitable combination of hardware and software.

[0180] Although the embodiments of the present application have described a number of non-limiting exemplary embodiments, there are modifications, permutations, and various replacement equivalents that fall within the scope of the embodiments of the present application. Therefore, it should be understood that those skilled in the art will be able to design many systems and methods that, although not explicitly shown or described herein, embody the principles of the embodiments of the present application and therefore fall within the spirit and scope of the embodiments of the present application.

Claims

1. A video decoding method, characterized in that: For decoding an encoded video stream, the method comprises: Receiving a first video coding layer (VCL) network abstraction layer (NAL) unit of a first slice of a coded picture and a second VCL NAL unit of a second slice of the coded picture, the first VCL NAL unit having a first VCL NAL unit type and the second VCL NAL unit having a second VCL NAL unit type different from the first VCL NAL unit type; and Determining a picture type of the coded picture based on the first VCL NAL unit type of the first VCL NAL unit and the second VCL NAL unit type of the second VCL NAL unit includes: Indicating, based on the first VCL NAL unit type, that the first VCL NAL unit contains a coded slice of a progressive decoding refresh (GDR) picture; and Based on the second VCL NAL unit type, indicating that the second VCL NAL unit does not include an instantaneous decoding refresh (IDR) picture coded slice or a clean random access (CRA) picture coded slice, it is determined that the coded picture is a trailing picture.

2. The method according to claim 1, characterized in that The determining the picture type of the encoded picture further comprises: Indicating, based on the first VCL NAL unit type, that the first VCL NAL unit includes a trailing picture coded slice; and Based on the second VCL NAL unit type, indicating that the second VCL NAL unit includes an instantaneous decoding refresh (IDR) picture coded slice or a clean random access (CRA) picture coded slice, it is determined that the coded picture is a trailing picture.

3. The method according to claim 1, characterized in that: The determining the picture type of the encoded picture further comprises: Based on the first VCL NAL unit type, indicating that the first VCL NAL unit contains a random access decoding preceding RADL picture coded slice; and Based on the second VCL NAL unit type, indicating that the second VCL NAL unit includes an instantaneous decoding refresh (IDR) picture coded slice or a clean random access (CRA) picture coded slice, it is determined that the coded picture is a RADL picture.

4. The method according to claim 1, characterized in that The determining the picture type of the encoded picture further comprises: Based on the first VCL NAL unit type, indicating that the first VCL NAL unit includes a step-by-step temporal sub-layer access STSA picture coded slice; and Based on the second VCL NAL unit type, indicating that the second VCL NAL unit does not contain an instantaneous decoding refresh (IDR) picture coded slice, it is determined that the coded picture is a STSA picture.

5. The method according to claim 1, characterized in that The determining the picture type of the encoded picture further comprises: Based on the first VCL NAL unit type, indicating that the first VCL NAL unit includes a step-by-step temporal sub-layer access STSA picture coded slice; and Based on the second VCL NAL unit type, indicating that the second VCL NAL unit does not include a clean random access CRA picture coded slice, it is determined that the coded picture is a trailing picture.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: determining a picture type of the coded picture based on an indicator indicating that the coded picture includes a mixed VCL NAL unit type; When the coded picture is located in the first layer, receiving the indicator; and Based on the indicator indicating that the coded picture includes a mixed VCL NAL unit type, determining that an additional coded picture located in a second layer includes a mixed VCL NAL unit type, wherein the second layer is a reference layer of the first layer.

7. The method according to any one of claims 1 to 5, characterized in that The determining the picture type of the encoded picture further comprises: determining that the encoded picture is a trailing picture based on an indicator indicating that the encoded picture includes a mixed VCL NAL unit type.

8. The method according to any one of claims 1 to 5, characterized in that The method further comprises: Based on the indicator indicating that the coded picture includes a mixed VCL NAL unit type, determining that the temporal ID of the coded picture is 0.

9. A video decoding system, characterized in that: include: a memory configured to store computer program code; as well as At least one processor is configured to receive at least one encoded video stream, access the computer program code and operate according to the instructions of the computer program code to implement the video decoding method according to any one of claims 1 to 8 to decode the encoded video stream.

10. A video encoding method, characterized in that: For generating an encoded video stream, the method comprises: Receive a first video coding layer (VCL) network abstraction layer (NAL) unit of a first slice of a picture to be encoded and a second VCL NAL unit of a second slice of the picture to be encoded, the first VCL NAL unit having a first VCL NAL unit type, the second VCL NAL unit having a second VCL NAL unit type different from the first VCL NAL unit type; and Setting the picture type of the to-be-encoded picture based on the first VCL NAL unit type of the first VCL NAL unit and the second VCL NAL unit type of the second VCL NAL unit includes: Based on the first VCL NAL unit type, indicating that the first VCL NAL unit contains a coded slice of a progressive coding refresh (GDR) picture; and Based on the second VCL NAL unit type, indicating that the second VCL NAL unit does not include a coded slice of an instantaneous coded refresh IDR picture or a coded slice of a clean random access CRA picture, it is determined that the picture to be encoded is a trailing picture.

11. A computer readable medium, characterized in that The computer-readable medium stores computer instructions, which, when executed by at least one processor, enable the at least one processor to implement the video decoding method according to claims 1 to 8 to decode the encoded streaming video, or the video encoding method according to claim 10 to generate an encoded video stream.

12. A video decoding device, characterized in that: For decoding a coded video stream, the device comprises: A receiving module, configured to receive a first video coding layer (VCL) network abstraction layer (NAL) unit of a first slice of a coded picture and a second VCL NAL unit of a second slice of the coded picture, wherein the first VCL NAL unit has a first VCL NAL unit type, and the second VCL NAL unit has a second VCL NAL unit type different from the first VCL NAL unit type; and A decoding module, configured to determine a picture type of the encoded picture based on the first VCL NAL unit type of the first VCL NAL unit and the second VCL NAL unit type of the second VCL NAL unit, comprising: Based on the first VCL NAL unit type, indicating that the first VCL NAL unit contains a decoded slice of a progressive coding refresh (GDR) picture; and Based on the second VCL NAL unit type, indicating that the second VCL NAL unit does not include a decoded slice of an instantaneous coded refresh (IDR) picture or a decoded slice of a clean random access (CRA) picture, it is determined that the coded picture is a trailing picture.

13. A video encoding device, characterized in that: The device comprises: a memory configured to store computer program code; and At least one processor is configured to receive video data, access the computer program code and operate according to the instructions of the computer program code to implement the video encoding method according to claim 10 to encode the video data.

14. A method for storing a code stream, characterized in that: A video code stream is stored on a non-transitory computer-readable storage medium, wherein the video code stream is decoded based on the video decoding method according to any one of claims 1 to 8, or is generated by the video encoding method according to claim 10.