Image decoding method, image encoding method, and transmission method

By employing the CABAC method with QT, BT, and TT structures and context models in image coding, the high cost problem of high-resolution images is solved, and coding efficiency and compression effect are improved.

CN116668694BActive Publication Date: 2026-11-27LG ELECTRONICS INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310652360.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-07-02
Filing Date
2019-06-14
Publication Date
2026-11-27
Estimated Expiration
2039-06-14

AI Technical Summary

Technical Problem

The transmission and storage costs of high-resolution and high-quality images are high, and existing technologies struggle to effectively compress and encode these images.

Method used

We employ quadtree (QT), binary tree (BT), and ternary tree (TT) structures, combined with a context model, and use adaptive binary arithmetic coding (CABAC) for image encoding and decoding. We improve encoding efficiency by deriving the context index of segmentation marker syntax elements.

Benefits of technology

It improves image compression efficiency, enhances image coding efficiency, reduces pipeline latency for intra-frame prediction in hardware, and achieves more efficient image coding and decoding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116668694B_ABST
    Figure CN116668694B_ABST
Patent Text Reader

Abstract

Image decoding method, image encoding method and transmission method. A picture decoding method performed by a decoding device according to an embodiment of the disclosure includes the following steps: deriving a context index of a split flag syntax element based on split availability information of a current block; determining a context model based on the derived context index; decoding a value of the split flag syntax element based on CABAC using the determined context model; deriving a current coding unit from the current block based on the value of the split flag syntax element; deriving a prediction block based on inter prediction or intra prediction for the current coding unit; and generating a reconstructed block based on the prediction block.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the original patent application No. 201980047279.X (International Application No.: PCT / KR2019 / 007213, Application Date: June 14, 2019, Invention Title: Method and Apparatus for Entropy Coding Based on CABAC). Technical Field

[0002] This disclosure relates to methods for encoding / decoding still images or video images, and more specifically, to methods and apparatus for segmenting regions into quadtree (QT) structures and using a context model when performing CABAC entropy coding based on binary tree (BT) and ternary tree (TT) structures. Background Technology

[0003] The demand for high-resolution, high-quality images, such as high-definition (HD) and ultra-high-definition (UHD) images, is increasing across various sectors. Because image data is high-resolution and high-quality, the amount of information or bits that needs to be transmitted increases compared to traditional image data. Therefore, transmission and storage costs increase when using media such as traditional wired / wireless broadband lines to transmit image data or when storing image data using existing storage media.

[0004] Therefore, there is a need for an efficient image compression technology for effectively sending, storing, and reproducing information from high-resolution and high-quality images. Summary of the Invention

[0005] Technical issues

[0006] One object of this disclosure is to provide methods and apparatus for enhancing image coding efficiency.

[0007] Another objective of this disclosure is to provide a method and apparatus for enhancing image efficiency based on CABAC.

[0008] Another object of this disclosure is to provide a method and apparatus for determining block structure and block segmentation based on quadtree (QT), binary tree (BT), and ternary tree (TT) structures in the processing of compressed images.

[0009] Another object of this disclosure is to provide methods and apparatus for encoding and decoding images more efficiently using a context model when performing entropy encoding based on QT, BT, and TT structures according to CABAC.

[0010] Technical solution

[0011] An exemplary embodiment of this disclosure provides an image decoding method performed by a decoding device. The method includes the following steps: deriving a context index of a segmentation flag syntax element based on segmentation availability information of a current block; determining a context model based on the derived context index; decoding the value of the segmentation flag syntax element using the determined context model based on context-based adaptive binary arithmetic coding (CABAC); deriving a current coding unit from the current block based on the value of the segmentation flag syntax element; deriving a prediction block based on inter-frame prediction or intra-frame prediction for the current coding unit; and generating a reconstructed block based on the prediction block, wherein the segmentation flag syntax element includes: a directional segmentation flag indicating whether the current block will be vertically segmented, and the segmentation availability... The information includes: BT horizontal segmentation availability flags indicating whether the current block can be horizontally segmented based on a binary tree (BT) structure; TT horizontal segmentation availability flags indicating whether the current block can be horizontally segmented based on a ternary tree (TT) structure; BT vertical segmentation availability flags indicating whether the current block can be vertically segmented based on the BT structure; and TT vertical segmentation availability flags indicating whether the current block can be vertically segmented based on the TT structure. Furthermore, the context index of the directional segmentation flag is derived based on the BT horizontal segmentation availability flags, the TT horizontal segmentation availability flags, the BT vertical segmentation availability flags, and the TT vertical segmentation availability flags.

[0012] Another exemplary embodiment of this disclosure provides a decoding apparatus for performing image decoding. The decoding apparatus includes: an entropy decoder configured to derive a context index of a segmentation flag syntax element based on segmentation availability information of a current block, determine a context model based on the derived context index, decode the value of the segmentation flag syntax element using the determined context model based on CABAC, and derive a current coding unit from the current block based on the value of the segmentation flag syntax element; a predictor configured to derive a prediction block based on inter-frame prediction or intra-frame prediction for the current coding unit; and an adder configured to generate a reconstructed block based on the prediction block, wherein the segmentation flag syntax element includes: a directional segmentation indicating whether the current block is vertically segmented. The segmentation availability information includes: BT horizontal segmentation availability information indicating whether the current block can be horizontally segmented based on the BT structure; TT horizontal segmentation availability information indicating whether the current block can be horizontally segmented based on the TT structure; BT vertical segmentation availability information indicating whether the current block can be vertically segmented based on the BT structure; and TT vertical segmentation availability information indicating whether the current block can be vertically segmented based on the TT structure. Furthermore, the context index of the directional segmentation flag is derived based on the BT horizontal segmentation availability information, the TT horizontal segmentation availability information, the BT vertical segmentation availability information, and the TT vertical segmentation availability information.

[0013] Another exemplary embodiment of this disclosure provides an image encoding method performed by an encoding device. The method includes the following steps: deriving a segmentation flag syntax element representing the segmentation structure of the current block; deriving a context index of the segmentation flag syntax element based on the segmentation availability information of the current block; determining a context model based on the derived context index; and encoding the value of the segmentation flag syntax element based on CABAC using the determined context model, wherein the segmentation flag syntax element includes: a directional segmentation flag indicating whether the current block will be vertically segmented; the segmentation availability information includes: BT horizontal segmentation availability flag information indicating whether the current block can be horizontally segmented based on a BT structure, TT horizontal segmentation availability flag information indicating whether the current block can be horizontally segmented based on a TT structure, BT vertical segmentation availability flag information indicating whether the current block can be vertically segmented based on a BT structure, and TT vertical segmentation availability flag information indicating whether the current block can be vertically segmented based on a TT structure; and deriving the context index of the directional segmentation flag based on the BT horizontal segmentation availability flag information, the TT horizontal segmentation availability flag information, the BT vertical segmentation availability flag information, and the TT vertical segmentation availability flag information.

[0014] Another exemplary embodiment of this disclosure provides an encoding device for performing image encoding. The encoding device includes: an entropy encoder configured to derive a segmentation flag syntax element representing the segmentation structure of the current block, derive a context index of the segmentation flag syntax element based on segmentation availability information of the current block, determine a context model based on the derived context index, and encode the value of the segmentation flag syntax element based on CABAC using the determined context model. The segmentation flag syntax element includes: a directional segmentation flag indicating whether the current block will be vertically segmented; the segmentation availability information includes: a BT horizontal segmentation availability flag indicating whether the current block can be horizontally segmented based on a BT structure, a TT horizontal segmentation availability flag indicating whether the current block can be horizontally segmented based on a TT structure, a BT vertical segmentation availability flag indicating whether the current block can be vertically segmented based on the BT structure, and a TT vertical segmentation availability flag indicating whether the current block can be vertically segmented based on the TT structure; and the context index of the directional segmentation flag is derived based on the BT horizontal segmentation availability flag, the TT horizontal segmentation availability flag, the BT vertical segmentation availability flag, and the TT vertical segmentation availability flag.

[0015] Technical effect

[0016] This disclosure can enhance the overall image / video compression efficiency.

[0017] This disclosure can enhance the efficiency of image coding based on intra-frame prediction.

[0018] This disclosure can improve the efficiency of CABAC-based image coding.

[0019] This disclosure improves pipeline latency when implementing CCLM-based intra-frame prediction in hardware.

[0020] This disclosure allows for the determination of block structure and block segmentation based on quadtree (QT), binary tree (BT), and ternary tree (TT) structures in the processing of compressed images.

[0021] This disclosure enables more efficient encoding and decoding of images using a context model when performing entropy encoding based on CABAC using QT, BT, and TT structures. Attached Figure Description

[0022] Figure 1 This is a diagram used to illustrate the configuration of an encoding device according to an exemplary embodiment.

[0023] Figure 2 This is a diagram illustrating the configuration of a decoding device according to an exemplary embodiment.

[0024] Figures 3a to 3c This is a diagram illustrating examples of QT splitting, BT splitting, and TT splitting.

[0025] Figure 4 This is a block diagram illustrating the configuration of an entropy encoder according to an exemplary embodiment.

[0026] Figure 5 This is a block diagram illustrating the configuration of an entropy decoder according to an exemplary implementation.

[0027] Figure 6 This is a flowchart illustrating the operation of an entropy encoder according to an exemplary embodiment.

[0028] Figure 7 This is a flowchart illustrating the operation of an entropy decoder according to an exemplary embodiment.

[0029] Figure 8 This is a flowchart illustrating the operation of an encoding device according to an exemplary embodiment.

[0030] Figure 9 This is a block diagram illustrating the configuration of an encoding device according to an exemplary embodiment.

[0031] Figure 10This is a flowchart illustrating the operation of a decoding device according to an exemplary embodiment.

[0032] Figure 11 This is a block diagram illustrating the configuration of a decoding device according to an exemplary embodiment.

