Video signal encoding / decoding method and device
By dividing video signals into tiles and slices based on tile indexes and difference information, the method addresses the inefficiencies of existing video compression standards, enhancing encoding/decoding efficiency and compression performance.
Patent Information
- Application Number
- JP2023173807
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-02-11
- Filing Date
- 2023-10-05
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2040-08-20
AI Technical Summary
The increasing data requirements of high-definition video services have surpassed the limits of existing video compression standards, necessitating improved encoding and decoding methods to enhance efficiency.
A method and apparatus for dividing video signals into tiles or slices based on tile indexes and difference information, allowing for efficient encoding and decoding by determining the number of slices and applying rectangular slices as needed.
This approach enhances encoding/decoding efficiency by optimizing the division of video signals into tiles and slices, improving compression performance.
Smart Images

Figure 0007566109000038 
Figure 0007566109000039 
Figure 0007566109000040
Abstract
Description
[Technical field]
[0001] The present invention relates to a video signal encoding / decoding method and device. [Background technology]
[0002] As display panels continue to get larger, there is a growing demand for video services with higher image quality. The biggest problem with high-definition video services is the large increase in data volume, and in order to solve this problem, active research is being conducted to improve video compression rates. As a representative example, in 2009, MPEG (Motion Picture Experts Group) and VCEG (Video Coding Experts Group) under ITU-T (International Telecommunication Union-Telecommunication) formed JCT-VC (Joint Collaborative Team on Video Coding). JCT-VC proposed HEVC (High Efficiency Video Coding), a video compression standard with approximately twice the compression performance of H.264 / AVC, and it was approved as a standard on January 25, 2013. With the rapid development of high-definition video services, HEVC's performance is gradually showing its limits. Summary of the Invention [Problem to be solved by the invention]
[0003] The present invention aims to provide a method for dividing a picture into multiple tiles or multiple slices when encoding / decoding a video signal, and an apparatus for carrying out the method.
[0004] SUMMARY OF THE PRESENT EMBODIMENT An object of the present invention is to provide a method for partitioning slices based on tile indexes when dividing a picture into a number of tiles, and an apparatus for performing the method.
[0005] An object of the present invention is to provide a method for dividing a picture into a plurality of slices based on difference information from a previous slice, and an apparatus for carrying out the method.
[0006] The technical problems that the present invention aims to solve are not limited to the technical problems mentioned above, and other technical problems not mentioned can be clearly understood by a person having ordinary skill in the technical field to which the present invention belongs from the following description. [Means for solving the problem]
[0007] A method for decoding a video signal according to the present invention may include: dividing a current picture into tiles; decoding partition information indicating a slice type, the partition information indicating whether a rectangular slice is applied; determining the number of slices in the current picture; and defining the slices using the tiles. In this case, defining the slices may be performed based on a difference information present flag indicating whether tile index difference information is encoded, and whether to parse the difference information present flag may be determined based on the number of slices included in the current picture.
[0008] A method for encoding a video signal according to the present invention may include dividing a current picture into tiles, determining whether to apply rectangular slices, determining the number of slices in the current picture, and defining the slices using the tiles, where defining the slices may include determining whether to code a difference information present flag indicating whether tile index difference information is coded, and whether to code the difference information present flag may be determined based on the number of slices included in the current picture.
[0009] In the video signal decoding method according to the present invention, the difference information presence flag may indicate whether or not difference information indicating an index difference value between a first tile included in a first slice and a second tile included in a second slice is present in the bitstream.
[0010] In the video signal decoding method according to the present invention, when the number of slices is two, parsing of the difference information presence flag may be omitted and the value of the flag may be regarded as zero.
[0011] In the video signal decoding method according to the present invention, when the number of slices is two, the width information or the height information may be parsed for the first slice, and the width information or the height information may not be parsed for the second slice.
[0012] In the video signal decoding method according to the present invention, when the current picture includes two or more slices and the top left tile in a slice is included in the rightmost tile column in the current picture, parsing of the width information may be omitted.
[0013] In the video signal decoding method according to the present invention, if the current picture includes two or more slices and the top left tile in a slice is included in the bottommost row of tiles in the current picture, parsing of the height information may be omitted.
[0014] The above briefly summarized features of the present invention are illustrative embodiments of the detailed description of the invention that follows and are not intended to limit the scope of the present invention. Effect of the Invention
[0015] According to the present invention, a picture may be divided into multiple tiles or slices to improve encoding / decoding efficiency.
[0016] According to the present invention, encoding / decoding efficiency may be improved by dividing slices based on tile indexes.
[0017] According to the present invention, there are cases where the efficiency of encoding / decoding is improved by dividing a slice based on difference information from the previous slice.
[0018] The effects obtained by the present invention are not limited to those mentioned above, and other effects not mentioned may be clearly understood by a person having ordinary skill in the art to which the present invention pertains from the following description. [Brief description of the drawings]
[0019] [Figure 1] 1 is a block diagram of a video encoder according to an embodiment of the present invention;
[0020] [Diagram 2] FIG. 2 is a block diagram of a video decoder (decoder) according to one embodiment of the present invention;
[0021] [Diagram 3] FIG. 2 illustrates a basic coding tree unit according to an embodiment of the present invention.
[0022] [Figure 4] 1A to 1C are diagrams illustrating various partition shapes of coding blocks.
[0023] [Diagram 5] FIG. 13 is a diagram illustrating an example of division of a coding tree unit.
[0024] [Figure 6] 2 is a flowchart of an inter-prediction method according to an embodiment of the present invention.
[0025] [Figure 7] FIG. 2 is a diagram illustrating non-linear movement of an object.
[0026] [Figure 8] 3 is a flowchart of an affine motion based inter-prediction method according to an embodiment of the present invention.
[0027] [Figure 9] 11A and 11B are diagrams illustrating affine seed vectors for different affine motion models.
[0028] [Figure 10] FIG. 13 is a diagram illustrating affine vectors of sub-blocks under a four-parameter motion model.
[0029] [Figure 11] 13 is a flowchart of a process of deriving motion information of a current block under a merge mode.
[0030] [Figure 12] FIG. 2 illustrates candidate blocks used to derive merge candidates.
[0031] [Figure 13] FIG. 13 is a diagram for explaining an update mode of the motion information table.
[0032] [Figure 14] FIG. 13 is a diagram showing an update state of the motion information table.
[0033] [Figure 15] FIG. 13 is a diagram showing an example in which indices of pre-stored motion information candidates are updated.
[0034] [Figure 16] FIG. 13 illustrates an example in which overlap checking is performed on only a portion of merge candidates.
[0035] [Figure 17] FIG. 13 illustrates an example in which overlap checking with a particular merging candidate is omitted.
[0036] [Figure 18] FIG. 13 is a diagram showing an example in which a candidate block included in the same merge processing area as the current block is set as unavailable as a merge candidate;
[0037] [Figure 19]FIG. 13 is a diagram illustrating an example of deriving merge candidates for a current block when the current block is included in a merge processing region.
[0038] [Figure 20] FIG. 13 is a diagram showing a temporary motion information table.
[0039] [Figure 21] 13 is a diagram showing an example of merging a motion information table and a temporary motion information table.
[0040] [Figure 22] 2 is a flowchart of an intra prediction method according to an embodiment of the present invention.
[0041] [Diagram 23] FIG. 13 is a diagram illustrating intra-prediction modes.
[0042] [Figure 24] FIG. 13 is a diagram showing an example of a one-dimensional array in which reference samples are arranged in a row. [Diagram 25] FIG. 13 is a diagram showing an example of a one-dimensional array in which reference samples are arranged in a row.
[0043] [Figure 26] 11 is a diagram illustrating angles that directional intra prediction modes form with a line parallel to the x-axis.
[0044] [Figure 27] FIG. 13 illustrates how prediction samples are obtained when the current block is non-square.
[0045] [Figure 28] FIG. 13 is a diagram illustrating a wide-angle intra prediction mode.
[0046] [Figure 29] FIG. 13 is a diagram illustrating an example in which it is determined whether or not a transform skip is performed for each sub-block.
[0047] [Diagram 30] FIG. 13 is a diagram showing an example in which sub-blocks use the same transform type.
[0048] [Diagram 31] 11 is a flowchart showing a process of determining a block strength.
[0049] [Diagram 32] 3 shows predefined filter candidates.
[0050] [Diagram 33] FIG. 2 illustrates a picture partitioning method according to an embodiment of the present invention.
[0051] [Diagram 34] 1 shows an example in which a picture is divided into multiple tiles.
[0052] [Diagram 35] FIG. 13 is a diagram for explaining a manner in which bricks are generated.
[0053] [Diagram 36] FIG. 13 illustrates an example of defining slices based on raster order. [Figure 37] FIG. 13 illustrates an example of defining slices based on raster order.
[0054] [Figure 38] FIG. 13 shows an example in which only rectangular slices are allowed.
[0055] [Figure 39] FIG. 13 is a diagram showing an example in which a picture is composed of two slices. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0056] Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.
[0057] Video encoding and decoding is performed on a block-by-block basis. For example, encoding / decoding processes such as transform, quantization, prediction, in-loop filtering, or restoration may be performed on a coding block, a transform block, or a prediction block.
[0058] Hereinafter, a block to be encoded / decoded is referred to as a “current block.” As an example, the current block may indicate a coding block, a transformation block, or a prediction block depending on the current encoding / decoding process step.
[0059] As used herein, the term "unit" refers to a basic unit for performing a particular encoding / decoding process, and "block" may be understood to refer to a sample array of a given size. Unless otherwise specified, "block" and "unit" may be used with the same meaning. As an example, in the embodiments described below, a coding block and a coding unit may be understood to have the same meaning.
[0060] FIG. 1 is a block diagram of a video encoder according to one embodiment of the present invention.
[0061] Referring to FIG. 1, the video encoding device 100 may include a picture division unit 110, prediction units 120, 125, a transformation unit 130, a quantization unit 135, a reordering unit 160, an entropy encoding unit 165, an inverse quantization unit 140, an inverse transform unit 145, a filter unit 150, and a memory 155.
[0062] Each component shown in Fig. 1 is illustrated independently to show different characteristic functions in the video encoding device, and does not mean that each component is a separate hardware or software component. That is, each component is included side by side as a respective component for convenience of explanation, and at least two of the components may be combined into one component, or one component may be divided into multiple components to perform a function, and such integrated and separated embodiments of each component are also included in the scope of the present invention as long as they do not deviate from the essence of the present invention.
[0063] In addition, some components may not be essential components that perform essential functions in the present invention, but may be optional components simply for improving performance. The present invention may be realized by including only the components essential for realizing the essence of the present invention other than the components used simply for improving performance, and a structure including only the essential components other than the optional components used simply for improving performance is also included in the scope of the present invention.
[0064] The picture division unit 110 may divide an input picture into at least one processing unit. In this case, the processing unit may be a prediction unit (PU), a transform unit (TU), or a coding unit (CU). The picture division unit 110 may divide one picture into a combination of a plurality of coding units, prediction units, and transform units, and may select one combination of coding units, prediction units, and transform units based on a predetermined criterion (for example, a cost function) to code the picture.
[0065] For example, one picture may be divided into a plurality of coding units. In order to divide the coding units in a picture, a recursive tree structure such as a quad tree structure may be used, and a coding unit that is divided into other coding units with one image or a largest coding unit as the root may be divided with child nodes equal to the number of divided coding units. A coding unit that is not further divided due to a certain restriction becomes a leaf node. That is, assuming that only square division is possible for one coding unit, one coding unit may be divided into a maximum of four different coding units.
[0066] Hereinafter, in the embodiments of the present invention, the coding unit can be used to mean a unit for performing coding, or a unit for performing decoding.
[0067] The prediction units may be divided into at least one shape, such as a square or rectangle, of the same size within one coding unit, or may be divided into prediction units such that one of the prediction units divided within one coding unit has a different shape and / or size from the other prediction units.
[0068] When generating a prediction unit for performing intra prediction based on a coding unit, if the coding unit is not the minimum coding unit, intra prediction may be performed without dividing the coding unit into a plurality of N×N prediction units.
[0069] The prediction units 120 and 125 may include an inter prediction unit 120 for performing inter prediction and an intra prediction unit 125 for performing intra prediction. It may be determined whether to use inter prediction or intra prediction for a prediction unit, and specific information (e.g., intra prediction mode, motion vector, reference picture, etc.) according to each prediction method may be determined. In this case, the processing unit in which the prediction is performed and the processing unit in which the prediction method and specific contents are determined may be different. For example, the prediction method and prediction mode may be determined in a prediction unit, and the prediction may be performed in a transform unit. The residual value (residual block) between the generated prediction block and the original block may be input to the transform unit 130. In addition, the prediction mode information, motion vector information, etc. used for the prediction may be coded by the entropy coding unit 165 together with the residual value and transmitted to the decoder. When a specific coding mode is used, it is also possible to code the original block as it is and transmit it to the decoding unit without generating a prediction block via the prediction units 120 and 125.
[0070] The inter prediction unit 120 may predict a prediction unit based on information of at least one of a picture before or after the current picture, and in some cases, may predict a prediction unit based on information of a part of an area in the current picture that has been completely coded. The inter prediction unit 120 may include a reference picture interpolation unit, a motion prediction unit, and a motion compensation unit.
[0071] The reference picture interpolation unit may receive reference picture information from the memory 155 and generate pixel information of less than integer pixels in the reference picture. In the case of luminance pixels, a DCT-based 8-tap interpolation filter having different filter coefficients may be used to generate pixel information of less than integer pixels in 1 / 4 pixel units. In the case of color difference signals, a DCT-based 4-tap interpolation filter having different filter coefficients may be used to generate pixel information of less than integer pixels in 1 / 8 pixel units.
[0072] The motion prediction unit may perform motion prediction based on the reference picture interpolated by the reference picture interpolation unit. Various methods such as a full search-based block matching algorithm (FBMA), a three step search (TSS), and a new three-step search algorithm (NTS) may be used to calculate a motion vector. The motion vector may have a motion vector value in half or quarter pixel units based on the interpolated pixel. The motion prediction unit may predict the current prediction unit using different motion prediction methods. Various methods such as a skip method, a merge method, an advanced motion vector prediction method, and an intra block copy method may be used as the motion prediction method.
[0073] The intra prediction unit 125 may generate a prediction unit based on reference pixel information around a current block, which is pixel information in a current picture. Since a neighboring block of the current prediction unit is an inter-predicted block, if the reference pixel is an inter-predicted pixel, the reference pixel included in the inter-predicted block may be used instead of reference pixel information of a neighboring intra-predicted block. In other words, if the reference pixel is unavailable, the unavailable reference pixel information may be used instead of at least one of the available reference pixels.
[0074] In the intra prediction, the prediction mode may include a directional prediction mode that uses reference pixel information according to the prediction direction, and a non-directional mode that does not use directional information when performing prediction. The mode for predicting luminance information and the mode for predicting chrominance information may be different, and intra prediction mode information used for predicting luminance information or predicted luminance signal information may be used to predict chrominance information.
[0075] When performing intra prediction, if the size of the prediction unit and the size of the transform unit are the same, intra prediction for the prediction unit may be performed based on the pixel on the left side, the pixel on the top left side, and the pixel on the top side of the prediction unit. However, when performing intra prediction, if the size of the prediction unit and the size of the transform unit differ, intra prediction may be performed using reference pixels based on the transform unit. Also, intra prediction using N×N division may be used only for the minimum coding unit.
[0076] In the intra prediction method, a prediction block may be generated after applying an AIS (Adaptive Intra Smoothing) filter to reference pixels according to a prediction mode. The type of AIS filter applied to the reference pixels may differ. In order to perform the intra prediction method, the intra prediction mode of the current prediction unit may be predicted from the intra prediction mode of a prediction unit existing around the current prediction unit. When predicting the prediction mode of the current prediction unit using mode information predicted from a surrounding prediction unit, if the intra prediction modes of the current prediction unit and the surrounding prediction unit are the same, information that the prediction modes of the current prediction unit and the surrounding prediction unit are the same may be transmitted using predetermined flag information, and if the prediction modes of the current prediction unit and the surrounding prediction unit are different, entropy coding may be performed to code the prediction mode information of the current block.
[0077] In addition, a residual block may be generated that includes residual value information that is a difference value between a prediction unit predicted based on the prediction unit generated by the prediction units 120 and 125 and an original block of the prediction unit. The generated residual block may be input to the conversion unit 130.
[0078] The transform unit 130 may transform the residual block including residual value information of the original block and the prediction unit generated through the prediction unit 120, 125 using a transform method such as DCT (Discrete Cosine Transform) or DST (Discrete Sine Transform). Here, the DCT transform core includes at least one of DCT2 or DCT8, and the DST transform core includes DST7. Whether to apply DCT or DST to transform the residual block may be determined based on intra prediction mode information of the prediction unit used to generate the residual block. Transformation of the residual block may be skipped. A flag indicating whether to skip transformation of the residual block may be coded. Transform skipping may be permitted for a residual block whose size is equal to or smaller than a threshold, a luma component, or a chroma component under a 4:4:4 format.
[0079] The quantization unit 135 may quantize the values transformed into the frequency domain by the transformation unit 130. The quantization coefficient may vary depending on the block or the importance of the image. The values calculated by the quantization unit 135 may be provided to the inverse quantization unit 140 and the reordering unit 160.
[0080] A reordering unit 160 may perform reordering of coefficient values on the quantized residual values.
[0081] The reordering unit 160 may change the two-dimensional block shape coefficients into one-dimensional vector shapes by a coefficient scanning method. For example, the reordering unit 160 may use a zig-zag scan method to scan from DC coefficients to coefficients in a high frequency region and change the shape into one-dimensional vector shapes. Depending on the size of the transform unit and the intra prediction mode, instead of the zig-zag scan, a vertical scan that scans the two-dimensional block shape coefficients in the column direction and a horizontal scan that scans the two-dimensional block shape coefficients in the row direction may be used. That is, depending on the size of the transform unit and the intra prediction mode, it may be determined which of the zig-zag scan, vertical scan, and horizontal scan scans is used.
[0082] The entropy coding unit 165 may perform entropy coding based on the value calculated by the reordering unit 160. The entropy coding may use various coding methods such as Exponential Golomb, Context-Adaptive Variable Length Coding (CAVLC), and Context-Adaptive Binary Arithmetic Coding (CABAC).
[0083] The entropy coding unit 165 may encode various information from the realignment unit 160 and the prediction units 120, 125, such as residual value coefficient information and block type information of the coding unit, prediction mode information, division unit information, prediction unit information and transmission unit information, motion vector information, reference frame information, block interpolation information, filtering information, etc.
[0084] In the entropy coding unit 165, the coefficient values of the coding unit input from the reordering unit 160 may be entropy coded.
[0085] The inverse quantization unit 140 and the inverse transform unit 145 inversely quantize the values quantized by the quantization unit 135 and inversely transform the values transformed by the transform unit 130. Residual values generated by the inverse quantization unit 140 and the inverse transform unit 145 may be combined with prediction units predicted by the motion estimation unit, the motion compensation unit, and the intra prediction unit included in the prediction units 120 and 125 to generate a reconstructed block.
[0086] The filter unit 150 may include at least one of a deblocking filter, an offset correction unit, and an ALF (Adaptive Loop Filter).
[0087] The deblocking filter may remove block artifacts caused by boundaries between blocks in a reconstructed picture. To determine whether to perform deblocking, it may be determined whether to apply a deblocking filter to a current block based on pixels included in several columns or rows included in the block. When applying a deblocking filter to a block, a strong filter or a weak filter may be applied depending on a required deblocking filtering strength. In addition, when performing vertical filtering and horizontal filtering in applying the deblocking filter, horizontal filtering and vertical filtering may be processed in parallel.
[0088] The offset correction unit may correct the offset between the deblocked image and the original image on a pixel-by-pixel basis. In order to perform offset correction for a specific picture, a method of dividing pixels included in the image into a predetermined number of regions, determining a region to be offset, and applying an offset to the region, or a method of applying an offset by considering edge information of each pixel may be used.
[0089] ALF (Adaptive Loop Filtering) may be performed based on the value obtained by comparing the filtered restored image with the original image. After dividing the pixels in the image into predetermined groups, a filter to be applied to each group may be determined, and filtering may be performed differentially for each group. Information regarding whether or not to apply ALF may be transmitted for each coding unit (CU) of the luminance signal, and the shape and filter coefficients of the ALF filter applied to each block may differ. In addition, an ALF filter of the same shape (fixed shape) may be applied regardless of the characteristics of the block to which it is applied.
[0090] The memory 155 may store a reconstructed block or picture calculated via the filter unit 150, and the stored reconstructed block or picture may be provided to the prediction units 120 and 125 when performing inter-prediction.
[0091] FIG. 2 is a block diagram of a video decoder according to one embodiment of the present invention.
[0092] Referring to FIG. 2, the video decoder 200 may include an entropy decoding unit 210, a reordering unit 215, an inverse quantization unit 220, an inverse transform unit 225, prediction units 230 and 235, a filter unit 240, and a memory 245.
[0093] When a video bitstream is input from a video encoder, the input bitstream may be decoded using a process that is the reverse of that used by the video encoder.
[0094] The entropy decoding unit 210 may perform entropy decoding by a process reverse to the entropy encoding performed by the entropy encoding unit of the video encoder. For example, various methods such as Exponential Golomb, CAVLC (Context-Adaptive Variable Length Coding), and CABAC (Context-Adaptive Binary Arithmetic Coding) may be applied in response to the method performed by the video encoder.
[0095] The entropy decoding unit 210 may decode information related to the intra prediction and inter prediction performed by the encoder.
[0096] The reordering unit 215 may reorder the bit stream entropy decoded by the entropy decoding unit 210 based on the method used by the encoding unit to reorder the bit stream. The reordering unit 215 may restore coefficients expressed in a one-dimensional vector shape to two-dimensional block-shaped coefficients and reorder the coefficients. The reordering unit 215 may receive information on coefficient scanning performed in the encoding unit and perform reordering by a method of scanning in reverse based on the scanning order performed in the encoding unit.
[0097] The inverse quantization unit 220 may perform inverse quantization based on the quantization parameter provided by the encoder and the coefficient values of the reordered block.
[0098] The inverse transform unit 225 may perform an inverse transform, i.e., an inverse DCT or inverse DST, of the transform performed by the transform unit, i.e., DCT or DST, on the quantization result performed by the video encoder. Here, the DCT transform core may include at least one of DCT2 or DCT8, and the DST transform core may include DST7. Alternatively, if the transform is skipped in the video encoder, the inverse transform unit 225 may not perform the inverse transform. The inverse transform may be performed based on a transmission unit determined by the video encoder. The inverse transform unit 225 of the video decoder may selectively perform a transform technique (e.g., DCT or DST) depending on a plurality of pieces of information, such as a prediction method, a size of a current block, and a prediction direction.
[0099] The prediction units 230 and 235 may generate a prediction block based on prediction block generation related information provided by the entropy decoding unit 210 and previously decoded block or picture information provided by the memory 245 .
[0100] As described above, when performing intra prediction, similar to the operation of a video encoder, if the size of the prediction unit and the size of the transform unit are the same, intra prediction for the prediction unit is performed based on the pixel on the left side, the pixel on the top left side, and the pixel on the top side, but if the size of the prediction unit and the size of the transform unit are different, intra prediction may be performed using reference pixels based on the transform unit. Also, intra prediction using N×N division may be used only for the minimum coding unit.
[0101] The prediction unit 230, 235 may include a prediction unit discrimination unit, an inter prediction unit, and an intra prediction unit. The prediction unit discrimination unit may receive various information such as prediction unit information input from the entropy decoding unit 210, prediction mode information of the intra prediction method, and motion prediction related information of the inter prediction method, and may classify a prediction unit from a current coding unit and determine whether the prediction unit performs inter prediction or intra prediction. The inter prediction unit 230 may perform inter prediction for the current prediction unit based on information included in at least one of a picture before or after the current picture including the current prediction unit, using information required for inter prediction of the current prediction unit provided from the video encoder. Alternatively, the inter prediction may be performed based on information of a part of an area previously restored in the current picture including the current prediction unit.
[0102] To perform inter prediction, it may be determined based on a coding unit whether the motion prediction method of the prediction unit included in the coding unit is one of skip mode, merge mode, motion vector prediction mode (AMVP mode), or intra block copy mode.
[0103] The intra prediction unit 235 may generate a prediction block based on pixel information in the current picture. When the prediction unit is a prediction unit in which intra prediction has been performed, the intra prediction may be performed based on intra prediction mode information of the prediction unit provided from the video encoder. The intra prediction unit 235 may include an AIS (Adaptive Intra Smoothing) filter, a reference pixel interpolation unit, and a DC filter. The AIS filter may determine whether or not to apply a filter according to the prediction mode of the current prediction unit as a part that performs filtering on the reference pixels of the current block, and may apply the filter. The AIS filtering may be performed on the reference pixels of the current block using the prediction mode and AIS filter information of the prediction unit provided from the video encoder. When the prediction mode of the current block is a mode in which AIS filtering is not performed, the AIS filter may not be applied.
[0104] The reference pixel interpolation unit may generate reference pixels of pixel units of less than an integer value by interpolating reference pixels when the prediction mode of the prediction unit is a prediction unit that performs intra prediction based on pixel values obtained by interpolating reference pixels. When the prediction mode of the current prediction unit is a prediction mode that generates a prediction block without interpolating reference pixels, the reference pixels may not be interpolated. When the prediction mode of the current block is a DC mode, the DC filter may generate a prediction block by filtering.
[0105] The reconstructed block or picture may be provided to a filter unit 240. The filter unit 240 may include a deblocking filter, an offset correction unit, and an ALF.
[0106] The video encoder may provide information on whether a deblocking filter has been applied to the block or picture, and, if a deblocking filter has been applied, information on whether a strong or weak filter has been applied. The deblocking filter of the video decoder may receive deblocking filter-related information provided by the video encoder and perform deblocking filtering on the block or picture.
[0107] The offset correction unit may perform offset correction on the restored video based on information on the type and value of offset correction applied to the video during encoding.
[0108] The ALF may be applied to a coding unit based on information received from the encoder about whether or not to apply the ALF, information about the ALF coefficients, etc. Such ALF information may be provided in a particular parameter set.
[0109] The memory 245 may store the reconstructed pictures or blocks to make them available as reference pictures or blocks, and may provide the reconstructed pictures to an output.
[0110]
[0111] FIG. 3 illustrates a basic coding tree unit according to an embodiment of the present invention.
[0112] A coding block of a maximum size may be defined as a coding tree block. One picture is divided into a plurality of coding tree units (CTUs). A coding tree unit is a coding unit of a maximum size, and may also be called an LCU (Largest Coding Unit). Figure 3 is a diagram showing an example in which one picture is divided into a plurality of coding tree units.
[0113] The size of the coding tree unit may be defined at the picture level or at the sequence level, and for this purpose, information indicating the size of the coding tree unit may be signaled via a picture parameter set or a sequence parameter set.
[0114] As an example, the coding tree unit size for all pictures in a sequence may be set to 128×128. Alternatively, at the picture level, the coding tree unit size may be determined to be either 128×128 or 256×256. As an example, the coding tree unit size for a first picture may be set to 128×128, and the coding tree unit size for a second picture may be set to 256×256.
[0115] A coding tree unit may be divided to generate coding blocks. The coding block indicates a basic unit for encoding / decoding processing. For example, prediction or transformation may be performed for each coding block, or a predictive coding mode may be determined for each coding block. Here, the predictive coding mode indicates a method of generating a predicted image. For example, the predictive coding mode may include intra prediction (Intra Prediction), inter prediction (Inter Prediction), current picture referencing (CPR or Intra Block Copy (IBC)), or combined prediction. A predictive block for a coding block may be generated using at least one predictive coding mode of intra prediction, inter prediction, current picture referencing, or combined prediction for the coding block.
[0116] Information indicating the predictive coding mode of the current block may be signaled via a bitstream. As an example, the information may be a one-bit flag indicating whether the predictive coding mode is intra mode or inter mode. Only if the predictive coding mode of the current block is determined to be inter mode, current picture reference or hybrid prediction is available.
[0117] The current picture reference is for setting the current picture as a reference picture and obtaining a prediction block of the current block from an area in the current picture that has already been coded / decoded. Here, the current picture means a picture including the current block. Information indicating whether the current picture reference is applied to the current block may be signaled via a bitstream. As an example, the information may be a 1-bit flag. If the flag is true, the prediction coding mode of the current block may be determined as the current picture reference, and if the flag is false, the prediction mode of the current block may be determined as inter prediction.
[0118] Alternatively, the predictive coding mode of the current block may be determined based on the reference picture index. As an example, if the reference picture index indicates the current picture, the predictive coding mode of the current block may be determined as current picture reference. If the reference picture index indicates another picture other than the current picture, the predictive coding mode of the current block may be determined as inter prediction. That is, the current picture reference is a prediction method using information of an area in the current picture that has been coded / decoded, and the inter prediction is a prediction method using information of another picture that has been coded / decoded.
[0119] Hybrid prediction refers to a coding mode that combines two or more of intra prediction, inter prediction, and current picture reference. For example, when hybrid prediction is applied, a first prediction block may be generated based on one of intra prediction, inter prediction, and current picture reference, and a second prediction block may be generated based on the other. When the first prediction block and the second prediction block are generated, a final prediction block may be generated by an average operation or a weighted sum operation of the first prediction block and the second prediction block. Information indicating whether hybrid prediction is applied may be signaled via a bitstream. The information may be a 1-bit flag.
[0120] FIG. 4 is a diagram showing various division shapes of a coding block.
[0121] A coding block may be partitioned into multiple coding blocks based on a quadtree partition, a binary tree partition, or a triple tree partition. The partitioned coding block may also be partitioned into multiple coding blocks based on a quadtree partition, a binary tree partition, or a triple tree partition.
[0122] Quadtree partitioning refers to a partitioning technique that divides the current block into four blocks. As a result of the quadtree partitioning, the current block may be divided into four square partitions (see “SPLIT_QT” in (a) of FIG. 4).
[0123] Binary tree splitting refers to a splitting technique for splitting a current block into two blocks. Splitting the current block into two blocks along the vertical direction (i.e., using a vertical line crossing the current block) may be referred to as vertical binary tree splitting, and splitting the current block into two blocks along the horizontal direction (i.e., using a horizontal line crossing the current block) may be referred to as horizontal binary tree splitting. As a result of the binary tree splitting, the current block may be split into two non-square partitions. (b) "SPLIT_BT_VER" in FIG. 4 shows the vertical binary tree split result, and (c) "SPLIT_BT_HOR" in FIG. 4 shows the horizontal binary tree split result.
[0124] Triple tree partitioning refers to a partitioning technique for partitioning the current block into three blocks. Partitioning the current block into three blocks along the vertical direction (i.e., using two vertical lines crossing the current block) may be referred to as vertical triple tree partitioning, and partitioning the current block into three blocks along the horizontal direction (i.e., using two horizontal lines crossing the current block) may be referred to as horizontal triple tree partitioning. As a result of the triple tree partitioning, the current block may be partitioned into three non-square partitions. In this case, the width / height of the partition located in the center of the current block may be twice as large as the width / height of the other partitions. (d) "SPLIT_TT_VER" in FIG. 4 shows the vertical triple tree partitioning result, and (e) "SPLIT_TT_HOR" in FIG. 4 shows the horizontal triple tree partitioning result.
[0125] The number of times a coding tree unit is divided may be defined as a partitioning depth. The maximum partitioning depth of a coding tree unit may be determined at a sequence or picture level. As a result, the maximum partitioning depth of a coding tree unit may differ for each sequence or picture.
[0126] Alternatively, the maximum partitioning depth for each partitioning technique may be determined separately. As an example, the maximum partitioning depth allowed for quad-tree partitioning may differ from the maximum partitioning depth allowed for binary tree partitioning and / or triple tree partitioning.
[0127] The encoder may signal information indicating at least one of a partition shape or a partition depth of the current block via a bitstream, and the decoder may determine the partition shape and partition depth of the coding tree unit based on information parsed from the bitstream.
[0128] FIG. 5 is a diagram illustrating an example of division of a coding tree unit.
[0129] Partitioning a coding block using partitioning techniques such as quad-tree partitioning, binary tree partitioning, and / or triple tree partitioning may be referred to as multi-tree partitioning.
[0130] A coding block generated by applying multi-tree partitioning to a coding block may be referred to as a sub-coding block. When the partitioning depth of a coding block is k, the partitioning depth of the sub-coding block is set to k+1.
[0131] Conversely, a coding block with a division depth of k may be referred to as a superior coding block relative to a coding block with a division depth of k+1.
[0132] The partition type of the current coding block may be determined based on at least one of a partition shape of an upper coding block or a partition type of a neighboring coding block. Here, the neighboring coding block is a block adjacent to the current coding block, and may include at least one of a top neighboring block, a left neighboring block, or a neighboring block adjacent to the top left corner of the current coding block. Here, the partition type may include at least one of whether or not quadtree partitioning should be applied, whether or not binary tree partitioning should be applied, a binary tree partitioning direction, whether or not triple tree partitioning should be applied, or a triple tree partitioning direction.
[0133] To determine the partition shape of the coding block, information indicating whether the coding block is to be partitioned may be signaled via the bitstream. The information is a 1-bit flag "split_cu_flag", and the flag being true indicates that the coding block is to be partitioned by the merge tree partitioning technique.
[0134] If split_cu_flag is true, information indicating whether the coding block is quadtree partitioned may be signaled via the bitstream. The information is a 1-bit flag split_qt_flag, and if the flag is true, the coding block may be split into 4 blocks.
[0135] 5, a coding tree unit is quadtree-divided to generate four coding blocks having a division depth of 1. Also, quadtree division is applied to the first and fourth coding blocks among the four coding blocks generated as a result of the quadtree division. As a result, four coding blocks having a division depth of 2 may be generated.
[0136] In addition, a coding block with a division depth of 3 may be generated by applying quadtree division to a coding block with a division depth of 2.
[0137] If quadtree partitioning is not applied to the coding block, it may be determined whether binary tree partitioning or triple tree partitioning is applied to the coding block, taking into account at least one of the following: the size of the coding block, whether the coding block is located on a picture boundary, the maximum partition depth, or the partition shape of a neighboring block. If it is determined that binary tree partitioning or triple tree partitioning is applied to the coding block, information indicating the partitioning direction may be signaled via the bitstream. The information may be a 1-bit flag mtt_split_cu_vertical_flag. Based on the flag, it may be determined whether the partitioning direction is vertical or horizontal. Furthermore, information indicating whether binary tree partitioning or triple tree partitioning is applied to the coding block may be signaled via the bitstream. The information may be a 1-bit flag mtt_split_cu_binary_flag. Based on the flag, it may be determined whether binary tree partitioning or triple tree partitioning is applied to the coding block.
[0138] As an example, in the example shown in FIG. 5, vertical binary tree partitioning is applied to a coding block with a partition depth of 1, and among the coding blocks generated as a result of the partitioning, vertical triple tree partitioning is applied to the left coding block, and vertical binary tree partitioning is applied to the right coding block.
[0139]
[0140] Inter prediction is a predictive coding mode that predicts a current block using information of a previous picture. As an example, a block (hereinafter, a collocated block) at the same position as the current block in the previous picture may be set as a prediction block of the current block. Hereinafter, a prediction block generated based on a block at the same position as the current block is referred to as a collocated prediction block.
[0141] On the other hand, if an object that existed in the previous picture moves to another position in the current picture, the current block may be effectively predicted using the motion of the object. For example, if the moving direction and size of the object can be known by comparing the previous picture with the current picture, a predicted block (or predicted image) of the current block may be generated taking into account the motion information of the object. Hereinafter, the predicted block generated using the motion information may be referred to as a motion predicted block.
[0142] A residual block may be generated by subtracting a predictive block from a current block, where, in the presence of object motion, the energy of the residual block may be reduced by using a motion predictive block instead of a collocated predictive block, thereby improving the compression performance of the residual block.
[0143] As described above, generating a prediction block using motion information may be referred to as motion compensated prediction. In most inter predictions, a prediction block may be generated based on motion compensated prediction.
[0144] The motion information may include at least one of a motion vector, a reference picture index, a prediction direction, or a bidirectional weight index. The motion vector indicates the moving direction and size of an object. The reference picture index identifies a reference picture of the current block among reference pictures included in a reference picture list. The prediction direction indicates one of unidirectional L0 prediction, unidirectional L1 prediction, or bidirectional prediction (L0 prediction and L1 prediction). Depending on the prediction direction of the current block, at least one of the motion information in the L0 direction or the motion information in the L1 direction may be used. The bidirectional weight index identifies a weight applied to the L0 prediction block and a weight applied to the L1 prediction block.
[0145] FIG. 6 is a flowchart of an inter-prediction method according to an embodiment of the present invention.
[0146] Referring to FIG. 6, the inter prediction method includes a step of determining an inter prediction mode of a current block (S601), a step of obtaining motion information of the current block based on the determined inter prediction mode (S602), and a step of performing motion compensation prediction for the current block based on the obtained motion information (S603).
[0147] Here, the inter prediction mode indicates various techniques for determining motion information of the current block, and may include an inter prediction mode using translation motion information and an inter prediction mode using affine motion information. As an example, the inter prediction mode using translation motion information may include a merge mode and a motion vector prediction mode, and the inter prediction mode using affine motion information may include an affine merge mode and an affine motion vector prediction mode. The motion information of the current block may be determined based on information parsed from a neighboring block adjacent to the current block or a bitstream depending on the inter prediction mode.
[0148] The inter-prediction method using affine motion information will now be described in detail.
[0149] FIG. 7 is a diagram illustrating the non-linear movement of an object.
[0150] There are cases where the movement of an object in an image is not linear. For example, as shown in FIG. 7, there are cases where nonlinear movement of an object occurs, such as camera zoom-in, zoom-out, rotation, or affine transformation. When nonlinear movement of an object occurs, the movement of the object cannot be effectively represented by a translational motion vector. Therefore, in a part where nonlinear movement of an object occurs, there are cases where affine motion is used instead of translational motion to improve coding efficiency.
[0151] FIG. 8 is a flowchart of an affine motion based inter-prediction method according to an embodiment of the present invention.
[0152] Whether or not the affine motion-based inter-prediction technique is applied to the current block may be determined based on information parsed from the bitstream. Specifically, whether or not the affine motion-based inter-prediction technique is applied to the current block may be determined based on at least one of a flag indicating whether or not the affine merge mode is applied to the current block or a flag indicating whether or not the affine motion vector prediction mode is applied to the current block.
[0153] When an affine motion based inter prediction technique is applied to a current block, an affine motion model of the current block may be determined (S801). The affine motion model may be determined to be at least one of a six-parameter affine motion model and a four-parameter affine motion model. The six-parameter affine motion model represents affine motion using six parameters, and the four-parameter affine motion model represents affine motion using four parameters.
[0154] Equation 1 expresses affine motion using six parameters. Affine motion indicates translational movement with respect to a given region determined by an affine seed vector.
[0155]
number
[0156] When affine motion is expressed using six parameters, complex motion may be expressed, but the number of bits required to encode each parameter may increase, resulting in reduced encoding efficiency. Therefore, affine motion may be expressed using four parameters. Equation 2 expresses affine motion using four parameters.
[0157]
number
[0158] Information for determining an affine motion model for a current block may be coded and signaled via a bitstream. As an example, the information may be a 1-bit flag "affine_type_flag". A value of 0 of the flag may indicate that a 4-parameter affine motion model is applied, and a value of 1 of the flag may indicate that a 6-parameter affine motion model is applied. The flag may be coded on a slice, tile or block (e.g., coding block or coding tree unit) basis. If the flag is signaled at the slice level, the affine motion model determined at the slice level may be applied to all of the blocks belonging to the slice.
[0159] Alternatively, the affine motion model of the current block may be determined based on the affine inter prediction mode of the current block. As an example, when an affine merge mode is applied, the affine motion model of the current block may be determined to be a four-parameter motion model. On the other hand, when an affine motion vector prediction mode is applied, information for determining the affine motion model of the current block may be encoded and signaled via a bitstream. As an example, when an affine motion vector prediction mode is applied to the current block, the affine motion model of the current block may be determined based on a 1-bit flag "affine_type_flag".
[0160] Next, an affine seed vector for the current block may be derived (S802). If a four-parameter affine motion model is selected, motion vectors at two control points of the current block may be derived. On the other hand, if a six-parameter affine motion model is selected, motion vectors at three control points of the current block may be derived. The motion vectors at the control points may be referred to as affine seed vectors. The control points may include at least one of the top left corner, the top right corner, or the bottom left corner of the current block.
[0161] FIG. 9 is a diagram illustrating affine seed vectors for different affine motion models.
[0162] In a four-parameter affine motion model, an affine seed vector may be derived for two of the top left corner, the top right corner, or the bottom left corner. As an example, as shown in FIG. 9(a), when a four-parameter affine motion model is selected, an affine vector may be derived using an affine seed vector sv0 for the top left corner of the current block (e.g., the top left sample (x1, y1)) and an affine seed vector sv1 for the top right corner of the current block (e.g., the top right sample (x1, y1)). It is also possible to use an affine seed vector for the bottom left corner instead of the affine seed vector for the top left corner, or to use an affine seed vector for the bottom left corner instead of the affine seed vector for the top right corner.
[0163] In a six-parameter affine motion model, affine seed vectors for the top left corner, the top right corner, and the bottom left corner may be derived. For example, as shown in FIG. 9B, when a six-parameter affine motion model is selected, an affine vector may be derived using an affine seed vector sv0 for the top left corner of the current block (e.g., top left sample (x1, y1)), an affine seed vector sv1 for the top right corner of the current block (e.g., top left sample (x1, y1)), and an affine seed vector sv2 for the top left corner of the current block (e.g., top left sample (x2, y2)).
[0164] In the embodiment described later, under the four-parameter affine motion model, the affine seed vectors of the upper left and upper right control points are referred to as the first and second affine seed vectors, respectively. In the embodiment described later that uses the first and second affine seed vectors, the affine seed vector of the lower left control point (third affine seed vector) or the affine seed vector of the lower right control point (fourth affine seed vector) may be used instead of at least one of the first and second affine seed vectors.
[0165] Moreover, under the six-parameter affine motion model, the affine seed vectors of the top-left control point, the top-right control point, and the bottom-left control point are referred to as the first affine seed vector, the second affine seed vector, and the third affine seed vector, respectively. In an embodiment using the first affine seed vector, the second affine seed vector, and the third affine seed vector described below, the affine seed vector of the bottom-right control point (fourth affine seed vector) may be used instead of at least one of the first affine seed vector, the second affine seed vector, and the third affine seed vector.
[0166] An affine vector may be derived for each sub-block using the affine seed vector (S803). Here, the affine vector refers to a translational motion vector derived based on the affine seed vector. The affine vector of the sub-block may be referred to as an affine sub-block motion vector or a sub-block motion vector.
[0167] FIG. 10 is a diagram illustrating affine vectors of sub-blocks under a four-parameter motion model.
[0168] The affine vector of the sub-block may be derived based on the position of the control point, the position of the sub-block, and the affine seed vector. As an example, Equation 3 shows an example of deriving an affine sub-block motion vector.
[0169]
number
[0170] In Equation 3, (x, y) indicates the position of a sub-block. Here, the position of the sub-block indicates the position of a reference sample included in the sub-block. The reference sample may be a sample located at the upper left corner of the sub-block, or a sample whose x-axis or y-axis coordinate is at the center. (x0, y0) indicates the position of a first control point, and (sv0x, sv0y) indicates the first affine seed vector. In addition, (x1, y1) indicates the position of a second control point, and (sv1x, sv1y) indicates the second affine seed vector.
[0171] If the first and second control points correspond to the top-left and top-right corners of the current block, respectively, x1-x0 may be set to a value equal to the width of the current block.
[0172] Next, a motion compensated prediction may be performed for each subblock using the affine vector of each subblock (S804). As a result of the motion compensated prediction, a predicted block for each subblock may be generated. The predicted block of the subblock may be set as the predicted block of the current block.
[0173] The affine seed vector of the current block may be derived based on the affine seed vector of a neighboring block adjacent to the current block. If the inter prediction mode of the current block is an affine merge mode, the affine seed vector of a merge candidate included in the merge candidate list may be determined as the affine seed vector of the current block. In addition, if the inter prediction mode of the current block is an affine merge mode, motion information including at least one of a reference picture index, a specific direction prediction flag, or a bidirectional weighting value of the current block may also be set similarly to the merge candidate.
[0174]
[0175] Next, the inter-prediction method using translational motion information will be described in detail.
[0176] The motion information of the current block may be derived from the motion information of the current block and another block. Here, the other block may be a block that has been encoded / decoded by inter prediction prior to the current block. Setting the motion information of the current block to be the same as the motion information of another block may be defined as a merge mode. Also, setting the motion vector of another block as a predicted value of the motion vector of the current block may be defined as a motion vector prediction mode.
[0177] FIG. 11 is a flowchart of a process for deriving motion information of a current block in the merge mode.
[0178] Merge candidates for a current block may be derived (S1101). The merging candidates for the current block may be derived from blocks that have been coded / decoded using inter prediction prior to the current block.
[0179] FIG. 12 is a diagram illustrating candidate blocks used to derive merge candidates.
[0180] The candidate block may include at least one of a neighboring block including a sample adjacent to the current block or a non-neighboring block including a sample not adjacent to the current block. Hereinafter, a sample determining a candidate block is defined as a reference sample. Also, a reference sample adjacent to the current block is referred to as a neighboring reference sample, and a reference sample not adjacent to the current block is referred to as a non-neighboring reference sample.
[0181] The neighboring reference sample may be included in a neighboring column of the leftmost column of the current block or a neighboring row of the topmost row of the current block. As an example, when the coordinates of the topmost left sample of the current block are (0,0), at least one of a block including a reference sample at a position (-1,H-1), a block including a reference sample at a position (W-1,-1), a block including a reference sample at a position (W,-1), a block including a reference sample at a position (-1,H), or a block including a reference sample at a position (-1,-1) may be used as a candidate block. Referring to the drawing, neighboring blocks with indexes 0 to 4 may be used as candidate blocks.
[0182] The non-neighboring reference sample indicates a sample having at least one of the x-axis distance or y-axis distance from a reference sample adjacent to the current block having a predefined value. As an example, at least one of a block including a reference sample having a predefined x-axis distance from the left reference sample, a block including a non-neighboring sample having a predefined y-axis distance from the top reference sample, or a block including a non-neighboring sample having predefined x-axis distance and y-axis distance from the top left reference sample may be used as a candidate block. The predefined value may be a natural number such as 4, 8, 12, 16, etc. Referring to the drawing, at least one of blocks with indexes 5 to 26 may be used as a candidate block.
[0183] A sample that is not located on the same vertical, horizontal or diagonal line as a neighboring reference sample can also be set as a non-neighboring reference sample.
[0184] The motion information of the merging candidate may be set to be the same as the motion information of the candidate block. For example, at least one of a motion vector, a reference picture index, a prediction direction, or a bidirectional weight index of the candidate block may be set to the motion information of the merging candidate.
[0185] A merge candidate list may be generated that includes the merge candidates (S1102).
[0186] The indices of the merge candidates in the merge candidate list may be assigned according to a predefined order, such as the following order: merge candidates derived from the left neighboring block, merge candidates derived from the top neighboring block, merge candidates derived from the top right neighboring block, merge candidates derived from the bottom left neighboring block, merge candidates derived from the top left neighboring block, and merge candidates derived from the temporal neighboring blocks.
[0187] When multiple merging candidates are included in the merging candidate list, at least one of the multiple merging candidates may be selected (S1103). Specifically, information for identifying one of the multiple merging candidates may be signaled via the bitstream. As an example, information merge_idx indicating an index of one of the merging candidates included in the merging candidate list may be signaled via the bitstream.
[0188]
[0189] If the number of merge candidates included in the merge candidate list is less than a threshold, the motion information candidates included in the motion information table may be added to the merge candidate list as merge candidates. Here, the threshold may be the maximum number of merge candidates that the merge candidate list may include or the maximum number of merge candidates minus an offset. The offset may be a natural number such as 1 or 2.
[0190] The motion information table includes motion information candidates derived from blocks in a current picture that are encoded / decoded based on inter prediction. For example, the motion information of the motion information candidates included in the motion information table may be set to be the same as the motion information of blocks that are encoded / decoded based on inter prediction. Here, the motion information may include at least one of a motion vector, a reference picture index, a prediction direction, or a bidirectional weighted value index.
[0191] The motion information candidates included in the motion information table may also be referred to as inter-region merging candidates or prediction region merging candidates.
[0192] The maximum number of motion information candidates that the motion information table may include may be predefined in the encoder and decoder. As an example, the maximum number of motion information candidates that the motion information table may include may be 1, 2, 3, 4, 5, 6, 7, 8, or more (e.g., 16).
[0193] Alternatively, information indicating a maximum number of motion information candidates that the motion information table may contain may be signaled via a bitstream. The information may be signaled at a sequence, picture, or slice level. The information may indicate a maximum number of motion information candidates that the motion information table may contain. Or, the information may indicate a difference between a maximum number of motion information candidates that the motion information table may contain and a maximum number of merge candidates that the merge candidate list may contain.
[0194] Alternatively, the maximum number of motion information candidates that the motion information table may include may be determined depending on the size of a picture, a slice, or a coding tree unit.
[0195] The motion information table may be initialized per picture, slice, tile, brick, coding tree unit, or coding tree unit line (row or column). As an example, when a slice is initialized, the motion information table is also initialized, and the motion information table may not include any motion information candidates.
[0196] Alternatively, information indicating whether to initialize the motion information table may be signaled via a bitstream. The information may be signaled at a slice, tile, brick, or block level. A pre-configured motion information table may be used until the information indicates to initialize the motion information table.
[0197] Alternatively, information about the initial motion information candidate may be signaled through a picture parameter set or a slice header. Even when a slice is initialized, the motion information table may include the initial motion information candidate. This may cause the initial motion information candidate to be used even for the first block to be coded / decoded in the slice.
[0198] Alternatively, a motion information candidate included in the motion information table of the previous coding tree unit may be set as the initial motion information candidate. For example, a motion information candidate with the smallest index or the largest index among the motion information candidates included in the motion information table of the previous coding tree unit may be set as the initial motion information candidate.
[0199] The blocks are coded / decoded according to the coding / decoding order, and in this case, the blocks coded / decoded based on inter prediction may be set as motion information candidates in order according to the coding / decoding order.
[0200] FIG. 13 is a diagram for explaining an update mode of the motion information table.
[0201] When inter prediction is performed on the current block (S1301), a motion information candidate may be derived based on the current block (S1302). The motion information of the motion information candidate may be set to be the same as the motion information of the current block.
[0202] If the motion information table is empty (S1303), motion information candidates derived based on the current block may be added to the motion information table (S1304).
[0203] If the motion information table already includes motion information candidates (S1303), a redundancy check may be performed on the motion information of the current block (or a motion information candidate derived based on the motion information) (S1305). The redundancy check is performed to determine whether the motion information of the motion information candidate pre-stored in the motion information table is the same as the motion information of the current block. The redundancy check may be performed on all motion information candidates pre-stored in the motion information table. Alternatively, the redundancy check may be performed on motion information candidates with indexes greater than or equal to a threshold value among the motion information candidates pre-stored in the motion information table. Alternatively, the redundancy check may be performed on a predefined number of motion information candidates. As an example, two motion information candidates with small indexes or two motion information candidates with large indexes may be determined as the targets of the redundancy check.
[0204] If the motion information candidate having the same motion information as the motion information of the current block is not included, the motion information candidate derived based on the current block may be added to the motion information table (S1308). Whether the motion information candidates are the same may be determined based on whether the motion information (e.g., motion vectors and / or reference picture indexes, etc.) of the motion information candidates are the same.
[0205] In this case, if the maximum number of motion information candidates are already stored in the motion information table (S1306), the oldest motion information candidate is deleted (S1307), and a motion information candidate derived based on the current block may be added to the motion information table (S1308). Here, the oldest motion information candidate may be the motion information candidate with the highest index or the motion information candidate with the lowest index.
[0206] Each motion information candidate may be identified by an index. When a motion information candidate derived from a current block is added to the motion information table, the lowest index (e.g., 0) may be assigned to the motion information candidate, and the indexes of pre-stored motion information candidates may be incremented by 1. In this case, if the maximum number of motion information candidates are already stored in the motion information table, the motion information candidate with the highest index is removed.
[0207] Alternatively, when a motion information candidate derived from the current block is added to the motion information table, the largest index may be assigned to the motion information candidate. For example, if the number of motion information candidates pre-stored in the motion information table is less than the maximum value, the motion information candidate may be assigned an index with a value equal to the number of pre-stored motion information candidates. Alternatively, if the number of motion information candidates pre-stored in the motion information table is equal to the maximum value, the motion information candidate may be assigned an index obtained by subtracting 1 from the maximum value. Also, the motion information candidate with the smallest index is removed, and the indexes of the remaining pre-stored motion information candidates are decremented by 1.
[0208] FIG. 14 is a diagram showing an update state of the motion information table.
[0209] It is assumed that the motion information candidate derived from the current block is added to the motion information table, the largest index is assigned to the motion information candidate, and the maximum number of motion information candidates is already stored in the motion information table.
[0210] When adding the motion information candidate HmvpCand[n+1] derived from the current block to the motion information table HmvpCandList, the motion information candidate HmvpCand[0] with the smallest index among the pre-stored motion information candidates may be deleted, and the indexes of the remaining motion information candidates may be decremented by 1. Also, the index of the motion information candidate HmvpCand[n+1] derived from the current block may be set to the maximum value (n in the example shown in FIG. 14).
[0211] If the same motion information candidate as the motion information candidate derived based on the current block is pre-stored (S1305), the motion information candidate derived based on the current block may not be added to the motion information table (S1309).
[0212] Alternatively, the motion information candidate derived based on the current block may be added to the motion information table, and the previously stored motion information candidate may be removed, which has the same effect as updating the index of the previously stored motion information candidate.
[0213] FIG. 15 is a diagram showing an example in which the indices of pre-stored motion information candidates are updated.
[0214] When the index of a pre-stored motion information candidate identical to the motion information candidate mvCand derived based on the current block is hIdx, the pre-stored motion information candidate may be deleted, and the index of a motion information candidate having an index greater than hIdx may be decremented by 1. As an example, in the example shown in Figure 15, HmvpCand[2] identical to mvCand is deleted from the motion information table HvmpCandList, and the indexes from HmvpCand[3] to HmvpCand[n] are decremented by 1.
[0215] In addition, the motion information candidate mvCand derived based on the current block may be added to the end of the motion information table.
[0216] Alternatively, an index assigned to a pre-stored motion information candidate that is the same as the motion information candidate derived based on the current block may be updated, for example, the index of the pre-stored motion information candidate may be changed to a minimum or maximum value.
[0217] The motion information of a block included in a predetermined area may be set not to be added to the motion information table. As an example, a motion information candidate derived based on the motion information of a block included in the merge processing area may not be added to the motion information table. Since the encoding / decoding order is not defined for the block included in the merge processing area, it is inappropriate to use any one of the motion information when inter-predicting another block. Therefore, the motion information candidate derived based on the block included in the merge processing area may not be added to the motion information table.
[0218] Alternatively, the motion information of a block smaller than a preset size may be set not to be added to the motion information table. For example, motion information of a coding block whose width or height is smaller than 4 or 8, or motion information candidates derived based on motion information of a coding block of 4×4 size may not be added to the motion information table.
[0219] It may also be determined whether or not to use the current block as a motion information candidate based on the inter prediction mode of the current block. For example, a block encoded / decoded based on an affine motion model may be set as unavailable as a motion information candidate. As a result, even if the current block is encoded / decoded by inter prediction, if the inter prediction mode of the current block is an affine prediction mode, the motion information table may not be updated based on the current block.
[0220] A motion information candidate may be set to include additional information other than motion information. For example, at least one of block size, shape, or block partition information may be additionally stored for the motion information candidate. When constructing a merge candidate list for a current block, only motion information candidates having the same or similar size, shape, or partition information as the current block may be used, or motion information candidates having the same or similar size, shape, or partition information as the current block may be added to the merge candidate list first.
[0221] If the number of merge candidates included in the merge candidate list of the current block is less than a threshold, the motion information candidates included in the motion information table may be added to the merge candidate list as merge candidates. The addition process may be performed according to the order in which the motion information candidates are sorted in ascending or descending order. For example, the motion information candidate with the largest index may be added to the merge candidate list of the current block.
[0222] When adding a motion information candidate included in the motion information table to the merge candidate list, a check for overlap between the motion information candidate and a merge candidate previously stored in the merge candidate list may be performed. As a result of the overlap check, a motion information candidate having the same motion information as a previously stored merge candidate may not be added to the merge candidate list.
[0223] The duplication check may be performed only on some of the motion information candidates included in the motion information table. For example, the duplication check may be performed only on the motion information candidates whose indexes are greater than or equal to a threshold value or less than or equal to a threshold value. Alternatively, the duplication check may be performed only on the N motion information candidates whose indexes are the largest or the N motion information candidates whose indexes are the smallest.
[0224] Alternatively, the overlap check may be performed only on some of the merge candidates pre-stored in the merge candidate list. For example, the overlap check may be performed only on merge candidates whose index is equal to or greater than a threshold or equal to or less than a threshold, or on merge candidates derived from a block at a specific position. Here, the specific position may include at least one of a left neighboring block, a top neighboring block, a right top neighboring block, or a left bottom neighboring block of the current block.
[0225] FIG. 16 is a diagram illustrating an example in which overlap checking is performed on only a portion of the merge candidates.
[0226] When a motion information candidate HmvpCand[j] is to be added to the merge candidate list, it may undergo a duplicate check with the two merge candidates with the highest indices, mergeCandList[NumMerge-2] and mergeCandList[NumMerge-1], where NumMerge may indicate the number of available spatial and temporal merge candidates.
[0227] Unlike the illustrated example, when adding a motion information candidate HmvpCand[j] to the merge candidate list, the motion information candidate may be checked for overlap with up to two merge candidates with the smallest indices. For example, it may be checked whether mergeCandList[0] and mergeCandList[1] are the same as HmvpCand[j].
[0228] Alternatively, the overlap check may be performed only on merge candidates derived from a specific position. For example, the overlap check may be performed on at least one of merge candidates derived from neighboring blocks located to the left of the current block or merge candidates derived from neighboring blocks located at the top of the current block. If there is no merge candidate derived from a specific position in the merge candidate list, the motion information candidate may be added to the merge candidate list without the overlap check.
[0229] When a motion information candidate HmvpCand[j] is to be added to the merge candidate list, the motion information candidate may be subjected to a duplication check with the two merge candidates with the highest indices, mergeCandList[NumMerge-2] and mergeCandList[NumMerge-1], where NumMerge may indicate the number of available spatial and temporal merge candidates.
[0230] The overlap check with the merge candidate may be performed only on some of the motion information candidates. For example, the overlap check may be performed only on N motion information candidates with larger indexes or N motion information candidates with smaller indexes among the motion information candidates included in the motion information table. For example, the overlap check may be performed only on motion information candidates having an index whose difference with the number of motion information candidates included in the motion information table is equal to or smaller than a threshold. If the threshold is 2, the overlap check may be performed only on the three motion information candidates with the largest index values among the motion information candidates included in the motion information table. The overlap check may be omitted for motion information candidates other than the three motion information candidates. If the overlap check is omitted, the motion information candidate may be added to the merge candidate list regardless of whether it has the same motion information as the merge candidate.
[0231] Conversely, it may be set so that the duplication check is performed only on motion information candidates having an index whose difference with the number of motion information candidates included in the motion information table is equal to or greater than a threshold value.
[0232] The number of motion information candidates for which the redundancy check is performed may be predefined in the encoder and decoder. For example, the threshold may be an integer such as 0, 1 or 2.
[0233] Alternatively, the threshold may be determined based on at least one of the number of merging candidates included in the merging candidate list or the number of motion information candidates included in the motion information table.
[0234] When a merge candidate identical to the first motion information candidate is found, the overlap check with the merge candidate identical to the first motion information candidate may be omitted when checking for overlap with the second motion information candidate.
[0235] FIG. 17 is a diagram showing an example in which overlap checking with a specific merging candidate is omitted.
[0236] When adding a motion information candidate HmvpCand[i] with index i to the merge candidate list, a check is performed for overlap between the motion information candidate and merge candidates previously stored in the merge candidate list. In this case, if a merge candidate mergeCandList[j] identical to the motion information candidate HmvpCand[i] is found, the motion information candidate HmvpCand[i] may not be added to the merge candidate list, and an overlap check may be performed between the motion information candidate HmvpCand[i-1] with index i-1 and the merge candidate. In this case, the overlap check between the motion information candidate HmvpCand[i-1] and the merge candidate mergeCandList[j] may be omitted.
[0237] For example, in the example shown in Figure 17, HmvpCand[i] and mergeCandList[2] are determined to be the same. As a result, HmvpCand[i] is not added to the merge candidate list, and a duplication check may be performed on HmvpCand[i-1]. In this case, the duplication check between HmvpCand[i-1] and mergeCandList[2] may be omitted.
[0238] If the number of merge candidates included in the merge candidate list of the current block is less than a threshold, the merge candidate list may further include at least one of pairwise merge candidates or zero merge candidates in addition to the motion information candidates. A pairwise merge candidate is a merge candidate having a motion vector obtained by averaging the motion vectors of two or more merge candidates, and a zero merge candidate is a merge candidate whose motion vector is zero.
[0239] The current block's merge candidate list may be populated with merge candidates in the following order:
[0240] Spatial merge candidate - Temporal merge candidate - Motion information candidate - (Affine motion information candidate) - Pairwise merge candidate - Zero merge candidate
[0241] The spatial merge candidate refers to a merge candidate derived from at least one of a neighboring block or a non-neighboring block, and the temporal merge candidate refers to a merge candidate derived from a previous reference picture. The affine motion information candidate refers to a motion information candidate derived from a block that is coded / decoded as an affine motion model.
[0242]
[0243] The motion information table may also be used in the motion vector prediction mode. For example, if the number of motion vector prediction candidates included in the motion vector prediction candidate list of the current block is less than a threshold, the motion information candidates included in the motion information table may be set as motion vector prediction candidates for the current block. Specifically, the motion vector of the motion information candidate may be set as a motion vector prediction candidate.
[0244] When one of the motion vector prediction candidates included in the motion vector prediction candidate list of the current block is selected, the selected candidate may be set as the motion vector predictor of the current block. Then, after decoding the motion vector residual value of the current block, the motion vector predictor and the motion vector residual value may be summed to obtain the motion vector of the current block.
[0245] The motion vector prediction candidate list for the current block may be constructed according to the following order:
[0246] Spatial motion vector prediction candidate-Temporal motion vector prediction candidate-Motion information candidate-(Affine motion information candidate)-Zero motion vector prediction candidate
[0247] The spatial motion vector prediction candidate refers to a motion vector prediction candidate derived from at least one of a neighboring block or a non-neighboring block, and the temporal motion vector prediction candidate refers to a motion vector prediction candidate derived from a previous reference picture. The affine motion information candidate refers to a motion information candidate derived from a block encoded / decoded as an affine motion model. The zero motion vector prediction candidate refers to a candidate whose motion vector value is 0.
[0248]
[0249] A merge processing area having a size larger than that of a coding block may be defined. The coding blocks included in the merge processing area may be processed in parallel, not sequentially encoded / decoded. Here, not sequentially encoded / decoded means that the encoding / decoding order is not defined. Thus, the encoding / decoding process of the blocks included in the merge processing area may be processed independently. Alternatively, the blocks included in the merge processing area may share merge candidates. Here, the merge candidates may be derived based on the merge processing area.
[0250] Due to the above characteristics, the merge processing region can also be called a parallel processing region, a shared merge region (SMR) or a merge estimation region (MER).
[0251] Merge candidates for the current block may be derived based on coding blocks. However, if the current block is included in a merge processing area that is larger than the current block, candidate blocks included in the same merge processing area as the current block may be set as unavailable as merge candidates.
[0252] FIG. 18 is a diagram showing an example in which a candidate block included in the same merge processing area as the current block is set as unavailable as a merge candidate.
[0253] In the example shown on the left side of Fig. 18, when encoding / decoding CU5, a block including a reference sample adjacent to CU5 may be set as a candidate block. In this case, candidate blocks X3 and X4 included in the same merge processing area as CU5 may be set as unavailable as merge candidates for CU5. On the other hand, candidate blocks X0, X1, and X2 not included in the same merge processing area as CU5 may be set as available as merge candidates.
[0254] In the example shown on the right side of Fig. 18, when encoding / decoding CU8, a block including a reference sample adjacent to CU8 may be set as a candidate block. In this case, candidate blocks X6, X7, and X8 included in the same merge processing area as CU8 may be set as unavailable as merge candidates. On the other hand, candidate blocks X5 and X9 not included in the same merge area as CU8 may be set as available as merge candidates.
[0255] Alternatively, when the current block is included in the merge processing region, neighboring blocks adjacent to the current block and neighboring blocks adjacent to the merge processing region may be set as candidate blocks.
[0256] FIG. 19 is a diagram showing an example of deriving merge candidates for a current block when the current block is included in a merge processing area.
[0257] As shown in the example of FIG. 19(a), a neighboring block adjacent to a current block may be set as a candidate block for deriving a merge candidate for the current block. In this case, a candidate block included in the same merge processing area as the current block may be set as unavailable as a merge candidate. As an example, when deriving a merge candidate for a coding block CU3, an upper neighboring block y3 and a right upper neighboring block y4 included in the same merge processing area as the coding block CU3 may be set as unavailable as a merge candidate for the coding block CU3.
[0258] Neighboring blocks adjacent to the current block may be scanned according to a predefined order to derive merge candidates. As an example, the predefined order may be y1, y3, y4, y0, and y2.
[0259] When the number of merging candidates that may be derived from neighboring blocks adjacent to the current block is less than the maximum number of merging candidates or the maximum number minus an offset, merging candidates for the current block may be derived using neighboring blocks adjacent to the merge processing region, as in the example illustrated in (b) of FIG. 19. As an example, neighboring blocks adjacent to the merge processing region including the coding block CU3 may be set as candidate blocks for the coding block CU3. Here, the neighboring blocks adjacent to the merge processing region may include at least one of the left neighboring block x1, the top neighboring block x3, the bottom left neighboring block x0, the top right neighboring block x4, or the top left neighboring block x2.
[0260] Neighboring blocks adjacent to the merging processing region may be scanned according to a predefined order to derive merging candidates. As an example, the predefined order may be x1, x3, x4, x0, and x2.
[0261] In summary, merging candidates for coding block CU3 included in the merging processing region may be derived by scanning the candidate blocks according to the following scan order:
[0262] (y1,y3,y4,y0,y2,x1,x3,x4,x0,x2)
[0263] However, the above exemplary scan order of the candidate blocks is merely an example of the present invention, and the candidate blocks may be scanned in an order different from the above exemplary order, or the scan order may be adaptively determined based on at least one of the size and shape of the current block or the merge processing region.
[0264] The merge region may be square or non-square. Information for determining the merge region may be signaled via the bitstream. The information may include at least one of information indicating a shape of the merge region or information indicating a size of the merge region. If the merge region is non-square, at least one of information indicating a size of the merge region, information indicating a width and / or height of the merge region, or information indicating a ratio of the width and height of the merge region may be signaled via the bitstream.
[0265] The size of the merging region may be determined based on at least one of the following: information signaled via the bitstream, picture resolution, slice size, or tile size.
[0266] When motion compensation prediction is performed on a block included in the merge processing area, motion information candidates derived based on the motion information of the block on which motion compensation prediction is performed may be added to the motion information table.
[0267] However, when adding a motion information candidate derived from a block included in the merge processing area to the motion information table, a case may occur in which the motion information candidate derived from the block is used when encoding / decoding another block in the merge processing area that is actually slower to be encoded / decoded than the block. That is, when encoding / decoding a block included in the merge processing area, even though it is necessary to eliminate the dependency between blocks, a case may occur in which motion prediction compensation is performed using motion information of another block included in the merge processing area. To solve this problem, even if encoding / decoding of a block included in the merge processing area is completed, the motion information of the block that has been encoded / decoded may not be added to the motion information table.
[0268] Alternatively, the motion information table may be updated using only blocks at predefined positions within the merge processing area. The predefined positions may include at least one of a block located at the top left corner of the merge processing area, a block located at the top right corner, a block located at the bottom left corner, a block located at the bottom right corner, a block located in the center, a block adjacent to the right boundary, or a block adjacent to the bottom boundary. As an example, only the motion information of a block adjacent to the bottom right corner of the merge processing area may be updated to the motion information table, and the motion information of other blocks may not be updated to the motion information table.
[0269] Alternatively, after all blocks included in the merge processing area have been decoded, motion information candidates derived from the blocks may be added to the motion information table, i.e., the motion information table may not be updated while the blocks included in the merge processing area are being encoded / decoded.
[0270] For example, when motion compensation prediction is performed on a block included in a merge processing region, motion information candidates derived from the block may be added to a motion information table in a predefined order. Here, the predefined order may be determined according to a scan order of coding blocks in the merge processing region or a coding tree unit. The scan order may be at least one of a raster scan, a horizontal scan, a vertical scan, or a zigzag scan. Alternatively, the predefined order may be determined based on the motion information of each block or the number of blocks having the same motion information.
[0271] Alternatively, a motion information candidate containing unidirectional motion information may be added to the motion information table before a motion information candidate containing bidirectional motion information, or conversely, a motion information candidate containing bidirectional motion information may be added to the motion information table before a motion information candidate containing unidirectional motion information.
[0272] Alternatively, the motion information candidates may be added to the motion information table according to the order of most frequently used or least frequently used in the merge processing region or coding tree unit.
[0273] If the current block is included in the merge processing area and the number of merge candidates included in the merge candidate list of the current block is less than the maximum number, the motion information candidates included in the motion information table may be added to the merge candidate list. In this case, the motion information candidates derived from the blocks included in the same merge processing area as the current block may be set not to be added to the merge candidate list of the current block.
[0274] Alternatively, when the current block is included in the merge processing area, the motion information candidates included in the motion information table may be set not to be used, i.e., even if the number of merge candidates included in the merge candidate list of the current block is less than the maximum number, the motion information candidates included in the motion information table may not be added to the merge candidate list.
[0275] As another example, a motion information table for a merge processing area or a coding tree unit may be configured. This motion information table serves to temporarily store motion information of blocks included in the merge processing area. To distinguish between a general motion information table and a motion information table for a merge processing area or a coding tree unit, the motion information table for a merge processing area or a coding tree unit is referred to as a temporary motion information table. In addition, motion information candidates stored in the temporary motion information table are referred to as temporary motion information candidates.
[0276] FIG. 20 is a diagram showing a temporary motion information table.
[0277] A temporary motion information table may be configured for a coding tree unit or a merge processing region. When motion compensation prediction is performed on a current block included in a coding tree unit or a merge processing region, motion information of the block may not be added to the motion information table HmvpCandList. Instead, temporary motion information candidates derived from the block may be added to the temporary motion information table HmvpMERCandList. That is, temporary motion information candidates added to the temporary motion information table may not be added to the motion information table. As a result, the motion information table may not include motion information candidates derived based on the motion information of blocks included in the coding tree unit or merge processing region including the current block.
[0278] Alternatively, only motion information of some blocks included in the merge processing area may be added to the temporary motion information table. As an example, only blocks at predefined positions in the merge processing area may be used to update the motion information table. The predefined positions may include at least one of a block located at the upper left corner, a block located at the upper right corner, a block located at the lower left corner, a block located at the lower right corner, a block located in the center, a block adjacent to the right boundary, or a block adjacent to the bottom boundary in the merge processing area. As an example, only motion information of a block adjacent to the lower right corner in the merge processing area may be added to the temporary motion information table, and motion information of other blocks may not be added to the temporary motion information table.
[0279] The maximum number of temporary motion information candidates that the temporary motion information table may include may be set to be the same as the maximum number of motion information candidates that the motion information table may include, or may be determined according to the size of a coding tree unit or a merge processing area, or may be set to be less than the maximum number of motion information candidates that the motion information table may include.
[0280] A current block included in a coding tree unit or a merge processing area may be set not to use a temporary motion information table for the coding tree unit or the merge processing area. That is, if the number of merge candidates included in the merge candidate list of the current block is less than a threshold, the motion information candidates included in the motion information table may be added to the merge candidate list, and the temporary motion information candidates included in the temporary motion information table may not be added to the merge candidate list. As a result, motion information of other blocks included in the same coding tree unit or the same merge processing area as the current block may not be used for motion compensation prediction of the current block.
[0281] When the encoding / decoding of all blocks included in the coding tree unit or the merge processing area is completed, the motion information table and the temporary motion information table may be merged.
[0282] FIG. 21 is a diagram showing an example of merging a motion information table and a temporary motion information table.
[0283] When encoding / decoding of all blocks included in a coding tree unit or a merge processing area is completed, the temporary motion information candidates included in the temporary motion information table may be updated to the motion information table, as shown in the example of FIG. 21.
[0284] In this case, the temporary motion information candidates included in the temporary motion information table may be added to the motion information table in the order in which they were inserted into the temporary motion information table (ie, in ascending or descending order of index values).
[0285] As another example, temporary motion information candidates included in the temporary motion information table may be added to the motion information table according to a predefined order. Here, the predefined order may be determined according to a scan order of coding blocks in a merge processing region or a coding tree unit. The scan order may be at least one of a raster scan, a horizontal scan, a vertical scan, or a zigzag scan. Alternatively, the predefined order may be determined based on the motion information of each block or the number of blocks having the same motion information.
[0286] Alternatively, a temporary motion information candidate including unidirectional motion information may be added to the motion information table before a temporary motion information candidate including bidirectional motion information, or conversely, a temporary motion information candidate including bidirectional motion information may be added to the motion information table before a temporary motion information candidate including unidirectional motion information.
[0287] Alternatively, the temporary motion information candidates may be added to the motion information table according to the order of most frequently used or least frequently used in the merge processing area or coding tree unit.
[0288] When adding a temporary motion information candidate included in the temporary motion information table to the motion information table, a duplication check may be performed on the temporary motion information candidate. For example, if a motion information candidate identical to the temporary motion information candidate included in the temporary motion information table is pre-stored in the motion information table, the temporary motion information candidate may not be added to the motion information table. In this case, the duplication check may be performed on some of the motion information candidates included in the motion information table. For example, the duplication check may be performed on motion information candidates whose index is equal to or greater than a threshold value or equal to or less than a threshold value. For example, if the temporary motion information candidate is identical to a motion information candidate having an index equal to or greater than a predefined value, the temporary motion information candidate may not be added to the motion information table.
[0289] A motion information candidate derived from a block included in the same coding tree unit or the same merge processing area as the current block may be restricted from being used as a merge candidate for the current block. For this purpose, block address information may be additionally stored for the motion information candidate. The block address information may include at least one of a block position, a block address, a block index, a position of a merge processing area including the block, an address of a merge processing area including the block, an index of a merge processing area including the block, a position of a coding tree area including the block, an address of a coding tree area including the block, or an index of a coding tree area including the block.
[0290]
[0291] Intra prediction is a method of predicting a current block using reconstructed samples that have been completely coded / decoded around the current block. In this case, reconstructed samples before an in-loop filter is applied may be used for intra prediction of the current block.
[0292] The intra prediction technique includes intra prediction based on a matrix and general intra prediction considering the direction with respect to the surrounding reconstructed samples. Information indicating the intra prediction technique of the current block may be signaled through a bitstream. The information may be a 1-bit flag. Alternatively, the intra prediction technique of the current block may be determined based on at least one of the position, size, shape, or intra prediction techniques of the current block or neighboring blocks. As an example, if the current block is located across a picture boundary, it may be set that the metric-based intra prediction is not applied to the current block.
[0293] Matrix-based intra prediction is a method of obtaining a prediction block of a current block based on matrix multiplication of a matrix prestored in an encoder and a decoder and a reconstructed sample around the current block. Information for identifying one of a plurality of prestored matrices may be signaled via a bitstream. The decoder may determine a matrix for intra prediction of the current block based on the information and the size of the current block.
[0294] General intra prediction is a method of obtaining a predicted block for a current block based on a non-directional intra prediction mode or a directional intra prediction mode. Hereinafter, a process of performing intra prediction based on general intra prediction will be described in more detail with reference to the accompanying drawings.
[0295] FIG. 22 is a flowchart of an intra prediction method according to one embodiment of the present invention.
[0296] A reference sample line of a current block may be determined (S2201). The reference sample line refers to a set of reference samples included in a line k-th away from the top and / or left side of the current block. The reference samples may be derived from reconstructed samples for which encoding / decoding around the current block has been completed.
[0297] Index information for identifying a reference sample line of a current block among a plurality of reference sample lines may be signaled through a bitstream. For example, index information intra_luma_ref_idx for identifying a reference sample line of a current block may be signaled through a bitstream. The index information may be signaled on a coding block basis.
[0298] The plurality of reference sample lines may include at least one of the top and / or left first, second, and third lines of the current block. Of the plurality of reference sample lines, a reference sample line consisting of a row adjacent to the top of the current block and a column adjacent to the left of the current block may be referred to as an adjacent reference sample line, and the other reference sample lines may be referred to as non-adjacent reference sample lines.
[0299] Table 1 shows the indexes assigned to each candidate reference sample line.
[0300] [Table 1]
[0301] The reference sample line of the current block may be determined based on at least one of the position, size, or shape of the current block or the predictive coding mode of a neighboring block. For example, when the current block borders a boundary of a picture, a tile, a slice, or a coding tree unit, the neighboring reference sample line may be determined as the reference sample line of the current block.
[0302] The reference sample line may include a top reference sample located at the top of the current block and a left reference sample located to the left of the current block. The top reference sample and the left reference sample may be derived from reconstructed samples around the current block. The reconstructed samples may be before an in-loop filter is applied.
[0303] Next, an intra-prediction mode of the current block may be determined (S2202). At least one of a non-directional intra-prediction mode and a directional intra-prediction mode may be determined as the intra-prediction mode of the current block. The non-directional intra-prediction modes include Planar and DC, and the directional intra-prediction modes include 33 or 65 modes from the bottom left diagonal to the top right diagonal.
[0304] FIG. 23 is a diagram showing intra prediction modes.
[0305] FIG. 23(a) shows 35 intra prediction modes, and FIG. 23(b) shows 67 intra prediction modes.
[0306] A greater or lesser number of intra prediction modes than those illustrated in FIG. 23 may also be defined.
[0307] A Most Probable Mode (MPM) may be set based on the intra prediction modes of neighboring blocks adjacent to the current block. Here, the neighboring blocks may include a left neighboring block adjacent to the left side of the current block and an upper neighboring block adjacent to the upper end of the current block.
[0308] The number of MPMs included in the MPM list may be preset in the encoder and the decoder. For example, the number of MPMs may be 3, 4, 5, or 6. Alternatively, information indicating the number of MPMs may be signaled via a bitstream. Alternatively, the number of MPMs may be determined based on at least one of the predictive coding mode of a neighboring block, the size, shape, or reference sample line index of a current block. For example, when an adjacent reference sample line is determined as a reference sample line of a current block, N MPMs may be used, whereas when a non-adjacent reference sample line is determined as a reference sample line of a current block, M MPMs may be used. M is a natural number smaller than N, and for example, N may be 6 and M may be 5, 4, or 3. Thus, if the index of the reference sample line of the current block is 0 and the MPM flag is true, the intra prediction mode of the current block is determined to be one of the six candidate intra prediction modes, whereas if the index of the reference sample line of the current block is greater than 0 and the MPM flag is true, the intra prediction mode of the current block may be determined to be one of the five candidate intra prediction modes.
[0309] Alternatively, a fixed number of MPM candidates (eg, 6 or 5) may be used regardless of the index of the reference sample line of the current block.
[0310] An MPM list including a plurality of MPMs may be generated, and information indicating whether the same MPM as the intra prediction mode of the current block is included in the MPM list may be signaled via a bitstream. The information is a 1-bit flag and may be referred to as an MPM flag. If the MPM flag indicates that the same MPM as the current block is included in the MPM list, index information identifying one of the MPMs may be signaled via the bitstream. As an example, index information mpm_idx identifying one of the plurality of MPMs may be signaled via the bitstream. The MPM identified by the index information may be set as the intra prediction mode of the current block. If the MPM flag indicates that the same MPM as the current block is not included in the MPM list, remaining mode information indicating one of the remaining intra prediction modes other than the MPM may be signaled via the bitstream. The remaining mode information indicates an index value corresponding to the intra prediction mode of the current block when indexes are reallocated to the remaining intra prediction modes other than the MPM. In the decoder, the MPMs may be sorted in ascending order, and the remaining mode information may be compared with the MPM to determine the intra prediction mode of the current block. For example, if the remaining mode information is equal to or smaller than the MPM, the remaining mode information may be added by 1 to derive the intra prediction mode of the current block.
[0311] When deriving the intra prediction mode of the current block, the comparison of some of the MPMs with the remaining mode information may be omitted. As an example, an MPM that is a non-directional intra prediction mode among the MPMs may be excluded from the comparison. When the non-directional intra prediction mode is set to the MPM, since the remaining mode information clearly indicates a directional intra prediction mode, the intra prediction mode of the current block may be derived by comparing the remaining MPMs other than the non-directional intra prediction mode with the remaining mode information. Instead of excluding the non-directional intra prediction mode from the comparison target, the number of non-directional intra prediction modes may be added to the remaining mode information, and the resultant value may be compared with the remaining MPM.
[0312] Instead of setting the default mode to the MPM, information indicating whether the intra prediction mode of the current block is the default mode may be signaled via a bitstream. The information is a 1-bit flag, and the flag may be referred to as a default mode flag. The default mode flag may be signaled only if the MPM flag indicates that the same MPM as the current block is included in the MPM list. As described above, the default mode may include at least one of planner, DC, vertical mode, or horizontal mode. As an example, if planner is set as the default mode, the default mode flag may indicate whether the intra prediction mode of the current block is planner. If the default mode flag indicates that the intra prediction mode of the current block is not the default mode, one of the MPMs indicated by the index information may be set as the intra prediction mode of the current block.
[0313] When a default mode flag is used, the intra prediction mode that is the same as the default mode may be set not to be set in the MPM. For example, when the default mode flag indicates whether the intra prediction mode of the current block is planner, the intra prediction mode of the current block may be derived using five MPMs other than the MPM corresponding to planner.
[0314] When a plurality of intra prediction modes are set as a default mode, index information indicating one of the default modes may be further signaled. The intra prediction mode of the current block may be set to the default mode indicated by the index information.
[0315] If the index of the reference sample line of the current block is not 0, the default mode may be set not to be used. As an example, if a non-adjacent reference sample line is determined as the reference sample line of the current block, a non-directional intra prediction mode such as DC mode or planar mode may be set not to be used. Thus, if the index of the reference sample line is not 0, the default mode flag may not be signaled and the value of the default mode flag may be set to a predefined value (i.e., false).
[0316] Once the intra-prediction mode of the current block has been determined, a prediction sample for the current block may be obtained based on the determined intra-prediction mode (S2203).
[0317] When the DC mode is selected, a predicted sample for the current block is generated based on an average value of the reference samples. Specifically, the values of all samples in the predicted block may be generated based on an average value of the reference samples. The average value may be derived using at least one of a top reference sample located at the top of the current block and a left reference sample located to the left of the current block.
[0318] The number or range of reference samples used to derive the average value may vary depending on the shape of the current block. For example, if the current block is a non-square block whose width is greater than its height, the average value may be calculated using only the top reference sample. On the other hand, if the current block is a non-square block whose width is smaller than its height, the average value may be calculated using only the left reference sample. That is, if the width and height of the current block are different, the average value may be calculated using only the adjacent reference sample whose length is longer. Alternatively, it may be determined whether to calculate the average value using only the top reference sample or only the left reference sample based on the ratio of the width and height of the current block.
[0319] When the planner mode is selected, a prediction sample may be obtained using a horizontal prediction sample and a vertical prediction sample. Here, the horizontal prediction sample may be obtained based on a left reference sample and a right reference sample located on the same horizontal line as the prediction sample, and the vertical prediction sample may be obtained based on a top reference sample and a bottom reference sample located on the same vertical line as the prediction sample. Here, the right reference sample may be generated by copying a reference sample adjacent to the top corner of the right side of the current block, and the bottom reference sample may be generated by copying a reference sample adjacent to the bottom corner of the left side of the current block. The horizontal prediction sample may be obtained based on a weighted sum operation of the left reference sample and the right reference sample, and the vertical prediction sample may be obtained based on a weighted sum operation of the top reference sample and the bottom reference sample. In this case, the weight value assigned to each reference sample may be determined according to the position of the prediction sample. The prediction sample may be obtained based on an average operation or a weighted sum operation of the horizontal prediction sample and the vertical prediction sample. When a weighted sum operation is performed, the weight value assigned to the horizontal prediction sample and the vertical prediction sample may be determined based on the position of the prediction sample.
[0320] When a directional prediction mode is selected, a parameter indicating a prediction direction (or a prediction angle) of the selected directional prediction mode may be determined. Table 2 below shows an intra direction parameter intraPredAng for each intra prediction mode.
[0321] [Table 2]
[0322] Table 2 shows intra direction parameters for each intra prediction mode having an index of 2 to 34 when 35 intra prediction modes are defined. When more than 33 directional intra prediction modes are defined, Table 2 may be further subdivided to set intra direction parameters for each directional intra prediction mode.
[0323] After aligning the top reference sample and the left reference sample of the current block, a predicted sample may be obtained based on the value of the intra direction parameter, in which case, if the value of the intra direction parameter is negative, the left reference sample and the top reference sample may be aligned.
[0324] 24 and 25 are diagrams showing examples of a one-dimensional array in which reference samples are arranged in a row.
[0325] Fig. 24 shows an example of a vertical one-dimensional array in which reference samples are arranged in the vertical direction, and Fig. 25 shows an example of a horizontal one-dimensional array in which reference samples are arranged in the horizontal direction. The embodiments of Fig. 24 and Fig. 25 will be described assuming that 35 intra prediction modes are defined.
[0326] When the intra prediction mode index is one of 11 to 18, a horizontal one-dimensional array in which the top reference sample is rotated counterclockwise may be applied, and when the intra prediction mode index is one of 19 to 25, a vertical one-dimensional array in which the left reference sample is rotated clockwise may be applied. When arranging the reference samples in a row, the intra prediction mode angle may be taken into consideration.
[0327] Based on the intra-direction parameters, reference sample decision parameters may be determined, which may include a reference sample index for identifying the reference sample and a weight parameter for determining a weight applied to the reference sample.
[0328] The reference sample index iIdx and the weight parameter ifact may be obtained by the following Equations 4 and 5, respectively.
[0329]
number
[0330]
number
[0331] In Equation 4 and Equation 5, P ang denotes an intra direction parameter. The reference sample identified by the reference sample index iIdx corresponds to an integer pel.
[0332] In order to derive a prediction sample, at least one reference sample may be identified. Specifically, the position of the reference sample used to derive the prediction sample may be identified by considering the gradient of the prediction mode. As an example, the reference sample index iIdx may be used to identify the reference sample used to derive the prediction sample.
[0333] In this case, if the gradient of the intra prediction mode is not expressed by one reference sample, a prediction sample may be generated by interpolating multiple reference samples. For example, if the gradient of the intra prediction mode is a value between the gradient between the prediction sample and a first reference sample and the gradient between the prediction sample and a second reference sample, the prediction sample may be obtained by interpolating the first and second reference samples. That is, if an angular line along the intra prediction angle does not pass through a reference sample located at an integer pel, the prediction sample may be obtained by interpolating reference samples located adjacent to the left and right or above and below the position where the angular line passes.
[0334] Equation 6 below shows an example of obtaining a predicted sample based on a reference sample.
[0335]
number
[0336] In Equation 6, P represents a predicted sample, and Ref_1D represents one of the one-dimensionally arranged reference samples. In this case, the position of the reference sample may be determined by the position (x, y) of the predicted sample and the reference sample index iIdx.
[0337] If the gradient of the intra prediction mode can be expressed by one reference sample, the weight parameter i fact is set to 0. As a result, Equation 6 may be simplified to Equation 7 below.
[0338]
number
[0339] Intra prediction for the current block may be performed based on a plurality of intra prediction modes. For example, an intra prediction mode may be derived for each prediction sample, and a prediction sample may be derived based on the intra prediction mode assigned to each prediction sample.
[0340] Alternatively, an intra prediction mode may be derived for each region, and intra prediction may be performed for each region based on the intra prediction mode assigned to each region. Here, a region may include at least one sample. At least one of the size or shape of a region may be adaptively determined based on at least one of the size, shape, or intra prediction mode of a current block. Alternatively, at least one of the size or shape of a region may be predefined in an encoder and a decoder, independently of the size or shape of a current block.
[0341] FIG. 26 is a diagram illustrating angles that directional intra prediction modes form with a line parallel to the x-axis.
[0342] As shown in the example of Fig. 26, the directional prediction mode may exist between the left bottom diagonal direction and the right top diagonal direction. In terms of the angle formed by the x-axis and the directional prediction mode, the directional prediction mode may exist between 45 degrees (left bottom diagonal direction) and -135 degrees (right top diagonal direction).
[0343] If the current block is non-square, depending on the intra prediction mode of the current block, a prediction sample may be derived using a reference sample located on an angular line along the intra prediction angle that is farther away from the prediction sample, instead of a reference sample that is closer to the prediction sample.
[0344] FIG. 27 is a diagram illustrating how predicted samples are obtained when the current block is non-square.
[0345] As an example, assume that the current block is a non-square block with a width greater than a height, as shown in (a) of Figure 27, and the intra prediction mode of the current block is a directional intra prediction mode with an angle between 0 degrees and 45 degrees. In this case, when deriving a prediction sample A near the right column of the current block, a left reference sample L far from the prediction sample may be used instead of a top reference sample T close to the prediction sample among reference samples located on an angular mode along the angle.
[0346] As another example, assume that the current block is a non-square block with height greater than width, as shown in (b) of Figure 27, and the intra prediction mode of the current block is a directional intra prediction mode between -90 degrees and -135 degrees. In this case, when deriving a prediction sample A near the bottom row of the current block, a top reference sample T far from the prediction sample may be used instead of a left reference sample L close to the prediction sample among reference samples located on an angular mode along an angle.
[0347] To solve the above problem, if the current block is non-square, the intra prediction mode of the current block may be replaced with a reverse intra prediction mode. Thus, for non-square blocks, a directional prediction mode having an angle larger or smaller than the directional prediction mode illustrated in FIG. 23 may be used. Such a directional intra prediction mode may be defined as a wide-angle intra prediction mode. The wide-angle intra prediction mode refers to a directional intra prediction mode that does not belong to the range of 45 degrees to -135 degrees.
[0348] FIG. 28 is a diagram illustrating the wide-angle intra prediction mode.
[0349] In the example shown in FIG. 28, intra prediction modes with indices from −1 to −14 and intra prediction modes with indices between 67 and 80 indicate wide angle intra prediction modes.
[0350] FIG. 28 illustrates 14 wide angle intra prediction modes (-1 to -14) with angles greater than 45 degrees and 14 wide angle intra prediction modes (67 to 80) with angles less than -135 degrees, although a greater or lesser number of wide angle intra prediction modes may be defined.
[0351] When a wide-angle intra prediction mode is used, the length of the top reference sample may be set to 2W+1, and the length of the left reference sample may be set to 2H+1.
[0352] When using a wide-angle intra-prediction mode, sample A shown in (a) of FIG. 28 may be predicted using reference sample T, and sample A shown in (b) of FIG. 28 may be predicted using reference sample L.
[0353] A total of 67+N intra prediction modes may be used by adding the existing intra prediction modes and N wide angle intra prediction modes. As an example, Table 3 shows intra direction parameters of intra prediction modes when 20 wide angle intra prediction modes are defined.
[0354] [Table 3]
[0355] If the current block is non-square and the intra prediction mode of the current block obtained in step S2502 belongs to a transformation range, the intra prediction mode of the current block may be transformed to a wide-angle intra prediction mode. The transformation range may be determined based on at least one of the size, shape, or ratio of the current block. Here, the ratio may indicate the ratio between the width and height of the current block.
[0356] If the current block is a non-square block with width greater than height, the transform range may be set from the intra prediction mode index of the top right diagonal (e.g., 66) to (the intra prediction mode index of the top right diagonal -N), where N may be determined based on the ratio of the current block. If the intra prediction mode of the current block belongs to the transform range, the intra prediction mode may be converted to a wide-angle intra prediction mode. The transform may be a subtraction of a predefined value from the intra prediction mode, and the predefined value may be the total number of intra prediction modes other than the wide-angle intra prediction mode (e.g., 67).
[0357] Depending on the embodiment, the intra prediction modes between number 66 and number 53 may be converted to wide angle intra prediction modes between number -1 and number -14, respectively.
[0358] If the current block is a non-square block with height greater than width, the transform range may be set from the left bottom diagonal intra prediction mode index (e.g., 2) to (left bottom diagonal intra prediction mode index + M), where M may be determined based on the proportion of the current block. If the intra prediction mode of the current block belongs to the transform range, the intra prediction mode may be converted to a wide-angle intra prediction mode. The transform may be a predefined value added to the intra prediction mode, and the predefined value may be the total number of directional intra prediction modes other than the wide-angle intra prediction mode (e.g., 65).
[0359] Depending on the embodiment, each of the intra prediction modes between number 2 and number 15 may be converted to a wide angle intra prediction mode between number 67 and number 80.
[0360] Hereinafter, the intra prediction modes that belong to the transform range are referred to as wide-angle intra alternative prediction modes.
[0361] The transform range may be determined based on the ratio of the current block. As an example, Tables 4 and 5 show the transform ranges when 35 intra prediction modes other than the wide-angle intra prediction mode are defined and when 67 intra prediction modes are defined, respectively.
[0362] [Table 4]
[0363] [Table 5]
[0364] As shown in the examples of Tables 4 and 5, the number of wide-angle intra alternative prediction modes included in the transform range may differ depending on the ratio of the current block.
[0365] The ratio of the current block can be further divided and the conversion range can be set as shown in Table 6 below.
[0366] [Table 6]
[0367] When a non-adjacent reference sample line is determined as the reference sample line of the current block, or when a multi-line intra prediction coding method for selecting one of a plurality of reference sample lines is used, the wide angle intra prediction mode may be set not to be used. That is, even if the current block is non-square and the intra prediction mode of the current block belongs to the conversion range, the intra prediction mode of the current block may not be converted to the wide angle intra prediction mode.
[0368] Alternatively, when the intra prediction mode of the current block is determined to be a wide angle intra prediction mode, the non-adjacent reference sample line may be set to be unavailable as a reference sample line of the current block, or a multi-line intra prediction coding method for selecting one of a plurality of reference sample lines may be set not to be used. When the multi-line intra prediction coding method is not used, the adjacent reference sample line may be determined to be the reference sample line of the current block.
[0369] When the wide-angle intra prediction mode is not used, refW and refH may be set to the sum of nTbW and nTbH. As a result, the non-adjacent reference samples with a distance i from the current block, other than the top left reference sample, may include (nTbW+nTbH+offsetX[i]) top reference samples and (nTbW+nTbH+offsetY[i]) left reference samples. That is, the non-adjacent reference samples with a distance i from the current block may include (2nTbW+2nTbH+offsetX[i]+offsetY[i]+1) reference samples. For example, when the value of whRatio is greater than 1, the value of offsetX may be set to be greater than the value of offsetY. As an example, the value of offsetX may be set to 1, and the value of offsetY may be set to 0. On the other hand, when the value of whRatio is less than 1, the value of offsetY may be set to be greater than the value of offsetX. As an example, the value of offsetX may be set to 0 and the value of offsetY may be set to 1.
[0370] When a wide-angle intra prediction mode is used in addition to an existing intra prediction mode, resources required for encoding the wide-angle intra prediction mode may increase, resulting in reduced encoding efficiency. Therefore, instead of encoding the wide-angle intra prediction mode as is, an alternative intra prediction mode for the wide-angle intra prediction mode may be encoded to improve encoding efficiency.
[0371] For example, if the current block is encoded using wide-angle intra prediction mode number 67, the intra prediction mode of the current block may be encoded as wide-angle alternative intra prediction mode number 2 of 67. Also, if the current block is encoded in wide-angle intra prediction mode number -1, the intra prediction mode of the current block may be encoded as wide-angle alternative intra prediction mode number 66 of -1.
[0372] The decoder may decode the intra-prediction mode of the current block and determine whether the decoded intra-prediction mode is within a transform range. If the decoded intra-prediction mode is a wide-angle alternative intra-prediction mode, the decoder may convert the intra-prediction mode to a wide-angle intra-prediction mode.
[0373] Alternatively, if the current block is encoded in a wide-angle intra-prediction mode, the wide-angle intra-prediction mode may be encoded as is.
[0374] The encoding of the intra prediction mode may be performed based on the above-mentioned MPM list. Specifically, if a neighboring block is encoded in a wide-angle intra prediction mode, the MPM may be set based on a wide-angle alternative intra prediction mode corresponding to the wide-angle intra prediction mode.
[0375]
[0376] The residual image may be derived by subtracting the predicted image from the original image. In this case, even if the high frequency components among the frequency components are removed when the residual image is converted to the frequency domain, the subjective image quality of the image does not deteriorate significantly. Therefore, by converting the values of the high frequency components to smaller values or setting the values of the high frequency components to 0, visual distortion is not significantly generated and compression efficiency may be increased. Reflecting the above characteristics, the current block may be transformed to decompose the residual image into two-dimensional frequency components. The transformation may be performed using a transformation technique such as DCT (Discrete Cosine Transform) or DST (Discrete Sine Transform).
[0377] DCT uses a cosine transform to decompose (or transform) a residual image into two-dimensional frequency components, while DST uses a sine transform to decompose (or transform) a residual image into two-dimensional frequency components. As a result of the transformation of the residual image, the frequency components may be represented by basis images. As an example, when a DCT transform is performed on an N×N block, N2 basic pattern components may be obtained. The size of each basic pattern component contained in the N×N block may be obtained by the transformation. Depending on the transformation technique used, the size of the basic pattern components may be referred to as DCT coefficients or DST coefficients.
[0378] The DCT transform technique is mainly used to transform images with a large distribution of non-zero low-frequency components, while the DST transform technique is mainly used for images with a large distribution of high-frequency components.
[0379] Transformation techniques other than DCT or DST may also be used to transform the residual image.
[0380] Hereinafter, converting the residual image into two-dimensional frequency components is referred to as two-dimensional image conversion. The size of the basic pattern components obtained as a result of conversion is referred to as a transform coefficient. As an example, the transform coefficient may refer to a DCT coefficient or a DST coefficient. When both a first transform and a second transform described below are applied, the transform coefficient may refer to the size of the basic pattern components generated as a result of the second transform. In addition, the residual samples to which a transform skip is applied are also referred to as a transform coefficient.
[0381] The transformation technique may be determined on a block-by-block basis. The transformation technique may be determined based on at least one of a prediction coding mode of the current block, a size of the current block, or a shape of the current block. For example, if the current block is coded in an intra prediction mode and the size of the current block is smaller than N×N, the transformation may be performed using the transformation technique DST. On the other hand, if the condition is not met, the transformation may be performed using the transformation technique DCT.
[0382] 2D image transform may not be performed on some blocks of the residual image. Not performing 2D image transform may be called transform skip. Transform skip indicates that the first transform and the second transform are not applied to the current block. When transform skip is applied, quantization may be applied to residual values that are not transformed.
[0383] Whether or not to allow transform skip for the current block may be determined based on at least one of the size or shape of the current block. For example, transform skip may be applied only if the size of the current block is smaller than a threshold. The threshold may relate to at least one of the width, height, or number of samples of the current block, and may be defined as 32×32, etc. Alternatively, transform skip may be allowed only for square blocks. For example, transform skip may be allowed for square blocks of 32×32, 16×16, 8×8, or 4×4 size. Alternatively, transform skip may be allowed only if a sub-partition intra coding method is not used.
[0384] Alternatively, if a sub-partition intra-coding method is applied to the current block, it may be determined whether or not a transform skip is applied to each sub-partition.
[0385] FIG. 29 is a diagram showing an example in which it is determined whether or not to perform transform skip for each sub-block.
[0386] There are cases where transform skip is applied to only some of a plurality of sub-blocks. For example, as shown in FIG 29, it may be set such that transform skip is applied to the sub-blocks located at the top of the current block, and transform skip is not allowed for the sub-blocks located at the bottom.
[0387] The transform type of a sub-block for which transform skip is not allowed may be determined based on information signaled from a bitstream. As an example, the transform type may be determined based on tu_mts_idx, which will be described later.
[0388] Alternatively, the transform type of a sub-block may be determined based on the size of the sub-block. As an example, the horizontal transform type may be determined based on whether the width of the sub-block is greater than or equal to a threshold and / or less than or equal to a threshold, and the vertical transform type may be determined based on whether the height of the sub-block is greater than or equal to a threshold and / or less than or equal to a threshold.
[0389] After transforming a current block using a DCT or DST, the transformed current block may be transformed again. In this case, the transformation based on the DCT or DST may be defined as a first transformation, and the retransformation of the block to which the first transformation has been applied may be defined as a second transformation.
[0390] The first transform may be performed using any one of a number of possible transform cores. As an example, the first transform may be performed using any one of DCT2, DCT8, or DST7.
[0391] Different transform cores can also be used for the horizontal and vertical directions. Information indicating the combination of horizontal and vertical transform cores can also be signaled via the bitstream.
[0392] The execution units of the first transform and the second transform may be different. As an example, the first transform may be performed on an 8×8 block, and the second transform may be performed on a sub-block of 4×4 size of the transformed 8×8 block. Or, the second transform may be performed on transform coefficients belonging to three sub-blocks of 4×4 size. The three sub-blocks may include a sub-block located at the upper left corner of the current block, a sub-block adjacent to the right side of the sub-block, and a sub-block adjacent to the lower edge of the sub-block. Or, the second transform may be performed on a block of 8×8 size.
[0393] The transform coefficients of the remaining areas where the second transform is not performed may be set to zero.
[0394] Alternatively, a first transform can be performed on the 4x4 block, and a second transform can be performed on an 8x8 sized region that contains the transformed 4x4 block.
[0395] Information indicating whether or not to perform the second transform may be signaled via the bitstream. As an example, a flag indicating whether or not to perform the second transform, or index information specifying whether or not to perform the second transform and a transform kernel used for the second transform may be signaled. As an example, index information being 0 indicates that the second transform is not performed on the current block. On the other hand, if the index information is greater than 0, the transform kernel for performing the second transform may be determined by the index information.
[0396] Alternatively, whether to perform the second transform may be determined based on whether the horizontal transform core and the vertical transform core are the same. As an example, the second transform may be performed only if the horizontal transform core and the vertical transform core are the same. Alternatively, the second transform may be performed only if the horizontal transform core and the vertical transform core are different.
[0397] Alternatively, the second transform may be allowed only when the horizontal transform and the vertical transform use a predefined transform core. For example, the second transform may be allowed only when the DCT2 transform core is used for the horizontal transform and the vertical transform. Alternatively, when a sub-partition intra coding method is applied to the current block, the second transform may be allowed only when the DCT2 transform core is used for the horizontal transform and the vertical transform.
[0398] Alternatively, it may be determined whether to perform the second transform based on the number of non-zero transform coefficients of the current block. For example, if the non-zero transform coefficients of the current block are equal to or smaller than a threshold, the second transform may be set not to be used, and if the non-zero transform coefficients of the current block are larger than the threshold, the second transform may be set to be used. It may also be set to use the second transform only if the current block is coded using intra prediction.
[0399] Alternatively, it may be determined whether to perform the second transform based on the position of the last non-zero transform coefficient of the current block. As an example, if at least one of the x-axis coordinate or the y-axis coordinate of the last non-zero transform coefficient of the current block is greater than a threshold, or if at least one of the x-axis coordinate or the y-axis coordinate of the sub-block to which the last non-zero transform coefficient of the current block belongs is greater than a threshold, the second transform may not be performed. Here, the threshold may be predefined in the encoder and the decoder. Alternatively, the threshold may be determined based on the size or shape of the current block.
[0400] Alternatively, the second transform may be set not to be performed when only DC component transform coefficients exist in the current block, where the DC component represents the transform coefficient at the top left corner of the current block.
[0401] Alternatively, when matrix-based intra prediction is applied to the current block, the second transformation may be set not to be performed.
[0402]
[0403] Information indicating the transform type of the current block may be signaled via a bitstream. The information may be index information tu_mts_idx indicating one of a combination of a transform type for the horizontal direction and a transform type for the vertical direction.
[0404] Based on the transform type candidates identified by the index information tu_mts_idx, a transform core for the vertical direction and a transform core for the horizontal direction may be determined. Table 7 shows the transform type combinations according to tu_mts_idx.
[0405] [Table 7]
[0406] The transform type may be determined to be one of DCT2, DST7 or DCT8, or a transform skip may be inserted into the transform type candidates.
[0407] When Table 7 is used, if tu_mts_idx is 0, a DCT2 may be applied horizontally and vertically. If tu_mts_idx is 2, a DCT8 may be applied horizontally and a DCT7 may be applied vertically.
[0408] When a sub-partition intra-coding method is applied, the transform cores of the sub-blocks may be determined independently. For example, information for identifying a transform type combination candidate for each sub-block may be coded and signaled. As a result, the transform cores between the sub-blocks may differ.
[0409] Alternatively, the sub-blocks may use the same transform type. In this case, tu_mts_idx specifying a transform type combination candidate may be signaled only for the first sub-block. Alternatively, tu_mts_idx may be signaled at a coding block level, and the transform type of the sub-block may be determined by referring to tu_mts_idx signaled at the coding block level. Alternatively, the transform type may be determined based on at least one of the size, shape, or intra prediction mode of one of the sub-blocks, and the determined transform type may be set to be used for all the sub-blocks.
[0410] FIG. 30 is a diagram showing an example in which sub-blocks use the same transform type.
[0411] When a coding block is divided horizontally, the transform types of the sub-block (Sub-CU0) located at the top of the coding block and the sub-block (Sub-CU1) located at the bottom of the coding block may be set in the same way. For example, as shown in (a) of Figure 30, when the horizontal type and vertical transform type are determined based on tu_mts_idx signaled for the top sub-block, the determined transform type may also be applied to the bottom sub-block.
[0412] When a coding block is divided vertically, the transform types of the sub-block (Sub-CU0) located on the left side of the coding block and the sub-block (Sub-CU1) located on the right side of the coding block may be set in the same way. As an example, as shown in (b) of Figure 30, when the horizontal type and vertical transform type are determined based on the tu_mts_idx signaled for the left sub-block, the determined transform type may also be applied to the right sub-block.
[0413]
[0414] It may be determined whether to code index information based on at least one of the size, shape, number of nonzero coefficients of the current block, whether to perform a secondary transform, or whether to apply a sub-partition intra-coding method. As an example, if a sub-partition intra-coding method is applied to the current block, or if the number of nonzero coefficients is equal to or smaller than a threshold, signaling of index information may be omitted. If signaling of index information is omitted, a default transform type may be applied to the current block.
[0415] The default transform type may include at least one of DCT2 or DST7. When there are multiple default transform types, one of the multiple default transform types may be selected in consideration of at least one of the size, shape, intra prediction mode, whether or not a secondary transform is performed, or whether or not a sub-partition intra coding method is applied to the current block. As an example, one of the multiple transform types may be determined as a horizontal transform type based on whether or not the width of the current block belongs to a preset range, and one of the multiple transform types may be determined as a vertical transform type based on whether or not the height of the current block belongs to a preset range. Alternatively, the default mode may be determined differently depending on the size, shape, intra prediction mode, or whether or not a secondary transform is performed on the current block.
[0416] Alternatively, if the current block has only DC component transform coefficients, the horizontal transform type and the vertical transform type may be set to the default transform type. As an example, if the current block has only DC component transform coefficients, the horizontal transform type and the vertical transform type may be set to DCT2.
[0417] The threshold may be determined based on the size or shape of the current block. For example, if the size of the current block is smaller than or equal to 32×32, the threshold may be set to 2, and if the current block is larger than 32×32 (e.g., if the current block is a coding block of size 32×64 or 64×32), the threshold may be set to 4.
[0418] A plurality of lookup tables may be pre-stored in the encoder / decoder. The plurality of lookup tables may differ in at least one of index values assigned to the transform type combination candidates, the types of the transform type combination candidates, or the number of the transform type combination candidates.
[0419] The lookup table for the current block may be selected based on at least one of the size, shape, predictive coding mode, intra prediction mode, whether a secondary transform is applied, or whether a transform skip is applied to a neighboring block.
[0420] As an example, if the size of the current block is 4x4 or less or if the current block is coded using inter prediction, a first lookup table may be used, and if the size of the current block is greater than 4x4 or if the current block is coded using intra prediction, a second lookup table may be used.
[0421] Alternatively, information indicating one of a plurality of lookup tables may be signaled via a bitstream, and the decoder may select the lookup table for the current block based on the information.
[0422] As another example, an index assigned to a transform type combination candidate may be adaptively determined based on at least one of the size, shape, predictive coding mode, intra prediction mode, whether or not a secondary transform is applied to the current block, or whether or not a transform skip is applied to a neighboring block. As an example, if the size of the current block is 4×4, an index assigned to the transform skip may have a value smaller than an index assigned to the transform skip when the size of the current block is larger than 4×4. Specifically, if the size of the current block is 4×4, an index 0 may be assigned to the transform skip, and if the current block is larger than 4×4 and is equal to or smaller than 16×16, an index larger than 0 (e.g., index 1) may be assigned to the transform skip. If the current block is larger than 16×16, a maximum value (e.g., 5) may be assigned to the index of the transform skip.
[0423] Alternatively, if the current block is coded using inter prediction, the transform skip may be assigned an index of 0. If the current block is coded using intra prediction, the transform skip may be assigned an index greater than 0 (e.g., index 1).
[0424] Alternatively, if the current block is a 4×4 size block coded using inter prediction, the transform skip may be assigned an index of 0. On the other hand, if the current block is not coded using inter prediction or is larger than 4×4, the transform skip may be assigned an index of a value larger than 0 (e.g., index 1).
[0425] Transform type combination candidates different from the transform type combination candidates listed in Table 7 may be defined and used. As an example, a transform type combination candidate may be used in which a transform skip is applied to one of the horizontal transform or the vertical transform, and a transform core such as DCT2, DCT8, or DST7 is applied to the other. In this case, it may be determined whether to use the transform skip as a transform type candidate for the horizontal or vertical direction based on at least one of the size (e.g., width and / or height), shape, predictive coding mode, or intra prediction mode of the current block.
[0426]
[0427] Information indicating whether index information for determining the transform type of the current block is explicitly signaled may be signaled via a bitstream. As an example, at a sequence level, information sps_explicit_intra_mts_flag indicating whether an explicit transform type decision is allowed for a block coded by intra prediction and / or information sps_explicit_inter_mts_flag indicating whether an explicit transform type decision is allowed for a block coded by inter prediction may be signaled.
[0428] If an explicit transform type determination is allowed, the transform type of the current block may be determined based on index information tu_mts_idx signaled from the bitstream. On the other hand, if an explicit transform type determination is not allowed, the transform type may be determined based on at least one of the size and shape of the current block, whether a subblock-based transform is allowed, the position of a subblock including a non-zero transform coefficient, whether a second transform is performed, or whether a subpartition intra-coding method is applied. As an example, the horizontal transform type of the current block may be determined based on the width of the current block, and the vertical transform type of the current block may be determined based on the height of the current block. For example, if the width of the current block is smaller than 4 or larger than 16, the horizontal transform type may be determined to be DCT2. Otherwise, the horizontal transform type may be determined to be DST7. If the height of the current block is smaller than 4 or larger than 16, the vertical transform type may be determined to be DCT2. Otherwise, the vertical transform type may be determined to be DST7. Here, the thresholds compared with the width and height to determine the horizontal transform type and the vertical transform type may be determined based on at least one of the size, shape, or intra prediction mode of the current block.
[0429] Alternatively, if the current block is a square with the same height and width, the horizontal and vertical transform types may be set to be the same, while if the current block is a non-square with different heights and widths, the horizontal and vertical transform types may be set to be different. As an example, if the width of the current block is greater than the height, the horizontal transform type may be determined to be DST7 and the vertical transform type may be determined to be DCT2. If the height of the current block is greater than the width, the vertical transform type may be determined to be DST7 and the horizontal transform type may be determined to be DCT2.
[0430] The number and / or type of transform type candidates or the number and / or type of transform type combination candidates may differ depending on whether explicit transform type determination is allowed or not. As an example, if explicit transform type determination is allowed, DCT2, DST7, and DCT8 may be used as transform type candidates. As a result, the horizontal transform type and the vertical transform type may be set to DCT2, DST8, or DCT8, respectively. If explicit transform type determination is not allowed, only DCT2 and DST7 may be used as transform type candidates. As a result, the horizontal transform type and the vertical transform type may be determined to DCT2 or DST7, respectively.
[0431]
[0432] The decoder may perform an inverse transform of the second transform (second inverse transform) and then perform an inverse transform of the first transform (first inverse transform) on the result of the second inverse transform. The second inverse transform and the first inverse transform may result in a residual signal for the current block.
[0433] After transforming and quantizing at the encoder, the decoder may perform inverse quantization and inverse transform to obtain a residual block. At the decoder, the predictive block and the residual block may be added to obtain a reconstructed block for the current block.
[0434]
[0435] When a reconstructed block of a current block is obtained, information loss occurring during quantization and encoding may be reduced by in-loop filtering. The in-loop filter may include at least one of a deblocking filter, a sample adaptive offset filter (SAO) or an adaptive loop filter (ALF). Hereinafter, the reconstructed block before the in-loop filter is applied is referred to as a first reconstructed block, and the reconstructed block after the in-loop filter is applied is referred to as a second reconstructed block.
[0436] At least one of a deblocking filter, SAO, or ALF may be applied to the first reconstructed block to obtain a second reconstructed block, where SAO or ALF may be applied after the deblocking filter is applied.
[0437] The deblocking filter is used to reduce image quality degradation (blocking artifacts) at block boundaries that occur due to block-based quantization. To apply the deblocking filter, the blocking strength (BS) between the first restored block and neighboring restored blocks may be determined.
[0438] FIG. 31 is a flow chart showing the process of determining the block strength.
[0439] In the example shown in Figure 31, P denotes a first reconstruction block, and Q denotes a neighboring reconstruction block, which may be the left or top neighbor of the current block.
[0440] In the example shown in Figure 31, the block strength is determined taking into account the predictive coding modes of P and Q, whether or not they contain non-zero transform coefficients, whether or not they are inter-predicted using the same reference picture, and whether or not the difference value of the motion vector is greater than or equal to a threshold value.
[0441] Based on the block strength, it may be determined whether or not to apply a deblocking filter. For example, if the block strength is 0, no filtering may be performed.
[0442] SAO is intended to mitigate ringing artifacts that occur when quantization is performed in the frequency domain. SAO may be performed by adding or subtracting an offset that is determined in consideration of the pattern of the first restored image. Methods for determining the offset include edge offset (EO) and band offset. EO indicates a method for determining the offset of a current sample according to the pattern of surrounding pixels. BO indicates a method for applying a common offset to a set of pixels having similar brightness values within a region. Specifically, pixel brightness may be divided into 32 equal intervals, and pixels having similar brightness values may be set as one set. As an example, four adjacent bands out of 32 bands may be set as one group, and the same offset value may be applied to samples belonging to the four bands.
[0443] The ALF is a method of generating a second restored image by applying a filter of a predefined size / shape to a first restored image or a restored image to which a deblocking filter has been applied. Equation 8 below shows an application example of the ALF.
[0444]
number
[0445] One of predefined filter candidates may be selected for each picture, coding tree unit, coding block, prediction block, or transform block. Each filter candidate may differ in either size or shape.
[0446] FIG. 32 shows predefined filter candidates.
[0447] As an example shown in FIG. 32, at least one of a diamond shape of size 5×5, 7×7 or 9×9 may be selected.
[0448] For the chroma components, only diamond shapes of size 5x5 may be used.
[0449]
[0450] For real-time or low-latency encoding of high-resolution video such as panoramic video, 360-degree video, or 4K / 8K UHD (Ultra High Definition) video, a method of dividing one picture into multiple regions and encoding / decoding the multiple regions in parallel may be considered. Specifically, a picture may be divided into tiles or slices (or tile groups) depending on the processing purpose.
[0451] A tile represents the basic unit of parallel encoding / decoding. Each tile may be processed in parallel. A tile may have a rectangular shape. Alternatively, non-rectangular tiles may be allowed.
[0452] Information indicating whether non-rectangular tiles are allowed or present may be signaled via the bitstream.
[0453] When encoding / decoding a tile, data of other tiles may be set not to be used. Encoding / decoding dependencies between tiles may be removed to support parallel processing of tiles. Specifically, a probability table of a CABAC (Context adaptive Binary Arithmetic Coding) context may be initialized on a tile basis, and an in-loop filter may be set not to be applied at the boundary of the tile. Also, data in other tiles may not be used as candidates for deriving a motion vector. For example, data in other tiles may be set not to be used as a merge candidate, a motion vector prediction candidate (AMVP candidate), or a motion information candidate. Also, data in other tiles may be set not to be used for symbol context calculation.
[0454] Video encoding / decoding information may be signaled via a slice header. The information signaled via the slice header may be commonly applied to coding tree units or tiles included in the slice. A slice may also be referred to as a tile group.
[0455] FIG. 33 is a diagram illustrating a picture division method according to one embodiment of the present invention.
[0456] First, it may be determined whether or not the current picture is to be divided into multiple processing units (S3310). Here, the processing unit may include at least one of a tile or a slice. As an example, a syntax element no_pic_partition_flag indicating whether the current picture is to be divided into multiple tiles or slices may be signaled via a bitstream. A value of 0 for the syntax element no_pic_partition_flag indicates that the current picture is to be divided into at least one tile or at least one slice. Meanwhile, a value of 1 for the syntax element no_pic_partition_flag indicates that the current picture is not to be divided into multiple tiles or multiple slices.
[0457] If it is determined that the current picture is not to be divided into multiple processing units, the division process of the current picture may be terminated. In this case, the current picture may be considered to be composed of one tile and one slice (or tile group).
[0458] Alternatively, information indicating whether or not multiple tiles exist in a picture may be signaled via a bitstream. The information may include at least one of a one-bit flag indicating whether or not multiple tiles exist in a picture or information specifying the number of tiles in a picture. Only when it is determined that multiple tiles exist in a picture, a picture division process, which will be described later, may be performed.
[0459] If it is determined that the current picture is to be divided into a plurality of processing units, tile partition information may be signaled via the bitstream. Based on the signaled tile partition information, the picture may be partitioned into at least one tile (S3320).
[0460] If the current picture is divided into multiple tiles, slices may be determined by merging multiple tiles or dividing one tile (S3330).
[0461] The tile division method and slice determination method according to the present invention will now be described in detail.
[0462] FIG. 34 shows an example in which a picture is divided into multiple tiles.
[0463] A tile may include at least one coding tree unit. The boundaries of the tile may be set to coincide with the boundaries of the coding tree unit. In other words, a partition shape in which one coding tree unit is partitioned into multiple pieces may not be allowed.
[0464] When a picture is divided into a number of tiles, the height or width of adjacent tiles may be set to have the same value.
[0465] As an example, the heights of tiles belonging to the same tile row and / or the widths of tiles belonging to the same tile column may be set to be the same, as in the example shown in Figure 34. Tiles belonging to the same tile row may also be referred to as a horizontal tile set, and tiles belonging to the same tile column may also be referred to as a vertical tile set.
[0466] Alternatively, information indicating whether the width and / or height of a tile to be encoded / decoded is set to be the same as the width and / or height of a previous tile may be signaled.
[0467] Information indicating the partition shape of a picture may be signaled via the bitstream, and may be coded and signaled via a picture parameter set, a sequence parameter set, or a slice header.
[0468] The information indicating the division shape of the picture may include at least one of information indicating whether the tiles are divided into equal sizes, information indicating the number of tile columns, and information indicating the number of tile rows, where the number of tile columns indicates the number of vertical tile sets and the number of tile rows indicates the number of horizontal tile sets.
[0469] By dividing a picture using at least one of a vertical line or a horizontal line crossing the picture, each of the tiles belongs to a different column and / or row. To determine the division shape of the picture, information indicating the number of tile columns and / or the number of tile rows may be signaled. As an example, information num_tile_row_minus1 indicating the number of tile rows generated by dividing the picture and information num_tile_column_minus1 indicating the number of tile columns may be signaled via a bitstream. The syntax num_tile_row_minus1 indicates a value obtained by subtracting 1 from the number of tile rows, and the syntax num_tile_column_minus1 indicates a value obtained by subtracting 1 from the number of tile columns.
[0470] 34, the number of tile columns is 4 and the number of tile rows is 3. Thus, num_tile_columns_minus1 might indicate 3 and num_tile_rows_minus1 might indicate 2.
[0471] Syntax indicating the width of each tile column and syntax indicating the height of each tile row may be signaled via the bitstream. As an example, tile_cols_width_minus1[i] may indicate the width of the ith tile column and tile_rows_height_minus[j] may indicate the height of the jth tile row.
[0472] The syntax tile_cols_width_minus1[i] indicates a value obtained by subtracting 1 from the number of coding tree unit sequences constituting the i-th tile sequence. For the last tile sequence, the signaling of the syntax tile_cols_width_minus1[i] may be omitted. The width of the last tile sequence may be derived by subtracting the width of the previous tile sequence from the width of the current picture.
[0473] The syntax tile_rows_height_minus1[j] indicates a value obtained by subtracting 1 from the number of coding tree unit rows that constitute the j-th tile row. For the last tile row, the signaling of the syntax tile_rows_height_minus1[j] may be omitted. The height of the last tile row may be derived by subtracting the height of the previous tile row from the height of the current picture.
[0474] On the other hand, information indicating the size of the coding tree unit may be signaled via a sequence parameter set or a picture parameter set.
[0475] A tile may be composed of at least one coding tree unit. The remaining tiles, other than the tiles adjacent to the right or bottom boundary of the picture, may be set to not include an area smaller than a coding tree unit. That is, the boundaries of the tiles are aligned with the boundaries of the coding tree units.
[0476] Depending on the partitioning of the picture, tiles may have the same size everywhere except the picture boundary, or horizontally adjacent tiles may have similar heights or vertically adjacent tiles may have similar widths.
[0477] Information indicating whether the current picture is divided into multiple tiles may be signaled via a bitstream. As an example, syntax single_tile_in_pic_flag may be signaled via a bitstream. When syntax single_tile_in_pic_flag is 1, it indicates that the current picture is not divided into multiple tiles. On the other hand, when syntax single_tile_in_pic_flag is 0, it indicates that the current picture is divided into multiple tiles.
[0478]
[0479] Information for determining the size of the tiles may be coded and signaled. As an example, a syntax element tile_width_minus1[i] indicating the width of the i-th tile column and a syntax element tile_height_minus1[i] indicating the height of the i-th tile row may be coded into the bitstream.
[0480] In the case where consecutive tile columns have the same size, width information may be signaled for only one of the consecutive tile columns, and encoding / decoding of width information may be omitted for the remaining tile columns.
[0481] As an example, if the width of the i-th tile column to the last tile column in a picture is the same, the syntax tile_cols_width_minus1[i] may be signaled only for the i-th tile column, and the remaining tile columns may be set to the same width as the i-th tile column.
[0482] Information indicating whether the widths of multiple consecutive tile columns are the same may be coded and signaled. As an example, syntax rem_tile_col_equal_flag[i] indicates whether the widths from the tile column with index i to the tile column with index N-1 are the same. Here, N may indicate the number of tile columns. That is, the tile column with index N-1 may indicate the last tile column in the picture.
[0483] When the syntax rem_tile_col_equal_flag[i] is 1, the syntax tile_cols_width_minus1[i] indicating the width is signaled for the tile column with index i, while the encoding / decoding of the syntax indicating the width of the tile column may be omitted for tile columns with index greater than i.
[0484] When encoding / decoding of the syntax indicating the width of a tile column is omitted, the minimum of the width of the i-th tile column and the width of the remaining area may be set as the width of the next tile column. As an example, if the width of the i-th tile column is set to the variable PrevTileColWidth and the width of the remaining area in the picture is set to the variable RemainingColWidth, the size of tile columns with indexes greater than i may be set to the smaller of the variables PrevTileColWidth and RemainingColWidth.
[0485] As another example, the syntax rem_tile_col_equal_flag[i] may be set to indicate whether the widths from the tile column with index 0 to the tile column with index i are the same.
[0486] In the case where consecutive tile rows have the same size, height information may be signaled for only one of the consecutive tile rows, and encoding / decoding of height information may be omitted for the remaining tile rows.
[0487] As an example, if the height of the i-th tile row through the last tile row in a picture is the same, the syntax tile_rows_height_minus1[i] may be signaled only for the i-th tile row, and the remaining tile rows may be set to the same height as the i-th tile row.
[0488] Information indicating whether the heights of consecutive tile rows are the same may be coded and signaled. As an example, syntax element rem_tile_row_equal_flag[i] indicates whether the heights of the tile row with index i to the tile row with index N-1 are the same. Here, N may indicate the number of tile rows. That is, the tile row with index N-1 may indicate the last tile row in the picture.
[0489] When the syntax rem_tile_row_equal_flag[i] is 1, the syntax tile_rows_height_minus1[i] indicating the height is signaled for the tile row with index i, while the encoding / decoding of the syntax indicating the height of the tile row may be omitted for tile rows with index greater than i.
[0490] If the encoding / decoding of the syntax indicating the tile row height is omitted, the minimum of the height of the i-th tile row and the height of the remaining area may be set as the height of the next tile row. As an example, if the height of the i-th tile row is set to the variable PrevTileRowHeight and the height of the remaining area in the picture is set to the variable RemainingRowHeight, the size of tile rows with an index greater than i may be set to the smaller of the variables PrevTileRowHeight and RemainingRowHeight.
[0491] As another example, the syntax rem_tile_row_equal_flag[i] can be set to indicate whether the heights of the tile row with index 0 to the tile row with index i are the same.
[0492] Table 8 illustrates a syntax structure including the syntax element rem_tile_col_equal_flag[i] and the syntax element rem_tile_row_equal_flag[i].
[0493] [Table 8]
[0494] Information for specifying the number of tile columns in the current picture for which the width of the tile column is explicitly signaled may also be signaled via a bitstream. As an example, a syntax num_exp_tile_columns_minus1 for determining the number of tile columns for which the width of the tile column is signaled may be signaled via a bitstream. The syntax num_exp_tile_columns_minus1 may be a value obtained by subtracting 1 from the number of tile columns for which the width of the tile column is signaled.
[0495] The number of syntax elements for specifying the width of the tile columns may be coded and signaled based on the syntax element num_exp_tile_columns_minus1. As an example, the syntax element tile_cols_width_minus1[i] indicating the width of the i-th tile column may be signaled via the bitstream. The syntax element tile_cols_width_minus1[i] may be the number of coding tree unit columns included in the tile column minus 1.
[0496] If the tile column index i is smaller than the number of tile columns whose width is explicitly signaled, the width of the tile column may be determined based on the syntax tile_cols_width_minus1[i] signaled via the bitstream.
[0497] On the other hand, if the index j of a tile column is equal to or greater than the number of tile columns whose widths are explicitly signaled, the width of the tile column may be determined based on the syntax tile_cols_width_minus1[l] signaled last. Here, l indicates the index of the tile column whose width was signaled last, and may be an integer smaller than j. As an example, if the value obtained by subtracting the width of the previous tile column from the width of the current picture is equal to or greater than the value obtained by adding 1 to the syntax tile_cols_width_minus1[l], the width of the tile column j may be set to the value obtained by adding 1 to the syntax tile_cols_width_minus1[l]. On the other hand, if the value obtained by subtracting the width of the previous tile column from the width of the current picture is smaller than the value obtained by adding 1 to the syntax tile_cols_width_minus1[l], the difference value obtained by subtracting the width of the previous tile column from the width of the current picture may be set to the width of the tile column j.
[0498] Table 9 shows the process for determining the width of a tile column.
[0499] [Table 9]
[0500] In Table 9, the variable PicWidthInCtbsY indicates the number of coding tree unit sequences included in the current picture. As an example, the variable PicWidthInCtbsY may be derived as shown in the following Equation 9.
[0501]
number
[0502] The variable remainingWidthInCtbsY indicates the difference between the variable PicWidthInCtbsY and the accumulated width of the tile column. As an example, for a tile column with index i, remainingWidthInCtbsY may be derived by subtracting the sum of the widths of tiles 0 through i-1 from PicWidthInCtbsY.
[0503] As shown in the example in Table 9, the variable uniformTileColWidth may be derived by adding 1 to the width of the last explicitly signaled tile column, tile_cols_width_minus1[num_exp_tile_columns_minus1]. In this case, if the variable remainingWidthInCtbY indicating the number of remaining coding tree unit columns in the current picture is equal to or greater than the variable uniformTileColWidth, the remaining area may be divided into the size of the variable uniformTileColWidth.
[0504] On the other hand, if the variable remainingWidthInCtbY indicating the number of remaining coding tree unit columns in the current picture is smaller than the variable uniformTileColWidth, the remaining area may be set as the last tile column as it is.
[0505] On the other hand, if the tile column index j is greater than or equal to the number of tile columns whose widths are explicitly signaled, then the width of that tile column may be set to the smaller of the variables uniformTileColWidth and remainingWidthInCtbY.
[0506] That is, the widths of the remaining tile columns other than the tile column whose width is explicitly signaled may have a value less than or equal to the width of the last tile column among the tile columns whose width is explicitly signaled.
[0507] Alternatively, information for specifying the number of tile rows for which the height of a tile row in a current picture is signaled may be signaled via a bitstream. As an example, a syntax num_exp_tile_rows_minus1 for determining the number of tile rows for which the height of a tile row is signaled may be signaled via a bitstream. The syntax num_exp_tile_rows_minus1 may be a value obtained by subtracting 1 from the number of tile rows for which the height of a tile row is signaled.
[0508] The number of syntax elements for specifying the height of the tile rows may be coded and signaled based on the syntax element num_exp_tile_rows_minus1. As an example, the syntax element tile_rows_height_minus1[i] indicating the height of the i-th tile row may be signaled via the bitstream. The syntax element tile_rows_height_minus1[i] may be the number of coding tree unit rows that the tile row contains minus 1.
[0509] If the tile row index i is smaller than the number of tile rows whose height is explicitly signaled, the height of that tile row may be determined based on the syntax tile_height_minus1[i] signaled via the bitstream.
[0510] On the other hand, if the tile row index j is greater than or equal to the number of tile rows whose heights are explicitly signaled, the height of that tile row may be determined based on the last signaled syntax tile_rows_height_minus1[l], where l indicates the index of the tile row whose height was last signaled and may be an integer less than j.
[0511] As an example, if the value obtained by subtracting the height of the previous tile row from the height of the current picture is equal to or greater than the value obtained by adding 1 to the syntax tile_rows_height_minus1[l], the height of tile row j may be set to the value obtained by adding 1 to the syntax tile_rows_height_minus1[l]. On the other hand, if the value obtained by subtracting the height of the previous tile row from the height of the current picture is less than the value obtained by adding 1 to the syntax tile_rows_height_minus1[l], the height of tile row j may be set to the difference value obtained by subtracting the height of the previous tile row from the height of the current picture.
[0512] Table 10 shows the process for determining the height of a tile row.
[0513] [Table 10]
[0514] In Table 10, the variable PicHeightInCtbsY indicates the number of coding tree unit rows included in the current picture. As an example, the variable PicWidthInCtbsY may be derived as shown in Equation 10 below.
[0515]
number
[0516] The variable remainingHeightInCtbsY indicates the difference between the variable PicHeightInCtbsY and the accumulated tile row height. As an example, for a tile row with index i, remainingHeightInCtbsY may be derived by subtracting the combined heights of tile rows 0 through i-1 from PicHeightInCtbsY.
[0517] As shown in the example in Table 10, the variable uniformTileRowHeight may be derived by adding 1 to the height of the last explicitly signaled tile row, tile_rows_height_minus1[num_exp_tile_rows_minus1]. In this case, if the variable remainingHeightInCtbY indicating the number of remaining coding tree unit rows in the current picture is equal to or greater than the variable uniformTileRowHeight, the remaining area may be divided into the size of the variable uniformTileRowHeight.
[0518] On the other hand, if the variable remainingHeightInCtbY indicating the number of remaining coding tree unit rows in the current picture is smaller than the variable uniformTileRowHeight, the remaining area may be set as the last tile row as it is.
[0519] On the other hand, if the tile row index j is greater than or equal to the number of tile rows whose heights are explicitly signaled, then the height of that tile row may be set to the smaller of the variables uniformTileRowHeight and remainingHeightInCtbY.
[0520] That is, the heights of the remaining tile rows other than the tile row whose height is explicitly signaled may be less than or equal to the width of the last tile row among the tile rows whose height is explicitly signaled.
[0521] Table 11 illustrates an example syntax table that includes syntax indicating the number of tile columns whose widths are explicitly signaled and syntax indicating the number of tile rows whose heights are explicitly signaled.
[0522] [Table 11]
[0523] Meanwhile, the syntax loop_filter_across_tiles_enabled_flag indicates whether or not it is permitted to apply an in-loop filter at a boundary of tiles in a picture that references a picture parameter set. Here, the in-loop filter may include at least one of a deblocking filter, an ALF, or an SAO. The flag loop_filter_across_tiles_enabled_flag having a value of 1 indicates that an in-loop filter across a boundary of tiles in a picture that references a picture parameter set is applicable. Meanwhile, the flag loop_filter_across_tiles_enabled_flag having a value of 0 indicates that it is not permitted to apply an in-loop filter at a boundary of tiles in a picture that references a picture parameter set.
[0524] The syntax loop_filter_across_slices_enabled_flag indicates whether or not it is permitted to apply an in-loop filter at a boundary of a slice in a picture that references a picture parameter set. Here, the in-loop filter may include at least one of a deblocking filter, an ALF, or an SAO. The flag loop_filter_across_slices_enabled_flag having a value of 1 indicates that an in-loop filter across a boundary of a slice in a picture that references a picture parameter set is applicable. On the other hand, the flag loop_filter_across_slices_enabled_flag having a value of 0 indicates that it is not permitted to apply an in-loop filter at a boundary of a slice in a picture that references a picture parameter set.
[0525]
[0526] Tiles may be split recursively. One example is splitting a single tile into multiple tiles.
[0527] Each of the tiles generated by dividing a tile may be referred to as a subtile or a brick. A brick may be a unit of parallel processing. For example, the bricks may be encoded / decoded independently of each other. When encoding / decoding a block included in a brick, data of other blocks may be set not to be used. For example, samples included in other bricks may be set to be unavailable as reference samples for intra prediction. Alternatively, data in other bricks may be set not to be used as merge candidates, motion vector prediction candidates (AMVP candidates), or motion information candidates. Alternatively, data in other bricks may not be used for symbol context calculation.
[0528] FIG. 35 is a diagram for explaining a mode of generating bricks.
[0529] A tile may be split horizontally to generate bricks. For example, in the example shown in Figure 35, a tile belonging to the last tile column in the current picture is shown to be split into two bricks.
[0530] If it is assumed that raster scanning is applied to tiles, raster scanning may also be applied between bricks. For example, after all bricks included in a particular tile are scanned, the next tile may be scanned. That is, a brick may have the same status as a tile.
[0531] The boundaries of a brick may coincide with the boundaries of a coding tree unit, i.e., at least one coding tree unit row in a tile may be defined as a brick.
[0532] Tiles and bricks may be identified by a tile index. A tile index may be assigned to each tile and brick according to the raster scan order. If a tile is divided into multiple bricks, each of the multiple bricks may be assigned a tile index.
[0533] In the embodiments described below, the term "tile" may include not only tiles but also tiles generated by dividing tiles (i.e., subtiles or bricks).
[0534]
[0535] At least one tile may be defined as one processing unit. For example, a plurality of tiles may be defined as one slice. A slice may also be called a tile group.
[0536] Alternatively, one tile may be divided into a plurality of processing units. For example, one tile may be divided into a plurality of slices. In this case, one slice may include at least one coding tree unit sequence. When one tile is divided into a plurality of slices, information indicating the height of each slice may be signaled via a bitstream.
[0537] Video encoding / decoding information may be signaled via a slice header, which may apply commonly to tiles and / or blocks that belong to the slice.
[0538] Information indicating a slice type may be signaled via a bitstream. The information indicates how to define a slice in a current picture. As an example, a syntax rect_slice_flag indicating a slice type may be signaled via a bitstream.
[0539] The syntax rec_slice_flag indicates whether slices are defined based on the raster scan order of tiles or whether slices are defined in a rectangular shape. As an example, rec_slice_flag being 0 indicates that slices are defined based on the raster scan order of tiles. On the other hand, rec_slice_flag being 1 indicates that slices are defined in a rectangular shape.
[0540] The above two methods for determining the slices are described in detail below.
[0541] The raster scan-based definition method is for identifying at least one or more tiles according to a raster scan order, and then defining the identified at least one or more tiles as a slice. In the raster scan-based definition method, one or more consecutive tiles may be defined as a slice. In this case, the consecutive tiles may be determined according to a raster scan order. When the raster scan slice is applied, a non-rectangular slice may also be generated.
[0542] 36 and 37 are diagrams showing examples of defining slices based on raster order.
[0543] As an example, in the example shown in FIG. 36, when the first slice slice0 includes three tiles, the first slice slice0 may be determined to include Tile0 to Tile2 according to the raster scan order. When the second slice slice1 includes six tiles, the second slice slice1 may be determined to include Tile3 to Tile8 according to the raster scan order. The last slice slice2 may include the remaining tiles Tile9 to Tile11 according to the raster scan order.
[0544] When defining slices based on the raster scan order, information indicating the number of tiles each slice contains may be signaled, and for the last slice, the signaling of information indicating the number of tiles the slice contains may be omitted.
[0545] When a slice contains multiple tiles, the tiles may have different widths or heights. As an example, the height of Tile3 in the second slice slice1 is shown to be different from the rest of the tiles.
[0546] The rectangular slice definition method is a division method that allows only rectangular slices. When the rectangular slice definition method is applied, tiles located at the four corners of a slice belong to the same row or the same column.
[0547] FIG. 38 shows an example in which only rectangular slices are permitted.
[0548] 38, the fourth slice, slice3, includes Tile5, Tile6, Tile9, and Tile10. When a slice includes multiple tiles, as in the example shown, a rectangle having the upper left tile and the lower right tile that make up the slice as its two vertices may be defined as one slice.
[0549] The boundaries of a slice may coincide with picture boundaries and / or tile boundaries. As an example, the left or top boundary of a slice may be set to a picture boundary, or the left or top boundary of a slice may be set to a tile boundary.
[0550] Alternatively, if a rectangular slice definition method is applied, a tile can be divided into multiple rectangular slices.
[0551] When a rectangular slice definition method is applied (e.g., when rect_slice_flag is 1), information indicating whether or not a picture is composed of a single slice may be signaled. As an example, a syntax element one_slice_in_pic_flag indicating whether or not the number of slices in a picture is one may be signaled via a bitstream. When the flag one_slice_in_pic_flag is 1, it indicates that the picture is composed of one slice. On the other hand, when the flag one_slice_in_pic_flag is 0, it indicates that the picture is composed of at least two slices. When the value of the flag one_slice_in_pic_flag is 0, slice configuration information may be additionally signaled. As an example, Table 12 illustrates a syntax table including the syntax element one_slice_in_pic_flag.
[0552] [Table 12-1] [Table 12-2]
[0553] In Table 12, the syntax element single_brick_per_slice_flag indicates whether one tile is composed of one slice. When the value of the syntax element single_brick_per_slice_flag is 1, one tile may be set to one slice. In other words, when the value of the syntax element single_brick_per_slice_flag is 1, the configuration of tiles in a picture may be the same as the configuration of slices.
[0554] When the value of the syntax element single_brick_per_slice_flag is 0, rect_slice_flag may be signaled to indicate whether or not the rectangular slice definition method is used. The syntax element rect_slice_flag being 1 indicates that the rectangular slice definition method is used.
[0555] When the value of the syntax rect_slice_flag is 1 and the value of the syntax single_brick_per_slice_flag is 0, the syntax one_slice_in_pic_flag may be signaled. As illustrated, when one_slice_in_pic_flag is 1, coding of information on the configuration of a slice (e.g., syntax top_left_brick_idx[i] indicating an index of a tile included in the slice and / or syntax bottom_right_brick_idx_delta[i] indicating an index difference between a tile included in the first slice and a tile included in the second slice) may be omitted. That is, one_slice_in_pic_flag may be used to determine whether information on the configuration of the slice is coded.
[0556] A picture may also indicate a sub-picture. A picture may be divided into at least one sub-picture. Sub-picture partition related information may be signaled at a sequence level. As an example, sub-picture partition related information signaled via a sequence parameter set may be commonly applied to all pictures that refer to the sequence parameter set.
[0557] The sub-picture division related information may include information indicating whether a picture is divided into multiple sub-pictures, information indicating the number of sub-pictures, information indicating the size of the sub-pictures, or information indicating whether the sub-pictures function as independent pictures.
[0558] For each subpicture, the syntax one_slice_in_pic_flag may be signaled to indicate whether or not it is composed of a single slice.
[0559] Alternatively, a syntax element one_slice_in_pic_flag may be signaled at the sequence or picture level to indicate whether each subpicture is composed of a single slice. As an example, when the syntax element one_slice_in_pic_flag is signaled at the sequence level and the syntax element one_slice_in_pic_flag is 1, it indicates that each subpicture in all pictures that refer to the sequence parameter set is defined as one slice.
[0560] Alternatively, one_slice_in_pic_flag is signaled at the picture level, and the syntax one_slice_in_pic_flag being 1 indicates that all subpictures in the current picture are composed of a single slice, whereas the flag one_slice_in_pic_flag being 0 indicates that at least one subpicture in the current picture is composed of multiple slices.
[0561] As another example, whether to signal the syntax elements single_brick_per_slice_flag and rect_slice_flag may be configured to depend on the syntax element one_slice_in_picture_flag. Table 13 shows an example of this.
[0562] [Table 13-1] [Table 13-2]
[0563] As illustrated in Table 13, the value of the syntax one_slice_in_pic_flag may determine whether to signal the syntax single_brick_per_slice_flag and the syntax rect_slice_flag. As an example, when the value of the syntax one_slice_in_pic_flag is 1, the signaling of the syntax single_brick_per_slice_flag and the syntax rect_slice_flag may be omitted.
[0564] When it is determined that a picture is composed of multiple slices, a syntax indicating the number of slices in the picture may be coded and signaled. As an example, a syntax num_slices_in_pic_minus1 indicating the number of slices in the picture may be signaled via a bitstream. The syntax num_slices_in_pic_minus1 may indicate a value obtained by subtracting 1 from the number of slices in the picture. In this way, the decoder may add 2 to the value indicated by the syntax num_slices_in_pic_minus2 to determine the total number of slices.
[0565] When a rectangular slice definition method is applied, information for identifying tiles included in each slice may be signaled to determine tiles included in each slice. The information may be used to identify at least one of the first tile or the last tile of a slice. The order between tiles may be determined according to a predetermined scan order. As an example, in the case of a raster scan order, the first tile refers to a tile located at the top left corner of a slice, and the last tile refers to a tile located at the bottom right corner of a slice.
[0566] Information for identifying at least one of an index of a tile located at the top left corner of a slice or an index of a tile located at the bottom right corner of a slice may be signaled via a bitstream. As an example, at least one of a syntax for identifying an index of a tile located at the top left corner of a slice, top_left_tile_idx, or a syntax for identifying an index of a tile located at the bottom right corner of a slice, bottom_right_tile_idx, may be signaled via a bitstream. For the last slice, coding of at least one of a syntax for identifying an index of a tile located at the top left corner of a slice or a syntax for identifying an index of a tile located at the bottom right corner of a slice may be omitted. A remaining area other than an area occupied by a previous slice in a current picture may be set as the last slice.
[0567] As an example, in the example illustrated in FIG. 38, for slice0, slice1, and slice2, the index of the tile located at the upper left corner of each slice, top_left_tile_idx, and the index of the tile located at the lower right corner of each slice, bottom_right_tile_idx, may be signaled. On the other hand, for slice3, which is the last slice in the picture, the coding of top_left_tile_idx and bottom_right_tile idx may be omitted. The index of the upper left tile of slice3, which is the last slice in the picture, may be set to the index of the tile located at the upper left corner in the remaining area other than slice0, slice1, and slice2 in the picture, and the index of the lower right tile of slice3 may be set to the index of the tile located at the lower right corner in the remaining area (or the tile located at the lower right corner of the picture).
[0568] It is also possible to code and signal differential information for identifying the index of a tile included in a slice. As an example, information indicating a difference between an index of a tile located at the upper left end of a slice and an index of a tile located at the lower right end of the slice may be signaled via a bit stream. As an example, for the i-th slice, a syntax for identifying an index of a tile located at the upper left end of the slice and a syntax for indicating a difference between an index of a tile located at the upper left end of the slice and an index of a tile located at the lower right end of the slice may be signaled. The index of the bottom right tile of the i-th slice may be derived by adding together top_left_tile_idx[i] and bottom_right_tile_idx_delta[i]. For the last slice, coding of at least one of the syntax indicating an index of a tile located at the upper left end of the slice or the syntax indicating a difference between an index of a tile located at the upper left end of the slice and an index of a tile located at the lower right end of the slice may be omitted. The remaining area other than the area occupied by the previous slice in the current picture may be set as the last slice.
[0569] Alternatively, at least one of horizontal tile index difference information and vertical tile index difference information may be coded and signaled. The horizontal tile index difference information may indicate a difference between an index of a first tile and an index of a rightmost tile included in the same tile row as the first tile. The vertical tile index difference information may indicate a difference between an index of a first tile and an index of a bottommost tile included in the same tile column as the first tile.
[0570] Depending on the position of the slice, the type of difference information to be coded may be determined. As an example, for slices adjacent to the right or bottom boundary of the picture, horizontal tile index difference information or vertical index difference information may be coded and signaled. The amount of bits may be reduced by coding horizontal tile index difference information or vertical index difference information instead of information indicating the index difference between the top left tile and the top right tile.
[0571] Alternatively, when a picture is divided into at least one slice row, for a slice adjacent to the left boundary of the picture, information indicating an index difference between the top left tile and the bottom right tile may be coded. Slices belonging to the same row may be set to have the same height.
[0572] It is also possible to code and signal difference information between the index of the tile included in the first slice and the index of the tile included in the second slice, where the first slice and the second slice are determined based on the scan order, and the tiles occupied by each slice may be different.
[0573] As an example, when the tiles constituting a first slice are different from the tiles constituting a second slice, the index of the second slice may be the index i of the first slice plus 1.
[0574] Alternatively, when a first tile is divided to include multiple slices, differential information between a first slice included in the first tile and a second slice including a second tile that is the next tile to the first tile in the scanning order or a second slice included in the second tile may be encoded. In this case, differential information may be encoded only for the first slice or the last slice among the multiple slices included in the first tile.
[0575] The tile used to derive the difference information between the first slice and the second slice may be located at the top left corner, top right corner, bottom right corner, bottom left corner or center of the slice.
[0576] Table 14 illustrates an example syntax table that includes differential information.
[0577] [Table 14-1] [Table 14-2]
[0578] As an example, syntax top_left_brick_idx_delta[i] indicating the index difference between the top left tile of the i-th slice and the top left tile of the previous slice (i.e., the i-1-th slice) may be signaled via the bitstream.
[0579] Based on the difference information, the position of the top left tile in the i-th slice may be determined. Specifically, the index of the top left tile of the i-th slice may be derived by summing the top left tile index of the i-1-th slice and the syntax top_left_brick_idx_delta[i]. Equation 11 shows an example of deriving the index of the top left tile of the i-th slice.
[0580]
number
[0581] In Expression 11, TopLeftBrickIdx[i-1] indicates the index of the top left tile of the i-1th slice.
[0582] For the first slice (i.e., the slice with index i=0), the coding of the syntax top_left_brick_idx_delta[i] indicating the difference information from the previous slice may be omitted. For the first slice, the syntax bottom_right_brick_idx_delta[i] indicating the index difference between the top left tile and the bottom right tile of the slice may be coded and signaled.
[0583] Table 15 is an example showing a process of identifying the slice to which each tile belongs using the index information and the difference information.
[0584] [Table 15]
[0585] NumBricksInSlice[i] indicates the number of tiles that slice i contains. botRightBkIdx indicates the index of the bottom right tile. The index of the bottom right tile may be derived by adding 1 to the sum of the syntax top_left_brick_idx_minus1[i] and the syntax bottom_right_idx_delta[i].
[0586] BrickColBd[j] gives the index of the tile column that tile j belongs to. BrickRowBd[j] gives the index of the tile row that tile j belongs to. BricksToSliceMap[j]=i gives the addition of tile j to slice i.
[0587] Table 16 is an example showing a process for using the difference information to identify the slice to which each tile belongs.
[0588] [Table 16]
[0589] NumBricksInSlice[i] indicates the number of tiles contained in slice i. TopLeftBrickIdx[i] indicates the index of the top left tile in slice i. botRightBkIdx indicates the index of the bottom right tile. BrickColBd[j] indicates the index of the tile column to which tile j belongs. BrickRowBd[j] indicates the index of the tile row to which tile j belongs. BricksToSliceMap[j]=i indicates that tile j is to be added to slice i.
[0590] Instead of the syntax top_left_brick_idx_delta[i], the syntax bottom_right_brick_idx_delta[i] indicating the index difference between the bottom right tile of the i-th slice and the bottom right tile of the previous slice (i.e., the i-1-th slice) may be signaled via the bitstream. In this case, the index of the bottom right tile of the i-th slice may be derived by adding the syntax bottom_right_brick_idx_delta[i] to the index of the bottom right tile of the previous slice.
[0591] The bottom_right_brick_idx_delta[0] for the first slice may be set equal to the index of the bottom-right tile of the first slice, i.e., the index of the bottom-right tile of the first slice may be set equal to the syntax bottom_right_brick_idx_delta[0].
[0592] Information indicating whether an index of a tile included in an i-th slice in a picture has a value greater than an index of a tile included in an i-1-th slice may be coded and signaled via a bitstream. As an example, syntax bottom_right_increasing_order_flag may be signaled via a bitstream. When the flag bottom_right_increasing_order_flag is 1, it indicates that an index of a tile included in an i-th slice in a picture always has a value greater than an index of a tile included in an i-1-th slice. On the other hand, when the flag bottom_right_increasing_order_flag is 0, it indicates that an index of a tile included in at least one slice in a picture may have a value less than an index of a tile included in a previous slice.
[0593]
[0594] A slice may be defined using information specifying at least one of the width or height of the slice. For example, at least one of the syntax slice_width_in_tiles_minus1[i] indicating the width of the i-th slice or the syntax slice_height_in_tiles_minus1[i] indicating the height of the i-th slice may be signaled via a bitstream.
[0595] The syntax slice_width_in_tiles_minus1[i] indicates a value obtained by subtracting 1 from the number of tile columns included in the i-th slice. The syntax slice_height_in_tiles_minus[i] indicates a value obtained by subtracting 1 from the number of tile rows included in the i-th slice.
[0596] The i-th slice may consist of a number of tile columns determined based on the syntax slice_width_in_tiles_minus1[i] and a number of tile rows determined based on the syntax slice_height_in_tiles_minus1[i], where the top-left tile of the i-th tile column may have an index value determined based on top_left_brick_idx_delta[i].
[0597] Alternatively, the syntax slice_height_in_tiles_minus1[i] indicating the height of a slice may be signaled only for slices adjacent to the left boundary of a picture, and coding of the syntax slice_height_in_tiles_minus1[i] may be omitted for other slices. The height of a slice for which coding of the syntax slice_height_in_tiles_minus[i] is omitted may be set to the same height as the slice that is adjacent to the left boundary of the current picture among the slices included in the same row.
[0598] The index TopLeftBrickIdx[0] of the top-left tile of the first slice may be set to 0. As a result, in the second slice (i.e., the slice with index i=1), the syntax top_left_brick_idx_delta[i] has substantially the same value as the index of the top-left tile. As a result, instead of the syntax top_left_brick_idx_delta[i], the syntax top_left_brick_idx[i] may be signaled for the second slice, where top_left_brick_idx[i] indicates the index of the top-left tile of the i-th slice.
[0599] As another example, the syntax top_left_brick_idx_delta[i] may be set to the difference between the first tile of the i-th slice and the first tile of the i+1-th slice. That is, the index of the top left tile of the i+1-th slice may be derived by adding the index of the top left tile of the i-th slice and the syntax top_left_brick_idx_delta[i] signaled for the i-th slice. When the syntax top_left_brick_idx_delta[i] indicates difference information between the i-th slice and the i+1-th slice, the coding of the syntax top_left_brick_idx_delta[i] may be omitted for the last slice.
[0600] Slices can also be determined using a syntax table such as Table 17 below.
[0601] [Table 17-1] [Table 17-2]
[0602] A flag rect_slice_flag indicating the slice type is coded, and if the flag rect_slice_flag is 1, a syntax element num_slices_in_pic_minus1 indicating the number of slices in a picture may be coded.
[0603] If it is determined that a picture includes multiple slices, the syntax element slice_width_in_tiles_minus1[i] indicating the width of each slice and the syntax element slice_height_in_tiles_minus1[i] indicating the height of each slice may be coded and signaled.
[0604] Also, a syntax tile_idx_delta[i] indicating a difference between an index of a tile included in the i-th slice and an index of a tile included in the i+1-th slice may be signaled. For the last tile, coding of the syntax tile_idx_delta[i] may be omitted.
[0605] It is also possible to code a syntax derived by subtracting an offset from the tile index difference between two slices. The offset may be a natural number such as 1 or 2. As an example, the syntax tile_idx_delta_minus1[i] may be signaled via a bitstream. The difference between the index of a tile included in the i-th slice and the index of a tile included in the i+1-th slice may be derived by adding 1 to the syntax tile_idx_delta_minus1[i].
[0606] The difference information of the tile index may be coded / decoded when the current picture includes multiple slices. That is, when the current picture is composed of a single slice, the signaling of the syntax tile_idx_delta[i] indicating the difference of the tile index may be omitted. For example, when a flag one_slice_in_pic_flag indicating whether the current picture is composed of a single slice is 1, the signaling of the syntax tile_idx_delta[i] may be omitted.
[0607] Alternatively, the encoder may determine whether or not to encode the syntax tile_idx_delta[i] indicating the difference between tile indexes, and may encode the flag tile_idx_delta_present_flag indicating whether or not the syntax tile_idx_delta[i] is encoded according to the determination. The value of the flag tile_idx_delta_present_flag being 0 indicates that the syntax tile_idx_delta[i] is not encoded / decoded. When the value of the flag tile_idx_delta_present_flag is 1, the syntax tile_idx_delta[i] may be encoded / decoded for at least one slice.
[0608] A tile can also be divided into multiple slices, for example splitting the tile horizontally to generate multiple slides.
[0609] If it is determined that the slice does not include multiple tiles, it may be determined whether to divide the tile into multiple slices. As an example, when the syntax slice_width_in_tiles_minus1[i] and the syntax slice_height_in_tiles_minus1[i] are both 0, it indicates that the slice is composed of only one tile or that one tile is divided into multiple slices.
[0610] If the syntax slice_width_in_tiles_minus1[i] and the syntax slice_height_in_tiles_minus1[i] are both 0, information indicating whether a tile is divided into multiple slices may be signaled.
[0611] As an example, a syntax element num_slices_in_tile_minus1[i] indicating the number of slices included in a tile may be signaled. The syntax element num_slices_in_tile_minus1[i] indicates a value obtained by subtracting 1 from the number of slices included in the i-th tile.
[0612] When a tile including an i-th slice is composed of multiple slices, a syntax indicating the height of each slice in the tile may be coded. As an example, a syntax slice_height_in_ctu_minus1[i][j] indicating the height of a j-th slice (i.e., an i+j-th slice) in a tile including an i-th slice may be signaled. The syntax slice_height_in_ctu_minus1[i][j] may indicate the number of coding tree unit rows included in the j-th slice in the tile including the i-th slice. Table 18 illustrates an example of a syntax structure including the syntax slice_height_in_ctu_minus1[i][j] indicating the height of a slice.
[0613] [Table 18-1] [Table 18-2]
[0614] Based on the height of the tile, it may be determined whether or not to encode / decode the syntax indicating the height of the slice. As an example, when the tile including the i-th slice is configured with a single coding tree unit row, or when the tile including the i-th slice is configured with two coding tree unit rows, encoding / decoding of the syntax slice_height_in_ctu_minus1[i][j] indicating the height of the slice may be omitted. The height of the syntax slice_height_in_ctu_minus1[i][j] may be adaptively determined according to the number of slices in the tile. As an example, when the number of slices in the tile is 1, the height of the slice may be set to be the same as the height of the tile. Or, when the number of slices in the tile is 2 and the height of the tile is 2, the height of each slice may be set to 1. In Table 18, the variable TileIdx[i] indicates the index of the tile including the i-th slice, and the variable NumTileColumn indicates the number of tile columns. TileIdx[i] / NumTileColumn returns the row including the tile including the i-th slice. The variable RowHeight[TileIdx[i] / NumTileColumn] indicates the height of the tile that contains the i-th slice.
[0615] As another example, a syntax element num_exp_slices_in_tile[i] indicating information indicating the number of slice heights that need to be explicitly signaled may be signaled via the bitstream. The syntax element num_exp_slices_in_tile[i] may have a value equal to or smaller than the number of slices that the tile contains.
[0616] The syntax num_exp_slices_in_tile[i] being 0 indicates that the tile is not divided into multiple slices. The syntax num_exp_slices_in_tile[i] being greater than 0 indicates that the tile may be divided into multiple slices.
[0617] Information indicating the height of slices may be signaled in the number of syntax elements num_exp_slices_in_tile[i]. As an example, when the syntax element num_exp_slices_in_tile is greater than 1, the syntax element exp_slice_height_in_ctu_minus1[j] indicating the height of the j-th slice in the tile may be signaled.
[0618] If slice index j is smaller than the number of slices whose heights are explicitly signaled, the width of slice j may be determined based on the syntax exp_slice_height_in_ctu_minus1[j] signaled via the bitstream, whereas if slice index k is equal to or larger than the number of slices whose heights are explicitly signaled, the height of slice k may be determined based on the last signaled syntax exp_slice_height_in_ctu_minus1[l], where l indicates the index of the slice whose height was last signaled and may be an integer smaller than k.
[0619] As an example, if the value obtained by subtracting the height of the previous slice from the height of the tile is equal to or greater than the value obtained by adding 1 to the syntax exp_slice_height_in_ctu_minus1[l], the height of slice k may be set to the value obtained by adding 1 to the syntax exp_slice_height_in_ctu_minus1[l]. On the other hand, if the value obtained by subtracting the height of the previous slice from the height of the tile is smaller than the value obtained by adding 1 to the syntax exp_slice_height_in_ctu_minus1[l], the difference value obtained by subtracting the height of the previous slice from the height of the tile may be set to the height of slice k.
[0620] That is, the heights of the remaining slices other than the slice whose height is explicitly signaled may have a value less than or equal to the height of the last slice among the slices whose height is explicitly signaled.
[0621] In the above example, it is illustrated that only when the rectangular slice definition method is applied, it is determined whether or not to code the syntax one_slice_in_pic_flag indicating whether or not a picture is composed of a single slice. Conversely to what is illustrated, it is also possible to code the syntax one_slice_in_pic_flag first, and then determine whether or not to code the syntax rect_slice_flag according to the value of the flag one_slice_in_pic_flag. As an example, when the value of one_slice_in_pic_flag is 1, the coding of rect_slice_flag may be omitted.
[0622]
[0623] If the number of tile columns in the current picture is 1, coding of the syntax element slice_width_in_tiles_minus1 may be omitted. Also, if the number of tile rows in the current picture is 1, coding of the syntax element slice_height_in_tiles_minus1 may be omitted.
[0624] Alternatively, coding of at least one of the information indicating the slice width and the information indicating the slice height may be omitted.
[0625] As an example, the coding of the syntax slice_width_in_tiles_minus1 indicating the width of a slice may be omitted, and the distance from a tile at a predetermined position in an adjacent slice may be set as the width of the slice. Specifically, the syntax top_left_brick_idx_delta[i] may specify the top left tile of the i+1th slice adjacent to the right side of the i-th slice. The width of the i-th slice may be derived as the difference between the x coordinate of the top left tile in the i-th slice (e.g., the x coordinate of the top left sample) and the x coordinate of the top left tile in the i+1th slice (e.g., the x coordinate of the top left sample).
[0626] Alternatively, the coding of the syntax slice_height_in_tiles_minus1 indicating the height of the slice may be omitted, and the distance from a tile at a predetermined position in an adjacent slice may be set as the width of the slice. Specifically, the syntax top_left_brick_idx_delta[j-1] may specify the top left tile of the jth slice located at the bottom end of the ith slice. The height of the ith slice may be derived as the difference between the y coordinate of the top left tile in the ith slice (e.g., the y coordinate of the top left sample) and the y coordinate of the top left tile in the jth slice (e.g., the y coordinate of the top left sample).
[0627] Alternatively, when defining a rectangular slice, information indicating whether or not differential value information is used may be signaled via a bit stream. As an example, tile_idx_delta_present_flag indicating whether or not differential value information is used may be signaled via a bit stream. The value of the syntax tile_idx_delta_present_flag being 1 indicates that the syntax indicating the differential value of the tile index is coded and signaled. As an example, when the value of the syntax tile_idx_delta_present_flag is 1, the i-th slice may be defined by the syntax slice_width_in_tiles_minus1[i] and the syntax slice_height_in_tiles_minus1[i] indicating the size of the slice, and differential value information (e.g., top_left_brick_idx_delta[i-1] or bottom_right_brick_idx_delta[i]) for determining the position of the top left tile or the top right tile in the slice.
[0628] When the value of the syntax tile_idx_delta_present_flag is 0, the i-th slice may be determined by the syntax slice_width_in_tiles_minus1[i] and the syntax slice_height_in_tiles_minus1[i] indicating the size of the slice. When the value of the syntax tile_idx_delta_prsent_flag is 0, the slice adjacent to the right of the slice that contacts the left boundary of the current picture may be set to have the same height as the slice that contacts the left boundary. As a result, information indicating the height of the slice may be signaled only for the slice that contacts the left boundary of the current picture, and the signaling of information indicating the height of the slice may be omitted for slices that do not contact the left boundary of the current picture.
[0629] In some cases, it may be determined whether or not to signal information indicating the size of a slice based on the index of a tile within a slice. As an example, Table 19 shows a syntax structure in which it is determined whether or not to signal information determining the size of a slice based on the tile index within a slice.
[0630] [Table 19]
[0631] In Table 19, the variable tileIdx indicates the index of the tile included in the i-th slice. Specifically, the variable tileIdx may be set to the index of the tile at a predefined position in the i-th slice. The tile at the predefined position may indicate the top left tile.
[0632] The variable NumTileColumns indicates the number of tile columns included in the picture. As an example, the position of the tile column to which the top-left tile belongs may be determined based on a modulo operation (%) of the index of the top-left tile in the i-th slice and the value obtained by subtracting 1 from the variable NumTileColums. As an example, the result value n of the modulo operation indicates that the top-left tile belongs to the tile column with index n.
[0633] When the top left tile in a slice belongs to the rightmost tile column in a picture, signaling of the syntax slice_width_in_tiles_minus1[i] indicating the width of the slice may be omitted. As an example, when the result of the modulo operation is equal to the value obtained by subtracting 1 from the number of tile columns in a picture, NumTileColumns, encoding / decoding of the syntax slice_width_in_tiles_minus1[i] may be omitted. In this case, the value of the syntax slice_width_in_tiles_minus1[i] may be regarded as 0.
[0634] The location of the tile row to which the top-left tile belongs may be determined based on a division operation between the index of the top-left tile in the i-th slice and the variable NumTileColumns. As an example, a quotient of the division operation of m indicates that the top-left tile is included in the tile row with index m.
[0635] If the top left tile in a slice belongs to the bottommost tile row in a picture, signaling of the syntax slice_height_in_tiles_minus[i] indicating the height of the slice may be omitted. As an example, if the result of the division operation is equal to the number of tile rows in a picture, NumTileRows, minus 1, encoding / decoding of the syntax slice_height_in_tiles_minus1[i] may be omitted. In this case, the value of the syntax slice_height_in_tiles_minus1[i] may be considered as 0.
[0636] If the top left tile in a slice belongs to the rightmost column and the bottommost row in a picture, coding of both the syntax elements slice_width_in_tiles_minus1[i] and slice_height_in_tiles_minus1[i] may be omitted. In this case, the values of both syntax elements may be regarded as 0.
[0637] If the top left tile in the slice is not included in the bottommost row in the picture, it may be determined whether to encode / decode the syntax element slice_height_in_tiles_minus1[i] indicating the height of the slice by taking into account at least one of whether the top left tile in the slice belongs to the leftmost column in the picture and / or whether difference information between tile indexes is encoded.
[0638] As an example, even if the top left tile in a slice is not included in the bottom row in the picture, if the tile index differential is encoded (e.g., when tile_idx_delta_present_flag is 1), the encoding / decoding of the syntax slice_height_in_tiles_minus1[i] indicating the height of the slice may be omitted.
[0639] Alternatively, even if the top left tile in a slice does not belong to the bottom row in the picture, if the top left tile does not belong to the leftmost column in the slice, the encoding / decoding of the syntax slice_height_in_tiles_minus1[i] may be omitted.
[0640] If the top left tile in a slice does not belong to the bottom row in the picture but the encoding / decoding of the syntax slice_height_in_tiles_minus1[i] is omitted, the syntax may be set to the height of the previous slice, slice_height_in_tiles_minus[i-1].
[0641] Table 20 shows the semantics for the syntax slice_width_in_tiles_minus1[i] and the syntax slice_height_in_tiles_minus1[i].
[0642] [Table 20]
[0643] In the example of Table 19, the syntax tile_idx_delta_present_flag, which indicates whether information indicating the difference in tile index is encoded, is illustrated as being encoded / decoded when the number of slices included in the current picture is one or more.
[0644] When the number of slices in a picture is two, two rectangular slices may be generated by dividing the picture horizontally or vertically.
[0645] FIG. 39 is a diagram showing an example in which a picture is composed of two slices.
[0646] FIG. 39(a) shows an example where a picture is divided in the horizontal direction, and FIG. 39(b) shows an example where a picture is divided in the vertical direction.
[0647] As in the illustrated example, when a picture includes only two slices, each of the two slices may be distinguished only by syntax indicating the slice width or syntax indicating the slice height.
[0648] As an example, as shown in (a) of Fig. 39, when dividing a picture in the horizontal direction, slice 0 may be identified based on the syntax slice_width_in_tiles_minus1[0] indicating the width of the slice with index 0 and the syntax slice_height_in_tiles_minus1[0] indicating the height of the slice with index 0. For slice 1, encoding / decoding of the syntax for determining the slice size may be omitted, and the remaining area in the picture other than slice 0 may be set to slice 1. In addition, the index of the upper left tile of slice 1 may be derived by subtracting 1 from the product of the number of tile rows and the number of tile columns included in slice 0.
[0649] As in the example illustrated in (b) of Figure 39, when dividing a picture in the vertical direction, slice 0 may be identified based on the syntax slice_width_in_tiles_minus1[0] indicating the width of the slice with index 0 and the syntax slice_height_in_tiles_minus1[0] indicating the height of the slice with index 0. For slice 1, encoding / decoding of the syntax for determining the slice size may be omitted, and the remaining area in the picture other than slice 0 may be set to slice 1. In addition, the index of the top left tile of slice 1 may be derived in the same way as the number of tile rows included in slice 1.
[0650] As described above, when a picture includes only two slices, the index of the upper left tile in all slices may be derived even if the coding of the information indicating the difference between the tile indexes is omitted. As a result, when the number of slices included in a picture is two or less, the coding / decoding of the syntax tile_idx_delta_present_flag indicating whether or not to code / decode the tile index difference information may be omitted, and the value may be considered as 0. As a result, the coding / decoding of tile_idx_delta[i] for each slice may also be omitted.
[0651] Table 21 shows a syntax structure in which the encoding / decoding of the syntax element tile_idx_delta_present_flag is omitted when the number of slices included in the current picture is two or less.
[0652] [Table 21]
[0653] As in the example of Table 21, the syntax tile_idx_delta_present_flag may be encoded / decoded only if the syntax num_slices_in_pic_minus1 is greater than 1.
[0654] It is also possible to define slices based on coding tree unit indices instead of tile indices.
[0655] In the above examples, it has been assumed that the tiles are ordered according to a raster scan order to define the slices, but as alternative examples, the tiles may be ordered according to a vertical, horizontal or diagonal scan to define the slices.
[0656]
[0657] It is within the scope of the invention to apply the embodiments described in the context of a decoding or encoding process to an encoding or decoding process. It is also within the scope of the invention to modify the embodiments described in a given order in an order different from that described.
[0658] The above-described embodiments are described based on a series of steps or flow charts, but this does not limit the chronological order of the invention, and the steps may be performed simultaneously or in a different order as necessary. In the above-described embodiments, each of the components (e.g., units, modules, etc.) constituting the block diagrams may be realized as a hardware device or software, and multiple components may be combined and realized as one hardware device or software. The above-described embodiments may be realized in the form of program instructions that may be executed by various computer components and may be recorded on a computer-readable recording medium. The computer-readable recording medium may include program instructions, data files, data structures, etc., alone or in combination. Examples of computer-readable recording media include magnetic media such as hard disks, floppy disks, and magnetic tapes, optical recording media such as CD-ROMs and DVDs, magneto-optical media such as floptical disks, and hardware devices specially configured to store and execute program instructions, such as ROMs, RAMs, and flash memories. The hardware devices may be configured to operate as one or more software modules to perform processing according to the present invention, and vice versa. [Industrial Applicability]
[0659] The present invention can be applied to electronic devices that encode / decode video.
Claims
1. A method for decoding video content, comprising: accessing, by one or more computer processors, a bitstream representing the video content; and decoding, by the one or more computer processors, the bitstream; Decoding the bitstream determining whether a sub-partition intra-coding method is applied to a current block of the video content; in response to determining that the sub-partition intra-coding method has been applied to the current block of the video content, determining, for each sub-block of the current block, whether to apply a transform skip to the sub-block; A video content decoding method comprising the steps of:
2. one or more processors; When executed by the one or more processors, it causes the one or more processors to: accessing a bitstream representing video content; and a memory storing instructions for performing operations including: Decoding the bitstream determining whether a sub-partition intra-coding method is applied to a current block of the video content; in response to determining that the sub-partition intra-coding method has been applied to the current block of the video content, determining, for each sub-block of the current block, whether to apply a transform skip to the sub-block; The system has:
3. When executed by one or more processors, the one or more processors accessing a bitstream representing video content; and decoding the bitstream, Decoding the bitstream determining whether a sub-partition intra-coding method is applied to a current block of the video content; in response to determining that the sub-partition intra-coding method has been applied to the current block of the video content, determining, for each sub-block of the current block, whether to apply a transform skip to the sub-block; 1. A computer program comprising:
4. A method for encoding video content, comprising: accessing the video content by one or more computer processors; encoding, by the one or more computer processors, the video content into a bitstream; encoding the video content into a bitstream, determining whether to apply a sub-partition intra-coding method to a current block of the video content; in response to a determination of applying the sub-partition intra-coding method to the current block of the video content, determining, for each sub-block of the current block, whether to apply a transform skip to the sub-block; A video content encoding method comprising the steps of:
5. one or more processors; When executed by the one or more processors, it causes the one or more processors to: Accessing video content; and encoding the video content into a bitstream. encoding the video content into a bitstream, determining whether to apply a sub-partition intra-coding method to a current block of the video content; in response to a determination of applying the sub-partition intra-coding method to the current block of the video content, determining, for each sub-block of the current block, whether to apply a transform skip to the sub-block; The system has:
6. When executed by one or more processors, the one or more processors Accessing video content; encoding the video content into a bitstream, encoding the video content into a bitstream, determining whether to apply a sub-partition intra-coding method to a current block of the video content; in response to a determination of applying the sub-partition intra-coding method to the current block of the video content, determining, for each sub-block of the current block, whether to apply a transform skip to the sub-block; 1. A computer program comprising:
Citation Information
Patent Citations
Image coding device, image decoding device, image coding method, and image decoding method
JP2021002774A
Encoder and decoder for various spatial divisions of coded images, encoding method and decoding method
JP2021524706A
An implementation-efficient partition-based intra coding concept
JP2022524815A
Apparatus, method, and computer program for video encoding and decoding
JP2022537576A
Video signal encoding / decoding method and device therefor
JP2022537767A
