Video encoder, video decoder and corresponding methods
By introducing overwrite flags and segmentation constraint information into the video code stream, the video code rate compression problem in the existing technology is solved, efficient video code stream decoding and block segmentation are achieved, and the flexibility and efficiency of video decoding are improved.
Patent Information
- Application Number
- CN202410385191.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2018-10-05
- Filing Date
- 2019-09-18
- Publication Date
- 2024-08-23
AI Technical Summary
It is difficult for existing video decoding standards to further compress the video bit rate while ensuring image quality. Especially compared to High Efficiency Video Coding (HEVC), there is still room for video compression.
By introducing overwrite flags and segmentation constraint information in the video code stream, each image area is allowed to have unique segmentation constraint information, instead of relying on the segmentation constraint information of multiple image areas in the parameter set, thereby achieving efficient code stream parsing. and block splitting.
It improves the decoding efficiency of video code streams, especially in the processing of syntax elements related to block segmentation, providing higher flexibility and processing capabilities, reducing the bit rate, while maintaining image quality.
Smart Images

Figure CN118540508A_ABST
Abstract
Description
[0001] This application is a divisional application. The application number of the original application is 201980061251.1, and the original application date is September 18, 2019. The entire contents of the original application are incorporated into this application by reference. Technical Field
[0002] Embodiments of the present application generally relate to the field of video decoding, and more particularly to block partitioning and segmentation. 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 camcorders for security applications.
[0004] Since the development of the block-based hybrid video coding method in the H.261 standard in 1990, new video coding techniques and tools have emerged, laying the foundation for new video coding standards. Other video coding standards include MPEG-1 Video, MPEG-2 Video, ITU-T H.262 / MPEG-2, ITU-T H.263, ITU-T H.264 / MPEG-4, Part 10, Advanced Video Coding (AVC), ITU-T H.265 / High Efficiency Video Coding (HEVC), ITU-T H.266 / Versatile Video Coding (VVC) and extensions, such as scalability and / or three-dimensional (3D) extensions of these standards. As video creation and use become more and more common, video traffic has become the largest burden on communication networks and data storage. Therefore, one of the goals of most video coding standards is to reduce the bit rate while maintaining image quality compared to previous standards. Even though the latest High Efficiency video coding (HEVC) can compress video about twice as much as AVC while maintaining image quality, new technologies are still urgently needed to further compress video relative to HEVC. Summary of the invention
[0005] The embodiments of the present application (or the present invention) provide the encoding and decoding apparatus and method provided 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 detailed description and the drawings.
[0007] According to the standard, some characteristics are defined as follows:
[0008] Picture parameter set (PPS): A syntax structure containing syntax elements applicable to zero or more complete decoded pictures, as determined by the syntax elements in each slice header.
[0009] Sequence parameter set (SPS): A syntax structure containing syntax elements applicable to zero or more complete CVSs, determined by the contents of syntax elements in the PPS referenced by syntax elements in each slice header.
[0010] Stripe Header: A portion of a decoded stripe containing data elements related to the first or all bricks represented in the stripe.
[0011] Sub-image: A rectangular area of one or more strips in an image.
[0012] A stripe consists of several complete blocks, or just a continuous sequence of complete bricks in a block.
[0013] Block: A rectangular area of a CTU within a specific block column and a specific block row in an image.
[0014] The image is divided into one or more tile rows and one or more tile columns. A tile is a sequence of CTUs covering a rectangular area of the image.
[0015] A block is divided into one or more bricks, each brick consists of several CTU rows inside the block.
[0016] A tile that is not split into multiple bricks can also be called a brick. However, a brick is a true subset of a tile and is therefore not called a tile.
[0017] A strip contains multiple tiles of an image, or multiple bricks of a tile.
[0018] A sub-image consists of one or more strips that together cover a rectangular area of the image.
[0019] Two strip modes are supported, namely raster scan strip mode and rectangular strip mode. In raster scan strip mode, a strip contains a sequence of tiles in a raster scan of an image. In rectangular strip mode, a strip contains a number of tiles of an image, which together form a rectangular region of the image. The tiles in a rectangular strip are arranged in the raster scan order of the tiles in the strip.
[0020] According to a first aspect of the present invention, there is provided a method for decoding a video code stream implemented by a decoding device, wherein the video code stream includes data representing an image area and an image area header of the image area, and the decoding method includes: obtaining an overwrite flag from the video code stream; when the value of the overwrite flag is an overwrite value, obtaining first segmentation constraint information of the image area from the image area header; and segmenting blocks of the image area according to the first segmentation constraint information.
[0021] This method enables each image region to have its own segmentation constraint information, rather than segmentation constraint information of multiple image regions in a parameter set, so this method can perform efficient code stream parsing, especially efficient segmentation constraint information indication.
[0022] Wherein, acquiring the first segmentation constraint information of the image area from the image area header may include: acquiring the first segmentation constraint information of the image area from data representing the image area header.
[0023] The overwrite value may be preset.
[0024] The overwrite value includes true, false, 0 or 1.
[0025] The image region header may be a collection or structure containing data elements related to all or part of the image region.
[0026] According to the first aspect, in a possible implementation of the method, the decoding method further includes: acquiring an overwrite enable flag from the video code stream, wherein the value of the overwrite enable flag is an enable value.
[0027] The enabling value may be preset.
[0028] The enable value includes true, false, 0 or 1.
[0029] According to the first aspect, in a possible implementation of the method, the decoding method further includes: obtaining an overwrite enable flag from the video code stream, wherein obtaining the overwrite flag from the video code stream includes: when the value of the overwrite enable flag is an enable value, obtaining the overwrite flag from the video code stream.
[0030] The enabling value may be preset.
[0031] The enable value includes true, false, 0 or 1.
[0032] By providing an override enable flag, the override can be controlled in an efficient manner, thereby increasing the flexibility of handling syntax elements related to block segmentation. It should be noted that when the override enable flag is set to the enable value, the override flag can also be extracted from the bitstream. Otherwise, the override flag may not be extracted from the bitstream, and in this case, the override will not be applied. Instead, the second or third segmentation constraints can be used to segment the block.
[0033] According to the first aspect or any of the above implementations of the first aspect, in a possible implementation of the method, the video bitstream further includes data representing a parameter set of the video bitstream, and the decoding method further includes: when the value of the overwrite enable flag is a disabled value, segmenting the blocks of the image area according to second segmentation constraint information of the video bitstream. The second segmentation constraint information may come from a parameter set or may be in a parameter set.
[0034] The parameter set may be a sequence parameter set (SPS) or a picture parameter set (PPS) or any other parameter set.
[0035] The disable value is different from the enable value.
[0036] The disabled value may be preset.
[0037] The disabled value includes true, false, 0 or 1.
[0038] When the value of the overwrite enable flag is a disabled value, the video bitstream may not have the first segmentation constraint information, and it can be inferred that the value of the first segmentation constraint information is equal to the value of the second segmentation constraint information.
[0039] The parameter set may be a set or structure including syntax elements, wherein the syntax elements are applied to zero or more complete coded images or coded video sequences including the image region.
[0040] The parameter set is different from the image region header.
[0041] For example, the second segmentation constraint information includes the minimum allowed quad tree leaf node size information, the maximum multi-type tree depth information, the maximum allowed ternary tree root node size information, or the maximum allowed binary tree root node size information. Any combination / subset of these parameters and other parameters can be indicated to configure the segmentation constraint.
[0042] The minimum allowed quad leaf node size information may be an incremental value to obtain the value of the minimum allowed quad leaf node size. For example, the minimum allowed quad leaf node size information may be sps_log2_min_qt_size_intra_slices_minus2, sps_log2_min_qt_size_inter_slices_minus2 or log2_min_qt_size_minus2.
[0043] The maximum allowed ternary tree root node size information may be an incremental value to obtain the value of the maximum allowed ternary tree root node size. For example, the maximum allowed ternary tree root node size information may be sps_log2_diff_ctu_max_tt_size_intra_slices, sps_log2_diff_ctu_max_tt_size_inter_slices or log2_diff_ctu_max_tt_size.
[0044] The maximum allowed binary tree root node size information may be an incremental value to obtain the value of the maximum allowed binary tree root node size. For example, the maximum allowed binary tree root node size information may be sps_log2_diff_ctu_max_bt_size_intra_slices, sps_log2_diff_ctu_max_bt_size_inter_slices or log2_diff_ctu_max_bt_size.
[0045] For example, the maximum multi-type tree depth information may be sps_max_mtt_hierarchy_depth_inter_slices, sps_max_mtt_hierarchy_depth_intra_slices, or max_mtt_hierarchy_depth.
[0046] Additionally or optionally, the second partition constraint information includes partition constraint information of a block in an intra mode, or partition constraint information of a block in an inter mode.
[0047] The second segmentation constraint information may include segmentation constraint information of blocks in intra-frame mode and segmentation constraint information of blocks in inter-frame mode that are separately indicated. However, the present invention is not limited thereto, and the segmentation constraint information of blocks in intra-frame mode and the segmentation constraint information of blocks in inter-frame mode may have a common segmentation constraint information.
[0048] The block in the intra mode or the block in the inter mode refers to the parameter set.
[0049] The parameter set may include a sequence parameter set (SPS) or a picture parameter set (PPS).
[0050] Among them, the block in the intra-frame mode can be located inside the CTU in the slice, slice_type=2(I) refers to the parameter set, or the block in the inter-frame mode can be located inside the CTU of the slice, slice_type=0(B) or 1(P) refers to the parameter set.
[0051] Additionally or optionally, the second segmentation constraint information includes segmentation constraint information of a luminance block and / or segmentation constraint information of a chrominance block.
[0052] The luminance block or the chrominance block refers to the parameter set.
[0053] The parameter set may include a sequence parameter set (SPS) or a picture parameter set (PPS).
[0054] The luminance block or the chrominance block may be inside a CTU in a slice of the parameter set.
[0055] According to the first aspect or any one of the above implementations of the first aspect, in a possible implementation of the method, the video code stream also includes data representing a parameter set of the video code stream, and obtaining the overwrite enable flag from the video code stream includes: obtaining the overwrite enable flag from the parameter set or obtaining the overwrite enable flag in the parameter set.
[0056] Wherein, obtaining the overwrite enable flag from the parameter set may include obtaining the overwrite enable flag from data representing the parameter set, wherein the parameter set may be a sequence parameter set (SPS) or a picture parameter set (PPS) or any other parameter set.
[0057] According to the first aspect or any one of the above implementations of the first aspect, in a possible implementation of the method, obtaining the overwrite flag from the video code stream includes: obtaining the overwrite flag from the image area header.
[0058] Wherein, acquiring the overwrite flag from the image area header may include acquiring the overwrite flag from data representing the image area header.
[0059] According to the first aspect or any of the above-mentioned implementations of the first aspect, in possible implementations of the method, the first segmentation constraint information includes minimum allowed quadtree tree leaf node size information, maximum multi-type tree depth information, maximum allowed ternary tree root node size information, or maximum allowed binary tree root node size information.
[0060] The minimum allowed quad leaf node size information may be an incremental value to obtain the value of the minimum allowed quad leaf node size. For example, the minimum allowed quad leaf node size information may be sps_log2_min_qt_size_intra_slices_minus2, sps_log2_min_qt_size_inter_slices_minus2 or log2_min_qt_size_minus2.
[0061] The maximum allowed ternary tree root node size information may be an incremental value to obtain the value of the maximum allowed ternary tree root node size. For example, the maximum allowed ternary tree root node size information may be sps_log2_diff_ctu_max_tt_size_intra_slices, sps_log2_diff_ctu_max_tt_size_inter_slices or log2_diff_ctu_max_tt_size.
[0062] The maximum allowed binary tree root node size information may be an incremental value to obtain the value of the maximum allowed binary tree root node size. For example, the maximum allowed binary tree root node size information may be sps_log2_diff_ctu_max_bt_size_intra_slices, sps_log2_diff_ctu_max_bt_size_inter_slices or log2_diff_ctu_max_bt_size.
[0063] For example, the maximum multi-type tree depth information may be sps_max_mtt_hierarchy_depth_inter_slices, sps_max_mtt_hierarchy_depth_intra_slices, or max_mtt_hierarchy_depth.
[0064] For example, the image region includes a strip, a block or a sub-image, and the image region header includes a strip header of the strip, a block header of the block or a header of the sub-image.
[0065] According to the first aspect or any of the above implementations of the first aspect, in possible implementations of the method, the video code stream may further include data representing a parameter set of the video code stream, and the decoding method further includes: when the value of the overwrite flag is not an overwrite value, segmenting the blocks of the image area according to the second segmentation constraint information of the video code stream in the parameter set S230, or segmenting the blocks of the image area according to the second segmentation constraint information of the video code stream in the parameter set S230.
[0066] The parameter set may be a sequence parameter set (SPS) or a picture parameter set (PPS) or any other parameter set.
[0067] Among them, the overwrite value is true, and the value of the overwrite flag is not the overwrite value, which means that the value of the overwrite flag is false.
[0068] Among them, the overwrite value is 1, and the value of the overwrite flag is not the overwrite value, which means that the value of the overwrite flag is 0.
[0069] According to a second aspect of the present invention, a method for encoding a video stream implemented by an encoding device, wherein the video stream includes data representing an image area and an image area header of the image area, and the encoding method includes: determining whether to segment blocks of the image area according to first segmentation constraint information in the image area header; when it is determined that the blocks are segmented according to the first segmentation constraint information, segmenting the blocks of the image area according to the first segmentation constraint information, and setting the value of an overwrite flag to an overwrite value; including the data of the overwrite flag in the video stream.
[0070] According to the second aspect, in a possible implementation of the method, the encoding method further includes: determining whether to enable segmentation of the block according to the first segmentation constraint information; when it is determined to enable segmentation of the block according to the first segmentation constraint information, setting the value of the overwrite enable flag to an enable value; and including the data of the overwrite enable flag in the video bitstream.
[0071] Wherein, determining whether to segment the blocks of the image area according to the first segmentation constraint information in the image area header includes: when it is determined to enable segmentation of the blocks according to the first segmentation constraint information, determining whether to segment the blocks of the image area according to the first segmentation constraint information in the image area header.
[0072] For example, the video code stream also includes data representing a parameter set of the video code stream, and the encoding method also includes: when it is determined that segmentation of the block according to the first segmentation constraint information is not enabled, segmenting the block of the image area according to the second segmentation constraint information of the video code stream in the parameter set, and setting the value of the overwrite enable flag to a disable value.
[0073] Additionally or optionally, the second segmentation constraint information includes minimum allowed quadtree leaf node size information, maximum multi-type tree depth information, maximum allowed ternary tree root node size information, or maximum allowed binary tree root node size information.
[0074] Additionally or optionally, the second partition constraint information includes partition constraint information of a block in an intra mode, or partition constraint information of a block in an inter mode.
[0075] For example, the second segmentation constraint information includes segmentation constraint information of a luminance block, or segmentation constraint information of a chrominance block.
[0076] According to the second aspect or any of the above implementations of the second aspect, in a possible implementation of the method, the video code stream also includes data representing a parameter set of the video code stream, and the overwrite enable flag is in the parameter set.
[0077] For example, the overwrite flag is in the image area header.
[0078] In addition or as an alternative to any embodiment, the first segmentation constraint information includes minimum allowed quadtree leaf node size information, maximum multi-type tree depth information, maximum allowed ternary tree root node size information, or maximum allowed binary tree root node size information.
[0079] In addition to the above embodiment or as an alternative to any one of the embodiments, the image area includes a strip, a block or a sub-image, and the image area header includes a strip header of the strip, a block header of the block or a header of the sub-image.
[0080] For example, the video code stream also includes data representing a parameter set of the video code stream, and the decoding method also includes: when it is determined that the block is not segmented according to the first segmentation constraint information, segmenting the block of the image area according to the second segmentation constraint information of the video code stream in the parameter set (S360), and setting the value of the overwrite flag to a non-overwritten value.
[0081] 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.
[0082] The method described in the second aspect has the same advantages as the corresponding implementation method of the first device described in the first aspect.
[0083] According to a third aspect of the present invention, a decoder is provided, comprising: one or more processors; a non-transitory computer-readable storage medium, coupled to the processor and storing a program executed by the processor, wherein, when the processor executes the program, the decoder is configured to perform the decoding method described above according to the first aspect or any possible implementation of the first aspect.
[0084] According to a fourth aspect of the present invention, an encoder is provided, comprising: one or more processors; a non-transitory computer-readable storage medium, coupled to the processor and storing a program executed by the processor, wherein, when the processor executes the program, the encoder is configured to perform the decoding method described above according to the second aspect or any possible implementation of the second aspect.
[0085] According to a fifth aspect, a computer-readable storage medium storing instructions is provided, wherein when the instructions are executed, one or more processors are caused to decode video data. The instructions cause the one or more processors to perform the method according to the first or second aspect or any possible implementation of the first or second aspect.
[0086] According to a sixth aspect, the present invention relates to a computer program, comprising a program code, and when the computer program is executed in a computer, the program code is used to execute the method according to the first aspect or the second aspect or any possible embodiment of the first aspect or the second aspect.
[0087] According to a seventh aspect of the present invention, there is provided a decoder for decoding a video code stream, wherein the video code stream includes data representing an image area and an image area header of the image area, and the decoder includes: an overwrite determination unit for obtaining an overwrite flag from the video code stream; a segmentation constraint determination unit for obtaining first segmentation constraint information of the image area from the image area header when the value of the overwrite flag is an overwrite value; and a block segmentation unit for segmenting blocks of the image area according to the first segmentation constraint information.
[0088] The method according to the first aspect of the present invention may be performed by the decoder according to the seventh aspect of the present invention. Other features and implementations of the decoder according to the third aspect of the present invention correspond to the features and implementations of the method according to the first aspect of the present invention or any possible implementation of the first aspect.
[0089] According to an eighth aspect of the present invention, there is provided an encoder for encoding a video code stream, wherein the video code stream includes data representing an image area and an image area header of the image area, the encoder comprising: a block segmentation unit for segmenting blocks of the image area according to first segmentation constraint information; a code stream generator for inserting the first segmentation constraint information of the image area into the image area header and setting the value of an overwrite flag to an overwrite value, and for inserting the overwrite flag into the video code stream.
[0090] The method according to the second aspect of the present invention may be performed by the encoder according to the eighth aspect of the present invention. Other features and implementations of the encoder according to the eighth aspect of the present invention correspond to the features and implementations of the method according to the second aspect of the present invention or any possible implementation of the second aspect.
[0091] For clarity of description, any embodiment disclosed herein may be combined with any one or more other embodiments to create new embodiments within the scope of the present invention.
[0092] According to a ninth aspect of the present invention, a video code stream is provided, wherein the video code stream includes data representing an image area and an image area header of the image area, and the video code stream also includes an overwrite flag indicating whether the image area header contains first segmentation constraint information of the image area.
[0093] According to the ninth aspect, in a possible implementation of the method, the video code stream also includes an overwrite enable flag, indicating whether the image area header has the overwrite flag.
[0094] According to the first aspect or any of the above implementations of the first aspect, in a possible implementation of the method, the overwrite enable flag is in the parameter set or in data representing the parameter set.
[0095] According to the first aspect or any one of the above implementations of the first aspect, in a possible implementation of the method, the overwrite flag is in the image area header or in data representing the image area header.
[0096] The details of one or more embodiments are set forth in the accompanying drawings and the description below. Other features, objects, and advantages will be apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0097] The embodiments of the present invention will be described in detail below with reference to the following drawings, in which:
[0098] Figure 1A is a block diagram of an exemplary video decoding system for implementing an embodiment of the present invention;
[0099] Figure 1B is a block diagram of another exemplary video decoding system for implementing an embodiment of the present invention;
[0100] Figure 2 is a block diagram of an exemplary video encoder for implementing an embodiment of the present invention;
[0101] Figure 3 is a block diagram of an exemplary video decoder structure for implementing an embodiment of the present invention;
[0102] Figure 4 is a block diagram of an exemplary encoding device or decoding device;
[0103] Figure 5 is a block diagram of another exemplary encoding device or decoding device;
[0104] Figure 6 is an illustration of an exemplary block partitioning using a quad-tree-binary-tree (QTBT) structure;
[0105] Figure 7 For use Figure 6 An illustrative diagram of an exemplary tree structure of a block partition of a QTBT structure;
[0106] Figure 8 is an illustration of an exemplary horizontal ternary tree partition type;
[0107] Fig. 9 is an illustration of an exemplary vertical ternary tree segmentation type;
[0108] Fig.10 A flowchart of a decoding method provided by an embodiment;
[0109] Fig.11 A flowchart of a decoding method provided by an embodiment;
[0110] Fig.12 is a block diagram of an exemplary decoder;
[0111] Fig.13 is a block diagram of an exemplary encoder;
[0112] Fig.14A A flowchart of an encoding method provided for an embodiment related to an overwrite flag;
[0113] Fig. 14B A flowchart of an encoding method provided for an embodiment related to an overwrite enable flag;
[0114] Fig.15 A block diagram of an exemplary structure of a content providing system for implementing content delivery services;
[0115] Fig.16 is a block diagram of an exemplary structure of a terminal device;
[0116] In the following, unless explicitly stated otherwise, identical reference numerals refer to identical or at least functionally equivalent features;
[0117] Fig.17 is a block diagram of an exemplary video encoder for implementing an embodiment of the present invention;
[0118] Fig.18 is a block diagram of an exemplary video decoder structure for implementing an embodiment of the present invention.
[0119] In the following, unless explicitly stated otherwise, identical reference signs refer to identical or at least functionally equivalent features. DETAILED DESCRIPTION
[0120] In the following description, reference is made to the accompanying drawings which form a part of the present invention, which show by way of illustration specific aspects of embodiments of the present invention or specific aspects in which embodiments of the present invention may be used. It should be understood that embodiments of the present invention may be used in other aspects and include structural or logical changes not depicted in the accompanying drawings. Therefore, the following detailed description is not to be construed as limiting, and the scope of the present invention is defined by the appended claims.
[0121] It is understood that the content related to the described method is also applicable to the device or system corresponding to 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, such as functional units, for performing the described one or more method steps (e.g., a unit that performs the one or more steps, or multiple units that each perform one or more of the multiple steps), even if such one or more units are not explicitly described or illustrated in the figure. On the other hand, for example, if a specific device is described in terms of 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., a step that performs the function of the one or more units, or multiple steps that each perform the function of one or more of the multiple units), even if such one or more steps are not explicitly described or illustrated in the figure. In addition, it should be understood that unless otherwise specifically indicated, the features of the various exemplary embodiments and / or aspects described herein may be combined with each other.
[0122] Video decoding generally refers to the processing of a sequence of images that constitute a video or a video sequence. In the field of video, the terms "frame" or "picture / image" can be used as synonyms. Video decoding used in this application (or the present invention) means video encoding or video decoding. Video encoding is performed on the source side, typically including processing (e.g., by compression) the original video image to reduce the amount of data required to represent the video image (for more efficient storage and / or transmission). Video decoding is performed on the destination side, typically including inverse processing relative to the encoder to reconstruct the video image. Embodiments of "decoding" of video images (or images in general, as will be explained below) should be understood to involve both "encoding" and "decoding" of video sequences. The combination of the encoding part and the decoding part is also referred to as CODEC (encoding and decoding).
[0123] In the case of lossless video coding, the original video image can be reconstructed, i.e., the reconstructed video image has the same quality as the original video image (assuming no transmission losses or other data loss during storage or transmission). In the case of lossy video coding, compression is further performed (e.g., by quantization) to reduce the amount of data representing the video image that cannot be fully reconstructed in the decoder, i.e., the reconstructed video image has a lower or poorer quality than the original video image.
[0124] Several video coding standards starting with H.261 are "lossy hybrid video codecs" (i.e., 2D transform coding that combines spatial prediction and temporal prediction in the pixel domain and quantization in the transform domain). Each image of a video sequence is usually divided into a set of non-overlapping blocks, and decoding is usually performed in units of blocks. In other words, in the encoder, the video is usually processed (i.e., encoded) in units of blocks (video blocks), for example, a prediction block is generated by spatial (intra-frame) prediction and 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 transmitted (compressed), and in the decoder, the inverse processing part relative to the encoder is applied to the coded or compressed block to reconstruct the current block for representation. In addition, the processing loop of the encoder is the same as that of the decoder, so that both will produce the same prediction (e.g., intra-frame prediction and inter-frame prediction) and / or reconstruction to process (i.e., decode) subsequent blocks.
[0125] As used herein, the term "block" may be a part of an image or a frame. For ease of description, this document describes an embodiment of the present invention with reference to the High-Efficiency Video Coding (HEVC) or versatile video coding (VVC) reference software developed by the Joint Collaboration Team on Video Coding (JCT-VC) of the ITU-T Video Coding Experts Group (VCEG) and the ISO / IEC Motion Picture Experts Group (MPEG). A person of ordinary skill in the art should understand that the embodiments of the present invention are not limited to HEVC or VVC. A block may refer to a CU, a PU, and a TU. In HEVC, a CTU is divided into CUs by a quadtree structure represented as a coding tree. Whether to decode an image area using inter-frame (temporal) prediction or intra-frame (spatial) prediction is determined in units of CUs. Each CU may be further divided into one, two, or four 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 applying the prediction process according to the PU partition type to obtain the residual block, the CU can be partitioned into transform units (TUs) according to another quadtree structure similar to the decoding tree for the CU. In the latest advances in video compression technology, the decoding blocks are partitioned using quadtree and binary tree (QTBT) partition frames. In the QTBT block structure, the CU can be square or rectangular. For example, the coding tree unit (CTU) is first partitioned by a quadtree structure. The quadtree leaf nodes are further partitioned by a binary tree structure. The binary leaf nodes are called coding units (CUs), and the fragments are used for prediction and transformation processing without further partitioning. That is, in the QTBT decoding block structure, the block sizes of CU, PU, and TU are the same. At the same time, it is also proposed to use multiple partitions such as ternary tree partitioning in combination with the QTBT block structure. The term "device" may also be "apparatus", "decoder" or "encoder".
[0126] In the following examples, based on Figures 1A to 3 An encoder 20, a decoder 30 and a decoding system 10 are described.
[0127] Figure 1A1 is a conceptual or schematic block diagram showing an exemplary decoding system 10, such as a video decoding system 10, that can utilize the techniques of the present application (the present invention). Encoder 20 (e.g., video encoder 20) and decoder 30 (e.g., video decoder 30) of video decoding system 10 represent examples of devices that can be used to perform various techniques according to various examples described in the present application. Figure 1A As shown, the decoding system 10 includes a source device 12 for providing encoded data 13 (eg, an encoded image 13 ) to a destination device 14 or the like for decoding the encoded data 13 .
[0128] The source device 12 includes an encoder 20 and may additionally (ie, optionally) include an image source 16 , a pre-processing unit 18 (eg, an image pre-processing unit 18 ), and a communication interface or communication unit 22 .
[0129] The image source 16 may include or may be any type of image capture device, such as a device for capturing real-world images, and / or any type of image or comment (for screen content decoding, some text on the screen is also considered as part of the picture / image to be encoded) generation device, such as a computer graphics processor for generating computer-animated images, or any type of device for acquiring and / or providing real-world images, computer-animated 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) for storing any of the above images.
[0130] A (digital) image is or can be considered as a two-dimensional array or matrix of pixels with intensity values. The pixels in the array can also be called pixels (a short form of image elements). The number of pixels in the horizontal and vertical directions (or axes) of the array or image defines the size and / or resolution of the image. In order to represent color, three color components are usually used, that is, the image can be represented as or include three pixel arrays. In the RBG format or color space, the image includes corresponding red, green and blue pixel arrays. However, in video decoding, each pixel is usually represented in a brightness / chroma format or in a color space, such as YCbCr, including a brightness component represented by Y (sometimes also represented by L) and two chroma components represented by Cb and Cr. The brightness component Y represents the brightness or grayscale intensity (for example, as in a grayscale image), and the two chroma components Cb and Cr represent the chroma or color information components. Accordingly, an image in the YCbCr format includes a brightness pixel array of brightness pixel values (Y) and two chroma pixel arrays of chroma values (Cb and Cr). An image in RGB format can be converted to YCbCr format and vice versa, a process also known as color conversion or transformation. If the image is monochrome, the image may include only an array of brightness pixels.
[0131] The image source 16 (e.g., video source 16) can be a camera for capturing images, a memory (e.g., image memory) that includes or stores previously captured or generated images, and / or any type of (internal or external) interface for acquiring or receiving images, etc. For example, the camera can be a local or integrated camera integrated in the source device, and the memory can be a local or integrated memory, for example, integrated in the source device. For example, the interface can be an external interface for receiving images from an external video source, such as an external image capture device such as a camera, an external memory, or an external image generating device, such as an external computer graphics processor, a computer, or a server. The interface can be any type of interface according to any proprietary or standardized interface protocol, such as a wired or wireless interface, an optical interface. The interface for acquiring image data 17 can be the same interface as the communication interface 22, or be part of the communication interface 22.
[0132] In contrast to the pre-processing unit 18 and the processing performed by the pre-processing unit 18 , the image or image data 17 (eg, the video data 16 ) may also be referred to as a raw image or raw image data 17 .
[0133] The preprocessing unit 18 is used to receive (raw) image data 17 and preprocess the image data 17 to obtain a preprocessed image 19 or preprocessed image data 19. The preprocessing performed by the preprocessing unit 18 may include trimming, color format conversion (e.g., from RGB to YCbCr), color correction or denoising, etc. It is understandable that the preprocessing unit 18 may be an optional component.
[0134] The encoder 20 (eg, a video encoder 20) is configured to receive the pre-processed image data 19 and provide encoded image data 21 (hereinafter referred to as Figure 2 or Figure 4 Detailed description).
[0135] The communication interface 22 of the source device 12 may be used to receive the encoded image data 21 and send the encoded image data 21 (or any other processed version) to another device (e.g., the destination device 14) or any other device for storage or direct reconstruction via the communication channel 13, or to process the encoded image data 21 before storing the encoded data 13 and / or sending the encoded data 13 to another device (e.g., the destination device 14) or any other device for decoding or storage, respectively.
[0136] The destination device 14 includes a decoder 30 (eg, a video decoder 30 ), and may additionally (ie, optionally) include a communication interface or communication unit 28 , a post-processing unit 32 , and a display device 34 .
[0137] The communication interface 28 in the destination device 14 is used to receive the encoded image data 21 (or any other processed version) or the encoded data 13 directly from the source device 12 or from any other source device such as a storage device (e.g., an encoded image data storage device), and provide the encoded image data 21 to the decoder 30.
[0138] 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 or wireless network or any combination thereof, or any type of private and public networks), or any combination thereof.
[0139] For example, the communication interface 22 may be used to encapsulate the encoded image data 21 into a suitable format such as a message, and / or use any type of transmission coding or processing to process the encoded image data for transmission over a communication link or a communication network.
[0140] 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 and / or decapsulate the encoded data 13 using any type of corresponding transmission decoding or processing to obtain the encoded image data 21 .
[0141] Both the communication interface 22 and the communication interface 28 can be configured as a one-way communication interface (eg Figure 1A The invention relates to a bidirectional communication interface, as indicated by an arrow in the figure showing the encoded image data 13 from the source device 12 to the destination device 14, and can be used to send and receive messages, etc., for example, 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).
[0142] 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 Detailed description).
[0143] 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 generating decoded image data 31 for display by a display device 34 or the like.
[0144] 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 representing the reconstructed image, such as an integrated or external display or monitor. 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.
[0145] although Figure 1AThe 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 function and the destination device 14 or the corresponding function. In these embodiments, the source device 12 or the corresponding function and the destination device 14 or the corresponding function may be implemented using the same hardware and / or software or by separate hardware and / or software or any combination thereof.
[0146] According to the description, Figure 1A It is obvious to a person skilled in the art that the different units or functions included and (accurately) divided in the source device 12 and / or the destination device 14 may vary depending on the actual device and application.
[0147] The encoder 20 (e.g., video encoder 20) and the decoder 30 (e.g., video decoder 30) can each be implemented as any of a variety of suitable circuits, such as one or more microprocessors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), discrete logic, hardware, or any combination thereof. When the technology is partially implemented in software, the device may store the instructions of the software in a suitable non-transitory computer-readable storage medium, and may use one or more processors to execute the instructions in hardware to perform the technology of the present invention. Any of the above (including hardware, software, a combination of hardware and software, etc.) can be one or more processors. The video encoder 20 and the video decoder 30 can each be included in one or more encoders or decoders, either of which can be integrated in the corresponding device as part of a combined encoder / decoder (codec).
[0148] The encoder 20 may be implemented by a processing circuit 46 to embody Figure 2 The encoder 30 may be implemented by processing circuit 46 to embody the various modules discussed in connection with the encoder 20 and / or any other encoder system or subsystem described herein. Figure 3 The processing circuits may be used to perform various operations discussed later. Figure 5As shown in , when the techniques are partially implemented in software, the device may store instructions for the software in a suitable non-transitory computer-readable storage medium, and may use one or more processors to execute the instructions in hardware to perform the techniques of the present invention. One of the video encoder 20 and the video decoder 30 may be integrated into a single device as part of a combined encoder / decoder (codec), such as Figure 1B shown.
[0149] Source device 12 may be referred to as a video encoding device or a video encoding apparatus. Destination device 14 may be referred to as a video decoding device or a video decoding apparatus. Source device 12 and destination device 14 may be examples of video encoding devices or video encoding apparatuses.
[0150] The source device 12 and the destination device 14 may include any of a variety of devices, including any type of handheld or fixed device, such as a notebook computer 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.
[0151] In some cases, source device 12 and destination device 14 may be equipped with components for wireless communication. Thus, source device 12 and destination device 14 may be wireless communication devices.
[0152] In some cases, Figure 1A The video encoding system 10 shown is merely an example, and the techniques of the present application may be applicable to video decoding arrangements (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, sent over a network, etc. A video encoding device may encode data and store the data in a memory, and / or a video decoding device may retrieve data from a memory and decode the data. In some examples, encoding and decoding are performed by devices that do not communicate with each other but simply encode data to a memory and / or retrieve data from a memory and decode the data.
[0153] For ease of description, this document describes embodiments of the present invention with reference to the High-Efficiency Video Coding (HEVC) or versatile video coding (VVC) reference software or next-generation video coding standards developed by the Joint Collaboration Team on Video Coding (JCT-VC) of the ITU-T Video Coding Experts Group (VCEG) and the ISO / IEC Motion Picture Experts Group (MPEG). Those skilled in the art should understand that embodiments of the present invention are not limited to HEVC or VVC.
[0154] It should be understood that for each of the above examples described in conjunction with video encoder 20, video decoder 30 may be used to perform the inverse process. Video decoder 30 may be used to receive and parse the indicating syntax elements and decode the associated video data accordingly. In some examples, video encoder 20 may entropy encode one or more syntax elements into the encoded video bitstream. In these examples, video decoder 30 may parse these syntax elements and decode the associated video data accordingly.
[0155] Figure 1B The exemplary embodiment provides Figure 2 The video encoder 20 and / or Figure 3 30. The system 40 can implement the techniques provided by various examples described in this application. In the illustrated implementation, the video decoding system 40 may include one or more imaging devices 41, the video encoder 20, the video decoder 30 (and / or a video decoder implemented by logic circuits 47 of one or more processing units 46), an antenna 42, one or more processors 43, one or more memories 44, and / or a display device 45.
[0156] As shown, one or more imaging devices 41, antenna 42, one or more processing units 46, logic circuitry 47, video encoder 20, video decoder 30, one or more processors 43, one or more memories 44, and / or display device 45 can communicate with each other. As discussed, although shown with both video encoder 20 and video decoder 30, in various examples, video coding system 40 may include only video encoder 20 or only video decoder 30.
[0157] As shown, in some examples, the video decoding system 40 may include an antenna 42. For example, the antenna 42 may be used to send or receive a coded video data stream. In addition, in some examples, the video decoding system 40 may include a display device 45. The display device 45 may be used to present video data. As shown, in some examples, a logic circuit 47 may be implemented by one or more processing units 46. One or more processing units 46 may include application-specific integrated circuit (ASIC) logic, one or more graphics processors, one or more general-purpose processors, etc. The video decoding system 40 may also include one or more optional processors 43, which may similarly include application-specific integrated circuit (ASIC) logic, one or more graphics processors, one or more general-purpose processors, etc. In some examples, the logic circuit 47 may be implemented by hardware, video decoding dedicated hardware, etc., and one or more processors 43 may implement general-purpose software, operating systems, etc. In addition, one or more memories 44 can be any type of memory, such as volatile memory (e.g., static random access memory (SRAM), dynamic random access memory (DRAM), etc.) or non-volatile memory (e.g., flash memory, etc.), etc. In a non-limiting example, one or more memories 44 can be implemented by a cache memory. In some examples, the logic circuit 47 can access the one or more memories 44 (e.g., for implementing an image buffer). In other examples, the logic circuit 47 and / or one or more processing units 46 may include a memory (e.g., a cache, etc.) for implementing an image buffer, etc.
[0158] In some examples, the video encoder 20 implemented by logic circuits may include an image buffer (e.g., implemented by one or more processing units 46 or one or more memories 44) and a graphics processing unit (GPU) (e.g., implemented by one or more processing units 46). The graphics processing unit may be coupled to the image buffer in a communicative manner. The graphics processing unit may include the video encoder 20 implemented by logic circuits 47 to embody the combination of Figure 2 The various modules discussed and / or any other encoder systems or subsystems described herein. Logic circuits may be used to perform the various operations discussed herein.
[0159] The video decoder 30 may be implemented in a similar manner as that implemented by the logic circuit 47 to embody the combination of Figure 3The various modules discussed in connection with the decoder 30 and / or any other decoder system or subsystem described herein. In some examples, the video decoder 30 implemented by logic circuits may include an image buffer (e.g., implemented by one or more processing units 420 or one or more memories 44) and a graphics processing unit (GPU) (e.g., implemented by one or more processing units 46). The graphics processing unit may be communicatively coupled to the image buffer. The graphics processing unit may include the video decoder 30 implemented by logic circuits 47 to embody the combination of Figure 3 The various modules discussed and / or any other decoder systems or subsystems described herein.
[0160] In some examples, antenna 42 of video decoding system 40 may be used to receive a coded video data stream. As discussed, the coded stream may include data associated with the encoding of the video frames discussed herein, indicators, index values, mode selection data, etc., such as data associated with the coding partition (e.g., transform coefficients or quantized transform coefficients, optional indicators (as discussed), and / or data defining the coding partition). Video decoding system 40 may also include a video decoder 30 coupled to antenna 42 and used to decode the coded stream. Display device 45 is used to present the video frames.
[0161] Figure 2 Schematic / conceptual block diagram of an exemplary video encoder 20 for implementing the technology of the present application is shown. Figure 2 In the example of , the video encoder 20 includes 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 buffer 216, a loop filter unit 220, a decoded picture buffer (DPB) 230, a prediction processing unit 260, and an entropy coding unit 270. The prediction processing unit 260 may include an inter-frame prediction unit 244, an intra-frame prediction unit 254, and a mode selection 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 hybrid video codec-based video encoder.
[0162] The residual calculation unit 204, the transform processing unit 206, the quantization unit 208, the prediction processing unit 260, and the entropy coding unit 270 form a forward signal path of the encoder 20, while 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 prediction processing unit 260, etc. form a reverse signal path of the encoder. The reverse signal path of the encoder is similar to that of the decoder (see Figure 3 The signal path of the decoder 30) corresponds to that of the decoder 30).
[0163] The 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 a “built-in decoder” of the video encoder 20 .
[0164] The encoder 20 is used to receive a picture 201 or a block 203 of the picture 201 (for example, a picture of a picture sequence forming a video or a video sequence) through an input terminal 202 or the like. The picture block 203 may also be referred to as a current picture block or a picture block to be decoded, and the picture 201 may also be referred to as a current picture or a picture to be decoded (particularly in video decoding, in order to distinguish the current picture from other pictures (for example, previously encoded and / or decoded pictures of the same video sequence (i.e., a video sequence also including the current picture))).
[0165] A (digital) image is or can be considered as a two-dimensional array or matrix of pixels with intensity values. The pixels in the array can also be called pixels (a short form of image elements). The number of pixels in the horizontal and vertical directions (or axes) of the array or image defines the size and / or resolution of the image. In order to represent color, three color components are usually used, that is, the image can be represented as or include three pixel arrays. In the RBG format or color space, the image includes corresponding red, green and blue pixel arrays. However, in video decoding, each pixel is usually represented in 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 component Y represents the brightness or grayscale intensity (for example, as in a grayscale image), and the two chrominance components Cb and Cr represent the chrominance or color information components. Accordingly, an image in the YCbCr format includes a brightness pixel array of brightness pixel values (Y) and two chrominance pixel arrays of chrominance values (Cb and Cr). An image in RGB format can be converted to YCbCr format and vice versa, a process also referred to as color conversion or transformation. If the image is monochrome, the image may include only a luminance pixel array. Accordingly, for example, the image may be a luminance pixel array in monochrome format or a luminance pixel array and two corresponding chrominance pixel arrays in 4:2:0, 4:2:2 and 4:4:4 color formats.
[0166] segmentation
[0167] In one embodiment, an embodiment of the encoder 20 may include a segmentation unit ( Figure 2 201 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) in the H.265 / HEVC and VVC standards. The partitioning unit may be used to use the same block size and a corresponding grid defining the block size for all images of a video sequence, or to change the block size between images or subsets or groups of images, and to partition each image into corresponding blocks.
[0168] In other embodiments, the video encoder may be configured to directly receive the block 203 of the image 201, for example, one, several or all blocks constituting the image 201. The image block 203 may also be referred to as a current image block or an image block to be decoded.
[0169] In one example, prediction processing unit 260 of video encoder 20 may be used to perform any combination of the segmentation techniques described above.
[0170] Similar to the image 201, the block 203 is also or can be regarded as a two-dimensional array or matrix of pixels with intensity values (pixel values), but the size of the block 203 is smaller than that of the image 201. In other words, for example, depending on the color format applied, the block 203 may include one pixel array (e.g., a brightness array when the image 201 is monochrome) or three pixel arrays (e.g., one brightness array and two chrominance arrays when the image 201 is color) or any other number and / or type of arrays. The number of pixels in the horizontal and vertical directions (or axes) of the block 203 defines the size of the block 203. Accordingly, the block may be an M×N (M columns×N rows) pixel array, or an M×N transform coefficient array, etc.
[0171] like Figure 2 The encoder 20 shown is used to encode the image 201 block by block, for example, encoding and prediction are performed on each block 203.
[0172] In one embodiment, Figure 2 The illustrated video encoder 20 may also be configured to partition and / or encode an image using slices (also referred to as video slices), wherein an image may be partitioned into 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., partitions in the H.265 / HEVC / VVC standard and bricks in the VVC standard).
[0173] In one embodiment, Figure 2 The video encoder 20 shown can also be used to partition and / or encode an image using slices / block groups (also called video partition groups) and / or blocks (also called video partitions), wherein an image can be partitioned into one or more slices / block groups (usually non-overlapping) or encoded using one or more slices / block groups (usually non-overlapping), each slice / block group may include one or more blocks (e.g., CTU) or one or more blocks, etc., wherein each block may be in a rectangular shape, etc., and may include one or more complete or partial blocks (e.g., CTU).
[0174] Residual calculation
[0175] The residual calculation unit 204 is used to calculate the residual block 205 based on the image block 203 and the prediction block 265 (the prediction block 265 will be described in detail below) in the following manner: subtract the pixel point value of the prediction block 265 from the pixel point value of the image block 203 pixel by pixel (pixel by pixel) to obtain the residual block 205 in the pixel point domain.
[0176] Transform
[0177] The transform processing unit 206 is used to apply a transform such as discrete cosine transform (DCT) or discrete sine transform (DST) to the pixel values of the residual block 205 to obtain a transform coefficient 207 in the transform domain. The transform coefficient 207 may also be referred to as a transform residual coefficient, which represents the residual block 205 in the transform domain.
[0178] The transform processing unit 206 can be used to apply an integer approximation of DCT / DST, such as the transform specified for HEVC / H.265. Compared with the orthogonal DCT transform, the integer approximation is usually scaled by a certain factor. In order to maintain the norm of the residual block processed by the forward and inverse transforms, other scaling factors are applied during the transform process. The scaling factor is usually 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, the trade-off between accuracy and implementation cost, etc. For example, a specific scaling factor is specified for the inverse transform on the decoder 30 side through the inverse transform processing unit 212, etc. (and for the corresponding inverse transform on the encoder 20 side through the inverse transform processing unit 212, etc.), and accordingly, the corresponding scaling factor can be specified for the forward transform on the encoder 20 side through the transform processing unit 206, etc.
[0179] An embodiment of the video encoder 20 (corresponding to the transform processing unit 206) can be used to directly output or output transform parameters (e.g., one or more types of transforms) after encoding or compression through the entropy coding unit 270, such that the video decoder 30 can receive and use the transform parameters for decoding.
[0180] Quantification
[0181] The quantization unit 208 is used to quantize the transform coefficients 207 by applying scalar quantization or vector quantization, etc., to obtain quantized transform coefficients 209. The quantized transform coefficients 209 may also be referred to as quantized residual coefficients 209. 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 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. The applicable quantization step size may be indicated by a quantization parameter (QP). For example, the quantization parameter may be an index of a predefined set of applicable 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 division by a quantization step size, while the corresponding or inverse quantization performed by the inverse quantization unit 210 or the like may include multiplication by a quantization step size. Embodiments according to some standards such as HEVC may be used to determine the quantization step size using a quantization parameter. Typically, the quantization step size may be calculated based on a quantization parameter using a fixed-point approximation of an equation that includes division. Quantization and dequantization may introduce other scaling factors to restore the norm of the residual block, which may modify the norm of the residual block due to the scaling used in the fixed-point approximation of the equation for the quantization step size and the quantization parameter. In an exemplary implementation, the scaling of the inverse transform and dequantization may be combined. Alternatively, a custom quantization table may be used and indicated from the encoder to the decoder in the bitstream. Quantization is a lossy operation, and the loss increases with the increase of the quantization step size.
[0182] In an embodiment, the video encoder 20 (corresponding to the quantization unit 208) may be configured to output a quantization parameter (QP), for example, directly output or output after being encoded or compressed by the entropy coding unit 270, for example, so that the video decoder 30 may receive and use the quantization parameter for decoding.
[0183] 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, performing an inverse quantization scheme of the quantization scheme performed by the quantization unit 208 according to or using the same quantization step size as 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 not completely the same as the transform coefficients.
[0184] The inverse transform processing unit 212 is used to apply the inverse transform of the transform applied by the transform processing unit 206, such as an inverse discrete cosine transform (DCT) or an inverse discrete sine transform (DST), to obtain an inverse transform block 213 in the pixel point domain. The inverse transform block 213 may also be referred to as an inverse transform dequantization block 213 or an inverse transform residual block 213.
[0185] The reconstruction unit 214 (e.g., the summer 214) is used to add the inverse transform block 213 (i.e., the reconstructed residual block 213) to the prediction block 265 by adding the pixel point values of the reconstructed residual block 213 and the pixel point values of the prediction block 265, etc., to obtain the reconstructed block 215 in the pixel point domain.
[0186] Optionally, the buffer unit 216 (or simply “buffer” 216 ) (e.g., column buffer 216 ) is used to buffer or store the reconstructed block 215 and the corresponding pixel point values for intra-frame prediction, etc. In other embodiments, the encoder can be used to use the unfiltered reconstructed block and / or the corresponding pixel point values stored in the buffer unit 216 to perform any type of estimation and / or prediction (e.g., intra-frame prediction).
[0187] Embodiments of the encoder 20 may be configured such that, for example, the buffer unit 216 is used not only to store the reconstructed blocks 215 for the intra prediction 254, but also to store the reconstructed blocks 215 for the loop filter unit 220 ( Figure 2 215) and / or configured so that, for example, the buffer unit 216 and the decoded image buffer unit 230 form a buffer. Other embodiments may be used to use blocks or pixels in the filter block 221 and / or the decoded image buffer 230 (both not shown in FIG. Figure 2 ) as input or basis for intra-frame prediction 254.
[0188] The loop filter unit 220 (or simply "loop filter" 220) is used to filter the reconstruction block 215 to obtain a filter block 221, so as to smoothly perform pixel conversion or improve video quality. The loop filter unit 220 is used to represent one or more loop filters, such as a deblocking filter, a sample-adaptive offset (SAO) filter, or other filters, such as a bilateral filter or an adaptive loop filter (ALF) or a sharpening or smoothing filter or a collaborative filter. Although the loop filter unit 220 is in Figure 22 is shown as a loop filter, but in other configurations, the loop filter unit 220 can be implemented as a post-loop filter. The filter block 221 can also be called a filter reconstruction block 221. The decoded image buffer 230 can store the reconstructed decoding block after the loop filter unit 220 performs a filtering operation on the reconstructed decoding block.
[0189] The loop filter unit 220 (or simply "loop filter" 220) is used to filter the reconstruction block 215 to obtain the filter block 221, or is generally used to filter the reconstructed pixel points to obtain the filtered pixel point value. For example, the loop filter unit is used to smoothly perform pixel conversion 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. For example, the loop filter unit 220 may include a deblocking filter, an SAO filter, and an ALF filter. The order of the filtering process may be a deblocking filter, an SAO filter, and an ALF filter. For another example, a process called luma mapping with chroma scaling (LMCS) (i.e., an adaptive in-loop shaper) is added. This process is performed before the deblocking effect. For 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. Although shown as a loop filter in FIG. 2, in other configurations, the loop filter unit 220 may be implemented as a post-loop filter. The filter block 221 may also be referred to as a filter reconstruction block 221.
[0190] In an embodiment, the video encoder 20 (corresponding to the loop filter unit 220) can be used to output loop filter parameters (such as SAO filter parameters, ALF filter parameters or LMCS parameters), for example, directly output or output after encoding by the entropy coding unit 270, for example, so that the decoder 30 can receive and use the same or different loop filter parameters for decoding.
[0191] In an embodiment, the encoder 20 (corresponding to the loop filter unit 220) can be used to output loop filter parameters (such as pixel adaptive offset information), for example, directly output or output after entropy encoding through the entropy encoding unit 270 or any other entropy decoding unit, for example, so that the decoder 30 can receive and apply the same loop filter parameters for decoding.
[0192] The decoded picture buffer (DPB) 230 may be a reference picture memory storing reference picture data for encoding video data by the video encoder 20. 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 storage devices. The DPB 230 and the buffer 216 may be provided by the same storage device or a separate storage device. In some examples, the decoded picture buffer (DPB) 230 is used to store the filter block 221. The decoded picture buffer 230 may also be used to store other previous filter blocks of different images such as the same current image or a previous reconstructed image, such as a previous reconstruction and filter block 221, and may provide a complete previous reconstruction, i.e., a decoded image (and corresponding reference blocks and pixels) and / or a partially reconstructed current image (and corresponding reference blocks and pixels), such as for inter-frame prediction. In some examples, when the reconstructed block 215 is reconstructed but not in-loop filtered, for example, when the reconstructed block 215 is not filtered by the loop filter unit 220, the decoded picture buffer (DPB) 230 is used to store one or more unfiltered reconstructed blocks 215, or generally to store unfiltered reconstructed pixels, or any other further processed version of the reconstructed block or reconstructed pixels.
[0193] The prediction processing unit 260 (also referred to as the block prediction processing unit 260) is used to: receive or obtain block 203 (current block 203 of the current image 201) and reconstructed image data, for example, reference pixel points of the same (current) image in the buffer 216 and / or reference image data 231 of one or more previously decoded images in the decoded image buffer 230, and process these data for prediction, that is, to provide a prediction block 265, wherein the prediction block 265 can be an inter-frame prediction block 245 or an intra-frame prediction block 255.
[0194] The mode selection unit 262 may be used to select a prediction mode (eg, intra prediction or inter prediction mode) and / or a corresponding prediction block 245 or 255 to be used as the prediction block 265 for calculating the residual block 205 and reconstructing the reconstructed block 215 .
[0195] In an embodiment, the mode selection unit 262 may be configured to select a prediction mode (e.g., from prediction modes supported by the prediction processing unit 260) that provides the best match or minimum residual (minimum residual means better compression in transmission or storage), or has minimum indicated overhead (minimum indicated overhead means better compression in transmission or storage), or both. The mode selection unit 262 may be configured to determine the prediction mode based on rate distortion optimization (RDO), i.e., select a prediction mode that provides minimum rate distortion optimization, or select a prediction mode with an associated rate distortion that at least satisfies a prediction mode selection criterion.
[0196] The prediction processing (eg, performed by prediction processing unit 260) and mode selection (eg, performed by mode selection unit 262) performed by example encoder 20 will be explained in more detail below.
[0197] In addition to or as an alternative to the above embodiments, Fig.17 In other embodiments provided, the mode selection unit 260 includes a segmentation unit 262, an inter-frame prediction unit 244, and an intra-frame prediction unit 254, which are used to receive or obtain original image data (e.g., original block 203 (current block 203 of current image 17)) and reconstructed image data (e.g., filtered and / or unfiltered reconstructed pixels or reconstructed blocks of the same (current) image and / or one or more previously decoded images) from a decoded image buffer 230 or other buffers (e.g., column buffers, not shown). 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.
[0198] The mode selection unit 260 may be used to determine or select a partition type for a current block prediction mode (including non-partitioning) and a prediction mode (eg, intra-frame or inter-frame prediction mode), and to generate a corresponding prediction block 265 to calculate the residual block 205 and to reconstruct the reconstruction block 215.
[0199] In one embodiment, the mode selection unit 260 may be used to select a segmentation and prediction mode (e.g., from prediction modes supported or available by the mode selection unit 260), the prediction mode providing the best match or minimum residual (minimum residual means better compression in transmission or storage), or providing minimum indicated overhead (minimum indicated overhead means better compression in transmission or storage), or considering or balancing both of the above. The mode selection unit 260 may be used to determine the segmentation and prediction mode according to rate distortion optimization (RDO), i.e., selecting the prediction mode that provides minimum rate distortion optimization. In this context, terms such as "best", "minimum", "optimal", etc. do not necessarily mean "best", "minimum", "optimal", etc. in general, but may also refer to meeting termination or selection criteria, for example, values exceeding or falling below a threshold or other constraints, which may result in a "suboptimal selection", but reduce complexity and processing time.
[0200] In other words, the partitioning unit 262 may be used to partition an image in a video sequence into a sequence of coding tree units (CTUs), and the CTU 203 may be further partitioned into smaller partitions or sub-blocks (again forming blocks), for example, by iteratively using quad-tree partitioning (QT) partitioning, binary-tree partitioning (BT) partitioning or triple-tree partitioning (TT) partitioning or any combination thereof, and for example, performing prediction on each of the partitions or sub-blocks, wherein the mode selection includes selecting a tree structure of the partition 203 and selecting a prediction mode to be applied to each of the partitions or sub-blocks.
[0201] The segmentation (eg, performed by segmentation unit 260) and prediction processes (eg, performed by inter-prediction unit 244 and intra-prediction unit 254) performed by video encoder 20 will be described in detail below.
[0202] segmentation
[0203] The partitioning unit 262 may be used to partition an image in a video sequence into a sequence of coding tree units (CTUs). The partitioning unit 262 may partition (or divide) a coding tree unit 203 into smaller partitions, such as small blocks in a square or rectangular shape. For an image having three pixel arrays, a CTU consists of N×N luminance pixel blocks and two corresponding chrominance pixel blocks. The maximum luminance block size allowed in a CTU is specified as 128×128 in the developing universal video coding (VVC) standard, but may be specified as a value different from 128×128 in the future, such as 256×256. The CTUs of an image may be concentrated / grouped into stripe / block groups, blocks, or bricks. A block covers a rectangular area of an image, and a block may be divided into one or more bricks. A brick consists of multiple CTU rows within a block. A block that is not partitioned into multiple bricks may be referred to as a brick. However, a brick is a true subset of a block and is therefore not referred to as a block. VVC supports two block group modes, namely raster scan strip / block group mode and rectangular strip mode. In the raster scan block group mode, a strip / block group contains a sequence of blocks in the block raster scan of an image. In the rectangular strip mode, the strip contains several bricks of an image, which together constitute a rectangular area of the image. The bricks in the rectangular strip are arranged in the raster scan order of the bricks 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, the root tree level 0 (hierarchical level 0, depth 0) can be recursively partitioned, for example, into two or more blocks of the next lower tree level, such as nodes of tree level 1 (hierarchical level 1, depth 1). These blocks can be partitioned again into two or more blocks of the next lower level, such as tree level 2 (hierarchical level 2, depth 2), and so on, until the maximum tree depth or minimum block size is reached due to the termination criteria being met, and the partitioning is terminated. Blocks that are not further split are also called leaf blocks or leaf nodes of the tree. A tree split into two blocks is called a binary tree (BT), a tree split into three blocks is called a ternary tree (TT), and a tree split into four blocks is called a quadtree (QT).
[0204] For example, a coding tree unit (CTU) may be or include a CTB of a luminance pixel, two corresponding CTBs of a chrominance pixel of an image with an array of three pixels, or a CTB of a pixel of a monochrome image, or a CTB of a pixel of an image decoded using three independent color planes and a syntax structure (for decoding the pixel). Accordingly, a coding tree block (CTB) may be an N×N pixel block, where N may be set to a certain value so that the component is divided into CTBs, which is segmentation. A coding unit (CU) may be or include a decoding block of luminance pixels, two corresponding decoding blocks of chrominance pixels of an image with an array of three pixels, or a decoding block of a pixel of a monochrome image, or a decoding block of a pixel of an image decoded using three independent color planes and a syntax structure (for decoding the pixel). Accordingly, a coding block (CB) may be an M×N pixel block, where M and N may be set to a certain value so that the CTB is divided into coding blocks, which is segmentation.
[0205] 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. Whether to use inter-frame (temporal) prediction or intra-frame (spatial) prediction to decode an image area is determined in units of leaf CUs. Each leaf CU can be further divided into one, two or four 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 applying the prediction process according to the PU partition type to obtain the residual block, the leaf CU can be divided into transform units (TUs) according to another quadtree structure similar to the coding tree for the CU.
[0206] For example, in an embodiment, according to the latest video coding standard currently under development (referred to as Versatile Video Coding (VVC), a combined quadtree is used to nest multiple types of trees (such as binary trees and ternary trees) to divide the segment structure for partitioning the coding tree unit. In the coding tree structure within the coding tree unit, the CU may be a square or a rectangle. For example, the coding tree unit (CTU) is first partitioned by a quadtree. Then, the quadtree leaf nodes are further partitioned by a multi-type tree structure. The multi-type tree structure has four partition types: vertical binary tree partition (SPLIT_BT_VER), horizontal binary tree partition (SPLIT_BT_HOR), vertical ternary tree partition (SPLIT_TT_VER), and horizontal ternary tree partition (SPLIT_TT_HOR). The multi-type leaf nodes are called coding units (coding units). Unit, CU), unless the CU is too large for the maximum transform length, such segmentation is used for prediction and transform processing without any other partitioning. In most cases, this means that CU, PU and TU have the same block size in the decoding block structure of the quadtree nested multi-type tree. This exception occurs when the maximum supported transform length is smaller than the width or height of the color component of the CU. VVC has established a unique indication mechanism for the partitioning information in the decoding tree structure of the quadtree nested multi-type tree. In this indication mechanism, the decoding tree unit (CTU) is first partitioned by the quadtree structure as the root of the quadtree. Then each quadtree leaf node (when large enough) is further partitioned into a multi-type tree structure. In the multi-type tree structure, the first flag (mtt_split_cu_flag) indicates whether the node is Further splitting, when the node is further split, first use the second flag (mtt_split_cu_vertical_flag) to indicate the splitting direction, and then use the third flag (mtt_split_cu_binary_flag) to indicate whether the splitting is a binary tree splitting or a ternary tree splitting. According to the values of mtt_split_cu_vertical_flag and mtt_split_cu_binary_flag, the decoder can derive the multi-type tree splitting mode (MttSplitMode) of the CU according to predefined rules or tables. It should be noted that for certain designs, such as the 64×64 luminance block and 32×32 chrominance pipeline design in the VVC hardware decoder, when the width or height of the luminance decoding block is greater than 64, TT splitting is prohibited, such as Figure 6As shown. TT partitioning is also not allowed when the width or height of the chroma decoding 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, consecutive VPDUs are processed simultaneously in multiple pipeline stages. 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, the segmentation of the ternary tree (TT) and binary tree (BT) may increase the size of the VPDU.
[0207] In addition, it should be noted that when a part of the tree node block exceeds the lower boundary of the image or the right boundary of the image, the tree node block is forcibly divided until all the pixels of each decoded CU are located within the image boundary.
[0208] For example, the intra sub-partition (ISP) tool may vertically or horizontally divide the luma intra prediction block into two or four sub-partition blocks according to the block size.
[0209] In one example, mode select unit 260 of video encoder 20 may be used to perform any combination of the segmentation techniques described herein.
[0210] As described above, the encoder 20 is configured to determine or select the best or optimal prediction mode from a (predetermined) prediction mode set. For example, the prediction mode set may include an intra-frame prediction mode and / or an inter-frame prediction mode.
[0211] 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 H.265, 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 for VVC. For example, several traditional angle intra prediction modes are adaptively replaced with wide-angle intra prediction modes for non-square blocks defined in VVC. For 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. In addition, the intra prediction result of the plane mode can also be modified using the position-dependent intra prediction combination (PDPC) method.
[0212] The intra prediction unit 254 is configured to generate an intra prediction block 265 using reconstructed pixels of neighboring blocks of the same current image according to an intra prediction mode in the intra prediction mode set.
[0213] 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 indicating 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, for example so that the video decoder 30 can receive and use the prediction parameters for decoding.
[0214] The set of inter prediction modes (or possible inter prediction modes) depends on the available reference picture (i.e., for example, an at least partially decoded picture previously stored in the DBP 230) and other inter prediction parameters, for example, on whether the entire reference picture is used or only a part of the reference picture, such as a search window area around the area of the current block, to search for the best matching reference block, and / or on whether half-pixel, quarter-pixel and / or sixteenth-pixel interpolation is performed, for example.
[0215] In addition to the above prediction modes, skip mode, direct mode and / or other inter-frame prediction modes may also be used.
[0216] For example, extended fusion prediction, the merge candidate list of this mode consists of the following five candidate types in order: spatial MVP from spatially adjacent CUs, temporal MVP from collocated CUs, history-based MVP from FIFO tables, pairwise average MVP, and zero MV. Decoder side motion vector refinement (DMVR) based on bilateral matching can be used to increase the accuracy of the MV of the fusion mode. The merge mode with MVD (MMVD) is derived from the fusion mode with motion vector difference. The MMVD flag is indicated immediately after the skip flag and the merge flag are sent to specify whether the CU uses the MMVD mode. The CU-level adaptive motion vector resolution (AMVR) scheme can be used. AMVR supports decoding of the CU's MVD with different precisions. The MVD of the current CU is adaptively selected according to the prediction mode of the current CU. When the CU is decoded in fusion mode, the combined inter / intra prediction (CIIP) mode can be applied to the current CU. The CIIP prediction is obtained by weighted averaging the inter-frame and intra-frame prediction signals. For affine motion compensated 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 the motion vector of the sub-CU within the current CU is predicted. Bidirectional optical flow (BDOF), formerly known as BIO, is a simplified version that reduces calculations, especially in the calculation of the number of multiplications and the size of the multipliers. In the triangle partitioning mode, the CU is evenly divided into two triangular partitions in two ways: diagonal partitioning and anti-diagonal partitioning. In addition, the bidirectional prediction mode is extended on the basis of simple averaging to support weighted averaging of two prediction signals.
[0217] In addition to the above-mentioned prediction modes, skip mode and / or direct mode may also be applied.
[0218] The prediction processing unit 260 can also be used to partition the block 203 into smaller partitions or sub-blocks, for example, iteratively using quad-tree (QT) partitioning, binary-tree (BT) partitioning or triple-tree (TT) partitioning or any combination thereof, and for example predict each partition or sub-block, wherein the mode selection includes selecting a tree structure of the partition 203 and a prediction mode applied to each partition or sub-block.
[0219] The inter-frame prediction unit 244 may include a motion estimation (ME) unit ( Figure 2 ) and a motion compensation (MC) unit ( Figure 2 201) and a decoded image 231, or at least one or more previously reconstructed blocks, for example, reconstructed blocks of one or more other / different previously decoded images 231, for motion estimation. For example, a video sequence may include a current image and a previously decoded image 231, or in other words, the current image and the previously decoded image 231 may be part of an image sequence constituting a video sequence or an image sequence forming a video sequence.
[0220] 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 ( Figure 2 This offset is also called a motion vector (MV).
[0221] The motion compensation unit is used to obtain (eg, receive) an inter-frame prediction parameter, and perform inter-frame prediction according to or using the inter-frame prediction parameter to obtain an inter-frame prediction block 265. Figure 2 Motion compensation performed by the video decoder 30 (not shown) may involve extracting or generating a prediction block based on the motion / block vector determined by motion estimation, and may also include interpolation of sub-pixel precision. Interpolation filtering may generate pixel points of other pixels, thereby possibly increasing the number of candidate prediction blocks that can be used to decode the image block. Once the motion vector of the PU of the current image block is received, the motion compensation unit may locate the prediction block pointed to by the motion vector in one of the reference image lists. The motion compensation unit may also generate syntax elements related to the block and video slice for use by the video decoder 30 to decode the image block of the video slice.
[0222] The intra prediction unit 254 is used to obtain (e.g., receive) the image block 203 (current image block) and one or more previously reconstructed blocks (e.g., reconstructed neighboring blocks) of the same image to perform intra estimation. For example, the encoder 20 can be used to select an intra prediction mode from a plurality of (predetermined) intra prediction modes.
[0223] Embodiments of the encoder 20 may be configured to select an intra prediction mode based on an optimization criterion, such as minimum residual (eg, the intra prediction mode that provides the prediction block 255 most similar to the current image block 203) or minimum rate distortion.
[0224] The intra-prediction unit 254 is further configured to determine an intra-prediction block 255 based on the intra-prediction parameters (e.g., the selected intra-prediction mode). In any case, after selecting the intra-prediction mode for the block, the intra-prediction unit 254 is further configured to provide the intra-prediction parameters, i.e., information indicating the selected intra-prediction mode for the block, to the entropy encoding unit 270. In one example, the intra-prediction unit 254 can be used to perform any combination of the intra-prediction techniques described below.
[0225] The entropy coding unit 270 is used to 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, a context adaptive binary arithmetic coding (CABAC), a syntax-based context-adaptive binary arithmetic coding (SBAC), a probability interval partitioning entropy (PIPE) coding, or other entropy coding methods or techniques) to the quantized residual coefficients 209, the inter-frame prediction parameters, the intra-frame prediction parameters, and / or the loop filter parameters, either individually or jointly (or not at all) to obtain the encoded image data 21 that can be output by the output terminal 272, for example, in the form of an encoded bitstream 21. The encoded bitstream 21 can be sent to the video decoder 30, or archived for later transmission or retrieval by the video decoder 30. The entropy coding unit 270 may also be used to entropy encode other syntax elements of the current video slice being decoded.
[0226] Other structural variations of the video encoder 20 may be used to encode the video stream. 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, in the encoder 20, the quantization unit 208 and the inverse quantization unit 210 may be combined into one unit.
[0227] Figure 3 An exemplary video decoder 30 for implementing the technology of the present application is shown. For example, the video decoder 30 is used to receive the encoded image data (e.g., the encoded code stream) 21 encoded by the encoder 100 to obtain a decoded image 131. During the decoding process, the video decoder 30 receives the encoded video code stream representing the image blocks of the encoded video slice and the related syntax elements from the video encoder 20.
[0228] exist Figure 3 In the example of , decoder 30 includes entropy decoding unit 304, inverse quantization unit 310, inverse transform processing unit 312, reconstruction unit 314 (e.g., summer 314), buffer 316, loop filter 320, decoded picture buffer 330, and prediction processing unit 360. Prediction processing unit 360 may include inter-frame prediction unit 344, intra-frame prediction unit 354, and mode selection unit 362. In some examples, video decoder 30 may perform operations generally related to Figure 2 The decoding process of video encoder 20 is the opposite of the encoding process described.
[0229] 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 a "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 description of the corresponding units and functions of video encoder 20 applies correspondingly to the corresponding units and functions of video decoder 30.
[0230] The entropy decoding unit 304 is used to perform entropy decoding on the encoded image data 21 to obtain quantization coefficients 309 and / or decoded decoding parameters ( Figure 3The entropy decoding unit 304 is further configured to forward the inter-frame prediction parameters, intra-frame prediction parameters and / or other syntax elements to the prediction processing unit 360. The video decoder 30 may receive syntax elements at the video slice level and / or the video block level.
[0231] The entropy decoding unit 304 is used to parse the bitstream 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 decoding parameters ( Figure 3 The entropy decoding unit 304 may be used to apply a decoding algorithm or scheme corresponding to the encoding scheme described for the entropy encoding unit 270 of 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 or as an alternative to slices and corresponding syntax elements, block groups and / or blocks and corresponding syntax elements may be received or used.
[0232] The function of the inverse quantization unit 310 may be the same as that of the inverse quantization unit 110; the function of the inverse transform processing unit 312 may be the same as that of the inverse transform processing unit 112; the function of the reconstruction unit 314 may be the same as that of the reconstruction unit 114; the function of the buffer 316 may be the same as that of the buffer 116; the function of the loop filter 320 may be the same as that of the loop filter 120; and the function of the decoded image buffer 330 may be the same as that of the decoded image buffer 130.
[0233] An embodiment of the decoder 30 may include a segmentation unit ( Figure 3 In one example, prediction processing unit 360 of video decoder 30 may be used to perform any combination of the segmentation techniques described above.
[0234] The prediction processing unit 360 may include an inter-frame prediction unit 344 and an intra-frame prediction unit 354, wherein the function of the inter-frame prediction unit 344 may be similar to that of the inter-frame prediction unit 144, and the function of the intra-frame prediction unit 354 may be similar to that of the intra-frame prediction unit 154. The prediction processing unit 360 is generally used to perform block prediction and / or obtain a prediction block 365 according to the encoded data 21, and to receive or obtain (explicitly or implicitly) prediction-related parameters and / or information about the selected prediction mode from the entropy decoding unit 304, etc.
[0235] When the video slice is decoded as an intra-coded (I) slice, the intra-prediction unit 354 of the prediction processing unit 360 is used to generate a prediction block 365 for the image block of the current video slice based on the intra-prediction mode and data of the previous decoded block of the current frame or image. When the video frame is decoded as an inter-coded (e.g., B or P) slice, the inter-prediction unit 344 (e.g., motion compensation unit) of the prediction processing 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 from 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.
[0236] The prediction processing unit 360 is used to determine the prediction information of the video block in the current video slice by parsing the motion vector and other syntax elements and generate a prediction block for the decoded current video block using the prediction information. For example, the prediction processing unit 360 uses some received syntax elements to determine the prediction mode (e.g., intra-frame prediction or inter-frame prediction) for decoding the video block of the video slice, the inter-frame 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 of each inter-frame coded video block of the slice, the inter-frame prediction state of each inter-frame decoded video block of the slice, and other information to decode the video block in the current video slice.
[0237] The inverse quantization unit 310 is used to inverse quantize, i.e., dequantize, the quantized transform coefficients provided in the bitstream and decoded by the entropy decoding unit 304. The inverse quantization process may include using the quantization parameters calculated by the video encoder 20 for each video block in the video slice to determine the degree of quantization, and also determine the degree of inverse quantization that needs to be applied.
[0238] The inverse quantization unit 310 may be used 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 apply inverse quantization to the decoded quantization coefficient 309 according to the quantization parameter to obtain a dequantized coefficient 311, which may also be referred to as a transform coefficient 311.
[0239] The inverse transform processing unit 312 is used to apply an inverse transform, such as an inverse DCT, an inverse integer transform, or a conceptually similar inverse transform process, to the transform coefficients to generate a residual block in the pixel domain.
[0240] The inverse transform processing unit 312 may also be used to receive the dequantized coefficients 311, also referred to as transform coefficients 311, and apply a transform to the dequantized coefficients 311 to obtain a reconstructed residual block 213 in the pixel domain. The reconstructed residual block 213 may also be referred to as a transform block 313. The transform may 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 may 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) to determine the transform applied to the dequantized coefficients 311.
[0241] The reconstruction unit 314 (e.g., the summer 314) is used to add the inverse transform block 313 (i.e., the reconstructed residual block 313) to the prediction block 365 by adding the pixel point values of the reconstructed residual block 313 and the pixel point values of the prediction block 365 to obtain the reconstructed block 315 in the pixel point domain.
[0242] The loop filter unit 320 (in or after the decoding loop) is used to filter the reconstructed block 315 to obtain a filter block 321, so as to smoothly perform pixel conversion or improve video quality, etc. In one example, the loop filter unit 320 can be used to perform any combination of the filtering techniques described below. The loop filter unit 320 is used to represent one or more loop filters, such as a deblocking filter, a sample-adaptive offset (SAO) filter, or other filters, such as a bilateral filter or an adaptive loop filter (ALF) or a sharpening or smoothing filter or a collaborative filter. Although the loop filter unit 320 is in Figure 3 3. Although shown as a loop filter in FIG. 3, in other configurations, the loop filter unit 320 may be implemented as a post-loop filter.
[0243] The loop filter unit 320 may also 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. For example, the loop filter unit 220 may include a deblocking filter, an SAO filter, and an ALF filter. The order of the filtering process may be a deblocking filter, an SAO filter, and an ALF filter. For another example, a process called luma mapping with chroma scaling (LMCS) (i.e., an adaptive in-loop shaper) is added. This process is performed before deblocking. For 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.
[0244] The decoded video blocks 321 in a given frame or picture are then stored in a decoded picture buffer 330, which stores reference pictures for subsequent motion compensation.
[0245] The decoded video blocks 321 in one picture are then stored in a decoded picture buffer 330 which stores the decoded pictures 331 as reference pictures for subsequent motion compensation of other pictures and / or for respective output display.
[0246] The decoder 30 is used to output the decoded image 331 through the output terminal 332, etc., to present it to the user or for the user to watch.
[0247] Other variants of the video decoder 30 may be used to decode the compressed bitstream. For example, the decoder 30 may generate an output video stream without the loop filter unit 320. For example, the non-transform-based decoder 30 may directly dequantize the residual signal of certain blocks or frames without the inverse transform processing unit 312. In another implementation, in the video decoder 30, the dequantization unit 310 and the inverse transform processing unit 312 may be combined into one unit.
[0248] In addition to or as an alternative to the above embodiments, Fig.18In other embodiments provided, the function of the inter-frame prediction unit 344 can be the same as the inter-frame prediction unit 244 (especially the motion compensation unit), and the function of the intra-frame prediction unit 354 can be the same as the inter-frame prediction unit 254, and determine the partition or partition and perform the prediction according to the partition 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 or inter-frame prediction) of each block according to the reconstructed image, block or corresponding pixel point (filtered or unfiltered), and obtain the prediction block 365.
[0249] When the video slice is decoded as an intra-coded (I) slice, the intra-prediction unit 354 of 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 intra-prediction mode and data of the signal of the previously decoded block of the current frame or picture. When the video image is decoded as an inter-coded (e.g., 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 from 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 embodiments of 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), e.g., video may be coded using I, P, or B partition groups and / or partitions.
[0250] The mode application unit 360 is used to determine the prediction information of the video block in the current video slice by parsing the motion vector or related information and other syntax elements and generate a prediction block for the decoded current video block using the prediction information. For example, the mode application unit 360 uses some received syntax elements to determine the prediction mode (e.g., intra prediction or inter prediction) for decoding the video block 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 of each inter-coded video block of the slice, the inter-prediction state of each inter-coded video block of the slice, and other information to decode the video block 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 embodiments of block groups (e.g., video block groups) and / or blocks (e.g., video blocks), for example, video can be decoded using I, P, or B block groups and / or blocks.
[0251] In one embodiment, Figure 3 The illustrated 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 into or decoded 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., partitions in the H.265 / HEVC / VVC standard and bricks in the VVC standard).
[0252] In one embodiment, Figure 3 The video decoder 30 shown can also be used to partition and / or decode an image using slice / block groups (also called video block groups) and / or blocks (also called video blocks), wherein an image can be partitioned into one or more slice / block groups (usually non-overlapping) or decoded using one or more slice / block groups (usually non-overlapping), each slice / block group may include one or more blocks (e.g., CTU) or one or more blocks, etc., wherein each block may be in a rectangular shape, etc., and may include one or more complete or partial blocks (e.g., CTU).
[0253] Other variations of the video decoder 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 of certain blocks or frames without the inverse transform processing unit 312. In another implementation, in the video decoder 30, the inverse quantization unit 310 and the inverse transform processing unit 312 may be combined into one unit.
[0254] 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 operation.
[0255] Figure 4 4 is a schematic diagram of a video encoding 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, for example Figure 1A The video decoder 30, or encoder, for example Figure 1A In one embodiment, the video decoding device 400 may be as described above. Figure 1A The video decoder 30 or Figure 1AOne or more components of video encoder 20.
[0256] The video decoding device 400 includes an input port 410 and a receiver unit (Rx) 420 for receiving data, a processor, a logic unit or a central processing unit (CPU) 430 for processing data, a transmitter unit (Tx) 440 and an output port 450 for sending 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 receiver unit 420, the transmitter unit 440 and the output port 450 for inputting or outputting optical or electrical signals.
[0257] 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 receiver unit 420, the transmitter unit 440, the output port 450, and the memory 460. The processor 430 includes a decoding module 470. The decoding module 470 implements the embodiments disclosed above. For example, the decoding module 470 performs, processes, prepares, or provides various decoding operations. Therefore, including the decoding module 470 provides substantial improvements to the functions of the video decoding device 400, and realizes the conversion of the video decoding device 400 to different states. Alternatively, the decoding module 470 is implemented with instructions stored in the memory 460 and executed by the processor 430.
[0258] Memory 460 includes one or more disks, tape drives, and solid-state drives, and can be used as an overflow data storage device to store programs when they are selected for execution, as well as to store instructions and data read during program execution. 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).
[0259] Figure 5A simplified block diagram of an apparatus 500 is provided for an exemplary embodiment, and the apparatus 500 can be used as either or both of the source device 310 and the destination device 320 in FIG. 1 . The apparatus 500 can implement the techniques described above in the present application. The apparatus 500 can be in the form of a computing system including multiple computing devices, or a single computing device, such as a mobile phone, a tablet computer, a laptop, a notebook computer, a desktop computer, etc.
[0260] 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. Although a single processor such as the processor 502 shown in the figure may be used to implement the disclosed implementation, using more than one processor may improve speed and efficiency.
[0261] 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 the bus 512. The memory 504 may also include an operating system 508 and an application 510, which includes at least one program that allows the processor 502 to perform the methods described herein. For example, the application 510 may include applications 1 to N, and also include a video decoding application that performs the methods described herein. The apparatus 500 may also include additional memory in the form of an auxiliary memory 514, which may be a memory card used with a mobile computing device, etc. Since a video communication session may include a large amount of information, they may be stored in whole or in part in the auxiliary memory 514 and loaded into the memory 504 for processing as needed. 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. Display 518 may be coupled to processor 502 via bus 512 .
[0262] The device 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. In addition to the display 518 or as an alternative to the display 518, other output devices that allow a user to program the device 500 or otherwise use the device 500 may be provided. When the output device is a display or includes a display, the display may be implemented in various ways, including by a liquid crystal display (LCD), a cathode ray tube (CRT) display, a plasma display, or a light emitting diode (LED) display, such as an organic LED (OLED) display.
[0263] The apparatus 500 may also include or communicate with an image sensing device 520, for example, a camera or any other image sensing device 520 that is currently available or will be developed in the future and is capable of sensing an image, such as an image of a user operating the apparatus 500. The image sensing device 520 may be positioned so that it faces the user operating the apparatus 500. In one example, the position and optical axis of the image sensing device 520 may be configured so that the field of view includes an area that is directly adjacent to the display 518 and in which the display 518 can be seen.
[0264] The device 500 may also include a sound sensing device 522 or communicate with a sound sensing device 522, for example, the sound sensing device 522 is a microphone or any other sound sensing device that is currently available or will be developed in the future and can sense sounds near the device 500. The sound sensing device 522 can be positioned so that it faces the user operating the device 500, and can be used to receive sounds such as voice or other speech emitted by the user when operating the device 500.
[0265] Although Figure 5The processor 502 and memory 504 of the device 500 are described as being integrated into a single unit, but other configurations may be utilized. The operation of the processor 502 may be distributed among multiple machines (each machine having one or more processors), which may be directly coupled or coupled through a local area network or other network. The memory 504 may be distributed among multiple machines, such as network-based memory or memory in multiple machines that perform the operation of the device 500. 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 such as a memory card or multiple units such as multiple memory cards. Therefore, the device 500 may have a variety of configurations.
[0266] Next Generation Video Coding (NGVC) does not distinguish between the concepts of CU, PU, and TU, making the CU segmentation shape more diverse. The size of the CU corresponds to the size of the decoding node, which can be square or non-square (for example, rectangular).
[0267] Additionally or optionally, the CU may be divided into TUs or PUs.
[0268] In "Block partitioning structure for next generation video coding", International Telecommunication Union, COM16-C966 (hereinafter referred to as "VCEG Recommendation COM16-C966"), published by J.An et al. in September 2015, it is proposed to use quad-tree-binary-tree (QTBT) partitioning technology for future video coding standards other than HEVC. Simulation results show that the proposed QTBT structure is more efficient than the quadtree structure in HEVC used. In HEVC, inter-frame prediction of smaller blocks is restricted to reduce memory access for motion compensation, and inter-frame prediction of 4×4 blocks is not supported. In JEM's QTBT, these restrictions are removed.
[0269] In QTBT, CU can be square or rectangular. Figure 6As shown, the coding tree unit (CTU) is first partitioned by a quadtree structure. The quadtree leaf nodes can be further partitioned by a binary tree structure. There are two types of binary tree partitioning: symmetrical horizontal partitioning and symmetrical vertical partitioning. In each case, the nodes are divided horizontally or vertically along the middle. The binary tree leaf nodes are called coding units (CUs), and the fragments are used for prediction and transformation processing without further partitioning. That is, in the QTBT coding block structure, the block sizes of CU, PU, and TU are the same. A CU sometimes consists of coding blocks (CBs) of different color components, for example, for P and B slices of a 4:2:0 chroma format, a CU contains one luminance CB and two chroma CBs; a CU sometimes consists of CBs of a single component, for example, for an I slice, a CU contains only one luminance CB or only two chroma CBs.
[0270] The following parameters are defined for the QTBT segmentation scheme:
[0271] -CTU size: the root node size of the quadtree, the same concept as in HEVC
[0272] -MinQTSize: Minimum allowed quadtree leaf node size
[0273] -MaxBTSize: Maximum allowed binary tree root node size
[0274] -MaxBTDepth: Maximum allowed binary tree depth
[0275] -MinBTSize: The minimum allowed binary tree leaf node size
[0276] In an example of a QTBT segmentation structure, when the size of a quadtree node is equal to or less than MinQTSize, no other quadtrees are considered. When the size exceeds MaxBTSize, no further division is performed through a binary tree. Otherwise, the quadtree leaf node can be further divided through a binary tree. Therefore, the quadtree leaf node is also the root node of the binary tree, and the binary tree depth is 0. When the binary tree depth reaches MaxBTDepth (ie 4), no further division is considered. When the width of the binary tree node is equal to MinBTSize (ie 4), no further horizontal division is considered. Similarly, when the height of the binary tree node is equal to MinBTSize, no further vertical division is considered. The leaf nodes of the binary tree are further processed by prediction and transformation processing without any further segmentation. In JEM, the maximum CTU size is 256×256 luminance pixels. The leaf nodes of the binary tree (CU) can be further processed (for example, a prediction process and a transformation process are performed) without any further segmentation.
[0277] Figure 6 An example of a block 30 (eg, CTB) partitioned using the QTBT partitioning technique is shown. Figure 6 As shown, each block is divided symmetrically through the center of each block using the QTBT partitioning technique. Figure 7 Shown with Figure 6 The tree structure corresponding to the block partitioning. Figure 7 The solid lines in the figure represent quadtree partitions, and the dashed lines represent binary tree partitions. In one example, in each partition (i.e., non-leaf) node of the binary tree, a syntax element (e.g., a flag) is indicated to indicate the type of partition performed (e.g., horizontal or vertical), where 0 indicates horizontal partitioning and 1 indicates vertical partitioning. For quadtree partitioning, there is no need to indicate the partition type because quadtree partitioning always divides a block horizontally and vertically into 4 equal-sized sub-blocks.
[0278] like Figure 7 As shown, at node 50, block 30 is divided into Figure 6 The four blocks 31, 32, 33 and 34 are shown. Block 34 is not further divided, so block 34 is a leaf node. At node 52, block 31 is further divided into two blocks using BT partitioning. Figure 7 As shown, node 52 is marked as 1, indicating vertical partitioning. Therefore, the partition in node 52 results in block 37 and a block including blocks 35 and 36. Blocks 35 and 36 are formed by further vertical partitioning in node 54. At node 56, block 32 is further partitioned into two blocks 38 and 39 using BT partitioning.
[0279] At node 58, block 33 is divided into 4 blocks of equal size using QT partitioning. Blocks 43 and 44 are generated by this QT partitioning, and blocks 43 and 44 are not further partitioned. At node 60, the upper left block is first partitioned using vertical binary tree partitioning, thereby generating block 40 and the right vertical block. The right vertical block is then partitioned into blocks 41 and 42 using horizontal binary tree partitioning. The lower right block is obtained by quadtree partitioning at node 58, and at node 62, the lower right block is partitioned into blocks 45 and 46 using horizontal binary tree partitioning. Figure 7 As shown, node 62 is labeled 0, indicating horizontal partitioning.
[0280] In addition to QTBT, a block partitioning structure called multi-type-tree (MTT) is proposed to replace the BT in the QTBT-based CU structure. That is, the CTU can be first divided by QT partitioning to obtain blocks of the CTU, and then the block can be divided by MTT partitioning.
[0281] The MTT segmentation structure is still a recursive tree structure. In MTT, a variety of different segmentation structures (e.g., two or more) are used. For example, according to the MTT technique, at each depth of the tree structure, two or more different segmentation structures can be used for each corresponding non-leaf node of the tree structure. The depth of a node in the tree structure can refer to the path length (e.g., the number of divisions) from the node to the root of the tree structure.
[0282] There are two types of segmentation in MTT: BT segmentation and ternary-tree (TT) segmentation. The segmentation type can be selected from BT segmentation and TT segmentation. The difference between the TT segmentation structure and the QT or BT structure is that the TT segmentation structure does not divide the block along the center. The central area of the block is completely in the same sub-block. Unlike the QT that produces four blocks or the binary tree that produces two blocks, three blocks are obtained by dividing according to the TT segmentation structure. Exemplary segmentation types according to the TT segmentation structure include symmetric segmentation types (horizontal and vertical) and asymmetric segmentation types (horizontal and vertical). In addition, the symmetric segmentation type according to the TT segmentation structure can be non-average / non-uniform or average / uniform. The asymmetric segmentation type according to the TT segmentation structure is non-average / non-uniform. In one example, the TT segmentation structure may include at least one of the following segmentation types: horizontal average / uniform symmetric ternary tree, vertical average / uniform symmetric ternary tree, horizontal non-average / non-uniform symmetric ternary tree, vertical non-average / non-uniform symmetric ternary tree, horizontal non-average / non-uniform asymmetric ternary tree, or vertical non-average / non-uniform asymmetric ternary tree segmentation type.
[0283] Typically, a non-average / non-uniform symmetric ternary tree segmentation type is a segmentation type that is symmetrical around the center line of the block, but the size of at least one of the three resulting blocks is different from the size of the other two blocks. A preferred example is that the side block is 1 / 4 of the block size, and the center block is 1 / 2 of the block size. An average / uniform symmetric ternary tree segmentation type is a segmentation type that is symmetrical around the center line of the block, and the resulting block sizes are all the same. This segmentation can be used if the block height or width is a multiple of 3 based on vertical or horizontal division. A non-average / non-uniform asymmetric ternary tree segmentation type is a segmentation type that is asymmetric around the center line of the block, and the size of at least one of the resulting blocks is different from the size of the other two blocks.
[0284] Figure 8 A conceptual diagram of an optional exemplary horizontal ternary tree partitioning type. Fig. 9 is a conceptual diagram of an optional exemplary vertical ternary tree partition type. Figure 8 and Fig. 9 In the example, h represents the block height in luminance or chrominance pixels, and w represents the block width in luminance or chrominance pixels. It should be noted that the corresponding center line of the block does not represent the block boundary (i.e., the ternary tree segmentation does not divide the block through the center line). Instead, the center line is used to describe whether a specific segmentation type is symmetrical or asymmetrical relative to the center line of the original block. The center line is also in the direction of the segmentation.
[0285] like Figure 8 As shown, the block 71 is segmented using the horizontal average / uniform symmetric segmentation type. The horizontal average / uniform symmetric segmentation type produces an upper half and a lower half that are symmetrical with respect to the center line of the block 71. The horizontal average / uniform symmetric segmentation type produces three sub-blocks of equal size, each of which has a height of h / 3 and a width of w. When the height of the block 71 is evenly divisible by 3, the horizontal average / uniform symmetric segmentation type can be used.
[0286] Block 73 is segmented using a horizontal non-average / non-uniform symmetric segmentation type. The horizontal non-average / non-uniform symmetric segmentation type produces an upper half and a lower half that are symmetrical with respect to a center line of block 73. The horizontal non-average / non-uniform symmetric segmentation type produces two blocks of equal size (e.g., a top block and a bottom block of height h / 4) and a center block of different size (e.g., a center block of height h / 2). In one example, according to the horizontal non-average / non-uniform symmetric segmentation type, the area of the center block is equal to the combined area of the top block and the bottom block. In some examples, blocks whose height is a power of 2 (e.g., 2, 4, 8, 16, 32, etc.) may preferably use a horizontal non-average / non-uniform symmetric segmentation type.
[0287] The block 75 is segmented using the horizontal non-average / non-uniform asymmetric segmentation type. The horizontal non-average / non-uniform asymmetric segmentation type does not produce an upper half and a lower half that are symmetrical with respect to the center line of the block 75 (ie, the upper half and the lower half are asymmetric). Figure 8 In the example of , the horizontal non-average / non-uniform asymmetric partitioning type produces a top block of height h / 4, a center block of height 3h / 8, and a bottom block of height 3h / 8. Of course, other asymmetric arrangements may be used.
[0288] like Fig. 9 As shown, the block 81 is segmented using the vertical average / uniform symmetric segmentation type. The vertical average / uniform symmetric segmentation type produces a left half and a right half that are symmetrical with respect to the center line of the block 81. The vertical average / uniform symmetric segmentation type produces three sub-blocks of equal size, each of which has a width of w / 3 and a height of h. When the width of the block 81 is evenly divisible by 3, the vertical average / uniform symmetric segmentation type can be used.
[0289] The block 83 is segmented using a vertical non-average / non-uniform symmetric segmentation type. The vertical non-average / non-uniform symmetric segmentation type produces a left half and a right half that are symmetrical with respect to the center line of the block 83. The vertical non-average / non-uniform symmetric segmentation type produces a left half and a right half that are symmetrical with respect to the center line of 83. The vertical non-average / non-uniform symmetric segmentation type produces two blocks of equal size (e.g., a left block and a right block of width w / 4) and a center block of different size (e.g., a center block of width w / 2). In one example, according to the vertical non-average / non-uniform symmetric segmentation type, the area of the center block is equal to the combined area of the left block and the right block. In some examples, blocks with a width that is a power of 2 (e.g., 2, 4, 8, 16, 32, etc.) may preferably use a vertical non-average / non-uniform symmetric segmentation type.
[0290] The block 85 is segmented using a vertical non-average / non-uniform asymmetric segmentation type. The vertical non-average / non-uniform asymmetric segmentation type does not produce a left half and a right half that are symmetrical with respect to the center line of the block 85 (ie, the left half and the right half are asymmetric). Fig. 9 In the example of , the vertical non-average / non-uniform asymmetric partitioning type produces a left block with a width of w / 4, a center block with a width of 3w / 8, and a right block with a width of 3w / 8. Of course, other asymmetric arrangements can be used.
[0291] In addition to the parameters of QTBT, the following parameters are defined for the MTT segmentation scheme.
[0292] -MaxBTSize: Maximum allowed binary tree root node size
[0293] -MinBtSize: The minimum allowed binary tree root node size
[0294] -MaxMttDepth: Maximum multi-type tree depth
[0295] -MaxMttDepth offset: Maximum multi-type tree depth deviation
[0296] -MaxTtSize: Maximum allowed ternary tree root node size
[0297] -MinTtSize: The minimum allowed ternary tree root node size
[0298] -MinCbSize: The minimum allowed decoding block size
[0299] According to the embodiments of the present application, the embodiments of the present invention can be implemented by a video encoder or a video decoder, such as Figure 2 Video encoder 20 or Figure 3 One or more structural elements (including the segmentation unit) of the video encoder 20 or the video decoder 30 may be used to perform the techniques of the embodiments of the present invention.
[0300] In J.-R.Ohm, G.J.Sulivan [JVET-K1001-v4], JVET AHG, http: / / phenix.int- evry.fr / jvet / In the report, the syntax elements for MinQtSizeY (log2_min_qt_size_intra_slices_minus2 and log2_min_qt_size_inter_slices_minus2) and the syntax elements for MaxMttDepth (max_mtt_hierarchy_depth_inter_slices and max_mtt_hierarchy_depth_intra_slices) are indicated in the SPS.
[0301] A syntax element (log2_diff_ctu_max_bt_size) indicating the difference between the luma CTB size and MaxBtSizeY in the slice header.
[0302] CtbSizeY and the corresponding syntax element log2_ctu_size_minus2 indicate the maximum decoding block size in units of luma pixels.
[0303] MinQtSizeY is defined as the minimum brightness size of a leaf block obtained by quadtree partitioning a coding tree unit (CTU). The size can represent the width or height of a block (expressed in the number of pixels). For a square block, the size can also represent the width and height. For example, if MinQtSizeY is equal to 16, a coding block with a size less than or equal to 16 cannot be divided into sub-blocks using a quadtree partitioning method. In the background art MinQtSizeY, log2_min_qt_size_intra_slices_minus2 and log2_min_qt_size_inter_slices_minus2 are used to represent the minimum quadtree block size. Please note that the indication of the size can be an indirect indication, that is, log2_min_qt_size_intra_slices_minus2 can be the binary logarithm (base 2) of the number of brightness pixels of the minimum quadtree block, and MaxMttDepth is defined as the maximum hierarchical depth of the coding unit obtained by multi-type tree partitioning of a quadtree leaf or CTU. The coding tree unit or coding tree block (CTB) represents the maximum block size for segmenting an image frame. MaxMttDepth represents the upper limit of the number of consecutive binary or ternary tree partitions that can be used to obtain a sub-block. For example, assuming that the CTU size is 128×128 (width 128, height 128), MaxMttDepth=1. In this case, the parent block (size 128×128) can be first divided into two 128×64 sub-blocks using binary tree partitioning. However, since the maximum number of binary tree partitions allowed has been reached, no consecutive binary tree partitions can be applied to the sub-block (obtaining 128×32 or 64×64 sub-blocks). It should be noted that MaxMttDepth can control the maximum binary tree partition depth or the maximum ternary tree partition depth, or both at the same time. If the binary tree and ternary tree partition depths are controlled at the same time, a binary tree partition followed by a ternary tree partition can be counted as two hierarchical partitions. In the background art MaxMttDepth, max_mtt_hierarchy_depth_inter_slices and max_mtt_hierarchy_depth_intra_slices are used to indicate the maximum hierarchical depth of the coding unit generated by the multi-type tree.
[0304] It should be noted that the names of the grammatical elements are the same as those that appear in the background art. However, it should be clear that the names can be changed, so what is important is the logical meaning of the grammatical elements.
[0305] Define MaxBtSizeY as the maximum brightness size (width or height) of the decoded block that can be divided using binary tree partitioning, which is expressed in pixels. For example, if MaxBtSizeY is equal to 64, then binary tree partitioning cannot be used to partition decoded blocks with a size (width or height) greater than 64. That is, a block of size 128×128 cannot be partitioned using binary tree partitioning, while a block of size 64×64 can be partitioned using binary tree partitioning.
[0306] Define MaxBtSizeY as the maximum brightness size (width or height) of the decoded block that can be divided using binary tree partitioning, which is expressed in pixels. For example, if MinBtSizeY is equal to 16, binary tree partitioning cannot be used to partition decoded blocks with a size (width or height) less than or equal to 16. That is, blocks of size 8×8 cannot be divided using binary tree partitioning, while blocks of size 32×32 can be divided using binary tree partitioning.
[0307] Define MinCbSizeY as the minimum decoding block size. For example, MinCbSizeY can be equal to 8, that is, a parent block of size 8×8 cannot be divided using any partitioning method, because the width or height of the resulting sub-block will inevitably be smaller than MinCbSizeY. According to the second example, if MinCbSizeY is equal to 8, a parent block of size 8×16 cannot be split using quadtree partitioning or the like, because the size of the resulting four sub-blocks will be 4×8 (width equals 4, height equals 8), and the width of the resulting sub-block will be smaller than MinCbSizeY. In the second example, it is assumed that MinCbSizeY applies to both the width and height of the block, but two different syntax elements can be used to limit the width and height respectively.
[0308] Define MinTbSizeY as the minimum transform block size of the decoding block that can be divided using ternary tree partitioning, which is expressed in pixels. For example, if MinTbSizeY is equal to 16, ternary tree partitioning cannot be used to partition the decoding block whose size (width or height) is less than or equal to 16. That is, a block of size 8×8 cannot be divided using ternary tree partitioning, while a block of size 32×32 can be divided using ternary tree partitioning.
[0309] Sequence Parameter Set RBSP (Raw Byte Sequence Payload) Syntax (Section 7.3.2.1 of [JVET-K1001-v4])
[0310] [Ed.(BB): Preliminary basic SPS, pending further research and further specification development]
[0311]
[0312]
[0313] In these syntax tables, the syntax elements in bold are included in the codestream. Elements not in bold are conditionals or placeholders for other syntax elements.
[0314] Stripe Header Syntax (Section 7.3.3 of [JVET-K1001-v4])
[0315] [Ed.(BB): Preliminary basic strip header, pending further research and further standard development]
[0316]
[0317] The standard also provides the semantics of syntax elements, that is, how to interpret the syntax elements included in the codestream. The semantics of the above elements are provided below.
[0318] Sequence Parameter Set RBSP Semantics (Section 7.4.3.1 of [JVET-K1001-v4])
[0319] log2_ctu_size_minus2+2 represents the luma decoding tree block size of each CTU.
[0320] The variables CtbLog2SizeY, CtbSizeY, MinCbLog2SizeY, MinCbSizeY, MinTbLog2SizeY, MaxTbLog2SizeY, PicWidthInCtbsY, PicHeightInCtbsY, PicSizeInCtbsY, PicWidthInMinCbsY, PicHeightInMinCbsY, PicSizeInMinCbsY, PicSizeInSamplesY, PicWidthInSamplesC, and PicHeightInSamplesC are derived as follows:
[0321] CtbLog2SizeY = log2_ctu_size_minus2 + 2 (7-5)
[0322] CtbSizeY = 1 << CtbLog2SizeY (7-6)
[0323] MinCbLog2SizeY = 2 (7-7)
[0324] MinCbSizeY = 1 << MinCbLog2SizeY (7-8)
[0325] MinTbSizeY = 4 (7-9)
[0326] MaxTbSizeY = 64 (7-10)
[0327] PicWidthInCtbsY = Ceil( pic_width_in_luma_samples ÷ CtbSizeY ) (7-11)
[0328] PicHeightInCtbsY = Ceil( pic_height_in_luma_samples ÷ CtbSizeY )(7-12)
[0329] PicSizeInCtbsY = PicWidthInCtbsY * PicHeightInCtbsY (7-13)
[0330] PicWidthInMinCbsY = pic_width_in_luma_samples / MinCbSizeY (7-14)
[0331] PicHeightInMinCbsY = pic_height_in_luma_samples / MinCbSizeY (7-15)
[0332] PicSizeInMinCbsY = PicWidthInMinCbsY * PicHeightInMinCbsY (7-16)
[0333] PicSizeInSamplesY = pic_width_in_luma_samples * pic_height_in_luma_samples (7-17)
[0334] PicWidthInSamplesC = pic_width_in_luma_samples / SubWidthC (7-18)
[0335] PicHeightInSamplesC = pic_height_in_luma_samples / SubHeightC (7-19)
[0336] ……
[0337] log2_min_qt_size_intra_slices_minus2+2 represents the minimum brightness size of a leaf block generated by quadtree partitioning a CTU in a slice with slice_type=2(I). The value range of log2_min_qt_size_intra_slices_minus2 should be 0 to CtbLog2SizeY-2 (including the end value).
[0338] MinQtLog2SizeIntraY = log2_min_qt_size_intra_slices_minus2 + 2 (7-22)
[0339] [Ed.(BB): The leaves of a quadtree can be either decoding units or the roots of nested multi-type trees]
[0340] log2_min_qt_size_inter_slices_minus2+2 represents the minimum brightness size of a leaf block generated by quadtree partitioning a CTU in a slice with slice_type=0 (B) or 1 (P). The value range of log2_min_qt_size_inter_slices_minus2 should be 0 to CtbLog2SizeY-2 (including the end value).
[0341] MinQtLog2SizeInterY = log2_min_qt_size_inter_slices_minus2 + 2 (7-23)
[0342] max_mtt_hierarchy_depth_inter_slices indicates the maximum hierarchical depth of the decoding unit generated by multi-type tree partitioning of quadtree leaves in a slice with slice_type = 0 (B) or 1 (P). The value range of max_mtt_hierarchy_depth_inter_slices should be 0 to CtbLog2SizeY-MinTbLog2SizeY (including the end value).
[0343] max_mtt_hierarchy_depth_intra_slices indicates the maximum hierarchical depth of the decoding unit generated by multi-type tree partitioning of quadtree leaves in a slice with slice_type = 2(I). The value range of max_mtt_hierarchy_depth_intra_slices should be 0 to CtbLog2SizeY-MinTbLog2SizeY (including the end value).
[0344] …
[0345] Stripe header semantics (Section 7.4.4 of [JVET-K1001-v4])
[0346] …
[0347] log2_diff_ctu_max_bt_size represents the difference between the luma CTB size and the maximum luma size (width or height) of the decoding block that can be partitioned using binary tree partitioning. The value range of log2_diff_ctu_max_bt_size should be 0 to CtbLog2SizeY–MinCbLog2SizeY (including the end value).
[0348] When log2_diff_ctu_max_bt_size is not present, the value of log2_diff_ctu_max_bt_size is inferred to be equal to 2.
[0349] The variables MinQtLog2SizeY, MaxBtLog2SizeY, MinBtLog2SizeY, MaxTtLog2SizeY, MinTtLog2SizeY, MaxBtSizeY, MinBtSizeY, MaxTtSizeY, MinTtSizeY, and MaxMttDepth are derived as follows:
[0350] MinQtLog2SizeY=(slice_type==I)? MinQtLog2SizeIntraY:MinQtLog2SizeInterY
[0351] (7-25)
[0352] MaxBtLog2SizeY = CtbLog2SizeY - log2_diff_ctu_max_bt_size (7-26)
[0353] MinBtLog2SizeY = MinCbLog2SizeY (7-27)
[0354] MaxTtLog2SizeY = ( slice_type = = I ) ? 5 : 6 (7-28)
[0355] MinTtLog2SizeY = MinCbLog2SizeY (7-29)
[0356] MinQtSizeY = 1 << MinQtLog2SizeY (7-30)
[0357] MaxBtSizeY = 1 << MaxBtLog2SizeY (7-31)
[0358] MinBtSizeY = 1 << MinBtLog2SizeY (7-32)
[0359] MaxTtSizeY = 1 << MaxTtLog2SizeY (7-33)
[0360] MinTtSizeY = 1 << MinTtLog2SizeY (7-34)
[0361] MaxMttDepth=(slice_type==I)? max_mtt_hierarchy_depth_intra_slices:max_mtt_hierarchy_depth_inter_slice(7-35)
[0362] [Ed.(BB): Currently the maximum TT size is fixed (32×32 luma pixels and corresponding chroma pixels for I stripes, 64×64 luma pixels and corresponding chroma pixels for P / B stripes), and the maximum BT size for I stripes is fixed (CtbLog2SizeY-2, e.g. 32×32 luma pixels and corresponding CTU size of 128×128 luma pixels)]
[0363] In embodiment 1 of the present invention:
[0364] Embodiment 1 involves indicating high-level syntax elements related to partition constraints (eg, MinQtSizeY, MaxMttDepht, MaxBtSizeY) respectively through slice types in a sequence parameter set (SPS), and / or indicating a partition constraint override enable (or disable) flag.
[0365] In the stripe header, the split constraint override flag is:
[0366] If the flag is true,
[0367] oOverride the high-level syntax elements in the slice header related to the split constraints, where overriding means re-indicating the elements in the slice header.
[0368] ·otherwise,
[0369] o Depending on the slice type, high-level syntax elements related to the split constraints are inferred using the values indicated in the SPS.
[0370] In other words, indicating the partition constraint override flag in the slice header indicates whether one or more partition constraint parameters are indicated in a slice header or a parameter set such as an SPS. It should be noted that the parameter set does not necessarily have to be an SPS. The parameter set may be a PPS, or any other type of parameter set, for example, related to more than one slice, for example, related to one or more pictures of a video.
[0371] or,
[0372] In the SPS, high-level syntax elements related to the split constraints (eg, MinQtSizeY, MaxMttDepht, MaxBtSizeY) are indicated in pairs according to features or indexes, and a split constraint override enable (or disable) flag is indicated.
[0373] In the slice header, the split constraint override flag is indicated, and:
[0374] If the flag is true,
[0375] Overwrite the high-level syntax elements related to the split constraints in the slice header, where overwriting means re-indicating the elements in the slice header.
[0376] otherwise,
[0377] High-level syntax elements related to the partitioning constraints are inferred using the values indicated in the SPS, based on the features or indices used to indicate them respectively.
[0378] Regarding the location of the directive and override, the options are, for example:
[0379] High-level syntax elements related to the partition constraints may be indicated in a parameter set, and an overwrite operation may be performed in a slice header.
[0380] High-level syntax elements related to split constraints may be indicated in a parameter set and may be overridden in a tile header.
[0381] High-level syntax elements related to the partition constraints may be indicated in a first parameter set, and an overwriting operation may be performed in a second parameter set.
[0382] High-level syntax elements related to the partitioning constraints may be indicated in the slice header and an overwrite operation may be performed in the tile header.
[0383] Generally, when high-level syntax elements related to partition constraints are indicated in a first parameter set and an overwriting operation is performed in a second parameter set, efficient coding can be achieved because the first parameter set involves a larger image / video area than the second parameter set.
[0384] Technical advantages (such as indication in SPS, overwriting in slice header): Advanced partitioning constraints are used to control the partitioning complexity and the decoding efficiency of the partitioning to achieve a balance. The present invention ensures flexible control of the balance of a single slice.
[0385] Both the encoder and decoder perform the same (corresponding) operations.
[0386] Based on the background technology, the corresponding syntax and semantics are modified as follows:
[0387] Modified Sequence Parameter Set RBSP semantics (Section 7.3.2.1 of [JVET-K1001-v4])
[0388] [Ed.(BB): Preliminary basic SPS, pending further research and further specification development]
[0389]
[0390]
[0391] Modified stripe header syntax (Section 7.3.3 of [JVET-K1001-v4])
[0392] [Ed.(BB): Preliminary basic strip header, pending further research and further standard development]
[0393]
[0394] …
[0395] Modified Sequence Parameter Set RBSP semantics (Section 7.4.3.1 of [JVET-K1001-v4])
[0396] …
[0397] partition_constraint_override_enabled_flag=1 indicates that the slice header of the slice that refers to the SPS has partition_constraint_override_flag. partition_constraint_override_enabled_flag=0 indicates that the slice header of the slice that refers to the SPS does not have partition_constraint_override_flag.
[0398] sps_log2_min_qt_size_intra_slices_minus2+2 represents the default minimum brightness size of the leaf block obtained by the quadtree partitioning of the CTU in the slice of the reference SPS when slice_type=2(I), unless the default minimum brightness size of the leaf block obtained by the quadtree partitioning of the CTU is overwritten by the minimum brightness size of the leaf block generated by the quadtree partitioning of the CTU in the slice header of the slice of the reference SPS. The value range of log2_min_qt_size_intra_slices_minus2 should be 0 to CtbLog2SizeY-2 (including the end value).
[0399] MinQtLog2SizeIntraY=log2_min_qt_size_intra_slices_minus2+2(7-22)
[0400] sps_log2_min_qt_size_inter_slices_minus2+2 represents the default minimum brightness size of the leaf block obtained by the quadtree partitioning of the CTU in the slice of the reference SPS when slice_type=0 (B) or 1 (P), unless the default minimum brightness size of the leaf block obtained by the quadtree partitioning of the CTU is overwritten by the minimum brightness size of the leaf block obtained by the quadtree partitioning of the CTU in the slice header of the slice of the reference SPS. The value range of log2_min_qt_size_inter_slices_minus2 should be 0 to CtbLog2SizeY–2 (including the end value).
[0401] MinQtLog2SizeInterY=log2_min_qt_size_inter_slices_minus2+2(7-23)
[0402] sps_max_mtt_hierarchy_depth_inter_slices indicates the default maximum hierarchical depth of the decoding unit obtained by multi-type tree partitioning of quadtree leaves in the slice of the reference SPS when slice_type=0 (B) or 1 (P), unless the default maximum hierarchical depth of the decoding unit obtained by multi-type tree partitioning of the quadtree leaves is overwritten by the maximum hierarchical depth of the decoding unit obtained by multi-type tree partitioning of the quadtree leaves in the slice header of the slice of the reference SPS. The value range of max_mtt_hierarchy_depth_inter_slices should be 0 to CtbLog2SizeY–MinTbLog2SizeY (including the end value).
[0403] sps_max_mtt_hierarchy_depth_intra_slices indicates the default maximum hierarchical depth of the decoding unit obtained by multi-type tree partitioning of the quadtree leaves of the slice of the reference SPS when slice_type=2(I), unless the default maximum hierarchical depth of the decoding unit obtained by multi-type tree partitioning of the quadtree leaves is overwritten by the maximum hierarchical depth of the decoding unit obtained by multi-type tree partitioning of the quadtree leaves in the slice header of the slice of the reference SPS. The value range of max_mtt_hierarchy_depth_intra_slices should be 0 to CtbLog2SizeY–MinTbLog2SizeY (including the end value).
[0404] sps_log2_diff_ctu_max_bt_size_intra_slices represents the default difference between the luma CTB size and the maximum luma size (width or height) of a coded block that can be divided using binary tree partitioning in a slice of the reference SPS with slice_type=2(I), unless the default difference between the luma CTB size and the maximum luma size (width or height) of a coded block that can be divided using binary tree partitioning is overwritten by the luma CTB size and the maximum luma size (width and height) of a coded block that can be divided using binary tree partitioning in the slice header of the reference SPS. The value range of log2_diff_ctu_max_bt_size should be 0 to CtbLog2SizeY–MinCbLog2SizeY (including the end value).
[0405] sps_log2_diff_ctu_max_bt_size_inter_slices represents the default difference between the luma CTB size and the maximum luma size (width or height) of a coded block that can be divided using a binary tree partition in a slice with slice_type=0 (B) or 1 (P) and a reference SPS, unless the default difference between the luma CTB size and the maximum luma size (width or height) of a coded block that can be divided using a binary tree partition is overwritten by the difference between the luma CTB size and the maximum luma size (width and luma) of a coded block that can be divided using a binary tree partition in a slice header of a slice with a reference SPS. The value range of log2_diff_ctu_max_bt_size should be 0 to CtbLog2SizeY–MinCbLog2SizeY (inclusive).
[0406] …
[0407] Modified stripe header semantics (Section 7.4.4 of [JVET-K1001-v4])
[0408] …
[0409] partition_constraint_override_flag=1 indicates that there is a partition constraint parameter in the slice header. partition_constraint_override_flag=0 indicates that there is no partition constraint parameter in the slice header. If there is no partition constraint parameter, the value of partition_constraints_override_flag is inferred to be equal to 0.
[0410] log2_min_qt_size_minus2+2 represents the minimum brightness size of the leaf block obtained by the quadtree partitioning of the CTU in the current slice. The value range of log2_min_qt_size_inter_slices_minus2 should be 0 to CtbLog2SizeY–2 (including the end value). When there is no partition constraint parameter, if slice_type=2(I), the value of log2_min_qt_size_minus2 is inferred to be equal to sps_log2_min_qt_size_intra_slices_minus2, and if slice_type is equal to 0(B) or 1(P), the value of log2_min_qt_size_minus2 is inferred to be equal to sps_log2_min_qt_size_inter_slices_minus2.
[0411] max_mtt_hierarchy_depth indicates the maximum hierarchical depth of the decoding unit obtained by multi-type tree partitioning of the quadtree leaves in the current slice. The value range of max_mtt_hierarchy_depth_intra_slices should be 0 to CtbLog2SizeY–MinTbLog2SizeY (including the end value). When there is no partition constraint parameter, if slice_type=2(I), the value of max_mtt_hierarchy_depth is inferred to be equal to sps_max_mtt_hierarchy_depth_intra_slices, and if slice_type=0(B) or 1(P), the value of max_mtt_hierarchy_depth is inferred to be equal to sps_max_mtt_hierarchy_depth_inter_slices.
[0412] log2_diff_ctu_max_bt_size represents the difference between the luma CTB size and the maximum luma size (width or height) of the coded block that can be partitioned using the binary tree partitioning in the current slice. The value range of log2_diff_ctu_max_bt_size should be 0 to CtbLog2SizeY–MinCbLog2SizeY (including the end value). When there is no partition constraint parameter, if slice_type=2(I), the value of log2_diff_ctu_max_bt_size is inferred to be equal to sps_log2_diff_ctu_max_bt_size_intra_slices, and if slice_type=0(B) or 1(P), the value of log2_diff_ctu_max_bt_size is inferred to be equal to sps_log2_diff_ctu_max_bt_size_inter_slices.
[0413] The variables MinQtLog2SizeY, MaxBtLog2SizeY, MinBtLog2SizeY, MaxTtLog2SizeY, MinTtLog2SizeY, MaxBtSizeY, MinBtSizeY, MaxTtSizeY, MinTtSizeY, and MaxMttDepth are derived as follows:
[0414]
[0415] MinQtLog2SizeY = log2_min_qt_size_minus2 + 2 (7-25)
[0416] MaxBtLog2SizeY = CtbLog2SizeY - log2_diff_ctu_max_bt_size (7-26)
[0417] MinBtLog2SizeY = MinCbLog2SizeY (7-27)
[0418] MaxTtLog2SizeY = ( slice_type = = I ) ? 5 : 6 (7-28)
[0419] MinTtLog2SizeY = MinCbLog2SizeY (7-29)
[0420] MinQtSizeY = 1 << MinQtLog2SizeY (7-30)
[0421] MaxBtSizeY = 1 << MaxBtLog2SizeY (7-31)
[0422] MinBtSizeY = 1 << MinBtLog2SizeY (7-32)
[0423] MaxTtSizeY = 1 << MaxTtLog2SizeY (7-33)
[0424] MinTtSizeY = 1 << MinTtLog2SizeY (7-34)
[0425]
[0426] MaxMttDepth = 1 << max_mtt_hierarchy_depth (7-35)
[0427] In an alternative implementation of Embodiment 1 of the present invention, as described below:
[0428] A sequence parameter set (SPS) contains parameters that apply to the entire coded video sequence and do not vary between pictures in a coded video sequence (CVS). All pictures in the same CVS use the same SPS.
[0429] The PPS contains parameters that may vary from picture to picture in the same coded video sequence.However, multiple pictures may reference the same PPS, even pictures with different slice coding types (I, P, B).
[0430] As described in Embodiment 1 of the present invention, the advanced partitioning constraint is used to control the partitioning complexity and the decoding efficiency of the partitioning to achieve a balance. In order to achieve the advantages of flexible control of the complexity and decoding efficiency in a single image / slice, the method in Embodiment 1 (indicating the partitioning constraint syntax element in the SPS, and overwriting the partitioning constraint syntax element in the slice header according to the constraint override flag, which is indicated in the slice header) is not used, and the partitioning constraint syntax element (MinQtSizeY, MaxMttDepth, MaxBtSizeY, MaxTtSizeY, etc.) is indicated in the PPS, so as to achieve a balance between the partitioning complexity and the decoding efficiency at the image level. If each image uses a separate PPS, the single image is adjusted; if multiple images refer to the same PPS, the same adjustment is made to these images.
[0431] The PPS-level segmentation constraint syntax element indication may be indicated in a group, for example, in the PPS, a MinQtSizeY indicator, a MaxMttDepth indicator, a MaxBtSizeY indicator, and a MaxTtSizeY indicator are indicated. In this case, a balance is achieved between the segmentation complexity and the decoding efficiency of the segmentation by adjusting the segmentation individually according to different images.
[0432] The PPS-level partition constraint syntax element indication may also be indicated in two groups according to the slice type. For example, in the PPS, a MinQtSizeY intra-frame slice indicator, a MinQtSizeY inter-frame slice indicator, a MaxMttDepth intra-frame slice indicator, a MaxMttDepth inter-frame indicator, a MaxBtSizeY intra-frame slice indicator, a MaxBtSizeY inter-frame slice indicator, a MaxTtSizeY intra-frame slice indicator and a MaxTtSizeY inter-frame slice indicator are indicated. In this case, a balance is achieved between the partition complexity and the decoding efficiency of the partition by adjusting the partitioning separately according to the slice type (intra-frame or inter-frame).
[0433] The PPS-level partition constraint syntax element indication may be indicated in a plurality of groups according to a slice identifier (e.g., an index). For example, if a picture is divided into three slices, then in the PPS, three different indicators for the slice identifier based on MinQtSizeY, three different indicators for the slice identifier based on MaxMttDepth, three different indicators for the slice identifier based on MaxBtSizeY, and three different indicators for the slice identifier based on MaxTtSizeY are indicated. In this case, a balance is achieved between adjusting the partition complexity and the decoding efficiency of the partition individually according to the slice.
[0434] Compared with the method of embodiment 1, the advantage of this alternative implementation is that the indication structure is simplified. In this method, in order to flexibly adjust the partition complexity and the decoding gain of the partition to achieve a balance, it is not necessary to overwrite the partition constraint syntax element in the slice header.
[0435] On the other hand, compared with the method of embodiment 1, this alternative implementation is limited in some scenarios. This method only indicates the segmentation constraints in the PPS. That is, if multiple images refer to the same PPS, it is impossible to achieve a balance between adjusting the segmentation complexity and the decoding gain of the segmentation according to the image alone. In addition, if only the key image is adjusted, this method will indicate redundant information in the PPS.
[0436] The plurality of partition constraint syntax elements are parameter set (eg, PPS, VPS, SPS) level syntax elements or header (eg, picture header, slice header, or partition header) syntax elements.
[0437] In Embodiment 2 of the present invention:
[0438] Each embodiment shows
[0439] • Split high-level syntax constraint elements may be indicated in the SPS.
[0440] • The split high-level syntax constraint element can be overridden in the slice header.
[0441] · Split advanced syntax constraint elements can use default values.
[0442] · BT and TT can be disabled in SPS.
[0443] BT and TT can be disabled in the stripe header.
[0444] · The BT and TT enable (disable) flags can be indicated in the SPS and overwritten in the slice header.
[0445] Technical advantages (such as indication in SPS, overwriting in slice header): Advanced partitioning constraints are used to control the partitioning complexity and the decoding efficiency of the partitioning to achieve a balance. The present invention ensures flexible control of the balance of a single slice. For default values and Bt Tt enable (disable function), each element can be controlled more flexibly.
[0446] Both the encoder and decoder perform the same (corresponding) operations.
[0447] Based on the background technology, the corresponding modifications are as follows:
[0448] Modified Sequence Parameter Set RBSP semantics (Section 7.3.2.1 of [JVET-K1001-v4])
[0449] [Ed.(BB): Preliminary basic SPS, pending further research and further specification development]
[0450]
[0451]
[0452] Modified stripe header syntax (Section 7.3.3 of [JVET-K1001-v4])
[0453] [Ed.(BB): Preliminary basic strip header, pending further research and further standard development]
[0454]
[0455]
[0456] …
[0457] Modified Sequence Parameter Set RBSP semantics (Section 7.4.3.1 of [JVET-K1001-v4])
[0458] …
[0459] partition_constraint_control_present_flag = 1 indicates that the SPS contains a partition constraint control syntax element. partition_constraint_control_present_flag = 0 indicates that the SPS does not contain a partition constraint control syntax element.
[0460] sps_btt_enabled_flag=1 indicates that the multi-type tree partitioning operation is applicable to slices referencing an SPS without slice_btt_enable_flag. sps_btt_enabled_flag=0 indicates that the multi-type tree partitioning operation is not applicable to slices referencing an SPS without slice_btt_enable_flag. If there is no partition constraint parameter, the value of sps_btt_enabled_flag is inferred to be equal to 1.
[0461] partition_constraint_override_enabled_flag=1 indicates that the slice header of the slice referencing the SPS has partition_constraint_override_flag. partition_constraint_override_enabled_flag=0 indicates that the slice header of the slice referencing the SPS does not have partition_constraint_override_flag. If there is no partition constraint parameter, the value of partition_constraint_override_enabled_flag is inferred to be equal to 0.
[0462] sps_log2_min_qt_size_intra_slices_minus2+2 represents the initial minimum brightness size value of the SPS of the leaf block obtained by the quadtree partitioning of the CTU in the slice of the reference SPS when slice_type=2(I), unless the initial minimum brightness size value of the leaf block obtained by the quadtree partitioning of the CTU is overwritten by the minimum brightness size of the leaf block obtained by the quadtree partitioning of the CTU in the slice header of the slice of the reference SPS. The value range of log2_min_qt_size_intra_slices_minus2 should be 0 to CtbLog2SizeY–2 (including the end value). If there is no split constraint parameter, it is inferred that the value of sps_log2_min_qt_size_intra_slices_minus2 is equal to 0.
[0463]
[0464] sps_log2_min_qt_size_inter_slices_minus2+2 represents the initial minimum brightness size value of the SPS of the leaf block obtained by the quadtree partition of the CTU in the slice of the reference SPS when slice_type=0 (B) or 1 (P), unless the initial minimum brightness size value of the leaf block obtained by the quadtree partition of the CTU is overwritten by the minimum brightness size of the leaf block obtained by the quadtree partition of the CTU in the slice header of the slice of the reference SPS. The value range of log2_min_qt_size_inter_slices_minus2 should be 0 to CtbLog2SizeY–2 (including the end value). If there is no split constraint parameter, it is inferred that the value of sps_log2_min_qt_size_inter_slices_minus2 is equal to 0.
[0465]
[0466] sps_max_mtt_hierarchy_depth_inter_slices represents the initial maximum hierarchical depth value of the SPS of the decoding unit obtained by multi-type tree partitioning of the quad-tree leaves in the slice of the reference SPS, unless the initial maximum hierarchical depth value of the decoding unit obtained by multi-type tree partitioning of the quad-tree leaves is overwritten by the maximum hierarchical depth of the decoding unit obtained by multi-type tree partitioning of the quad-tree leaves in the slice header of the slice of the reference SPS. The value range of max_mtt_hierarchy_depth_inter_slices should be 0 to CtbLog2SizeY–MinTbLog2SizeY (including the end value). In the case of no split constraint parameters,
[0467] If sps_btt_enabled_flag is equal to 1,
[0468] It is inferred that the value of sps_max_mtt_hierarchy_depth_inter_slices is equal to 3.
[0469] otherwise,
[0470] The value of sps_max_mtt_hierarchy_depth_inter_slices is inferred to be equal to 0.
[0471] sps_max_mtt_hierarchy_depth_intra_slices represents the initial maximum hierarchical depth value of the SPS of the decoding unit obtained by multi-type tree partitioning of quad leaves in the slice of the reference SPS when slice_type=2(I), unless the initial maximum hierarchical depth value of the decoding unit obtained by multi-type tree partitioning of quad leaves is overwritten by the maximum hierarchical depth of the decoding unit obtained by multi-type tree partitioning of quad leaves in the slice header of the slice of the reference SPS. The value range of max_mtt_hierarchy_depth_intra_slices should be 0 to CtbLog2SizeY–MinTbLog2SizeY (including the end value). In the case of no split constraint parameters,
[0472] If sps_btt_enabled_flag is equal to 1,
[0473] It is inferred that the value of sps_max_mtt_hierarchy_depth_intra_slices is equal to 3.
[0474] otherwise,
[0475] The value of sps_max_mtt_hierarchy_depth_intra_slices is inferred to be equal to 0.
[0476] sps_log2_diff_ctu_max_bt_size_intra_slices represents the initial difference between the luma CTB size and the maximum luma size (width or height) of the SPS of the coding block that can be divided using the binary tree partition in the slice of the reference SPS with slice_type=2(I), unless the initial difference between the luma CTB size and the maximum luma size (width or height) of the SPS of the coding block that can be divided using the binary tree partition is overwritten by the luma CTB size and the maximum luma size (width and height) of the SPS of the coding block that can be divided using the binary tree partition in the slice header of the slice of the reference SPS. The value range of log2_diff_ctu_max_bt_size should be 0 to CtbLog2SizeY–MinCbLog2SizeY (including the end value). In the case of no split constraint parameters,
[0477] If sps_btt_enabled_flag is equal to 1,
[0478] The value of sps_log2_diff_ctu_max_bt_size_intra_slices is inferred to be equal to 2.
[0479] otherwise,
[0480] The value of sps_log2_diff_ctu_max_bt_size_intra_slices is inferred to be equal to CtbLog2SizeY - MinCbLog2SizeY.
[0481] sps_log2_diff_ctu_max_bt_size_inter_slices represents the initial difference between the luma CTB size and the maximum luma size (width or height) of the SPS of the coding block that can be divided using the binary tree partitioning in the slice of the reference SPS using slice_type=0 (B) or 1 (P), unless the initial difference between the luma CTB size and the maximum luma size (width or height) of the SPS of the coding block that can be divided using the binary tree partitioning is overwritten by the luma CTB size and the maximum luma size (width and height) of the SPS of the coding block that can be divided using the binary tree partitioning in the slice header of the slice of the reference SPS. The value range of log2_diff_ctu_max_bt_size should be 0 to CtbLog2SizeY–MinCbLog2SizeY (including the end value). In the case of no split constraint parameters,
[0482] If sps_btt_enabled_flag is equal to 1,
[0483] The value of sps_log2_diff_ctu_max_bt_size_inter_slices is inferred to be equal to 0.
[0484] otherwise,
[0485] The value of sps_log2_diff_ctu_max_bt_size_inter_slices is inferred to be equal to CtbLog2SizeY - MinCbLog2SizeY.
[0486] …
[0487] Modified stripe header semantics (Section 7.4.4 of [JVET-K1001-v4])
[0488] …
[0489] partition_constraint_override_flag=1 indicates that there is a partition constraint parameter in the slice header. partition_constraint_override_flag=0 indicates that there is no partition constraint parameter in the slice header. If there is no partition constraint parameter, the value of partition_constraints_override_flag is inferred to be equal to 0.
[0490] slice_btt_enabled_flag=1 indicates that the multi-type tree partitioning operation is applicable to the current slice. slice_btt_enabled_flag=0 indicates that the multi-type tree partitioning operation is not applicable to the current slice. When slice_btt_enabled_flag is absent, it is inferred to be equal to sps_btt_enabled_flag.
[0491] log2_min_qt_size_minus2+2 represents the minimum brightness size of the leaf block obtained by the quadtree partitioning of the CTU in the current slice. The value range of log2_min_qt_size_inter_slices_minus2 should be 0 to CtbLog2SizeY–2 (including the end value). When there is no partition constraint parameter, if slice_type=2(I), the value of log2_min_qt_size_minus2 is inferred to be equal to sps_log2_min_qt_size_intra_slices_minus2, and if slice_type=0(B) or 1(P), the value of log2_min_qt_size_minus2 is inferred to be equal to sps_log2_min_qt_size_inter_slices_minus2.
[0492] max_mtt_hierarchy_depth indicates the maximum hierarchical depth of the decoding unit obtained by multi-type tree partitioning of the quadtree leaves in the current slice. The value range of max_mtt_hierarchy_depth_intra_slices should be 0 to CtbLog2SizeY–MinTbLog2SizeY (including the end value). When there is no partition constraint parameter, if slice_type=2(I), the value of max_mtt_hierarchy_depth is inferred to be equal to sps_max_mtt_hierarchy_depth_intra_slices, and if slice_type=0(B) or 1(P), the value of max_mtt_hierarchy_depth is inferred to be equal to sps_max_mtt_hierarchy_depth_inter_slices.
[0493] log2_diff_ctu_max_bt_size represents the difference between the luma CTB size and the maximum luma size (width or height) of the coded block that can be partitioned using the binary tree partitioning in the current slice. The value range of log2_diff_ctu_max_bt_size should be 0 to CtbLog2SizeY–MinCbLog2SizeY (including the end value). When there is no partition constraint parameter, if slice_type=2(I), the value of log2_diff_ctu_max_bt_size is inferred to be equal to sps_log2_diff_ctu_max_bt_size_intra_slices, and if slice_type=0(B) or 1(P), the value of log2_diff_ctu_max_bt_size is inferred to be equal to sps_log2_diff_ctu_max_bt_size_inter_slices.
[0494] The variables MinQtLog2SizeY, MaxBtLog2SizeY, MinBtLog2SizeY, MaxTtLog2SizeY, MinTtLog2SizeY, MaxBtSizeY, MinBtSizeY, MaxTtSizeY, MinTtSizeY, and MaxMttDepth are derived as follows:
[0495]
[0496] MinQtLog2SizeY = log2_min_qt_size_minus2 + 2 (7-25)
[0497] MaxBtLog2SizeY = CtbLog2SizeY - log2_diff_ctu_max_bt_size (7-26)
[0498] MinBtLog2SizeY = MinCbLog2SizeY (7-27)
[0499] MaxTtLog2SizeY = ( slice_type = = I ) ? 5 : 6 (7-28)
[0500] MinTtLog2SizeY = MinCbLog2SizeY (7-29)
[0501] MinQtSizeY = 1 << MinQtLog2SizeY (7-30)
[0502] MaxBtSizeY = 1 << MaxBtLog2SizeY (7-31)
[0503] MinBtSizeY = 1 << MinBtLog2SizeY (7-32)
[0504] MaxTtSizeY = 1 << MaxTtLog2SizeY (7-33)
[0505] MinTtSizeY = 1 << MinTtLog2SizeY (7-34)
[0506]
[0507] MaxMttDepth = 1 << max_mtt_hierarchy_depth (7-35)
[0508] In Embodiment 3 of the present invention:
[0509] If the MaxTTSizeY (maximum luma size (width or height)) of a coding block (which may be partitioned using ternary tree partitioning) is indicated in the SPS (or other parameter set or slice header), then Embodiment 1 or Embodiment 2 may be applied in the same manner as the other partitioning parameters described above.
[0510] Technical advantages: The present invention is used to indicate indicators of MaxTtSizeY syntax elements, ensuring that these elements can be controlled more flexibly.
[0511] Both the encoder and decoder perform the same (corresponding) operations.
[0512] Based on Example 1 or Example 2, the syntax is changed.
[0513] Modified Sequence Parameter Set RBSP semantics (Section 7.3.2.1 of [JVET-K1001-v4])
[0514]
[0515]
[0516] Modified stripe header syntax (Section 7.3.3 of [JVET-K1001-v4])
[0517] [Ed.(BB): Preliminary basic strip header, pending further research and further standard development]
[0518]
[0519] In Embodiment 4 of the present invention:
[0520] The btt_enabled_flag in Example 2 is separated into bt_enabled_flag and tt_enabled_flag to enable or disable bt and tt division respectively.
[0521] Technical advantage: By indicating the BT enable flag and the TT enable flag separately, the segmentation constraint syntax elements can be controlled more flexibly.
[0522] Both the encoder and decoder perform the same (corresponding) operations.
[0523] Based on Example 2, the syntax and semantics have changed:
[0524] Modified Sequence Parameter Set RBSP semantics (Section 7.3.2.1 of [JVET-K1001-v4])
[0525] [Ed.(BB): Preliminary basic SPS, pending further research and further specification development]
[0526]
[0527]
[0528] Modified stripe header syntax (Section 7.3.3 of [JVET-K1001-v4])
[0529] [Ed.(BB): Preliminary basic strip header, pending further research and further standard development]
[0530]
[0531]
[0532] …
[0533] Sequence Parameter Set RBSP Semantics (Section 7.4.3.1 of [JVET-K1001-v4])
[0534] …
[0535] partition_constraint_control_present_flag = 1 indicates that the SPS contains a partition constraint control syntax element. partition_constraint_control_present_flag = 0 indicates that the SPS does not contain a partition constraint control syntax element.
[0536] sps_bt_enabled_flag=1 indicates that the binary tree partitioning operation is applicable to slices referencing an SPS without slice_bt_enable_flag. sps_bt_enabled_flag=0 indicates that the binary tree partitioning operation is not applicable to slices referencing an SPS without slice_bt_enable_flag. If there is no partition constraint parameter, the value of sps_bt_enabled_flag is inferred to be equal to 1.
[0537] sps_tt_enabled_flag=1 indicates that the ternary tree partitioning operation is applicable to slices referencing an SPS without slice_tt_enable_flag. sps_tt_enabled_flag=0 indicates that the ternary tree partitioning operation is not applicable to slices referencing an SPS without slice_tt_enable_flag. If there is no partitioning constraint parameter, the value of sps_tt_enabled_flag is inferred to be equal to 1.
[0538] partition_constraint_override_enabled_flag=1 indicates that the slice header of the slice referencing the SPS has partition_constraint_override_flag. partition_constraint_override_enabled_flag=0 indicates that the slice header of the slice referencing the SPS does not have partition_constraint_override_flag. If there is no partition constraint parameter, the value of partition_constraint_override_enabled_flag is inferred to be equal to 0.
[0539] sps_log2_min_qt_size_intra_slices_minus2+2 represents the default minimum luma size of the leaf block obtained by the quadtree partitioning of the CTU in the slice of the reference SPS when slice_type=2(I), unless the default minimum luma size of the leaf block obtained by the quadtree partitioning of the CTU is overwritten by the minimum luma size of the leaf block obtained by the quadtree partitioning of the CTU in the slice header of the reference SPS. The value range of log2_min_qt_size_intra_slices_minus2 should be 0 to CtbLog2SizeY–2 (including the end value). If there is no split constraint parameter, the value of sps_log2_min_qt_size_intra_slices_minus2 is inferred to be equal to 0.
[0540]
[0541] sps_log2_min_qt_size_inter_slices_minus2+2 represents the default minimum luma size of the leaf block obtained by the quadtree partitioning of the CTU in the slice of the reference SPS when slice_type=0 (B) or 1 (P), unless the default minimum luma size of the leaf block obtained by the quadtree partitioning of the CTU is overwritten by the minimum luma size of the leaf block obtained by the quadtree partitioning of the CTU in the slice header of the slice of the reference SPS. The value range of log2_min_qt_size_inter_slices_minus2 should be 0 to CtbLog2SizeY–2 (including the end value). If there is no split constraint parameter, the value of sps_log2_min_qt_size_inter_slices_minus2 is inferred to be equal to 0.
[0542]
[0543] sps_max_mtt_hierarchy_depth_inter_slices indicates the default maximum hierarchical depth of the decoding unit obtained by multi-type tree partitioning of quad leaves in the slice of the reference SPS when slice_type = 0 (B) or 1 (P), unless the default maximum hierarchical depth of the decoding unit obtained by multi-type tree partitioning of the quad leaves is overwritten by the maximum hierarchical depth of the decoding unit obtained by multi-type tree partitioning of the quad leaves in the slice header of the slice of the reference SPS. The value range of max_mtt_hierarchy_depth_inter_slices should be 0 to CtbLog2SizeY–MinTbLog2SizeY (including the end value). In the case of no split constraint parameters,
[0544] If sps_bt_enabled_flag is equal to 1 or sps_tt_enabled_flag is equal to 1,
[0545] The value of sps_max_mtt_hierarchy_depth_inter_slices is inferred to be equal to 3.
[0546] otherwise,
[0547] The value of sps_max_mtt_hierarchy_depth_inter_slices is inferred to be equal to 0.
[0548] sps_max_mtt_hierarchy_depth_intra_slices indicates the default maximum hierarchical depth of the decoding unit obtained by multi-type tree partitioning of the quadtree leaves of the slice of the reference SPS when slice_type=2(I), unless the default maximum hierarchical depth of the decoding unit obtained by multi-type tree partitioning of the quadtree leaves is overwritten by the maximum hierarchical depth of the decoding unit obtained by multi-type tree partitioning of the quadtree leaves in the slice header of the slice of the reference SPS. The value range of max_mtt_hierarchy_depth_intra_slices should be 0 to CtbLog2SizeY–MinTbLog2SizeY (including the end value). In the case of no split constraint parameters,
[0549] If sps_btt_enabled_flag is equal to 1 or sps_tt_enabled_flag is equal to 1,
[0550] The value of sps_max_mtt_hierarchy_depth_intra_slices is inferred to be equal to 3.
[0551] otherwise,
[0552] The value of sps_max_mtt_hierarchy_depth_intra_slices is inferred to be equal to 0.
[0553] sps_log2_diff_ctu_max_bt_size_intra_slices represents the default difference between the luma CTB size and the maximum luma size (width or height) of a coded block that can be divided using a binary tree partition in a slice of the reference SPS with slice_type=2(I), unless the default difference between the luma CTB size and the maximum luma size (width or height) of a coded block that can be divided using a binary tree partition is overwritten by the luma CTB size and the maximum luma size (width and height) of a coded block that can be divided using a binary tree partition in a slice header of a slice of the reference SPS. The value range of log2_diff_ctu_max_bt_size should be 0 to CtbLog2SizeY–MinCbLog2SizeY (inclusive). In the absence of a split constraint parameter,
[0554] If sps_bt_enabled_flag is equal to 1,
[0555] The value of sps_log2_diff_ctu_max_bt_size_intra_slices is inferred to be equal to 2.
[0556] otherwise,
[0557] The value of sps_log2_diff_ctu_max_bt_size_intra_slices is inferred to be equal to CtbLog2SizeY - MinCbLog2SizeY.
[0558] sps_log2_diff_ctu_max_bt_size_inter_slices represents the default difference between the luma CTB size and the maximum luma size (width or height) of a coded block that can be divided using a binary tree partition in a slice of the reference SPS with slice_type=0 (B) or 1 (P), unless the default difference between the luma CTB size and the maximum luma size (width or height) of a coded block that can be divided using a binary tree partition is overwritten by the difference between the luma CTB size and the maximum luma size (width and luma) of a coded block that can be divided using a binary tree partition in a slice header of a slice of the reference SPS. The value range of log2_diff_ctu_max_bt_size should be 0 to CtbLog2SizeY–MinCbLog2SizeY (inclusive). In the absence of a split constraint parameter,
[0559] If sps_bt_enabled_flag is equal to 1,
[0560] The value of sps_log2_diff_ctu_max_bt_size_inter_slices is inferred to be equal to 0.
[0561] otherwise,
[0562] The value of sps_log2_diff_ctu_max_bt_size_inter_slices is inferred to be equal to CtbLog2SizeY - MinCbLog2SizeY.
[0563] sps_log2_diff_ctu_max_tt_size_intra_slices represents the default difference between the luma CTB size and the maximum luma size (width or height) of a coded block that can be divided using ternary tree partitioning in a slice of the reference SPS with slice_type=2(I), unless the default difference between the luma CTB size and the maximum luma size (width or height) of a coded block that can be divided using ternary tree partitioning is overwritten by the luma CTB size and the maximum luma size (width and height) of a coded block that can be divided using ternary tree partitioning in the slice header of the reference SPS. The value range of sps_log2_diff_ctu_max_tt_size should be 0 to CtbLog2SizeY–MinCbLog2SizeY (including the end value). In the case of no split constraint parameters,
[0564] If sps_tt_enabled_flag is equal to 1,
[0565] The value of sps_log2_diff_ctu_max_tt_size_intra_slices is inferred to be equal to 2.
[0566] otherwise,
[0567] The value of sps_log2_diff_ctu_max_tt_size_intra_slices is inferred to be equal to CtbLog2SizeY - MinCbLog2SizeY.
[0568] sps_log2_diff_ctu_max_tt_size_inter_slices represents the default difference between the luma CTB size and the maximum luma size (width or height) of a coded block that can be divided using slice_type=0 (B) or 1 (P) and a ternary tree partition in a slice of the reference SPS, unless the default difference between the luma CTB size and the maximum luma size (width or height) of a coded block that can be divided using a ternary tree partition is overwritten by the difference between the luma CTB size and the maximum luma size (width and luma) of a coded block that can be divided using a ternary tree partition in a slice header of a slice of the reference SPS. The value range of log2_diff_ctu_max_tt_size should be 0 to CtbLog2SizeY–MinCbLog2SizeY (inclusive). In the absence of a split constraint parameter,
[0569] If sps_tt_enabled_flag is equal to 1,
[0570] The value of sps_log2_diff_ctu_max_tt_size_inter_slices is inferred to be equal to 1.
[0571] otherwise,
[0572] The value of sps_log2_diff_ctu_max_tt_size_inter_slices is inferred to be equal to CtbLog2SizeY - MinCbLog2SizeY.
[0573] …
[0574] Modified stripe header semantics (Section 7.4.4 of [JVET-K1001-v4])
[0575] …
[0576] partition_constraint_override_flag=1 indicates that there is a partition constraint parameter in the slice header. partition_constraint_override_flag=0 indicates that there is no partition constraint parameter in the slice header. If there is no partition constraint parameter, the value of partition_constraints_override_flag is inferred to be equal to 0.
[0577] slice_btt_enabled_flag=1 indicates that the multi-type tree partitioning operation is not applicable to the current slice. slice_btt_enabled_flag=0 indicates that the multi-type tree partitioning operation is applicable to the current slice. When slice_btt_enabled_flag is absent, it is inferred to be equal to sps_btt_enabled_flag.
[0578] log2_min_qt_size_minus2+2 represents the minimum brightness size of the leaf block obtained by the quadtree partitioning of the CTU in the current slice. The value range of log2_min_qt_size_inter_slices_minus2 should be 0 to CtbLog2SizeY–2 (including the end value). When there is no partition constraint parameter, if slice_type=2(I), the value of log2_min_qt_size_minus2 is inferred to be equal to sps_log2_min_qt_size_intra_slices_minus2, and if slice_type=0(B) or 1(P), the value of log2_min_qt_size_minus2 is inferred to be equal to sps_log2_min_qt_size_inter_slices_minus2.
[0579] max_mtt_hierarchy_depth indicates the maximum hierarchical depth of the decoding unit obtained by multi-type tree partitioning of the quadtree leaves in the current slice. The value range of max_mtt_hierarchy_depth_intra_slices should be 0 to CtbLog2SizeY–MinTbLog2SizeY (including the end value). When there is no partition constraint parameter, if slice_type=2(I), the value of max_mtt_hierarchy_depth is inferred to be equal to sps_max_mtt_hierarchy_depth_intra_slices, and if slice_type=0(B) or 1(P), the value of max_mtt_hierarchy_depth is inferred to be equal to sps_max_mtt_hierarchy_depth_inter_slices.
[0580] log2_diff_ctu_max_bt_size represents the difference between the luma CTB size and the maximum luma size (width or height) of the coded block that can be partitioned using the binary tree partitioning in the current slice. The value range of log2_diff_ctu_max_bt_size should be 0 to CtbLog2SizeY–MinCbLog2SizeY (including the end value). When there is no partition constraint parameter, if slice_type=2(I), the value of log2_diff_ctu_max_bt_size is inferred to be equal to sps_log2_diff_ctu_max_bt_size_intra_slices, and if slice_type=0(B) or 1(P), the value of log2_diff_ctu_max_bt_size is inferred to be equal to sps_log2_diff_ctu_max_bt_size_inter_slices.
[0581] log2_diff_ctu_max_tt_size represents the difference between the luma CTB size and the maximum luma size (width or height) of the coded block that can be partitioned using the binary tree partitioning in the current slice. The value range of log2_diff_ctu_max_tt_size should be 0 to CtbLog2SizeY–MinCbLog2SizeY (including the end value). When there is no partition constraint parameter, if slice_type=2(I), the value of log2_diff_ctu_max_tt_size is inferred to be equal to sps_log2_diff_ctu_max_tt_size_intra_slices, and if slice_type=0(B) or 1(P), the value of log2_diff_ctu_max_tt_size is inferred to be equal to sps_log2_diff_ctu_max_tt_size_inter_slices.
[0582] The variables MinQtLog2SizeY, MaxBtLog2SizeY, MinBtLog2SizeY, MaxTtLog2SizeY, MinTtLog2SizeY, MaxBtSizeY, MinBtSizeY, MaxTtSizeY, MinTtSizeY, and MaxMttDepth are derived as follows:
[0583]
[0584] MinQtLog2SizeY = log2_min_qt_size_minus2 + 2 (7-25)
[0585] MaxBtLog2SizeY = CtbLog2SizeY - log2_diff_ctu_max_bt_size (7-26)
[0586] MinBtLog2SizeY = MinCbLog2SizeY (7-27)
[0587] MaxTtLog2SizeY = CtbLog2SizeY - log2_diff_ctu_max_tt_size (7-28)
[0588]
[0589] MinTtLog2SizeY = MinCbLog2SizeY (7-29)
[0590] MinQtSizeY = 1 << MinQtLog2SizeY (7-30)
[0591] MaxBtSizeY = 1 << MaxBtLog2SizeY (7-31)
[0592] MinBtSizeY = 1 << MinBtLog2SizeY (7-32)
[0593] MaxTtSizeY = 1 << MaxTtLog2SizeY (7-33)
[0594] MinTtSizeY = 1 << MinTtLog2SizeY (7-34)
[0595]
[0596] MaxMttDepth = 1 << max_mtt_hierarchy_depth (7-35)
[0597] Fig.10A corresponding method for decoding a video bitstream implemented by a decoding device is shown, wherein the video bitstream includes data representing an image region and an image region header of the image region. The decoding method includes the following steps: obtaining S110 an overwrite flag (partition_constraint_override_flag) from the video bitstream; when the value of the overwrite flag is an overwrite value (for example, a value of 1), obtaining S120 first partition constraint information of the image region from the image region header; and partitioning S130 blocks of the image region according to the first partition constraint information. If the flag is not set, the partition constraint information can be obtained from a source different from the image region header. The image region can be a strip or a block.
[0598] Fig.11 For combination Fig.10 Flowchart of a flowchart. In addition, the method shown in the flowchart includes the following steps: obtaining S210 an overwrite enable flag (partition_constraint_override_enabled_flag) from the video bitstream, wherein when the value of the overwrite enable flag is an enable value (e.g., a value of 1), obtaining S110 an overwrite flag from the video bitstream. In addition, when the value of the overwrite flag is not the overwrite value (e.g., the value of the overwrite flag is 0), the blocks of the image area may be partitioned S230 according to the second partition constraint information of the video bitstream in the parameter set. In addition, when the value of the overwrite enable flag is a disable value (e.g., the value of the overwrite enable flag is 0), the blocks of the image area may be partitioned S230 according to the second partition constraint information of the video bitstream in the parameter set.
[0599] The specific features of the embodiments of the present invention can be found in the above-mentioned related decoding method embodiments, which will not be described in detail here.
[0600] Fig.12 A decoder 1200 for decoding a video code stream is shown. The video code stream includes data representing an image region and an image region header of the image region. The decoder includes: an overwrite determination unit 1210, used to obtain an overwrite flag from the video code stream; a segmentation constraint determination unit 1220, used to obtain first segmentation constraint information of the image region from the image region header when the value of the overwrite flag is an overwrite value; and a block segmentation unit 1230, used to segment blocks of the image region according to the first segmentation constraint information.
[0601] The specific functions of the various units in the decoder 1200 in the embodiment of the present invention can be found in the relevant description of the decoding method embodiment of the present invention, and will not be described in detail here.
[0602] Each unit in the decoder 1200 may be implemented by software or circuit.
[0603] The decoder 1200 may be the decoder 30 , the video decoding apparatus 400 , or the device 500 , or a part of the decoder 30 , the video decoding apparatus 400 , or the device 500 .
[0604] The encoder 1300 may be the encoder 20 , the video decoding apparatus 400 , or the device 500 , or a part of the encoder 20 , the video decoding apparatus 400 , or the device 500 .
[0605] Fig.13 An encoder 1300 for encoding a video bitstream is shown, wherein the video bitstream includes data representing an image region and an image region header of the image region. The encoder includes: a segmentation determination unit 1310, used to determine whether to segment the blocks of the image region according to the first segmentation constraint information in the image region header; a block segmentation unit 1320, used to segment the blocks according to the first segmentation constraint information when it is determined that the blocks of the image region are segmented according to the first segmentation constraint information; an overwrite flag setting unit 1330, used to set the value of the overwrite flag to the overwrite value; and a bitstream generator 1340, used to insert the overwrite flag into the video bitstream.
[0606] The specific functions of the various units in the encoder 1300 in the embodiment of the present invention can be found in the relevant description of the encoding method embodiment of the present invention, and will not be described in detail here.
[0607] Each unit in the encoder 1300 may be implemented by software or circuit.
[0608] The encoder 1300 may be the encoder 20 , the video decoding apparatus 400 , or the device 500 , or a part of the encoder 20 , the video decoding apparatus 400 , or the device 500 .
[0609] Fig.14A The present invention is a flowchart of a method for encoding a video code stream implemented by an encoding device, wherein the video code stream includes data representing an image region and an image region header of the image region. The encoding method includes the following steps: determining S310 whether to segment the blocks of the image region according to the first segmentation constraint information in the image region header; when it is determined that the blocks are segmented according to the first segmentation constraint information (“yes” in step S310), segmenting the blocks of the image region according to the first segmentation constraint information S320, and setting the value of the overwrite flag S325 to the overwrite value; including the data of the overwrite flag S330 in the video code stream.
[0610] In some exemplary embodiments, when it is determined that the block is not segmented according to the first segmentation constraint information ("No" in step S310), the block of the image area is segmented according to the second segmentation constraint information S360, and the value of the overwrite flag is set S365 to the overwrite value.
[0611] Fig. 14B A coding method is shown, comprising the following steps: determining S370 whether to enable segmentation of the block according to first segmentation constraint information. When it is determined to enable (determined to) segment the block according to the first segmentation constraint information, the method comprises: setting S340 the value of the overwrite enable flag to an enable value; and including S350 the data of the overwrite enable flag in the video bitstream. In addition, when it is determined to enable (determined to) segment the block according to the first segmentation constraint information, determining S310 whether to segment the block of the image region according to the first segmentation constraint information in the image region header.
[0612] In some exemplary embodiments, when it is determined that segmenting the block according to the first segmentation constraint information is not enabled (ie, disabled), the method includes setting S380 the value of the overwrite enable flag to a non-enabled (disabled) value.
[0613] The specific features of the embodiments of the present invention can be found in the above-mentioned related decoding method embodiments, which will not be described in detail here.
[0614] The encoding method and decoding method shown in the above-mentioned embodiments and applications of a system using these methods are explained below.
[0615] 14 is a block diagram of a content providing system 3100 for implementing a content distribution service. The content providing system 3100 includes a capture device 3102, a terminal device 3106, and an (optional) 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, WiFi, Ethernet, wired, wireless (3G / 4G / 5G), USB, or any combination thereof.
[0616] Capture device 3102 generates data, and can use the coding method shown in the above embodiment to encode data.Or, capture device 3102 can distribute data to streaming media server (not shown in the figure), and the server encodes data, and sends encoded data to terminal device 3106.Capture device 3102 includes but is not limited to video camera, smart phone or tablet computer, computer or notebook computer, video conferencing system, PDA, vehicle-mounted device or any combination thereof, etc.For example, capture device 3102 can include source device 12 described above.When data includes video, video encoder 20 in capture device 3102 can actually perform video encoding process.When data includes audio (i.e. sound), audio encoder in capture device 3102 can actually perform audio encoding process.In some actual scenes, capture device 3102 distributes encoded video data and encoded audio data by multiplexing encoded video data and encoded audio data together.In other actual scenes, for example, in 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.
[0617] The terminal device 310 in the content providing system 3100 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 TV 3114, a set top box (STB) 3116, a video conferencing system 3118, a video surveillance system 3120, a personal digital assistant (PDA) 3122, a car device 3124 or any combination thereof, or such a device capable of decoding the above-mentioned encoded data. For example, the terminal device 3106 can include the target device 14 described above. When the encoded data includes video, the video decoder 30 in the terminal device preferentially performs video decoding. When the encoded data includes audio, the audio decoder in the terminal device preferentially performs audio decoding processing.
[0618] 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 TV 3114, a personal digital assistant (PDA) 3122, or a vehicle-mounted device 3124, the terminal device can send 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 to the terminal device to receive and display the decoded data.
[0619] When each device in this system performs encoding or decoding, the image encoding device or image decoding device shown in the above embodiments can be used.
[0620] Fig.15 3106. After the terminal device 3106 receives the code stream from the capture device 3102, the protocol processing unit 3202 analyzes the transmission protocol of the code stream. The protocol includes but is not limited to Real-Time Streaming Protocol (RTSP), Hyper Text Transfer Protocol (HTTP), HTTP Live streaming protocol (HLS), MPEG-DASH, Real-time Transport Protocol (RTP), Real-time Messaging Protocol (RTMP), or any combination thereof.
[0621] After the protocol processing unit 3202 processes the code 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 described above, for some actual scenarios, 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.
[0622] 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 by the decoding method shown in the above embodiment to generate a video frame, 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 ( Fig.15 Similarly, the audio frame may be stored in a buffer ( Fig.15 not shown).
[0623] 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 decoded in the syntax using timestamps associated with the presentation of the decoded audio and visual data and timestamps associated with the transmission of the data stream.
[0624] If subtitles are included in the bitstream, 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 .
[0625] 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 can be used in other systems such as automobile systems.
[0626] Mathematical operators
[0627] 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.
[0628] Logical operators
[0629] The following logical operators are defined as follows:
[0630] x&&y Boolean logical "AND" of x and y
[0631] x||y Boolean logical OR of x and y
[0632] ! Boolean logic "not"
[0633] x? y:z If x is true or not equal to 0, find the value of y, otherwise find the value of z.
[0634] Relational operators
[0635] The following relational operators are defined as follows:
[0636] > Greater than
[0637] ≥ greater than or equal to
[0638] < less than
[0639] ≤ Less than or equal to
[0640] == is equal to
[0641] ! = Not equal to
[0642] 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 a distinct value for the syntax element or variable. The value "na" is not equal to any other value.
[0643] Bitwise Operators
[0644] The following bitwise operators are defined as follows:
[0645] & Performs a bitwise AND. When operating on integer arguments, the operation is performed on the two's complement representation of the integer value. When operating on binary arguments, if that binary argument contains fewer bits than the other argument, the shorter argument is extended by adding more significant bits equal to 0.
[0646] | Bitwise OR. When operating on integer arguments, the operation is performed on the two's complement representation of the integer value. When operating on binary arguments, if that binary argument contains fewer bits than the other argument, the shorter argument is extended by adding more significant bits equal to 0.
[0647] ^ Bitwise exclusive OR. When operating on integer arguments, the operation is performed on the two's complement representation of the integer value. When operating on binary arguments, if that binary argument contains fewer bits than the other argument, the shorter argument is extended by adding more significant bits equal to zero.
[0648] The two's complement integer representation of x>>yx is arithmetic right shifted by y binary digits. This function is defined only if y is a non-negative integer value.
[0649] 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.
[0650] x << y performs an arithmetic left shift of the two's complement integer representation of x by y bit positions. The function is defined only for non-negative integer values of y.
[0651] The bit values shifted into the least significant bit (LSB) due to the left shift are equal to 0.
[0652] In one or more examples, the described functionality may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functionality may be stored on or transmitted via a computer-readable medium as one or more instructions or code and executed by a hardware-based processing unit. The computer-readable medium may include a computer-readable storage medium corresponding to a tangible medium such as a data storage medium, or a communication medium including any medium that facilitates transfer of a computer program from one place to another (e.g., according to a communication protocol). In this way, the computer-readable medium generally can correspond to (1) a non-transitory tangible computer-readable storage medium, or (2) a communication medium such as a signal or carrier wave. The data storage medium can be any available medium that can be accessed by one or more computers or one or more processors to retrieve instructions, code, and / or data structures for implementing the techniques described in this application. A computer program product may include a computer-readable medium.
[0653] By way of example, and not limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, flash memory, or any other medium that can be used to store the desired program code in the form of instructions or data structures and that can be accessed by a computer. Additionally, any connection may be properly termed a computer-readable medium. For example, if software is transmitted from a website, server, or other remote source via a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wirelessly such as via infrared, radio, and microwave, it is included in the defined medium. However, it should be understood that the computer-readable storage media and data storage media do not include connections, carrier waves, signals, or other transitory media, but rather are directed to non-transitory tangible storage media. As used herein, disk and disc include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk, and Blu-ray disc, where disks typically reproduce data magnetically, while discs typically reproduce data optically with lasers. Combinations of the above may also be included within the scope of computer-readable media.
[0654] 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. Therefore, the term "processor" as used herein may refer to any of the aforementioned structures or any other structures 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 into a combined codec. Moreover, the techniques may be implemented entirely in one or more circuits or logic elements.
[0655] The techniques of the present invention may be implemented in a variety of devices or apparatuses, including wireless handsets, integrated circuits (ICs), or a set of ICs (e.g., chipsets). Various components, modules, or units are described in this application to emphasize the functional aspects of the apparatus for performing the disclosed techniques, but they do not necessarily need to be implemented by different hardware units. In fact, as described above, the various units may be combined in a codec hardware unit in conjunction with appropriate software and / or firmware, or provided by a collection of interoperable hardware units (including one or more processors as described above).
[0656] In one example, a coding method implemented by a coding device is provided, including: segmenting blocks of an image area according to segmentation constraint information; generating a code stream including one or more segmentation constraint syntax elements, wherein the one or more segmentation constraint syntax elements indicate the segmentation constraint information, and the one or more segmentation constraint syntax elements are syntax elements at a picture parameter set (PPS) level.
[0657] For example, the split constraint information includes one or more of the following: the minimum allowed quadtree tree leaf node size information (MinQtSizeY), the maximum multi-type tree depth information (MaxMttDepth), the maximum allowed binary tree root node size information (MaxBtSizeY), and the maximum allowed ternary tree root node size information (MaxTtSizeY).
[0658] For example, in some embodiments, the segmentation constraint information includes: the minimum allowed quad tree leaf node size information (MinQtSizeY), the maximum multi-type tree depth information (MaxMttDepth), and the maximum allowed binary tree root node size information (MaxBtSizeY).
[0659] In some embodiments, the splitting constraint information includes: the minimum allowed quadtree tree leaf node size information (MinQtSizeY), the maximum multi-type tree depth information (MaxMttDepth), the maximum allowed binary tree root node size information (MaxBtSizeY), and the maximum allowed ternary tree root node size information (MaxTtSizeY).
[0660] In any of the above methods, the split constraint information includes: N split constraint information sets or groups corresponding to N stripe types, or N split constraint information sets or groups corresponding to N stripe indexes, wherein each split constraint information set or group includes one or more of the following: the minimum allowed quadtree tree leaf node size information (MinQtSizeY), the maximum multi-type tree depth information (MaxMttDepth), the maximum allowed binary tree root node size information (MaxBtSizeY), the maximum allowed ternary tree root node size information (MaxTtSizeY), wherein N is a positive integer.
[0661] The method may include: segmenting blocks of an image area according to segmentation constraint information; generating a code stream including multiple segmentation constraint syntax elements, wherein the multiple segmentation constraint syntax elements indicate the segmentation constraint information, wherein the multiple segmentation constraint syntax elements are syntax elements at a parameter set level or syntax elements included in a header.
[0662] For example, the multiple partition constraint syntax elements are any one of the following: syntax elements at a video parameter set (VPS) level, syntax elements at a sequence parameter set (SPS) level, syntax elements at a picture parameter set (PPS) level, syntax elements in a picture header, syntax elements in a slice header, or syntax elements in a block header.
[0663] In some exemplary implementations, the segmentation constraint information includes: minimum allowed quad tree leaf node size information (MinQtSizeY), maximum multi-type tree depth information (MaxMttDepth), and maximum allowed binary tree root node size information (MaxBtSizeY).
[0664] For example, the segmentation constraint information includes: the minimum allowed quadtree leaf node size information (MinQtSizeY), the maximum multi-type tree depth information (MaxMttDepth), the maximum allowed binary tree root node size information (MaxBtSizeY), and the maximum allowed ternary tree root node size information (MaxTtSizeY).
[0665] In some embodiments, the split constraint information includes two or more of the following: the minimum allowed quadtree tree leaf node size information (MinQtSizeY), the maximum multi-type tree depth information (MaxMttDepth), the maximum allowed binary tree root node size information (MaxBtSizeY), and the maximum allowed ternary tree root node size information (MaxTtSizeY).
[0666] For example, the split constraint information includes: N split constraint information sets or groups corresponding to N stripe types, or N split constraint information sets or groups corresponding to N stripe indexes, wherein each split constraint information set or group includes two or more of the following: the minimum allowed quadtree tree leaf node size information (MinQtSizeY), the maximum multi-type tree depth information (MaxMttDepth), the maximum allowed binary tree root node size information (MaxBtSizeY), the maximum allowed ternary tree root node size information (MaxTtSizeY), wherein N is a positive integer.
[0667] According to one embodiment, a decoding method implemented by a decoding device is provided, comprising: parsing one or more segmentation constraint syntax elements from a bitstream, wherein the one or more segmentation constraint syntax elements indicate segmentation constraint information, and the one or more segmentation constraint syntax elements are obtained from syntax elements at a picture parameter set (PPS) level of the bitstream; and segmenting blocks of an image area according to the segmentation constraint information.
[0668] In some implementations, the split constraint information includes one or more of the following: minimum allowed quadtree tree leaf node size information (MinQtSizeY), maximum multi-type tree depth information (MaxMttDepth), maximum allowed binary tree root node size information (MaxBtSizeY), and maximum allowed ternary tree root node size information (MaxTtSizeY).
[0669] For example, the segmentation constraint information includes: the minimum allowed quad tree leaf node size information (MinQtSizeY), the maximum multi-type tree depth information (MaxMttDepth), and the maximum allowed binary tree root node size information (MaxBtSizeY). The segmentation constraint information may include: the minimum allowed quad tree leaf node size information (MinQtSizeY), the maximum multi-type tree depth information (MaxMttDepth), the maximum allowed binary tree root node size information (MaxBtSizeY), and the maximum allowed ternary tree root node size information (MaxTtSizeY).
[0670] In some embodiments, the split constraint information includes: N split constraint information sets or groups corresponding to N stripe types, or N split constraint information sets or groups corresponding to N stripe indexes, wherein each split constraint information set or group includes one or more of the following: minimum allowed quadtree tree leaf node size information (MinQtSizeY), maximum multi-type tree depth information (MaxMttDepth), maximum allowed binary tree root node size information (MaxBtSizeY), maximum allowed ternary tree root node size information (MaxTtSizeY), wherein N is a positive integer.
[0671] According to one embodiment, a decoding method implemented by a decoding device is provided, comprising: parsing a plurality of segmentation constraint syntax elements from a bitstream, wherein the plurality of segmentation constraint syntax elements indicate segmentation constraint information, and the plurality of segmentation constraint syntax elements are obtained from syntax elements at a parameter set level of the bitstream or from a header of the bitstream; and segmenting blocks of an image area according to the segmentation constraint information.
[0672] For example, the multiple partition constraint syntax elements are obtained from any one of the following: syntax elements at a video parameter set (VPS) level, syntax elements at a sequence parameter set (SPS) level, syntax elements at a picture parameter set (PPS) level, syntax elements in a picture header, syntax elements in a slice header, or syntax elements in a block header.
[0673] For example, the segmentation constraint information includes: the minimum allowed quad tree leaf node size information (MinQtSizeY), the maximum multi-type tree depth information (MaxMttDepth), and the maximum allowed binary tree root node size information (MaxBtSizeY).
[0674] In some embodiments, the splitting constraint information includes: the minimum allowed quadtree tree leaf node size information (MinQtSizeY), the maximum multi-type tree depth information (MaxMttDepth), the maximum allowed binary tree root node size information (MaxBtSizeY), and the maximum allowed ternary tree root node size information (MaxTtSizeY).
[0675] In some implementations, the split constraint information includes two or more of the following: the minimum allowed quadtree tree leaf node size information (MinQtSizeY), the maximum multi-type tree depth information (MaxMttDepth), the maximum allowed binary tree root node size information (MaxBtSizeY), and the maximum allowed ternary tree root node size information (MaxTtSizeY).
[0676] For example, the split constraint information includes: N split constraint information sets or groups corresponding to N stripe types, or N split constraint information sets or groups corresponding to N stripe indexes, wherein each split constraint information set or group includes two or more of the following: the minimum allowed quadtree tree leaf node size information (MinQtSizeY), the maximum multi-type tree depth information (MaxMttDepth), the maximum allowed binary tree root node size information (MaxBtSizeY), the maximum allowed ternary tree root node size information (MaxTtSizeY), wherein N is a positive integer.
[0677] In some examples, the partition constraint information includes partition constraint information corresponding to different stripe types or partition constraint information corresponding to different stripe indexes.
[0678] For example, the segmentation constraint information includes segmentation constraint information in an intra-frame mode and / or segmentation constraint information in an inter-frame mode.
[0679] In either embodiment, the image region includes an image or a portion of an image.
[0680] In some embodiments, when the value of a multi-type tree segmentation enable flag of a picture parameter set (PPS) enables multi-type tree segmentation of a block, segmentation constraint information is parsed from the picture parameter set, and multi-type tree segmentation is applied to the block of the picture area according to the segmentation constraint information.
[0681] According to one embodiment, there is provided an encoder comprising a processing circuit for performing any one of the above methods.
[0682] According to one embodiment, a decoder is provided, comprising a processing circuit for performing any one of the above methods.
[0683] According to one embodiment, a computer program product is provided, comprising a program code for executing a method according to any of the above methods.
[0684] According to one embodiment, a decoder is provided, comprising: one or more processors; a non-transitory computer-readable storage medium, coupled to the processor and storing a program executed by the processor, wherein when the processor executes the program, the decoder is configured to execute a method according to any of the above decoding methods.
[0685] According to one embodiment, an encoder is provided, comprising: one or more processors; a non-transitory computer-readable storage medium, coupled to the processor and storing a program executed by the processor, wherein when the processor executes the program, the encoder is configured to perform a method according to any of the above-mentioned decoding methods.
[0686] According to a first aspect, the present invention relates to a method for decoding a video code stream implemented by a decoding device, wherein the video code stream includes data representing an image area and an image area header of the image area, and the decoding method comprises:
[0687] Obtaining an overwrite flag from the video code stream;
[0688] When the value of the overwrite flag (for example, partition_constraint_override_flag) is an overwrite value, obtaining first partition constraint information of the image area from the image area header;
[0689] The blocks of the image area are segmented according to the first segmentation constraint information.
[0690] In a possible implementation, segmenting the block of the image region according to the first segmentation constraint information includes: segmenting the block of the image region into sub-blocks according to the first segmentation constraint information. The decoding method further includes: reconstructing the sub-blocks.
[0691] In a possible implementation manner, the decoding method further includes:
[0692] Obtain an overwrite enable flag from the video bitstream;
[0693] When the value of the overwrite enabled flag (eg, partition_constraint_override_enabled_flag) is an enabled value, the overwrite flag is obtained from the video bitstream.
[0694] In a possible implementation manner, the decoding method further includes:
[0695] Acquire a segmentation constraint control occurrence flag from the video bitstream;
[0696] When the value of the partition constraint control present flag (eg, partition_constraint_control_present_flag) is true, the overwrite enable flag is obtained from the video bitstream.
[0697] In a possible implementation, the video code stream further includes data representing a parameter set of the video code stream, and the value of the partition constraint control presence flag being false indicates that the parameter set does not contain a partition constraint control syntax element.
[0698] In a possible implementation manner, the parameter set is an image parameter set or a sequence parameter set.
[0699] In a possible implementation manner, the video code stream further includes data representing a parameter set of the video code stream, and the decoding method further includes:
[0700] When the value of the overwrite enabling flag is a disabled value, the blocks of the image area are segmented according to the second segmentation constraint information of the video code stream in the parameter set.
[0701] In a possible implementation, the second segmentation constraint information includes minimum allowed quadtree leaf node size information, maximum multi-type tree depth information, maximum allowed ternary tree root node size information, or maximum allowed binary tree root node size information.
[0702] In a possible implementation manner, the second segmentation constraint information includes segmentation constraint information corresponding to different parameters related to the image area or segmentation constraint information corresponding to different indexes.
[0703] In a possible implementation manner, the second segmentation constraint information includes segmentation constraint information in an intra-frame mode or segmentation constraint information in an inter-frame mode.
[0704] In a possible implementation manner, the second segmentation constraint information includes segmentation constraint information of a luminance block, or segmentation constraint information of a chrominance block.
[0705] In a possible implementation manner, the video code stream further includes data representing a parameter set of the video code stream, and acquiring the overwrite enabling flag from the video code stream includes: acquiring the overwrite enabling flag from the parameter set.
[0706] In a possible implementation manner, obtaining the overwrite flag from the video code stream includes obtaining the overwrite flag from the image area header.
[0707] In a possible implementation, the first segmentation constraint information includes minimum allowed quadtree leaf node size information, maximum multi-type tree depth information, maximum allowed ternary tree root node size information, or maximum allowed binary tree root node size information.
[0708] In a possible implementation manner, the image area includes a strip or a block, and the image area header includes a strip header of the strip or a block header of the block.
[0709] In a possible implementation manner, the video code stream further includes data representing a parameter set of the video code stream, and the decoding method further includes:
[0710] When the value of the overwrite flag is not the overwrite value, the blocks of the image area are segmented according to the second segmentation constraint information of the video code stream in the parameter set.
[0711] In a possible implementation, when the value of the multi-type tree segmentation enabling flag (e.g., slice_btt_enabled_flag) in the image region header enables multi-type tree segmentation of a block, first segmentation constraint information is obtained and multi-type tree segmentation is applied to the block of the image region according to the first segmentation constraint information.
[0712] In a possible implementation, the video code stream also includes data representing a parameter set of the video code stream. When the multi-type tree segmentation enable flag of the image area header is not present and the value of the multi-type tree segmentation enable flag in the parameter set (for example, sps_btt_enabled_flag) enables multi-type tree segmentation of blocks, second segmentation constraint information of the video code stream is obtained from the parameter set, and multi-type tree segmentation is applied to the blocks of the image area according to the second segmentation constraint information.
[0713] According to a second aspect, the present invention relates to a method for decoding a video stream implemented by a decoding device, wherein the video stream includes data representing a block and a first parameter set of the video stream, and the decoding method comprises:
[0714] Obtaining an overwrite flag from the video code stream;
[0715] When the value of the overwrite flag is an overwrite value, obtaining first segmentation constraint information of the block from the first parameter set;
[0716] The block is segmented according to the first segmentation constraint information.
[0717] In a possible implementation, segmenting the block according to the first segmentation constraint information includes: segmenting the block into sub-blocks according to the first segmentation constraint information. The decoding method further includes: reconstructing the sub-blocks.
[0718] In a possible implementation manner, the decoding method further includes:
[0719] Obtain an overwrite enable flag from the video bitstream;
[0720] When the value of the overwrite enabling flag is an enabling value, the overwrite flag is obtained from the video bitstream.
[0721] In a possible implementation manner, the decoding method further includes:
[0722] Acquire a segmentation constraint control occurrence flag from the video bitstream;
[0723] When the value of the segmentation constraint control occurrence flag is true, the overwrite enable flag is obtained from the video bitstream.
[0724] In a possible implementation, the video code stream further includes data representing a second parameter set of the video code stream, and the value of the partition constraint control presence flag is false, indicating that the parameter set does not contain a partition constraint control syntax element.
[0725] In a possible implementation manner, the video code stream further includes data representing a second parameter set of the video code stream, and the decoding method further includes:
[0726] When the value of the overwrite enabling flag is a disabled value, the block is segmented according to the second segmentation constraint information of the video code stream in the second parameter set.
[0727] In a possible implementation, the second segmentation constraint information includes minimum allowed quadtree leaf node size information, maximum multi-type tree depth information, maximum allowed ternary tree root node size information, or maximum allowed binary tree root node size information.
[0728] In a possible implementation manner, the second segmentation constraint information includes segmentation constraint information corresponding to different parameters or segmentation constraint information corresponding to different indexes related to the image area represented by the video code stream.
[0729] In a possible implementation manner, the second segmentation constraint information includes segmentation constraint information in an intra-frame mode or segmentation constraint information in an inter-frame mode.
[0730] In a possible implementation manner, the second segmentation constraint information includes segmentation constraint information of a luminance block, or segmentation constraint information of a chrominance block.
[0731] In a possible implementation manner, the video code stream further includes data representing a second parameter set of the video code stream, and acquiring the overwrite enabling flag from the video code stream includes: acquiring the overwrite enabling flag from the second parameter set.
[0732] In a possible implementation manner, obtaining the overwrite flag from the video code stream includes obtaining the overwrite flag from the first parameter set.
[0733] In a possible implementation, the first segmentation constraint information includes minimum allowed quadtree leaf node size information, maximum multi-type tree depth information, maximum allowed ternary tree root node size information, or maximum allowed binary tree root node size information.
[0734] In a possible implementation manner, the video code stream further includes data representing a second parameter set of the video code stream;
[0735] The first parameter set is an image parameter set, and the second parameter set is a sequence parameter set.
[0736] In a possible implementation manner, the video code stream further includes data representing a second parameter set of the video code stream, and the decoding method further includes:
[0737] When the value of the overwrite flag is not an overwrite value, the block is segmented according to the second segmentation constraint information of the video code stream in the second parameter set.
[0738] In a possible implementation, when the value of the multi-type tree segmentation enabling flag in the first parameter set enables multi-type tree segmentation of a block, first segmentation constraint information is obtained and multi-type tree segmentation is applied to the block according to the first segmentation constraint information.
[0739] In a possible implementation, the video code stream also includes data representing a second parameter set of the video code stream. When the multi-type tree segmentation enable flag in the first parameter set is not present and the value of the multi-type tree segmentation enable flag in the second parameter set enables multi-type tree segmentation of the block, second segmentation constraint information of the video code stream is obtained from the second parameter set, and multi-type tree segmentation is applied to the block according to the second segmentation constraint information.
[0740] According to a third aspect, the present invention relates to a method for decoding a video code stream implemented by a decoding device, wherein the video code stream includes data representing a first image area and a first image area header of the first image area, and the decoding method comprises:
[0741] Obtaining an overwrite flag from the video code stream;
[0742] When the value of the overwrite flag is an overwrite value, obtaining first segmentation constraint information of the first image area from the first image area header;
[0743] The blocks of the first image area are segmented according to the first segmentation constraint information.
[0744] In a possible implementation, segmenting the blocks of the first image region according to the first segmentation constraint information includes: segmenting the blocks of the first image region into sub-blocks according to the first segmentation constraint information. The decoding method further includes: reconstructing the sub-blocks.
[0745] In a possible implementation manner, the decoding method further includes:
[0746] Obtain an overwrite enable flag from the video bitstream;
[0747] When the value of the overwrite enabling flag is an enabling value, the overwrite flag is obtained from the video bitstream.
[0748] In a possible implementation manner, the decoding method further includes:
[0749] Acquire a segmentation constraint control occurrence flag from the video bitstream;
[0750] When the value of the segmentation constraint control occurrence flag is true, the overwrite enable flag is obtained from the video bitstream.
[0751] In a possible implementation, the video code stream also includes data representing the second image area and a second image area header of the second image area, and the value of the segmentation constraint control presence flag is false, indicating that the second image area header does not contain a segmentation constraint control syntax element.
[0752] In a possible implementation manner, the video code stream further includes data representing the second image area and a second image area header of the second image area, and the decoding method further includes:
[0753] When the value of the overwrite enable flag is a disabled value, the blocks of the first image area are segmented according to the second segmentation constraint information of the video code stream in the second image area header, wherein the second image area includes the blocks of the first image area.
[0754] In a possible implementation, the second segmentation constraint information includes minimum allowed quadtree leaf node size information, maximum multi-type tree depth information, maximum allowed ternary tree root node size information, or maximum allowed binary tree root node size information.
[0755] In a possible implementation manner, the second segmentation constraint information includes segmentation constraint information corresponding to different parameters or segmentation constraint information corresponding to different indexes related to the image area represented by the video code stream.
[0756] In a possible implementation manner, the second segmentation constraint information includes segmentation constraint information in an intra-frame mode or segmentation constraint information in an inter-frame mode.
[0757] In a possible implementation manner, the second segmentation constraint information includes segmentation constraint information of a luminance block, or segmentation constraint information of a chrominance block.
[0758] In a possible implementation, the video code stream further includes data representing the second image area and a second image area header of the second image area, and obtaining the overwrite enable flag from the video code stream includes: obtaining the overwrite enable flag from the second image area header.
[0759] In a possible implementation manner, obtaining the overwrite flag from the video code stream includes obtaining the overwrite flag from the first image area header.
[0760] In a possible implementation, the first segmentation constraint information includes minimum allowed quadtree leaf node size information, maximum multi-type tree depth information, maximum allowed ternary tree root node size information, or maximum allowed binary tree root node size information.
[0761] In a possible implementation manner, the video code stream further includes data representing the second image area and a second image area header of the second image area;
[0762] The first image area header is a stripe header, the second image area header is a block header, the first image area is a stripe, the second image area is a block, and the block includes the stripe; or
[0763] The first image area header is a block header, the second image area header is a strip header, the first image area is a block, the second image area is a strip, and the strip includes the block.
[0764] In a possible implementation manner, the video code stream further includes data representing the second image area and a second image area header of the second image area, and the decoding method further includes:
[0765] When the value of the overwrite flag is not an overwrite value, the blocks of the first image area are segmented according to the second segmentation constraint information of the video code stream in the second image area header, wherein the second image area includes the blocks of the first image area.
[0766] In a possible implementation, when the value of the multi-type tree segmentation enable flag in the first image region header enables multi-type tree segmentation of the block, first segmentation constraint information is obtained and multi-type tree segmentation is applied to the block of the first image region according to the first segmentation constraint information.
[0767] In a possible implementation, the video code stream also includes data representing a second image area header of the video code stream. When the multi-type tree segmentation enable flag in the first image area header is not present and the value of the multi-type tree segmentation enable flag in the second image area header enables multi-type tree segmentation of the block, second segmentation constraint information of the video code stream is obtained from the second image area header, and multi-type tree segmentation is applied to the block of the image area according to the second segmentation constraint information.
[0768] According to a fourth aspect, the present invention relates to a video code stream decoding device, comprising a processor and a memory. The memory stores instructions so that the processor executes the method according to the first aspect, the second aspect, or the third aspect, or any possible embodiment of the first aspect, the second aspect, or the third aspect.
[0769] According to a fifth aspect, a computer-readable storage medium storing instructions is provided, wherein when the instructions are executed, one or more processors are caused to decode video data. The instructions cause the one or more processors to perform the method according to the first aspect, the second aspect, or the third aspect, or any possible embodiment of the first aspect, the second aspect, or the third aspect.
[0770] According to a sixth aspect, the present invention relates to a computer program, comprising program code, for executing the method according to the first aspect, the second aspect or the third aspect, or any possible embodiment of the first aspect, the second aspect or the third aspect when executed on a computer.
[0771] In summary, the present invention provides a coding and decoding device and a coding and decoding method. In particular, the present invention relates to block segmentation and indicating segmentation parameters in a bitstream. An overwrite flag in an image region header indicates whether a block is segmented according to first segmentation constraint information. The overwrite flag is included in the bitstream, and the block is segmented accordingly.
Claims
1. A method for decoding a video code stream, characterized in that: The video code stream includes a parameter set, an image area and an image area header of the image area, and the decoding method includes: Obtaining an override enabled flag from the video bitstream; When the value of the overwrite enable flag is an enable value, obtaining an overwrite flag (overrideflag) from the video bitstream; When the value of the overwrite flag is an overwrite value, obtaining first segmentation constraint information of the image area from the image area header, and segmenting blocks of the image area according to the first segmentation constraint information, wherein the first segmentation constraint information includes information on a maximum allowed binary tree root node size; When the value of the overwrite flag is not the overwrite value, segmenting the block according to the second segmentation constraint information in the parameter set; When the value of the overwrite enable flag is a disabled value, the block is segmented according to the second segmentation constraint information in the parameter set.
2. The decoding method according to claim 1, characterized in that: The overwrite value is 1.
3. The decoding method according to claim 1, characterized in that: The enable value is 1, and the disable value is 0.
4. The decoding method according to any one of claims 1 to 3, characterized in that: The second segmentation constraint information includes information on a maximum allowed binary tree root node size.
5. The decoding method according to any one of claims 1 to 3, characterized in that: The second partition constraint information includes partition constraint information of a block in an intra mode or partition constraint information of a block in an inter mode.
6. The decoding method according to any one of claims 1 to 3, characterized in that: The second segmentation constraint information includes segmentation constraint information of a luminance block or segmentation constraint information of a chrominance block.
7. The decoding method according to any one of claims 1 to 3, characterized in that: Acquiring the overwrite enabling flag from the video code stream includes: acquiring the overwrite enabling flag from the parameter set.
8. The decoding method according to any one of claims 1 to 3, characterized in that: Acquiring the overwrite flag from the video code stream includes: acquiring the overwrite flag from the image area header.
9. The decoding method according to any one of claims 1 to 3, characterized in that: The parameter set is a sequence parameter set (sequence parameter set, SPS).
10. The decoding method according to any one of claims 1 to 3, characterized in that: The image area header is a picture header.
11. A method for encoding a video to obtain a video code stream, characterized in that: The video code stream includes a parameter set, an image area and an image area header of the image area, and the encoding method includes: determining whether to enable segmentation of blocks of the image area according to first segmentation constraint information, wherein the first segmentation constraint information includes allowed maximum binary tree root node size information; When it is determined that the block is enabled to be segmented according to the first segmentation constraint information, setting the value of an override enabled flag to an enabled value, and determining whether to segment the block according to the first segmentation constraint information; When it is determined that the block is to be segmented according to the first segmentation constraint information, segmenting the block according to the first segmentation constraint information, setting a value of an override flag to an override value, and encoding the first segmentation constraint information into the image region header; When it is determined that the block is not to be segmented according to the first segmentation constraint information, segmenting the block according to the second segmentation constraint information, and setting the value of the overwrite flag to a non-overwritten value; Encoding the overwrite flag into the video bit stream; When it is determined that the block is not to be segmented according to the first segmentation constraint information, the block is segmented according to the second segmentation constraint information, and the value of the overwrite enable flag is set to a disable value; encoding the second segmentation constraint information into the parameter set; The overwrite enable flag is encoded into the video bitstream.
12. The encoding method according to claim 11, characterized in that: The overwritten value is 1, and the non-overwritten value is 0.
13. The encoding method according to claim 11, characterized in that: The enable value is 1, and the disable value is 0.
14. The encoding method according to any one of claims 11 to 13, characterized in that: The second segmentation constraint information includes information on a maximum allowed binary tree root node size.
15. The encoding method according to any one of claims 11 to 13, characterized in that: The second segmentation constraint information includes segmentation constraint information in an intra-frame mode or segmentation constraint information in an inter-frame mode.
16. The encoding method according to any one of claims 11 to 13, characterized in that: The second segmentation constraint information includes segmentation constraint information of a luminance block or segmentation constraint information of a chrominance block.
17. The encoding method according to any one of claims 11 to 13, characterized in that: Encoding the overwrite enabling flag into the video bitstream includes: encoding the overwrite enabling flag into the parameter set.
18. The encoding method according to any one of claims 11 to 13, characterized in that: Encoding the overwrite flag into the video code stream includes: encoding the overwrite flag into the image region header.
19. The encoding method according to any one of claims 11 to 13, characterized in that: The parameter set is a sequence parameter set (sequence parameter set, SPS).
20. The encoding method according to any one of claims 11 to 13, characterized in that: The image area header is a picture header.
21. A computer program product comprising program code, characterized in that The program code is used to execute the method according to any one of claims 1-20.
22. A decoder, characterized in that: include: one or more processors; A computer-readable storage medium is coupled to the processor and stores a computer program, wherein when the processor executes the computer program, the decoder is caused to perform the method according to any one of claims 1 to 10.
23. An encoder, characterized in that: include: one or more processors; A computer-readable storage medium is coupled to the processor and stores a computer program, wherein when the processor executes the computer program, the encoder is caused to perform the method according to any one of claims 11-20.
24. A decoder for decoding a video stream, characterized in that: The video code stream includes a parameter set, an image area and an image area header of the image area, and the decoder includes: an overwrite determination unit, configured to obtain an override enabled flag from the video bitstream, and when the value of the override enabled flag is an enabled value, the overwrite determination unit is further configured to obtain an override flag from the video bitstream; a segmentation constraint determination unit, configured to obtain first segmentation constraint information of the image region from the image region header when the value of the overwrite flag is an overwrite value, wherein the first segmentation constraint information includes information on a maximum allowed binary tree root node size; a block segmentation unit, configured to segment blocks of the image area according to the first segmentation constraint information; The block segmentation unit is further configured to segment the block according to the second segmentation constraint information in the parameter set when the value of the overwrite flag is not the overwrite value; The block segmentation unit is further configured to segment the block according to the second segmentation constraint information in the parameter set when the value of the overwrite enable flag is a disabled value.
25. An encoder for encoding a video to obtain a video code stream, characterized in that: The video code stream includes a parameter set, an image area and an image area header of the image area, and the encoder includes: a segmentation determination unit, configured to determine whether to enable segmentation of blocks in the image area according to first segmentation constraint information, and when it is determined to enable segmentation of the blocks according to the first segmentation constraint information, the segmentation determination unit is further configured to determine whether to segment the blocks according to the first segmentation constraint information; wherein the first segmentation constraint information includes information on a maximum allowed binary tree root node size; a block segmentation unit, configured to segment the block according to the first segmentation constraint information when determining to segment the block according to the first segmentation constraint information; The block segmentation unit is further configured to segment the block according to second segmentation constraint information when it is determined that the block is not segmented according to the first segmentation constraint information; an overwrite flag setting unit, configured to set a value of an overwrite flag to an overwrite value when determining to segment the block according to the first segmentation constraint information; The overwrite flag setting unit is further configured to set the value of the overwrite flag to a non-overwritten value when it is determined that the block is not to be segmented according to the first segmentation constraint information; The overwrite flag setting unit is further configured to set the value of an override enabled flag to an enabled value when determining to enable segmentation of the block according to the first segmentation constraint information; The overwrite flag setting unit is further configured to set the value of the overwrite enable flag to a disable value when it is determined that segmentation of the block according to the first segmentation constraint information is not enabled; A code stream generator, configured to encode the overwrite flag into the video code stream when determining to enable segmenting the block according to the first segmentation constraint information; The code stream generator is further configured to encode the first segmentation constraint information into the image region header when determining to segment the block according to the first segmentation constraint information; The code stream generator is further used to encode the second segmentation constraint information into the parameter set; The bitstream generator is further configured to encode the overwrite enabling flag into the video bitstream.
26. A video streaming device, characterized in that The video stream device comprises a communication interface and a memory, wherein the communication interface is used to receive and / or send a video code stream, and the memory is used to store the video code stream, wherein the video code stream comprises a parameter set, an image area and an image area header of the image area, and an override enabled flag; the parameter set comprises second segmentation constraint information; When the value of the overwrite enable flag is an enable value, the video bitstream includes an override flag; when the value of the override flag is an override value, the image area header includes first segmentation constraint information, and the first segmentation constraint information is used to divide the image area into blocks; when the value of the overwrite enable flag is a disable value or the value of the override flag is not the override value, the second segmentation constraint information is used to divide the blocks; wherein the first segmentation constraint information includes information on the maximum allowed binary tree root node size.