[0033] Figure 12 This is a schematic diagram of a content streaming system architecture according to an exemplary embodiment. Detailed Implementation

[0034] An exemplary embodiment of this disclosure provides an image decoding method performed by a decoding device. The method includes the following steps: deriving a context index of a segmentation flag syntax element based on segmentation availability information of the current block; determining a context model based on the derived context index; decoding the value of the segmentation flag syntax element using the determined context model based on context-based adaptive binary arithmetic coding (CABAC); deriving a current coding unit from the current block based on the value of the segmentation flag syntax element; deriving a prediction block based on inter-frame prediction or intra-frame prediction for the current coding unit; and generating a reconstructed block based on the prediction block, wherein the segmentation flag syntax element includes a directional segmentation flag indicating whether the current block is vertically segmented; segmentation availability information; This includes: BT horizontal partitioning availability flags indicating whether the current block can be horizontally partitioned based on a binary tree (BT) structure; TT horizontal partitioning availability flags indicating whether the current block can be horizontally partitioned based on a ternary tree (TT) structure; BT vertical partitioning availability flags indicating whether the current block can be vertically partitioned based on a BT structure; and TT vertical partitioning availability flags indicating whether the current block can be vertically partitioned based on a TT structure. Furthermore, the context index of the directional partitioning flag is derived based on the BT horizontal partitioning availability flags, TT horizontal partitioning availability flags, BT vertical partitioning availability flags, and TT vertical partitioning availability flags.

[0035] Because this disclosure can be modified in various ways and can have various exemplary embodiments, specific exemplary embodiments will be illustrated and described in detail in the accompanying drawings. However, these embodiments are not intended to limit this disclosure. The terminology used in the following description is used only to describe specific embodiments and is not intended to limit this disclosure. Singular expressions include plural expressions, provided that they are clearly read differently. Terms such as “comprising” and “having” are intended to indicate the presence of features, numbers, steps, operations, elements, components or combinations thereof used in the following description, and therefore it should be understood that the possibility of having or adding one or more different features, numbers, steps, operations, elements, components or combinations thereof is not excluded.

[0036] Furthermore, the elements in the figures described in this disclosure are drawn independently for the purpose of illustrating different specific functions, but this does not mean that these elements are implemented by independent hardware or independent software. For example, two or more of these elements may be combined to form a single element, or a single element may be divided into multiple elements. Embodiments of combining and / or dividing elements are part of this disclosure without departing from its concept.

[0037] The following description relates to video / image coding. For example, the methods / exemplary implementations disclosed in this document can be applied to methods disclosed in Universal Video Coding (VVC), Basic Video Coding (EVC), AOMedia Video1 (AV1), Audio Video Coding 2 (AVS2), or next-generation video / image coding standards (e.g., H.267, H.268, etc.).

[0038] Hereinafter, examples of this embodiment will be described in detail with reference to the accompanying drawings. Furthermore, throughout the drawings, similar reference numerals are used to indicate similar elements, and identical descriptions of similar elements will be omitted.

[0039] In this disclosure, video can refer to a collection of images over time. Generally, picture refers to a unit of image representing a specific time, and slice is a unit that constitutes a part of picture. A picture can be composed of multiple slices, and the terms picture and slice can be mixed together as needed.

[0040] A pixel, or image unit, can refer to the smallest unit that makes up a picture (or image). Additionally, the term "sample" can be used as the counterpart to a pixel. A sample can typically represent a pixel or a pixel value; it can represent a pixel containing only the luminance component (pixel value) or a pixel containing only the chrominance component (pixel value).

[0041] A unit refers to a basic unit of image processing. A unit may include at least one of a specific region and information associated with that region. Optionally, a unit may be combined with terms such as block, region, etc. Typically, an M×N block may represent a set of samples or transform coefficients arranged in M ​​columns and N rows.

[0042] Figure 1 This is a simplified illustration of the structure of an encoding apparatus applicable to this disclosure. In the following, an encoding / decoding apparatus may include a video encoding / decoding apparatus and / or an image encoding / decoding apparatus, and a video encoding / decoding apparatus may be used as a concept that includes an image encoding / decoding apparatus, or an image encoding / decoding apparatus may be used as a concept that includes a video encoding / decoding apparatus.

[0043] refer to Figure 1The video encoding device 100 may include an image segmenter 105, a predictor 110, a residual processor 120, an entropy encoder 130, an adder 140, a filter 150, and a memory 160. The residual processor 120 may include a subtractor 121, a transformer 122, a quantizer 123, a rearranger 124, an inverse quantizer 125, and an inverse transformer 126.

[0044] Image segmenter 105 can separate an input image into at least one processing unit.

[0045] In one example, the processing unit may be referred to as a coding unit (CU). In this case, coding units can be recursively separated from the maximum coding unit (LCU) according to a quadtree-binary tree (QTBT) structure. For example, a coding unit can be separated into multiple coding units of deeper depth based on a quadtree structure, a binary tree structure, and / or a ternary tree structure. In this case, for example, a quadtree structure can be applied first, and a binary tree structure and a ternary tree structure can be applied later. Alternatively, a binary tree structure / ternary tree structure can be applied first. The coding process according to this embodiment can be performed based on the final coding unit that is no longer further separated. In this case, the maximum coding unit can be used as the final coding unit based on image characteristics such as coding efficiency, or the coding unit can be recursively separated into lower-depth coding units as needed, and the coding unit with the optimal size can be used as the final coding unit. Here, the coding process may include processes such as prediction, transformation, and reconstruction, which will be described later.

[0046] In another example, the processing unit may include a coding unit (CU), a prediction unit (PU), or a transformer (TU). The coding unit can be separated from the maximum coding unit (LCU) into deeper coding units according to a quadtree structure. In this case, the maximum coding unit can be directly used as the final coding unit based on image characteristics such as coding efficiency, or the coding unit can be recursively separated into deeper coding units as needed, and the coding unit with the optimal size can be used as the final coding unit. When a minimum coding unit (SCU) is set, the coding unit may not be separated into coding units smaller than the minimum coding unit. Here, the final coding unit refers to the coding unit that has been segmented or separated into a prediction unit or a transformer. The prediction unit is a unit segmented from the coding unit and can be a unit for sample prediction. Here, the prediction unit can be divided into sub-blocks. The transformer can be partitioned from the coding unit according to a quadtree structure, and the transformer can be a unit that derives the transform coefficients and / or a unit that derives the residual signal from the transform coefficients. In the following text, the coding unit may be referred to as a coding block (CB), the prediction unit may be referred to as a prediction block (PB), and the transformer may be referred to as a transform block (TB). A prediction block or prediction unit can refer to a specific region in the form of a block in an image, and includes an array of prediction samples. Similarly, a transform block or transformer can refer to a specific region in the form of a block in an image, and includes an array of transform coefficients or residual samples.

[0047] Predictor 110 can perform predictions on a target block (hereinafter, it can represent the current block or a residual block) and can generate a prediction block that includes prediction samples for the current block. The unit of prediction performed in predictor 110 can be a coded block, a transform block, or a prediction block.

[0048] Predictor 110 can determine whether to apply intra-frame prediction or inter-frame prediction to the current block. For example, predictor 110 can determine whether to apply intra-frame prediction or inter-frame prediction on a CU-by-CU basis.

[0049] In the case of intra-frame prediction, predictor 110 can derive a prediction sample for the current block based on reference samples outside the current block in the image to which the current block belongs (hereinafter, the current image). In this case, predictor 110 can derive the prediction sample based on the average or interpolation of the neighboring reference samples of the current block (case (i)), or it can derive the prediction sample based on a reference sample among the neighboring reference samples of the current block that exists in a specific (prediction) direction relative to the prediction sample (case (ii)). Case (i) can be referred to as a non-directional mode or a non-angular mode, and case (ii) can be referred to as a directional mode or an angular mode. In intra-frame prediction, the prediction modes can include 33 directional modes and at least two non-directional modes, as an example. Non-directional modes can include DC mode and planar mode. Predictor 110 can determine the prediction mode to be applied to the current block by using the prediction modes applied to neighboring blocks.

[0050] In the case of inter-frame prediction, predictor 110 can derive predicted samples for the current block based on samples specified by motion vectors on a reference image. Predictor 110 can derive predicted samples for the current block by applying any of the skip mode, merge mode, and motion vector prediction (MVP) mode. In the skip mode and merge mode, predictor 110 can use motion information of neighboring blocks as motion information for the current block. In the skip mode, unlike the merge mode, the difference (residual) between the predicted sample and the original sample is not sent. In the MVP mode, the motion vectors of neighboring blocks are used as a motion vector predictor to derive the motion vector of the current block.

[0051] In the case of inter-frame prediction, neighboring blocks can include spatially neighboring blocks existing in the current image and temporally neighboring blocks existing in a reference image. The reference image that includes temporally neighboring blocks can also be referred to as a colpic. Motion information can include motion vectors and reference image indices. Information such as prediction mode information and motion information can be (entropy-encoded) and then output as a bitstream.

[0052] When using motion information from temporally adjacent blocks in skip and merge modes, the highest-ranking image in the reference image list can be used as the reference image. Reference images included in the reference image list can be aligned based on the difference in Picture Order Number (POC) between the current image and its corresponding reference image. The POC corresponds to the display order and can be distinguished from the encoding order.

[0053] Subtractor 121 generates a residual sample, which is the difference between the original sample and the predicted sample. If the skip mode is applied, residual samples may not be generated as described above.

[0054] Transformer 122 transforms residual samples on a block-by-block basis to generate transform coefficients. Transformer 122 can perform the transform based on the size of the corresponding transform block and the prediction mode applied to the prediction block or coding block that spatially overlaps with the transform block. For example, if intra-frame prediction is applied to the prediction block or coding block that overlaps with the transform block and the transform block is a 4×4 residual array, a Discrete Sine Transform (DST) kernel can be used to transform the residual samples, and in other cases, a Discrete Cosine Transform (DCT) kernel is used to transform the residual samples.

[0055] Quantizer 123 can quantize the transform coefficients to generate quantized transform coefficients.

[0056] Rearranger 124 rearranges the quantized transform coefficients. Rearranger 124 can rearrange the quantized transform coefficients in block form into a one-dimensional vector using a coefficient sweep method. Although rearranger 124 is described as a separate component, it can be part of quantizer 123.

[0057] The entropy encoder 130 can perform entropy coding on quantized transform coefficients. Entropy coding can include coding methods such as Exponential Columbus, Context Adaptive Variable Length Coding (CAVLC), Context Adaptive Binary Arithmetic Coding (CABAC), etc. In addition to the quantized transform coefficients, the entropy encoder 130 can also encode information required for video reconstruction (e.g., syntax element values, etc.) either together or separately according to entropy coding or according to a pre-configured method. The entropy-coded information can be transmitted or stored in the form of a bitstream at the Network Abstraction Layer (NAL). The bitstream can be transmitted via a network or stored in a digital storage medium. Here, the network can include a broadcast network or a communication network, and the digital storage medium can include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SDD, etc.

[0058] Dequantizer 125 dequantizes the values ​​(transform coefficients) quantized by quantizer 123, and inverse transformer 126 performs an inverse transformation on the values ​​dequantized by dequantizer 125 to generate residual samples.

[0059] Adder 140 adds residual samples to the prediction samples to reconstruct the image. Residual samples can be added to the prediction samples in blocks to generate reconstructed blocks. Although adder 140 is described as a separate component, adder 140 can be part of predictor 110. Additionally, adder 140 can be referred to as a reconstructor or a reconstructed block generator.

[0060] Filter 150 can apply deblocking filtering and / or adaptive sample shifting to the reconstructed image. Deblocking filtering and / or adaptive sample shifting can correct artifacts at block boundaries or distortions during quantization in the reconstructed image. After deblocking filtering is complete, adaptive sample shifting can be applied on a sample-by-sample basis. Filter 150 can also apply an adaptive loop filter (ALF) to the reconstructed image. An ALF can be applied to a reconstructed image that has already undergone deblocking filtering and / or adaptive sample shifting.

[0061] Memory 160 can store reconstructed images (decoded images) or information required for encoding / decoding. Here, the reconstructed image can be a reconstructed image filtered by filter 150. The stored reconstructed image can be used as a reference image for (inter-frame) prediction of other images. For example, memory 160 can store (reference) images for inter-frame prediction. Here, the images used for inter-frame prediction can be specified according to a set of reference images or a list of reference images.

[0062] Figure 2 This is a simplified illustration of the structure of a video / image decoding apparatus applicable to this disclosure. In the following, a video decoding apparatus may include an image decoding apparatus.

[0063] refer to Figure 2 The video decoding device 200 may include an entropy decoder 210, a residual processor 220, a predictor 230, an adder 240, a filter 250, and a memory 260. The residual processor 220 may include a rearranger 221, an inverse quantizer 222, and an inverse transformer 223. Additionally, although not depicted, the video decoding device 200 may include a receiver for receiving a bitstream including video information. The receiver may be configured as a separate module or may be included within the entropy decoder 210.

[0064] When the input includes a bitstream containing video / image information, the video decoding device 200 can reconstruct the video / image / picture in association with the process of processing video information in the video encoding device.

[0065] For example, video decoding device 200 can use processing units applied in video encoding devices to perform video decoding. Therefore, the processing unit block for video decoding can be, for example, an encoding unit, and in another example, an encoding unit, a prediction unit, or a transformer. Encoding units can be separated from the maximum encoding unit according to a quadtree structure and / or a binary tree structure and / or a ternary tree structure.

[0066] In some cases, prediction units and transformers can be further used, and in this case, the prediction block is a block derived or segmented from the coding unit, and can be a unit for sample prediction. Here, the prediction unit can be divided into sub-blocks. The transformer can be separated from the coding unit according to a quadtree structure, and can be a unit that derives the transform coefficients or a unit that derives the residual signal from the transform coefficients.

[0067] The entropy decoder 210 can parse a bitstream to output the information needed for video reconstruction or image reconstruction. For example, the entropy decoder 210 can decode information in the bitstream based on encoding methods such as exponential Golomb coding, CAVLC, CABAC, etc., and can output the values ​​of the syntax elements needed for video reconstruction and the quantization values ​​of the transform coefficients with respect to the residuals.

[0068] More specifically, the CABAC entropy decoding method can receive a bin corresponding to each syntax element in the bitstream, use information about the target syntax element to be decoded, as well as decoding information of neighboring blocks and the target block, or information about symbols / bins decoded in previous steps, to determine a context model. Based on the determined context model, it predicts the bin generation probability and performs arithmetic decoding of the bins to generate symbols corresponding to each syntax element value. Here, the CABAC entropy decoding method can update the context model after determining it using information about symbols / bins decoded for the next symbol / bin using the context model.

[0069] Information about the prediction from the information decoded in the entropy decoder 210 can be provided to the predictor 230, and the residual value (i.e., the quantized transform coefficient) that has been entropy decoded by the entropy decoder 210 can be input to the rearranger 221.

[0070] Rearranger 221 can rearrange the quantized transform coefficients into a two-dimensional block form. Rearranger 221 can perform a rearrangement corresponding to the coefficient scan performed by the encoding device. Although rearranger 221 is described as a separate component, rearranger 221 can be part of dequantizer 222.

[0071] The dequantizer 222 can dequantize the quantized transform coefficients based on the (de)quantization parameters to output the transform coefficients. In this case, the encoding device can signal information for deriving the quantization parameters.

[0072] The inverse transformer 223 can perform an inverse transformation on the transformation coefficients to derive the residual samples.

[0073] Predictor 230 can perform prediction on the current block and generate a prediction block that includes prediction samples for the current block. The unit of prediction performed in predictor 230 can be a coded block, a transform block, or a prediction block.

[0074] Predictor 230 can determine whether to apply intra-frame prediction or inter-frame prediction based on information about the prediction. In this case, the unit used to determine which one to use between intra-frame and inter-frame prediction can be different from the unit used to generate prediction samples. Furthermore, the unit used to generate prediction samples can also be different in inter-frame and intra-frame prediction. For example, it can be determined on a CU (unit of measurement) basis to determine which one to apply between inter-frame and intra-frame prediction. Additionally, for example, in inter-frame prediction, prediction samples can be generated by determining the prediction mode on a PU (unit of measurement), and in intra-frame prediction, prediction samples can be generated on a TU (unit of measurement) basis by determining the prediction mode on a PU basis.

[0075] In the case of intra-frame prediction, predictor 230 can derive prediction samples for the current block based on neighboring reference samples in the current image. Predictor 230 can derive prediction samples for the current block by applying either a directional or non-directional mode based on the neighboring reference samples of the current block. In this case, the prediction mode to be applied to the current block can be determined by using the intra-frame prediction modes of neighboring blocks.

[0076] In the case of inter-frame prediction, predictor 230 can derive prediction samples for the current block based on samples specified in the reference image according to motion vectors. Predictor 230 can derive prediction samples for the current block using one of skip mode, merge mode, and MVP mode. Here, the motion information (e.g., motion vectors and information about the reference image index) required for inter-frame prediction of the current block provided by the video encoding device can be obtained or derived based on information about the prediction.

[0077] In skip and merge modes, motion information from neighboring blocks can be used as motion information for the current block. Here, neighboring blocks can include spatially neighboring blocks and temporally neighboring blocks.

[0078] Predictor 230 can construct a merge candidate list using motion information from available neighboring blocks, and use the information indicated by the merge index on the merge candidate list as the motion vector of the current block. The merge index can be signaled by the encoding device. The motion information can include motion vectors and reference pictures. In skip mode and merge mode, when using motion information from temporally neighboring blocks, the first sorted picture in the reference picture list can be used as the reference picture.

[0079] In the skip mode, unlike the merge mode, the difference (residual) between the predicted sample and the original sample is not sent.

[0080] In MVP mode, the motion vectors of neighboring blocks can be used as motion vector predictors to derive the motion vector of the current block. Here, neighboring blocks can include spatially neighboring blocks and temporally neighboring blocks.

[0081] When applying a merge pattern, for example, a merge candidate list can be generated using the motion vectors of reconstructed spatially neighboring blocks and / or motion vectors corresponding to Col blocks that are temporally neighboring blocks. The motion vectors of candidate blocks selected from the merge candidate list are used as the motion vectors of the current block in the merge pattern. The aforementioned information about the prediction may include a merge index that indicates the candidate block with the best motion vector selected from the candidate blocks included in the merge candidate list. Here, predictor 230 can use the merge index to derive the motion vector of the current block.

[0082] When applying the MVP (Motion Vector Prediction) mode as another example, a motion vector predictor candidate list can be generated using the motion vectors of the reconstructed spatially neighboring blocks and / or the motion vectors corresponding to the Col blocks, which are temporally neighboring blocks. That is, the motion vectors of the reconstructed spatially neighboring blocks and / or the motion vectors corresponding to the Col blocks, which are temporally neighboring blocks, can be used as motion vector candidates. The aforementioned prediction information may include a predicted motion vector index indicating the best motion vector selected from the motion vector candidates included in the list. Here, predictor 230 can use the motion vector index to select the predicted motion vector of the current block from the motion vector candidates included in the motion vector candidate list. The predictor of the encoding device can obtain the motion vector difference (MVD) between the motion vector of the current block and the motion vector predictor, encode the MVD, and output the encoded MVD as a bitstream. That is, the MVD can be obtained by subtracting the motion vector predictor from the motion vector of the current block. Here, predictor 230 can obtain the motion vectors included in the prediction information and derive the motion vector of the current block by adding the motion vector difference to the motion vector predictor. Additionally, the predictor can obtain or derive a reference image index indicating a reference image from the aforementioned prediction information.

[0083] Adder 240 can add residual samples to the prediction samples to reconstruct the current block or the current image. Adder 240 can reconstruct the current image by adding residual samples to the prediction samples on a block-by-block basis. When a skip mode is applied, no residuals are sent, and therefore the prediction samples can become the reconstructed samples. Although adder 240 is described as a separate component, adder 240 can be part of predictor 230. Additionally, adder 240 can be referred to as a reconstructor or a reconstructed block generator.

[0084] Filter 250 can apply deblocking filtering, adaptive sample shifting, and / or ALF to the reconstructed image. Here, adaptive sample shifting can be applied on a sample-by-sample basis after deblocking filtering. ALF can be applied after deblocking filtering and / or after applying adaptive sample shifting.

[0085] Memory 260 can store reconstructed images (decoded images) or information required for decoding. Here, the reconstructed image can be a reconstructed image filtered by filter 250. For example, memory 260 can store images used for inter-frame prediction. Here, the images used for inter-frame prediction can be specified according to a set of reference images or a list of reference images. The reconstructed image can be used as a reference image for other images. Memory 260 can output the reconstructed images in the output order.

[0086] Furthermore, as mentioned above, prediction is performed during video encoding to improve compression efficiency. Therefore, a prediction block can be generated that includes prediction samples for the current block, which is the block to be encoded (i.e., the target block for encoding). Here, the prediction block includes prediction samples in the spatial domain (or pixel domain). The prediction block is derived in the same manner in both the encoding and decoding devices, and the encoding device can signal information about the residual between the original block and the prediction block (residual information) rather than the original sample values ​​of the original block to the decoding device, thereby improving image encoding efficiency. The decoding device can derive a residual block including residual samples based on the residual information, add the residual block to the prediction block to generate a reconstructed block including reconstructed samples, and generate a reconstructed image including the reconstructed block.

[0087] Residual information can be generated through transformation and quantization processes. For example, the encoding device can derive a residual block between the original block and the prediction block, perform a transformation process on the residual samples (residual sample array) included in the residual block to derive transform coefficients, perform a quantization process on the transform coefficients to derive quantized transform coefficients, and signal the relevant residual information to the decoding device (via bitstream). Here, the residual information can include the value information, position information, transform technique, transform kernel, and quantization parameters of the quantized transform coefficients. The decoding device can perform inverse quantization / inverse transform processes based on the residual information and derive residual samples (or residual blocks). The decoding device can generate a reconstructed image based on the prediction block and the residual block. In addition, for inter-frame prediction of the reference image later, the encoding device can also perform inverse quantization / inverse transform on the quantized transform coefficients to derive residual blocks and generate a reconstructed image based on the residual blocks.

[0088] Figures 3a to 3c This is a diagram illustrating examples of QT splitting, BT splitting, and TT splitting.

[0089] In video coding, a block can be partitioned based on a quadtree (QT). Furthermore, a sub-block partitioned by QT can be recursively further partitioned. Leaf blocks no longer partitioned by QT can be partitioned using binary trees (BT), ternary trees (TT), striped trees (ST), etc. BT can have two forms of partitioning, such as horizontal BT(2N×N, 2N×N) and vertical BT(N×2N, N×2N). TT can have two forms of partitioning, such as horizontal TT(2N×1 / 2N, 2N×N, 2N×1 / 2N) and vertical TT(1 / 2N×2N, N×2N, 1 / 2N×2N). ST can have two forms of partitioning, such as horizontal ST(2N×1 / 2N, 2N×1 / 2N, 2N×1 / 2N, 2N×1 / 2N) and vertical ST(1 / 2N×2N, 1 / 2N×2N, 1 / 2N×2N, 1 / 2N×2N). Each of BT, TT, and ST can be further recursively partitioned using BT, TT, and ST.

[0090] Figure 3a An example of QT partitioning is shown. Block A can be partitioned into four sub-blocks (A0, A1, A2, A3) using QT. Sub-block A1 can then be further partitioned into four sub-blocks (B0, B1, B2, B3) using QT.

[0091] Figure 3b An example of BT partitioning is shown. Block B3, which is no longer partitioned by QT, can be partitioned into vertical BT (C0, C1) or horizontal BT (D0, D1). Like block C0, each sub-block can be further recursively partitioned in the form of horizontal BT (E0, E1) or vertical BT (F0, F1).

[0092] Figure 3c An example of TT partitioning is shown. Block B3, which is no longer partitioned by QT, can be partitioned into vertical TT (C0, C1, C2) or horizontal TT (D0, D1, D2). Like block C1, each sub-block can be further recursively partitioned in the form of horizontal TT (E0, E1, E2) or vertical TT (F0, F1, F2).

[0093] Table 1 below shows examples of encoding quadtree syntax using BT and TT.

[0094] [Table 1]

[0095]

[0096] The syntax element `split_qt_flag` indicates whether the current (encoded) block is split into four according to QT (Quick Timer). A value of 0 for `split_qt_flag` means the current block is not split according to QT, while a value of 1 means the current block is split according to QT. `x0` and `y0` represent the top-left position of the luminance image.

[0097] This specification uses specific terms or sentences to define specific information or concepts. For example, this specification uses specific terms or sentences to define specific syntactic elements. As an example, this specification defines the syntactic element indicating whether the current (encoded) block is split into 4 parts according to QT as "split_qt_flag", and the syntactic element indicating whether the current (encoded) block is further split as "split_fur_flag". However, "split_qt_flag" can be replaced by various terms such as qt_split_flag and QT split flag, and "split_fur_flag" can be replaced by various terms such as further_split_flag and fur_split_flag. Therefore, the specific terms or sentences used to identify specific information or concepts in this specification should not be interpreted as limited to those names used throughout the specification, but should be interpreted according to the content represented by the terms, with emphasis on various operations, functions, and effects.

[0098] Table 2 below shows an example of the syntax for the encoding tree.

[0099] [Table 2]

[0100]

[0101] The syntax element `split_fur_flag` indicates whether the current (encoded) block is further split. A value of 0 means the current block will not be split, while a value of 1 means the current block will be split. The syntax element `split_bt_flag` indicates whether the current block is split based on Bitwise Barrier (BT) or Tolerancing (TT). A value of 1 means the current block is split based on BT, while a value of 0 means the current block is split based on Tolerancing (TT).

[0102] The split type (SplitType) of the current block can be determined based on the syntax elements split_fur_flag and split_bt_flag, as shown in Table 3 below.

[0103] [Table 3]

[0104] splitfur_flag split_bt_flag SplitType 0 NO_SPLIT 1 1 BT 1 O TT

[0105] Referring to Table 3, when the value of split_fur_flag is 0 and the current block is no longer split, it can be confirmed that SplitType is determined to be NO_SPLIT. Furthermore, when the value of split_fur_flag is 1 and the current block is split, it can be confirmed that SplitType is determined to be BT when the value of split_bt_flag is 1, and to be TT when the value of split_bt_flag is 0.

[0106] The syntax element `split_dir` indicates the splitting direction of the current block. A value of 0 for `split_dir` means the current block is split horizontally, while a value of 1 means the current block is split vertically. The block splitting mode (SplitMode) can be derived based on `SplitType` and `split_dir` as shown in Table 4 below.

[0107] [Table 4]

[0108]

[0109] Referring to Table 4, when SplitType is BT, it can be confirmed that when the value of split_dir is 0, SplitMode is determined to be PART_BT_HOR, i.e., BT horizontal split mode, and when the value of split_dir is 1, SplitMode is determined to be PART_BT_VER, i.e., BT vertical split mode. Furthermore, when SplitType is TT, it can be confirmed that when the value of split_dir is 0, SplitMode is determined to be PART_TT_HOR, i.e., TT horizontal split mode, and when the value of split_dir is 1, SplitMode is determined to be PART_TT_VER, i.e., TT vertical split mode.

[0110] When each image region is segmented into a QT structure, the encoder and decoder can transmit syntax elements that adjust the segmentation degree of QT, taking into account the relationship between performance and complexity. For example, syntax elements such as maximum QT block size (MaxQTSize), minimum QT block size (MinQTSize), and maximum QT block segmentation depth (MaxQTDepth) can be transmitted. Here, maximum QT block size can refer to the size of the largest block initially segmented by QT, expressed in log2 scale. Minimum QT block size can refer to the size of the smallest block segmented by QT, also expressed in log2 scale. Furthermore, maximum QT segmentation depth can refer to the number of QT segmentations allowed starting from the maximum QT block size.

[0111] When regions of each image are segmented into QT structures and then blocks are segmented into BT structures, the encoder and decoder can transmit syntax elements that adjust the BT segmentation degree, taking into account the relationship between performance and complexity. For example, syntax elements such as maximum BT block size (MaxBTSize), minimum BT block size (MinBTSize), and maximum BT block segmentation depth (MaxBTDepth) can be transmitted. More specifically, maximum BT block size can refer to the largest block size allowed for initial BT segmentation, expressed in log2 scale. Minimum BT block size can refer to the smallest block size allowed for BT segmentation, also expressed in log2 scale. Furthermore, maximum BT segmentation depth can refer to how many BT segmentations are allowed starting from the maximum BT block size.

[0112] When regions of each image are segmented into QT structures and then blocks are segmented into TT structures, the encoder and decoder can transmit syntax elements that adjust the segmentation degree of TT, taking into account the relationship between performance and complexity. For example, syntax elements such as maximum TT block size (MaxTTSize), minimum TT block size (MinTTSize), and maximum TT block segmentation depth (MaxTDepth) can be transmitted. More specifically, maximum TT block size can refer to the size of the largest block that is initially allowed to be segmented by TT, expressed in log2 scale. Minimum TT block size can refer to the size of the smallest block that is segmented by TT, expressed in log2 scale. Additionally, maximum TT segmentation depth can refer to how many TT segmentations are allowed starting from the maximum TT block size.

[0113] Figure 4 This is a block diagram illustrating the configuration of an entropy encoder according to an exemplary embodiment.

[0114] Figure 4 A schematic block diagram illustrating an entropy encoder that applies context-based adaptive binary arithmetic coding (CABAC) as an exemplary implementation of this disclosure is shown.

[0115] The entropy encoder 400 of this disclosure includes a binary encoding unit 410, a context modeling unit 420, a binary arithmetic encoding unit 430, and a memory 460. The binary arithmetic encoding unit 430 may include a conventional binary encoding unit 440 and a bypass binary encoding unit 450. Here, the conventional binary encoding unit 440 and the bypass binary encoding unit 450 may also be referred to as a conventional encoding engine and a bypass encoding engine, respectively.

[0116] Binarization unit 410 can receive a sequence of data symbols and perform binaryization, thereby outputting a string of binary symbols (bin, bits) consisting of binary values ​​of 0 or 1. Binarization unit 410 can establish a mapping between syntax elements and binary symbols. Various binaryization processes can be used for binaryization, such as unary codes (U), truncated unary codes (TU), K-order exponential Golomb codes (EGk), fixed-length processing, etc. The binaryization process can be selected based on the form of the syntax elements.

[0117] The output bit string can be sent to the context modeling unit 420.

[0118] The context modeling unit 420 can select the probability information necessary to encode the current block from the memory and send it to the binary arithmetic encoding unit 430. For example, the context modeling unit 420 can select the context memory based on the syntax element to be encoded and select the probability information necessary to encode the current syntax element via the bit index (binIdx). Here, context refers to information about the probability of occurrence of symbols, and context modeling can refer to the process of estimating the probability of the bits necessary for binary arithmetic encoding by receiving the bits as a result of binaryization.

[0119] The context modeling unit 420 can provide the (accurate) probability estimates necessary to achieve enhanced coding efficiency. Therefore, different context models can be used for different binary symbols, and the probabilities of the context models can be updated based on the values ​​of previously encoded binary symbols. At this time, the values ​​of previously encoded binary symbols are stored in memory 460, and the context modeling unit 420 can use the values ​​of previously encoded binary symbols from memory 460.

[0120] Binary symbols with similar distributions can share the same context model. The context model for each binary symbol can be estimated using at least one of the following: bit syntax information, the bin index (binIdx) indicating the position of the bin in the bin string, and the probability of the bin being included in the neighboring blocks of the block in which the bin is included.

[0121] The binary arithmetic encoding unit 430 includes a conventional binary encoding unit 440 and a bypass binary encoding unit 450, and can perform entropy encoding on the output string and output compressed data bits.

[0122] The conventional binary coding unit 440 can perform arithmetic coding based on recursive interval partitioning.

[0123] First, an interval (or range) with an initial value of 0 or 1 can be divided into two lower intervals based on the probability of the binary symbol. When converted to a binary fraction, the encoded bits can provide an offset for selecting one of the two lower intervals representing the value of the decoded binary symbol.

[0124] After decoding the binary symbols in the mode, the interval can be updated to match the selected lower interval, and the interval segmentation process itself can be repeated. Intervals and offsets have finite bit precision, so renormalization may be necessary to prevent overflow whenever the interval decreases to a certain value or smaller. Renormalization can occur after decoding each binary symbol.

[0125] The bypass binary encoding unit 450 performs encoding without a context model and can perform encoding by fixing the probability of the currently encoded bin to 0.5. This method can be used when it is difficult to determine the probability of the syntax or when high-speed encoding is required.

[0126] Figure 5 This is a block diagram illustrating the configuration of an entropy decoder according to an exemplary implementation.

[0127] Figure 5 A schematic block diagram illustrating an entropy decoder that applies context-based adaptive binary arithmetic coding (CABAC) as an exemplary embodiment of the present disclosure is shown.

[0128] The entropy decoder 500 according to an exemplary embodiment may include a context modeling unit 510, a binary arithmetic decoding unit 520, a memory 550, and an inverse binaryization unit 560, and the binary arithmetic decoding unit 520 may include a conventional binary decoding unit 530 and a bypass binary decoding unit 540.

[0129] The entropy decoder 500 can receive the bitstream and identify the bypass flag from it. Here, the bypass flag indicates whether the bitstream is in bypass mode, and bypass mode can mean performing encoding by fixing the probability of the currently encoded bin to 0.5 without using a context model.

[0130] If the bitstream is not in bypass mode according to the bypass flag, the regular binary decoding unit 530 can perform binary arithmetic decoding according to the regular mode.

[0131] At this time, the context modeling unit 510 can select the probability information necessary for decoding the current bitstream from the memory 550 and send the probability information to the regular binary decoding unit 530.

[0132] Furthermore, if the bitstream is in bypass mode according to the bypass flag, the bypass binary decoding unit 540 can perform binary arithmetic decoding according to the bypass mode.

[0133] The inverse binaryization unit 560 can receive the binary form bin decoded by the binary arithmetic decoding unit 520, convert the bin into an integer form of syntax element value, and output the converted syntax element value.

[0134] Figure 6 This is a flowchart illustrating the operation of an entropy encoder according to an exemplary embodiment.

[0135] The entropy encoder of the encoding device according to the exemplary embodiment can perform binary conversion on the syntax elements (S610).

[0136] According to the exemplary implementation, the entropy encoder can determine whether to perform binary arithmetic encoding according to the normal mode or the bypass mode (S620). For example, the entropy encoder can determine whether the bit stream is in the normal mode or the bypass mode based on the bypass flag, and when the bypass flag is 1, this can indicate the bypass mode, while when the bypass flag is 0, this can indicate the normal mode.

[0137] If it is determined that binary arithmetic encoding will be performed according to the regular pattern, the entropy encoder can select a probability model (S630) and perform binary arithmetic encoding based on the probability model (S640). Alternatively, the entropy encoder can update the probability model (S650) and select a suitable probability model again based on the updated probability model in step S630.

[0138] If it is determined that binary arithmetic coding will be performed according to the bypass mode, the entropy encoder can perform binary arithmetic coding with a probability of 0.5 (S660).

[0139] Figure 7 This is a flowchart illustrating the operation of an entropy decoder according to an exemplary embodiment.

[0140] The entropy decoder of the decoding device according to an exemplary embodiment can receive a bit stream (S710).

[0141] The entropy decoder according to the exemplary embodiment can determine whether the bitstream is in normal mode or bypass mode by extracting a bypass flag from the bitstream (S720). Here, the bypass flag can be predetermined according to the type of syntax.

[0142] If the bypass flag indicates the normal mode, the entropy decoder can select a probability model (S730) and perform binary arithmetic decoding based on the selected probability model (S740). Alternatively, the entropy decoder can update the probability model (S750) and select a suitable probability model again based on the updated probability model from step S730.

[0143] Furthermore, if the bypass flag indicates bypass mode, the entropy decoder can perform binary arithmetic decoding based on a probability of 0.5 (S760).

[0144] The entropy decoder can perform inverse binaryization on the decoded bin string (S770). For example, the entropy decoder can receive the decoded bin in binary form, convert the bin into an integer syntax element value, and output the syntax element value.

[0145] Exemplary embodiments of this disclosure propose a method for determining a context model for CABAC entropy coding. As described above, `split_bt_flag` can indicate whether the current block is split into BTs or TTs. The syntax element `split_bt_flag` can be referred to as `mtt_split_cu_binary_flag`, etc. The context model for the syntax element `split_bt_flag` can be determined based on the number of BTs and TTs that can be split from the current block. Equation 1 below represents the value of the context index (CtxIdx) based on block splitting availability information.

[0146] [Formula 1]

[0147] CtxIdx=(availableBTHOR&&availableBTVER)*2+(availableTTHOR&&availableTTVER)

[0148] In this specification, "block partitioning availability information" can represent block partitioning conditions. Block partitioning availability information may include BT horizontal partitioning availability flags indicating whether the current block can be horizontally partitioned based on a binary tree (BT) structure, TT horizontal partitioning availability flags indicating whether the current block can be horizontally partitioned based on a ternary tree (TT) structure, BT vertical partitioning availability flags indicating whether the current block can be vertically partitioned based on a BT structure, and TT vertical partitioning availability flags indicating whether the current block can be vertically partitioned based on a TT structure. According to an exemplary embodiment, block partitioning availability information can be derived based on at least one of block size information, multi-type tree depth information, and maximum multi-tree size information.

[0149] In Equation 1, availableBTHOR can represent the available flag information for the horizontal division of BT, availableBTVER can represent the available flag information for the vertical division of BT, availableTTHOR can represent the available flag information for the horizontal division of TT, and availableTTVER can represent the available flag information for the vertical division of TT. For example, the value of CtxIdx can be greater than or equal to 0 and less than or equal to 3.

[0150] The availability flags for horizontal splits in BitTorrent (BT) can be indicated by various names such as available_BT_HOR, allowSplitBTHor, and availableBTHOR. Similarly, the availability flags for vertical splits in BT can be indicated by available_BT_VER, allowSplitBTVer, etc., the availability flags for horizontal splits in TT can be indicated by available_TT_HOR, allowSplitTTHor, etc., and the availability flags for vertical splits in TT can be indicated by available_TT_VER, allowSplitTTVer, etc.

[0151] Table 5 below shows examples of CtxIdx values ​​based on the values ​​of availableBTHOR, availableBTVER, availableTTHOR, and availableTTVER.

[0152] [Table 5]

[0153] available BTHOR available BTVER availableTTHOR available TTVER Ctxldx 0 0 0 0 N / A 0 0 0 1 N / A 0 0 1 0 N / A 0 0 1 1 N / A 0 1 0 0 N / A 0 1 0 1 0 0 1 1 0 0 0 1 1 1 1 1 0 0 0 N / A 1 0 0 1 0 1 0 1 0 0 1 0 1 1 1 1 1 0 0 N / A 1 1 0 1 2 1 1 1 0 2 1 1 1 1 3

[0154] When the value of each of availableBTHOR, availableBTVER, availableTTHOR, and availableTTVER is 0, it indicates that the split according to each split structure is unavailable, while when the value of each is 1, it indicates that the split according to the split structure is available. If the value of CtxIdx is N / A, it means that the value of CtxIdx does not need to be determined because the signaling of split_bt_flag is unnecessary.

[0155] According to an exemplary implementation, split_bt_flag can be encoded using four context models. Table 6 below shows examples of the initial value (InitValue) of CABAC based on the value of CtxIdx.

[0156] [Table 6]

[0157] Ctxldx InitValue 0 152 1 153 2 154 3 152

[0158] As another example, the same initial value for CABAC can be used when the value of CtxIdx is 0 or 3, and three context models can be used to encode split_bt_flag when similar statistical properties are present. That is, when the value of CtxIdx is 3, the value of CtxIdx can be replaced with 0. Table 7 below shows examples of initial values ​​for CABAC based on the value of CtxIdx when using three context models.

[0159] [Table 7]

[0160] Ctxldx InitValue 0 152 1 153 2 154

[0161] Another exemplary embodiment of this disclosure proposes an alternative method for determining the context model for CABAC entropy coding. As an example, the syntax element `split_bt_flag` can be signaled first to determine whether it is a BT or TT split, and then the syntax element `split_dir` can be signaled to determine whether it is a horizontal or vertical split. In some cases, the syntax element `split_dir` may be referred to as `mtt_split_cu_vertical_flag`. As another example, the syntax element `split_dir` can be signaled first to determine whether it is a horizontal or vertical split, and then the syntax element `split_bt_flag` can be signaled to determine whether it is a BT or TT split.

[0162] At this point, the context model for the syntax element `split_dir` can be determined based on the number of horizontal and vertical splits that can be derived from the current block. Equation 2 below represents the value of the context index (CtxIdx) based on block split availability information.

[0163] [Equation 2]

[0164] CtxIdx=(availableBTHOR&&availableTTHOR)*2+(availableBTVER&&availableTTVER)

[0165] Table 8 below provides examples of CtxIdx values ​​based on the values ​​of availableBTHOR, availableBTVER, availableTTHOR, and availableTTVER.

[0166] [Table 8]

[0167] available BTHOR available TTHor available BTVER available TTVER Ctxldx 0 0 0 0 N / A 0 0 0 1 N / A 0 0 1 0 N / A 0 0 1 1 N / A 0 1 0 0 N / A 0 1 0 1 0 0 1 1 0 0 0 1 1 1 1 1 0 0 0 N / A 1 0 0 1 0 1 0 1 0 0 1 0 1 1 1 1 1 0 0 N / A 1 1 0 1 2 1 1 1 0 2 1 1 1 1 3

[0168] In Table 8, the case where CtxIdx has a value of N / A indicates that the value of CtxIdx does not need to be determined because the signaling of split_bt_flag is unnecessary.

[0169] According to the exemplary implementation, referring to Table 8, if the values ​​of availableBTHOR and availableTTHOR are 0 or the values ​​of availableBTVER and availableTTVER are 0, it can be confirmed that CtxIdx of split_dir is not derived.

[0170] According to the exemplary implementation, referring to Table 8, when the value of (availableBTHOR||availableTTHOR)&&(availableBTVER||availableTTVER) is 0, it can be confirmed that CtxIdx of split_dir is not derived.

[0171] According to an exemplary implementation, four context models can be used to encode split_dir_flag. Table 9 below shows examples of the initial value (InitValue) of CABAC based on the value of CtxIdx.

[0172] [Table 9]

[0173] Ctxldx InitValue 0 154 1 155 2 153 3 154

[0174] As another example, the same initial value for CABAC is used when the value of CtxIdx is 0 or 3, and three context models can be used to encode split_bt_flag when similar statistical properties are present. That is, when the value of CtxIdx is 3, the value of CtxIdx can be replaced with 0. Table 10 below shows examples of the initial values ​​of CABAC based on the value of CtxIdx when using three context models.

[0175] [Table 10]

[0176] Ctxldx lnitValue 0 154 1 155 2 153

[0177] This exemplary implementation can determine block segmentation based on transform sizes. Available transform sizes for the currently decoded image or image can be sent in units such as Sequence Parameter Set (SPS), Picture Parameter Set (PPS), Slice Header (SH), and Network Abstraction Layer (NAL) unit headers. For available transform sizes, corresponding transform sizes can also be transmitted one after another, and corresponding indices can be transmitted based on predefined transform sets. The decoder terminal can receive and decode the indices to deduce the available transform sizes.

[0178] Once the available transform size is determined, the available block segmentation size can be determined. That is, the available block segmentation size is defined for the currently decoded image and picture. The available block segmentation size can be determined by the available transforms. Therefore, segmentation of blocks in which no transform exists may not be allowed.

[0179] For images and pictures, the available block segmentation size is determined, and then it can be determined whether the blocks can be segmented in units of blocks (i.e., in units of CU or PU). The type of available block segmentation is determined based on the current block size. That is, BT or TT available candidates can be configured horizontally and vertically. Alternatively, in addition to 1 / 2 ratio segmentation, it can be determined whether 1 / 4, 3 / 4, 3 / 8, 5 / 8, 1 / 3, 2 / 3, 1 / 5, 4 / 5 ratio segmentation, etc., are available.

[0180] Configure available block candidates for segmentation, and then determine the final block segmentation by sending the block segmentation syntax to the decoder. If an available block candidate exists or no available block candidate exists, the corresponding syntax need not be sent.

[0181] Figure 8 This is a flowchart illustrating the operation of an encoding device according to an exemplary embodiment, and Figure 9 This is a block diagram illustrating the configuration of an encoding device according to an exemplary embodiment.

[0182] Figure 8 and Figure 9The encoding device illustrated in the example can perform operations that will be performed subsequently. Figure 10 and Figure 11 The operations corresponding to the operations of the decoding device illustrated in the example are as follows. Therefore, the following will refer to... Figure 10 and Figure 11 The content described can also be applied equivalently. Figure 8 and Figure 9 The encoding device is shown in the example.

[0183] Figure 8 Each step illustrated in the example can be derived from... Figure 1 The encoding device 100 illustrated in the example performs this. More specifically, it can be performed by... Figure 1 The entropy encoder 130 illustrated in the diagram executes steps S800 to S830. Furthermore, the operations according to S800 to S830 are based on the above references. Figures 3a to 7 Some of the actions described are executed. Therefore, references to the above will be omitted or simplified. Figures 3a to 7 The description repeats the description of specific content.

[0184] like Figure 9 As illustrated, an encoding device according to an exemplary embodiment may include an image segmenter 105 and an entropy encoder 130. However, in some cases, Figure 9 All components illustrated herein may not be essential components of the encoding device, and the encoding device may be composed of components that are not necessary for the encoding device. Figure 9 The example in the text is implemented with a larger or smaller number of components.

[0185] In the encoding apparatus according to an exemplary embodiment, each of the image segmenter 105 and the entropy encoder 130 may be implemented by a separate chip, or two or more components may be implemented by a single chip.

[0186] An encoding device according to an exemplary embodiment can derive multiple different encoding units by segmenting the current block within the current image. More specifically, the image segmenter 105 of the encoding device can derive multiple different encoding units by segmenting the current block within the current image.

[0187] The encoding device according to the exemplary embodiment can derive a segmentation flag syntax element representing the segmentation structure of the current block (S800). More specifically, the entropy encoder 130 of the encoding device can derive a segmentation flag syntax element representing the segmentation structure of the current block.

[0188] According to an exemplary implementation, the split flag syntax element may include a directional split flag indicating whether the current block is vertically split, and the split syntax element may include a BT split flag indicating whether the current block is split based on a BT structure. The directional split flag may be indicated, for example, by split_dir, and the BT split flag may be indicated, for example, by split_bt_flag.

[0189] The encoding device according to the exemplary embodiment can deduce the context index of the segmentation flag syntax element based on the segmentation availability information of the current block (S810). More specifically, the entropy encoder 130 of the encoding device can deduce the context index of the segmentation flag syntax element based on the segmentation availability information of the current block.

[0190] According to an exemplary embodiment, the segmentation availability information may include BT horizontal segmentation availability flag information indicating whether the current block can be horizontally segmented based on the BT structure, TT horizontal segmentation availability flag information indicating whether the current block can be horizontally segmented based on the TT structure, BT vertical segmentation availability flag information indicating whether the current block can be vertically segmented based on the BT structure, and TT vertical segmentation availability flag information indicating whether the current block can be vertically segmented based on the TT structure.

[0191] According to an exemplary implementation, the available flag information for BT horizontal segmentation can be indicated by availableBTHOR, the available flag information for TT horizontal segmentation can be indicated by availableTTHOR, the available flag information for BT vertical segmentation can be indicated by availableBTVER, and the available flag information for TT vertical segmentation can be indicated by availableTTVER.

[0192] According to an exemplary implementation, the context index of the directional segmentation flag can be derived based on the BT horizontal segmentation availability flag information, the TT horizontal segmentation availability flag information, the BT vertical segmentation availability flag information, and the TT vertical segmentation availability flag information.

[0193] According to an exemplary implementation, it is possible to determine whether to derive the context index of the directional segmentation flag based on the BT horizontal segmentation availability flag information, TT horizontal segmentation availability flag information, BT vertical segmentation availability flag information, and TT vertical segmentation availability flag information.

[0194] According to an exemplary implementation, if the values ​​of the BT horizontal segmentation available flag information and the TT horizontal segmentation available flag information are both 0, or the values ​​of the BT vertical segmentation available flag information and the TT vertical segmentation available flag information are both 0, then the feature is that the context index of the vertical segmentation flag is not derived.

[0195] According to an exemplary implementation, when the value of (availableBTHOR||availableTTHOR)&&(availableBTVER||availableTTVER) is 0, the context index of the vertical split flag may not be derived.

[0196] According to an exemplary implementation, the context index of the BT segmentation flag can be derived based on the BT horizontal segmentation availability flag information, the TT horizontal segmentation availability flag information, the BT vertical segmentation availability flag information, and the TT vertical segmentation availability flag information.

[0197] According to an exemplary implementation, the context index of the directional segmentation flag can be derived based on Equation 3 below.

[0198] [Formula 3]

[0199] CtxIdx=(availableBTHOR&&availableTTHOR)*2+(availableBTVER&&availableTTVER)

[0200] According to an exemplary implementation, the context index of the BT segmentation flag can be derived based on Equation 4 below.

[0201] [Formula 4]

[0202] CtxIdx=(availableBTHOR&&availableBTVER)*2+(availableTTHOR&&availableTTVER)

[0203] The encoding device according to the exemplary embodiment can determine the context model based on the derived context index (S820). More specifically, the entropy encoder 130 of the encoding device can determine the context model based on the derived context index.

[0204] The encoding device according to the exemplary embodiment can encode the value of the segmentation marker syntax element based on CABAC using the determined context model (S830). More specifically, the entropy encoder 130 of the encoding device can encode the value of the segmentation marker syntax element based on CABAC using the determined context model.

[0205] according to Figure 8 and Figure 9The encoding device and method for operating the encoding device illustrated herein can derive a segmentation flag syntax element representing the segmentation structure of the current block (S800), derive a context index of the segmentation flag syntax element based on the segmentation availability information of the current block (S810), determine a context model based on the derived context index (S820), and encode the value of the segmentation flag syntax element based on CABAC using the determined context model (S830). Furthermore, the segmentation flag syntax element may include a directional segmentation flag indicating whether the current block is to be vertically segmented, and the segmentation availability information may include BT horizontal segmentation availability flag information indicating whether the current block can be horizontally segmented based on a BT structure, TT horizontal segmentation availability flag information indicating whether the current block can be horizontally segmented based on a TT structure, BT vertical segmentation availability flag information indicating whether the current block can be vertically segmented based on a BT structure, and TT vertical segmentation availability flag information indicating whether the current block can be vertically segmented based on a TT structure. The context index of the directional segmentation flag is derived based on the BT horizontal segmentation availability flag information, TT horizontal segmentation availability flag information, BT vertical segmentation availability flag information, and TT vertical segmentation availability flag information. That is, such as Figure 8 and Figure 9 As illustrated, when performing entropy encoding based on CABAC using QT, BT, and TT structures, a context model can be used to perform encoding and decoding more efficiently.

[0206] Figure 10 This is a flowchart illustrating the operation of a decoding device according to an exemplary embodiment. Figure 11 This is a block diagram illustrating the configuration of a decoding device according to an exemplary embodiment.

[0207] Figure 10 Each step illustrated in the example can be derived from... Figure 2 The video decoding device 200 illustrated in the example performs this operation. More specifically, it can be performed by... Figure 2 The entropy decoder 210 illustrated in the example executes S1000 to S1030, which can be performed by... Figure 2 The predictor 230 illustrated in the example executes S1040, and can be... Figure 2 The adder 240 illustrated in the example executes S1050. Furthermore, the operations from S1000 to S1050 are based on the above reference. Figures 3a to 7 Some of the actions described are executed. Therefore, references to the above will be omitted or simplified. Figures 3a to 7 The description repeats the description of specific content.

[0208] like Figure 11As illustrated, a decoding device according to an exemplary embodiment may include an entropy decoder 210, a predictor 230, and an adder 240. However, in some cases, Figure 11 All components illustrated herein may not be essential components of the decoding device, and the decoding device may be composed of components that are not necessary for the decoding device. Figure 11 The example in the text is implemented with a larger or smaller number of components.

[0209] In the decoding device according to an exemplary embodiment, each of the entropy decoder 210, predictor 230 and adder 240 may be implemented by a separate chip, or two or more components may be implemented by a single chip.

[0210] According to an exemplary embodiment, the decoding device can deduce the context index of the segmentation flag syntax element based on the segmentation availability information of the current block (S1000). More specifically, the entropy decoder 210 of the decoding device can deduce the context index of the segmentation flag syntax element based on the segmentation availability information of the current block.

[0211] According to an exemplary implementation, the split flag syntax element may include a directional split flag indicating whether the current block is vertically split, and the split syntax element may include a BT split flag indicating whether the current block is split based on a BT structure. The directional split flag may be indicated, for example, by split_dir, and the BT split flag may be indicated, for example, by split_bt_flag.

[0212] According to an exemplary embodiment, the segmentation availability information may include BT horizontal segmentation availability flag information indicating whether the current block can be horizontally segmented based on the BT structure, TT horizontal segmentation availability flag information indicating whether the current block can be horizontally segmented based on the TT structure, BT vertical segmentation availability flag information indicating whether the current block can be vertically segmented based on the BT structure, and TT vertical segmentation availability flag information indicating whether the current block can be vertically segmented based on the TT structure.

[0213] As an example, the availability flag information for BT horizontal splitting can be indicated by availableBTHOR, the availability flag information for TT horizontal splitting can be indicated by availableTTHOR, the availability flag information for BT vertical splitting can be indicated by availableBTVER, and the availability flag information for TT vertical splitting can be indicated by availableTTVER.

[0214] According to an exemplary implementation, the context index of the directional segmentation flag can be derived based on the BT horizontal segmentation availability flag information, the TT horizontal segmentation availability flag information, the BT vertical segmentation availability flag information, and the TT vertical segmentation availability flag information.

[0215] According to an exemplary implementation, it is possible to determine whether to derive the context index of the directional segmentation flag based on the BT horizontal segmentation availability flag information, TT horizontal segmentation availability flag information, BT vertical segmentation availability flag information, and TT vertical segmentation availability flag information.

[0216] According to an exemplary implementation, if the values ​​of the BT horizontal segmentation available flag information and the TT horizontal segmentation available flag information are 0, or the values ​​of the BT vertical segmentation available flag information and the TT vertical segmentation available flag information are 0, then the context index of the directional segmentation flag may not be derived.

[0217] According to an exemplary implementation, when the value of (availableBTHOR||availableTTHOR)&&(availableBTVER||availableTTVER) is 0, the context index of the directional segmentation flag may not be derived.

[0218] According to an exemplary implementation, the context index of the BT segmentation flag can be derived based on the BT horizontal segmentation availability flag information, the TT horizontal segmentation availability flag information, the BT vertical segmentation availability flag information, and the TT vertical segmentation availability flag information.

[0219] According to an exemplary implementation, the context index of the directional segmentation flag can be derived based on Equation 5 below.

[0220] [Formula 5]

[0221] CtxIdx=(availableBTHOR&&availableTTHOR)*2+(availableBTVER&&availableTTVER)

[0222] According to an exemplary implementation, the context index of the BT segmentation flag can be derived based on Equation 6 below.

[0223] [Formula 6]

[0224] CtxIdx=(availableBTHOR&&availableBTVER)*2+(availableTTHOR&&availableTTVER)

[0225] According to an exemplary embodiment, the decoding device can determine the context model based on the derived context index (S1010). More specifically, the entropy decoder 210 of the decoding device can determine the context model based on the derived context index.

[0226] According to an exemplary embodiment, the decoding device can decode the value of the segmentation flag syntax element based on context-based adaptive binary arithmetic coding (CABAC) using the determined context model (S1020). More specifically, the entropy decoder 210 of the decoding device can decode the value of the segmentation flag syntax element based on CABAC using the determined context model.

[0227] According to an exemplary embodiment, the decoding device can derive the current coding unit from the current block based on the value of the segmentation flag syntax element (S1030). More specifically, the entropy decoder 210 of the decoding device can derive the current coding unit from the current block based on the value of the segmentation flag syntax element.

[0228] The decoding device according to the exemplary embodiment can derive a prediction block based on inter-frame prediction or intra-frame prediction for the current coding unit (S1040). More specifically, the predictor 230 of the decoding device can derive a prediction block based on inter-frame prediction or intra-frame prediction for the current coding unit.

[0229] The decoding device according to the exemplary embodiment can generate a reconstructed block based on the prediction block (S1050). More specifically, the adder 240 of the decoding device can generate a reconstructed block based on the prediction block.

[0230] according to Figure 10 and Figure 11The decoding device and method of operating the decoding device illustrated herein can deduce the context index of the segmentation flag syntax element based on the segmentation availability information of the current block (S1000), determine the context model based on the deduced context index (S1010), decode the value of the segmentation flag syntax element based on context-based adaptive binary arithmetic coding (CABAC) using the determined context model (S1020), deduce the current coding unit from the current block based on the value of the segmentation flag syntax element (S1030), deduce the prediction block based on inter-frame prediction or intra-frame prediction for the current coding unit (S1040), and generate a reconstructed block based on the prediction block (S1050). Here, the feature may be that the segmentation flag syntax element... The elements may include directional segmentation flags indicating whether the current block can be vertically segmented. Segmentation availability information may include BT horizontal segmentation availability flags indicating whether the current block can be horizontally segmented based on a binary tree (BT) structure, TT horizontal segmentation availability flags indicating whether the current block can be horizontally segmented based on a TT structure, BT vertical segmentation availability flags indicating whether the current block can be vertically segmented based on a BT structure, and TT vertical segmentation availability flags indicating whether the current block can be vertically segmented based on a TT structure. Furthermore, the context index of the directional segmentation flag is derived based on the BT horizontal segmentation availability flags, TT horizontal segmentation availability flags, BT vertical segmentation availability flags, and TT vertical segmentation availability flags. That is, as... Figure 10 and Figure 11 As illustrated, when performing entropy encoding based on CABAC using QT, BT, and TT structures, a context model can be used to perform encoding and decoding more efficiently.

[0231] The exemplary embodiments described in this disclosure can be implemented and executed by a processor, microprocessor, controller, or chip. For example, the functional units illustrated in each figure can be implemented and executed by a computer, processor, microprocessor, controller, or chip.

[0232] Furthermore, decoders and encoders applying exemplary embodiments of this disclosure can be included in multimedia broadcast transceivers, mobile communication terminals, home theater video devices, digital cinema video devices, surveillance cameras, video chat devices, real-time communication devices such as video communication devices, mobile streaming devices, storage media, portable cameras, video-on-demand (VoD) service providers, over-the-top (OTT) video devices, internet streaming service providers, three-dimensional (3D) video devices, video telephony devices, medical video devices, etc., and are used to process video signals or data signals. For example, over-the-top (OTT) video devices may include game consoles, Blu-ray players, internet access TVs, home theater systems, smartphones, tablet PCs, digital video recorders (DVRs), etc.

[0233] Furthermore, the processing methods applying the exemplary embodiments of this disclosure can be generated in the form of a program executed by a computer and stored in a computer-readable recording medium. Multimedia data with data structures according to this disclosure can also be stored in a computer-readable recording medium. Computer-readable recording media include all types of storage devices and distributed storage devices in which computer-readable data is stored. Computer-readable recording media can include, for example, Blu-ray discs (BD), Universal Serial Bus (USB), ROM, PROM, EPROM, EEPROM, RAM, CD-ROM, magnetic tape, floppy disks, and optical data storage devices. Additionally, computer-readable recording media include media implemented in the form of a carrier wave (e.g., transmission over the Internet). Furthermore, bitstreams generated by encoding methods can be stored in computer-readable recording media or transmitted via wired or wireless communication networks.

[0234] Furthermore, the exemplary embodiments of this disclosure can be implemented as a computer program product by program code, and the program code can be executed on a computer by the exemplary embodiments of this disclosure. The program code can be stored on a computer-readable medium.

[0235] Figure 12 This is a schematic diagram of a content streaming system architecture according to an exemplary embodiment.

[0236] The content streaming system using this disclosure may mainly include an encoding server, a streaming server, a network server, a media storage device, a user device, and a multimedia input device.

[0237] An encoding server is used to compress content input from multimedia input devices such as smartphones, cameras, and camcorders into digital data to generate a bitstream, and then transmits that bitstream to a streaming server. As another example, if multimedia input devices such as smartphones, cameras, or camcorders generate the bitstream directly, an encoding server can be omitted.

[0238] Bitstreams can be generated by applying the encoding method or bitstream generation method disclosed herein, and the streaming server can temporarily store bitstreams during the processing of sending or receiving bitstreams.

[0239] A streaming server sends multimedia data to a user's device based on a request from a web server, and the web server acts as an intermediary to inform the user what services are available. When a user requests a desired service from the web server, the web server transmits the service to the streaming server, and the streaming server sends the multimedia data to the user. In this case, the content streaming system may include a separate control server, which controls the commands / responses between the various devices in the content streaming system.

[0240] A streaming server can receive content from media storage and / or encoding servers. For example, if content is received from an encoding server, it can be received in real time. In this case, the streaming server can store the bitstream for a predetermined period of time to smoothly provide streaming services.

[0241] Examples of user equipment may include mobile phones, smartphones, laptop computers, digital broadcasting terminals, personal digital assistants (PDAs), portable multimedia players (PMPs), navigation devices, touchscreen PCs, tablet PCs, ultrabooks, wearable devices (e.g., smartwatches, smart glasses, head-mounted displays (HMDs)), digital TVs, desktop computers, digital signage, etc.

[0242] In a content streaming system, each server can operate as a distributed server, and in this case, the data received by each server can be processed in a distributed manner.

[0243] The methods mentioned above according to this disclosure can be implemented in software form, and the encoding and / or decoding devices according to this disclosure can be included in devices that perform image processing, such as TVs, computers, smartphones, set-top boxes, or display devices.

[0244] Each of the aforementioned parts, modules, or units can be a processor or hardware component that performs sequential processing stored in memory (or storage units). Each step described in the exemplary embodiments above can be executed by a processor or hardware component. The various modules / blocks / units described in the exemplary embodiments above can operate as hardware / processors. Furthermore, the methods provided by this disclosure can be executed as code. This code can be written to a processor-readable storage medium, and therefore can be read by a processor provided by the device.

[0245] In the exemplary embodiments mentioned above, the method is explained based on a flowchart using a series of steps or blocks. However, this disclosure is not limited to the order of these steps, and a step may occur in a different order or sequence than those described above, or simultaneously with the steps described above. Furthermore, those skilled in the art will understand that the steps shown in the flowchart are not exclusive, and one or more steps from another step or flowchart that could be incorporated may be removed without affecting the scope of this disclosure.

[0246] When implemented by software according to exemplary embodiments of this disclosure, the methods mentioned above can be implemented by modules (processes, functions, etc.) performing the functions mentioned above. Modules can be stored in memory and executed by a processor. The memory can be internal or external to the processor and connected to the processor via various known means. The processor may include application-specific integrated circuits (ASICs), other chipsets, logic circuits, and / or data processing devices. The memory may include read-only memory (ROM), random access memory (RAM), flash memory, memory cards, storage media, and / or other storage devices.

Claims

1. An image decoding method performed by a decoding device, the image decoding method comprising the following steps: The context index for the segmentation marker syntax element is derived based on the segmentation availability information of the current block. The context model is determined based on the derived context index; The values ​​of the segmentation marker syntax elements are decoded using the determined context model based on context-based adaptive binary arithmetic encoding CABAC. The current coding unit is derived from the current block based on the value of the segmentation flag syntax element; The prediction block is derived based on inter-frame prediction or intra-frame prediction for the current coding unit. as well as Reconstruction blocks are generated based on the predicted blocks. The segmentation flag syntax elements include: a directional segmentation flag indicating whether to vertically segment the current block. The segmentation availability information includes: BT horizontal segmentation availability flags related to whether horizontal segmentation of the current block based on a binary tree (BT) structure is allowed; TT horizontal segmentation availability flags related to whether horizontal segmentation of the current block based on a ternary tree (TT) structure is allowed; BT vertical segmentation availability flags related to whether vertical segmentation of the current block based on the BT structure is allowed; and TT vertical segmentation availability flags related to whether vertical segmentation of the current block based on the TT structure is allowed. Specifically, the context index for the directional segmentation flag is derived based on the number of available horizontal segmentation flags and the number of available vertical segmentation flags, and The horizontal segmentation availability flag includes the BT horizontal segmentation availability flag information and the TT horizontal segmentation availability flag information, and the vertical segmentation availability flag includes the BT vertical segmentation availability flag information and the TT vertical segmentation availability flag information.

2. An image encoding method performed by an encoding device, the image encoding method comprising the following steps: Derivate the segmentation marker syntax elements that represent the segmentation structure of the current block; The context index for the segmentation flag syntax element is derived based on the segmentation availability information of the current block. The context model is determined based on the derived context index; as well as The values ​​of the segmentation marker syntax elements are encoded using the determined context model based on CABAC. The segmentation flag syntax elements include: a directional segmentation flag indicating whether to vertically segment the current block. The segmentation availability information includes: BT horizontal segmentation availability flags related to whether horizontal segmentation of the current block based on a binary tree (BT) structure is allowed; TT horizontal segmentation availability flags related to whether horizontal segmentation of the current block based on a ternary tree (TT) structure is allowed; BT vertical segmentation availability flags related to whether vertical segmentation of the current block based on the BT structure is allowed; and TT vertical segmentation availability flags related to whether vertical segmentation of the current block based on the TT structure is allowed. Specifically, the context index for the directional segmentation flag is derived based on the number of available horizontal segmentation flags and the number of available vertical segmentation flags, and The horizontal segmentation availability flag includes the BT horizontal segmentation availability flag information and the TT horizontal segmentation availability flag information, and the vertical segmentation availability flag includes the BT vertical segmentation availability flag information and the TT vertical segmentation availability flag information.

3. A method for transmitting a bit stream, the method comprising the following steps: The bitstream is obtained by performing an image encoding method, the image encoding method comprising the following steps: deriving segmentation flag syntax elements representing the segmentation structure of the current block; deriving a context index for the segmentation flag syntax elements based on the segmentation availability information of the current block; determining a context model based on the derived context index; and encoding the value of the segmentation flag syntax elements using the determined context model based on CABAC; and Send the bit stream, The segmentation flag syntax elements include: a directional segmentation flag indicating whether to vertically segment the current block. The segmentation availability information includes: BT horizontal segmentation availability flags related to whether horizontal segmentation of the current block based on a binary tree (BT) structure is allowed; TT horizontal segmentation availability flags related to whether horizontal segmentation of the current block based on a ternary tree (TT) structure is allowed; BT vertical segmentation availability flags related to whether vertical segmentation of the current block based on the BT structure is allowed; and TT vertical segmentation availability flags related to whether vertical segmentation of the current block based on the TT structure is allowed. Specifically, the context index for the directional segmentation flag is derived based on the number of available horizontal segmentation flags and the number of available vertical segmentation flags, and The horizontal segmentation availability flag includes the BT horizontal segmentation availability flag information and the TT horizontal segmentation availability flag information, and the vertical segmentation availability flag includes the BT vertical segmentation availability flag information and the TT vertical segmentation availability flag information.

Citation Information

Patent Citations

  • Video frame encoding and decoding

    US20050169374A1

  • Method and apparatus for entropy encoding and decoding video signal

    WO2017086765A2