Image encoding / decoding method for geometrically dividing blocks, method for transmitting bit stream, and recording medium for storing bit stream
Through geometric segmentation intra/inter prediction method and reference picture resampling technology, the problem of high-resolution image transmission cost is solved, efficient image encoding and decoding is achieved, and storage costs are reduced.
Patent Information
- Application Number
- CN202380030842.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-04-12
- Filing Date
- 2023-04-12
- Publication Date
- 2024-11-12
AI Technical Summary
The prior art is difficult to effectively compress and transmit high-resolution, high-quality images, resulting in increased transmission and storage costs.
The geometric segmentation intra/inter prediction method is adopted to deduce the intra prediction mode by resampling the reference picture, and the image is divided into sub-blocks for intra and inter-prediction to improve the encoding/decoding efficiency.
Improve image encoding/decoding efficiency, reduce transmission and storage costs, and improve image quality.
Smart Images

Figure CN118947116A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to an image encoding / decoding method for geometric partition blocks, a method for transmitting a bitstream, and a recording medium for storing the bitstream. More specifically, the present disclosure relates to a method for considering whether to resample reference samples during intra-frame and inter-frame prediction (GPM intra / inter) for geometric partition blocks. Background Art
[0002] Recently, demand for high-resolution and high-quality images, such as high-definition (HD) and ultra-high-definition (UHD) images, is increasing across various fields. As the resolution and quality of image data improve, the amount of information or bits transmitted increases relative to existing image data. This increase in the amount of information or bits transmitted leads to increased transmission and storage costs.
[0003] Therefore, efficient image compression technology is needed to effectively transmit, store, and reproduce information about high-resolution and high-quality images. Summary of the Invention
[0004] Technical issues
[0005] An object of the present disclosure is to provide an image encoding / decoding method and apparatus with improved encoding / decoding efficiency.
[0006] In addition, an object of the present disclosure is to provide a method of performing geometric partitioning intra / inter (GPM intra / inter) prediction.
[0007] In addition, an object of the present disclosure is to provide a method for deriving an intra prediction mode based on a reference picture of an inter prediction block when performing geometric partitioning intra / inter prediction.
[0008] In addition, an object of the present disclosure is to provide a method for deriving an intra prediction mode based on whether a reference picture of an inter prediction block is resampled when performing geometric partitioning intra / inter prediction.
[0009] An object of the present disclosure is to provide a non-transitory recording medium storing a bit stream generated by the image encoding method according to the present disclosure.
[0010] An object of the present disclosure is to provide a non-transitory recording medium that stores a bit stream received and decoded by an image decoding apparatus according to the present disclosure and used to reconstruct an image.
[0011] An object of the present disclosure is to provide a method of transmitting a bit stream generated by the image encoding method according to the present disclosure.
[0012] The technical problems solved by the present disclosure are not limited to the above-mentioned technical problems, and those skilled in the art will understand other technical problems not described herein through the following description.
[0013] Technical Solution
[0014] According to an aspect of the present disclosure, an image decoding method may include the following steps: determining whether to apply geometric partitioning to a current block; partitioning the current block into a first subblock and a second subblock based on the application of geometric partitioning to the current block; and performing intra-frame prediction on the first subblock and performing inter-frame prediction on the second subblock. The intra-frame prediction mode of the first subblock may be derived based on the intra-frame prediction mode of a collocated block within a reference picture and whether the reference picture is resampled.
[0015] According to an aspect of the present disclosure, based on the reference picture being resampled, the collocated block may be derived based on a value clipped to a position within a specific range for the current block.
[0016] According to an aspect of the present disclosure, the position within the specific range for the current block may be determined based on a coding tree unit size for the current block.
[0017] According to an aspect of the present disclosure, based on the reference picture being resampled, the collocated block may be derived based on scaling according to a sampling rate of the reference picture.
[0018] According to an aspect of the present disclosure, the collocated block may be derived by being transformed into integer pixel positions after scaling.
[0019] According to an aspect of the present disclosure, based on the re-sampling of the reference picture, the intra prediction mode of the first subblock may be derived based on a specific intra prediction mode.
[0020] According to an aspect of the present disclosure, the specific intra prediction mode may be one of a planar mode or a DC mode.
[0021] According to an aspect of the present disclosure, based on the second subblock being bi-directionally predicted and at least one of the reference pictures being resampled, the intra prediction mode of the first subblock may be derived based on a specific intra prediction mode.
[0022] According to an aspect of the present disclosure, based on the fact that the second sub-block is bidirectionally predicted and only one of the reference pictures is not resampled, the intra prediction mode of the first sub-block may be derived based on the intra prediction mode of a collocated block that is not resampled within the reference picture and a specific intra prediction mode.
[0023] According to another aspect of the present disclosure, an image encoding method may include the following steps: determining whether to apply geometric partitioning to a current block; partitioning the current block into a first subblock and a second subblock based on the application of geometric partitioning to the current block; and performing intra-frame prediction on the first subblock and performing inter-frame prediction on the second subblock. The intra-frame prediction mode of the first subblock may be derived based on the intra-frame prediction mode of a collocated block within a reference picture and whether the reference picture is resampled.
[0024] A computer-readable storage medium according to another aspect of the present disclosure may store a bitstream generated by the image encoding method or apparatus of the present disclosure.
[0025] A transmitting method according to another aspect of the present disclosure may transmit a bitstream generated by the image encoding method or apparatus of the present disclosure.
[0026] The features briefly summarized above with respect to the present disclosure are merely exemplary aspects of the following detailed description of the present disclosure and do not limit the scope of the present disclosure.
[0027] Beneficial effects
[0028] According to the present disclosure, an image encoding / decoding method and apparatus with improved encoding / decoding efficiency can be provided.
[0029] In addition, according to the present disclosure, a method of performing geometric partitioning intra / inter prediction may be provided.
[0030] In addition, according to the present disclosure, a method of deriving an intra prediction mode based on a reference picture when performing geometric partitioning intra / inter prediction may be provided.
[0031] In addition, according to the present disclosure, a method of deriving an intra prediction mode based on whether a reference picture is resampled when performing geometric partitioning intra / inter prediction may be provided.
[0032] In addition, according to the present disclosure, a method of deriving an intra prediction mode based on a reference picture when performing geometric partitioning intra / inter prediction may be provided.
[0033] In addition, according to the present disclosure, a method of enabling intra / inter prediction information of a current block to be referred to in blocks and pictures decoded after the current block when geometric partitioning intra / inter prediction is applied may be provided.
[0034] In addition, according to the present disclosure, a method of improving image quality when performing geometric partitioning intra / inter prediction can be provided.
[0035] In addition, according to the present disclosure, a non-transitory computer-readable recording medium for storing a bit stream generated by the image encoding method according to the present disclosure can be provided.
[0036] According to the present disclosure, there can be provided a non-transitory recording medium storing a bit stream received and decoded by the image decoding apparatus according to the present disclosure and used to reconstruct an image.
[0037] According to the present disclosure, a method of transmitting a bitstream generated by the image encoding method according to the present disclosure may be provided.
[0038] Those skilled in the art will understand that the effects that can be achieved through the present disclosure are not limited to the contents that have been specifically described above, and other advantages of the present disclosure will be more clearly understood from the detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 FIG. 1 is a diagram schematically illustrating a video encoding system to which embodiments of the present disclosure are applicable.
[0040] Figure 2 FIG. 1 is a diagram schematically showing an image encoding device to which an embodiment of the present disclosure is applicable.
[0041] Figure 3 FIG. 1 is a diagram schematically showing an image decoding device to which an embodiment of the present disclosure is applicable.
[0042] Figure 4 is a diagram schematically showing an inter-frame prediction unit of the image encoding device.
[0043] Figure 5 is a flowchart illustrating a method of encoding an image based on inter-frame prediction.
[0044] Figure 6 is a diagram schematically illustrating an inter-frame prediction unit of an image decoding device.
[0045] Figure 7 is a flowchart illustrating a method of decoding an image based on inter-frame prediction.
[0046] Figure 8 is a flowchart illustrating an inter-frame prediction method.
[0047] Figure 9 is a diagram illustrating GPM (Geometric Partitioning Mode) partitioning according to the present disclosure.
[0048] Figure 10 is a diagram illustrating GPM intra / inter according to the present disclosure.
[0049] Figure 11 FIG. 4 is a diagram illustrating a method of deriving an intra prediction mode of a geometric partition block based on whether a reference picture is resampled according to the present disclosure.
[0050] Figure 12 is a diagram illustrating a method of deriving an intra prediction mode of a geometric partition block when reference picture resampling is applied according to one embodiment of the present disclosure.
[0051] Figure 13 is a diagram illustrating a method of deriving an intra prediction mode of a geometric partition block when reference picture resampling is applied according to another embodiment of the present disclosure.
[0052] Figure 14 The flowchart illustrates a method for deriving an intra prediction mode of a geometric partition block based on a reference sample resampling scaling ratio according to one embodiment of the present disclosure.
[0053] Figure 15 is a flowchart illustrating a method for deriving an intra prediction mode of a geometric partition block based on a reference sample resampling scaling ratio according to another embodiment of the present disclosure.
[0054] Figure 16 is a flowchart illustrating a method for deriving an intra prediction mode of a geometric partition block based on a reference sample resampling scaling ratio according to another embodiment of the present disclosure.
[0055] Figure 17 is a flowchart illustrating an image encoding method or an image decoding method according to one embodiment of the present disclosure.
[0056] Figure 18 is a diagram showing a content streaming system to which an embodiment of the present disclosure is applicable. DETAILED DESCRIPTION
[0057] Hereinafter, the embodiments of the present disclosure will be described in detail with reference to the accompanying drawings to facilitate implementation by those skilled in the art. However, the present disclosure can be implemented in various forms and is not limited to the embodiments described herein.
[0058] When describing the present disclosure, if it is determined that the detailed description of related known functions or configurations makes the scope of the present disclosure unnecessarily ambiguous, its detailed description will be omitted. In the drawings, parts not related to the description of the present disclosure are omitted, and like reference numerals are given to like parts.
[0059] In the present disclosure, when a component is “connected,” “coupled,” or “linked” to another component, it may include not only a direct connection relationship but also an indirect connection relationship with intermediate components. In addition, when a component “includes” or “has” other components, unless otherwise specified, it means that other components may also be included, rather than excluding other components.
[0060] In the present disclosure, the terms first, second, etc. may be used only to distinguish one component from other components and do not limit the order or importance of the components unless otherwise specified. Accordingly, within the scope of the present disclosure, the first component in one embodiment may be referred to as the second component in another embodiment, and similarly, the second component in one embodiment may be referred to as the first component in another embodiment.
[0061] In this disclosure, components that are distinguished from each other are intended to clearly describe each feature and do not necessarily mean that the components must be separated. That is, multiple components can be integrated and implemented in a single hardware or software unit, or a single component can be distributed and implemented in multiple hardware or software units. Therefore, even if not otherwise specified, embodiments in which components are integrated or distributed are also included in the scope of this disclosure.
[0062] In the present disclosure, the components described in the various embodiments are not necessarily essential components, and some components may be optional components. Therefore, embodiments consisting of a subset of the components described in the embodiments are also included in the scope of the present disclosure. In addition, embodiments that include other components in addition to the components described in the various embodiments are included in the scope of the present disclosure.
[0063] The present disclosure relates to encoding and decoding of images. Unless otherwise defined in the present disclosure, terms used in the present disclosure may have general meanings commonly used in the technical field to which the present disclosure belongs.
[0064] In this disclosure, a "picture" generally refers to a unit representing an image within a specific time period, and a slice / tile is a coding unit that constitutes a portion of a picture, and a picture can be composed of one or more slices / tiles. In addition, a slice / tile can include one or more coding tree units (CTUs).
[0065] In the present disclosure, "pixel" or "picture element (pel)" may refer to the smallest unit constituting a picture (or image). In addition, "sample" may be used as a term corresponding to a pixel. A sample may generally represent a pixel or a pixel value, or may represent only a pixel / pixel value of a luminance component or only a pixel / pixel value of a chrominance component.
[0066] In the present disclosure, a "unit" may refer to a basic unit of image processing. The unit may include at least one of a specific area of a picture and information related to the area. In some cases, the unit may be used interchangeably with terms such as "sample array," "block," or "area." In general, an M×N block may include M columns and N rows of samples (or sample arrays) or a set (or array) of transform coefficients.
[0067] In the present disclosure, the term "current block" may refer to one of the following: "current coding block," "current coding unit," "encoding target block," "decoding target block," or "processing target block." When prediction is performed, the term "current block" may refer to either the "current prediction block" or the "prediction target block." When transform (inverse transform) / quantization (dequantization) is performed, the term "current block" may refer to either the "current transform block" or the "transform target block." When filtering is performed, the term "current block" may refer to the "filtering target block."
[0068] In addition, in the present disclosure, unless explicitly stated as a chroma block, the "current block" may mean a block including both a luma component block and a chroma component block or a "luma block of the current block." The luma component block of the current block may be expressed by an explicit description including a luma component block such as "luma block" or "current luma block." In addition, the "chroma component block of the current block" may be expressed by an explicit description including a chroma component block such as "chroma block" or "current chroma block."
[0069] In this disclosure, the slash " / " or "," should be interpreted as indicating "and / or". For example, the expressions "A / B" and "A, B" may mean "A and / or B". In addition, "A / B / C" and "A, B, C" may mean "at least one of A, B, and / or C".
[0070] In the present disclosure, the term "or" should be interpreted as meaning "and / or". For example, the expression "A or B" may include 1) only "A", 2) only "B", and / or 3) both "A and B". In other words, in the present disclosure, the term "or" should be interpreted as meaning "additionally or alternatively".
[0071] Overview of Video Coding Systems
[0072] Figure 1 FIG. 1 is a diagram illustrating a video encoding system to which an embodiment of the present disclosure is applicable.
[0073] The video encoding system according to the embodiment may include an encoding device 10 and a decoding device 20. The encoding device 10 may deliver encoded video and / or image information or data to the decoding device 20 via a digital storage medium or a network in the form of a file or stream.
[0074] The encoding device 10 according to the embodiment may include a video source generator 11, an encoding unit 12, and a transmitter 13. The decoding device 20 according to the embodiment may include a receiver 21, a decoding unit 22, and a renderer 23. The encoding unit 12 may be referred to as a video / image encoding unit, and the decoding unit 22 may be referred to as a video / image decoding unit. The transmitter 13 may be included in the encoding unit 12. The receiver 21 may be included in the decoding unit 22. The renderer 23 may include a display, and the display may be configured as a separate device or an external component.
[0075] The video source generator 11 can obtain video / images by capturing, synthesizing, or generating video / images. The video source generator 11 may include a video / image capture device and / or a video / image generation device. The video / image capture device may include, for example, one or more cameras, a video / image archive including previously captured videos / images, etc. The video / image generation device may include, for example, a computer, a tablet computer, and a smartphone, and may generate videos / images (electronically). For example, a virtual video / image may be generated by a computer, etc. In this case, the video / image capture process may be replaced by a process for generating relevant data.
[0076] The encoding unit 12 may encode the input video / image. For compression and coding efficiency, the encoding unit 12 may perform a series of processes such as prediction, transformation, and quantization. The encoding unit 12 may output the encoded data (encoded video / image information) in the form of a bitstream.
[0077] The transmitter 13 can obtain the encoded video / image information or data output as a bitstream and forward it to the receiver 21 of the decoding device 20 or another external device in the form of a file or stream via a digital storage medium or network. Digital storage media can include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. The transmitter 13 can include components for generating media files using a predetermined file format and can also include components for transmitting via a broadcast / communication network. The transmitter 13 can be configured as a transmitting device separate from the encoding device 10. In this case, the transmitting device can include at least one processor and a transmitting unit for transmitting the encoded video / image information or data as a file or stream. The receiver 21 can extract / receive the bitstream from the storage medium or network and transmit the bitstream to the decoding unit 22.
[0078] The decoding unit 22 may decode a video / image by performing a series of processes corresponding to the operations of the encoding unit 12 , such as dequantization, inverse transformation, and prediction.
[0079] The renderer 23 may render the decoded video / image. The rendered video / image may be displayed on a display.
[0080] Overview of Image Coding Devices
[0081] Figure 2 is a diagram schematically showing an image encoding device to which an embodiment of the present disclosure is applicable.
[0082] like Figure 2 As shown, the image source device 100 may include an image splitter 110, a subtractor 115, a transformer 120, a quantizer 130, a dequantizer 140, an inverse transformer 150, an adder 155, a filter 160, a memory 170, an inter-frame prediction unit 180, an intra-frame prediction unit 185, and an entropy encoder 190. The inter-frame prediction unit 180 and the intra-frame prediction unit 185 may be collectively referred to as a "prediction unit." The transformer 120, the quantizer 130, the dequantizer 140, and the inverse transformer 150 may be included in a residual processor. The residual processor may further include a subtractor 115.
[0083] In some embodiments, all or at least some of the components configuring the image source device 100 may be configured by one hardware component (eg, an encoder or a processor). In addition, the memory 170 may include a decoded picture buffer (DPB) and may be configured by a digital storage medium.
[0084] The image splitter 110 can split the input image (or picture or frame) input to the image source device 100 into one or more processing units. For example, a processing unit can be called a coding unit (CU). The coding unit can be obtained by recursively splitting a coding tree unit (CTU) or a maximum coding unit (LCU) according to a quadtree, binary tree, and ternary tree (QT / BT / TT) structure. For example, a coding unit can be split into multiple coding units of a deeper depth based on a quadtree structure, a binary tree structure, and / or a ternary tree structure. For the splitting of the coding unit, the quadtree structure can be applied first, and the binary tree structure and / or the ternary tree structure can be applied later. The encoding process according to the present disclosure can be performed based on the final coding unit that is no longer split. The maximum coding unit can be used as the final coding unit, and the coding unit of a deeper depth obtained by splitting the maximum coding unit can also be used as the final coding unit. Here, the encoding process may include the prediction, transformation, and reconstruction processes described later. As another example, the processing unit of the encoding process can be a prediction unit (PU) or a transform unit (TU). The prediction unit and the transform unit may be divided or partitioned from the final coding unit. The prediction unit may be a sample prediction unit, and the transform unit may be a unit for deriving a transform coefficient and / or a unit for deriving a residual signal from the transform coefficient.
[0085] The prediction unit (inter prediction unit 180 or intra prediction unit 185) may perform prediction on the block to be processed (current block) and generate a prediction block including prediction samples of the current block. The prediction unit may determine whether to apply intra prediction or inter prediction based on the current block or CU. The prediction unit may generate various information related to the prediction of the current block and transmit the generated information to the entropy encoder 190. The information on the prediction may be encoded in the entropy encoder 190 and output in the form of a bitstream.
[0086] The intra-frame prediction unit 185 can predict the current block by referring to samples in the current picture. Depending on the intra-frame prediction mode and / or intra-frame prediction technology, the reference samples can be located in the neighborhood of the current block or can be placed separately. The intra-frame prediction mode may include multiple non-directional modes and multiple directional modes. The non-directional mode may include, for example, a DC mode and a planar mode. Depending on the level of detail of the prediction direction, the directional mode may include, for example, 33 directional prediction modes or 65 directional prediction modes. However, this is merely an example, and more or fewer directional prediction modes may be used depending on the settings. The intra-frame prediction unit 185 may determine the prediction mode applied to the current block by using the prediction mode applied to the neighboring blocks.
[0087] The inter-frame prediction unit 180 can derive a prediction block for the current block based on a reference block (reference sample array) specified by a motion vector on a reference picture. In this case, to reduce the amount of motion information transmitted in inter-frame prediction mode, motion information can be predicted in units of blocks, sub-blocks, or samples based on the correlation of motion information between neighboring blocks and the current block. The motion information can include a motion vector and a reference picture index. The motion information can also include information about the inter-frame prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.). In the case of inter-frame prediction, neighboring blocks can include spatially neighboring blocks in the current picture and temporally neighboring blocks in the reference picture. The reference picture including the reference block and the reference picture including the temporally neighboring block can be the same or different. Temporally neighboring blocks can be referred to as collocated reference blocks, collocated CUs (colCUs), etc. A reference picture including temporally neighboring blocks can be referred to as collocated pictures (colPics). For example, the inter-frame prediction unit 180 can configure a motion information candidate list based on the neighboring blocks and generate information indicating which candidate to use to derive the motion vector and / or reference picture index for the current block. Inter-frame prediction can be performed based on various prediction modes. For example, in the case of skip mode and merge mode, the inter-frame prediction unit 180 can use the motion information of the neighboring block as the motion information of the current block. In the case of skip mode, unlike merge mode, a residual signal may not be transmitted. In the case of motion vector prediction (MVP) mode, the motion vector of the neighboring block can be used as a motion vector predictor, and the motion vector of the current block can be signaled by encoding a motion vector difference and an indicator of the motion vector predictor. The motion vector difference may mean the difference between the motion vector of the current block and the motion vector predictor.
[0088] The prediction unit can generate a prediction signal based on various prediction methods and prediction techniques described below. For example, the prediction unit can apply not only intra-frame prediction or inter-frame prediction, but also both intra-frame prediction and inter-frame prediction simultaneously to predict the current block. The prediction method that simultaneously applies both intra-frame prediction and inter-frame prediction to predict the current block is referred to as combined inter-frame and intra-frame prediction (CIIP). In addition, the prediction unit can perform intra-frame block copying (IBC) to predict the current block. Intra-frame block copying can be used for content image / video encoding such as games, such as screen content coding (SCC). IBC is a method that uses a previously reconstructed reference block in the current picture at a predetermined distance from the current block to predict the current picture. When IBC is applied, the position of the reference block in the current picture can be encoded as a vector (block vector) corresponding to the predetermined distance. IBC essentially performs prediction in the current picture, but can be performed similarly to inter-frame prediction because the reference block is derived within the current picture. That is, IBC can use at least one of the inter-frame prediction techniques described in this disclosure.
[0089] The prediction signal generated by the prediction unit can be used to generate a reconstructed signal or a residual signal. The subtractor 115 can generate a residual signal (residual block or residual sample array) by subtracting the prediction signal (prediction block or prediction sample array) output from the prediction unit from the input image signal (original block or original sample array). The generated residual signal can be sent to the transformer 120.
[0090] The transformer 120 may generate transform coefficients by applying a transform technique to the residual signal. For example, the transform technique may include at least one of a discrete cosine transform (DCT), a discrete sine transform (DST), a Karhunen-Loève transform (KLT), a graph-based transform (GBT), or a conditional nonlinear transform (CNT). Here, GBT refers to a transform obtained from a graph when the relationship information between pixels is represented by a graph. CNT refers to a transform obtained based on a prediction signal generated using all previously reconstructed pixels. In addition, the transform process may be applied to square pixel blocks of the same size or to blocks of variable size other than square.
[0091] The quantizer 130 may quantize the transform coefficients and transmit them to the entropy encoder 190. The entropy encoder 190 may encode the quantized signal (information about the quantized transform coefficients) and output a bitstream. The information about the quantized transform coefficients may be referred to as residual information. The quantizer 130 may rearrange the quantized transform coefficients of the block type into a one-dimensional vector form based on the coefficient scanning order, and generate information about the quantized transform coefficients based on the quantized transform coefficients in the one-dimensional vector form.
[0092] The entropy encoder 190 can perform various encoding methods, such as exponential Golomb, context-adaptive variable length coding (CAVLC), context-adaptive binary arithmetic coding (CABAC), etc. The entropy encoder 190 can encode information required for video / image reconstruction (e.g., values of syntax elements, etc.) in addition to quantized transform coefficients together or separately. The encoded information (e.g., encoded video / image information) can be transmitted or stored in the form of a bitstream in units of a network abstraction layer (NAL). The video / image information may also include information about various parameter sets, such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). In addition, the video / image information may also include general constraint information. The signaled information, transmitted information, and / or syntax elements described in the present disclosure may be encoded through the above-mentioned encoding process and included in the bitstream.
[0093] The bitstream may be transmitted via a network or stored in a digital storage medium. The network may include a broadcast network and / or a communication network, and the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. A transmitter (not shown) that transmits the signal output from the entropy encoder 190 and / or a storage unit (not shown) that stores the signal may be included as an internal / external element of the image source device 100. Alternatively, the transmitter may be provided as a component of the entropy encoder 190.
[0094] The quantized transform coefficients output from the quantizer 130 may be used to generate a residual signal. For example, the residual signal (residual block or residual sample) may be reconstructed by applying dequantization and inverse transform to the quantized transform coefficients through the dequantizer 140 and the inverse transformer 150.
[0095] The adder 155 adds the reconstructed residual signal to the prediction signal output from the inter-frame prediction unit 180 or the intra-frame prediction unit 185 to generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array). If the block to be processed has no residual, such as when skip mode is applied, the prediction block can be used as the reconstructed block. The adder 155 can be called a reconstructor or a reconstructed block generator. The generated reconstructed signal can be used for intra-frame prediction of the next block to be processed in the current picture, and can be used for inter-frame prediction of the next picture through filtering as described below.
[0096] The filter 160 can improve the subjective / objective image quality by applying filtering to the reconstructed signal. For example, the filter 160 can generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture, and store the modified reconstructed picture in the memory 170, specifically, in the DPB of the memory 170. Various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filtering, bilateral filtering, etc. The filter 160 can generate various information related to filtering and send the generated information to the entropy encoder 190, as described later in the description of each filtering method. The information related to filtering can be encoded by the entropy encoder 190 and output in the form of a bitstream.
[0097] The modified reconstructed picture transmitted to the memory 170 may be used as a reference picture in the inter prediction unit 180. When inter prediction is applied by the image source device 100, prediction mismatch between the image source device 100 and the image decoding apparatus may be avoided and encoding efficiency may be improved.
[0098] The DPB of the memory 170 may store the modified reconstructed picture for use as a reference picture in the inter-frame prediction unit 180. The memory 170 may store motion information of a block for deriving (or encoding) motion information in the current picture and / or motion information of a reconstructed block in the picture. The stored motion information may be sent to the inter-frame prediction unit 180 and used as motion information of a spatially adjacent block or motion information of a temporally adjacent block. The memory 170 may store reconstructed samples of the reconstructed block in the current picture and may transmit the reconstructed samples to the intra-frame prediction unit 185.
[0099] Overview of Image Decoding Equipment
[0100] Figure 3 FIG. 1 is a diagram schematically showing an image decoding device to which an embodiment of the present disclosure is applicable.
[0101] like Figure 3 As shown, the image receiving apparatus 200 may include an entropy decoder 210, a dequantizer 220, an inverse transformer 230, an adder 235, a filter 240, a memory 250, an inter-frame prediction unit 260, and an intra-frame prediction unit 265. The inter-frame prediction unit 260 and the intra-frame prediction unit 265 may be collectively referred to as a "prediction unit." The dequantizer 220 and the inverse transformer 230 may be included in a residual processor.
[0102] According to an embodiment, all or at least some of the components configuring the image receiving apparatus 200 may be configured by hardware components (eg, a decoder or a processor). In addition, the memory 250 may include a decoded picture buffer (DPB) or may be configured by a digital storage medium.
[0103] The image receiving apparatus 200 having received a bit stream including video / image information can perform the same operation as that performed by Figure 2 The image source device 100 may reconstruct the image by performing processing corresponding to the processing performed by the image receiving device 200. For example, the image receiving device 200 may perform decoding using a processing unit used in an image encoding device. Therefore, the processing unit for decoding may be, for example, a coding unit. A coding unit may be obtained by dividing a coding tree unit or a maximum coding unit. The reconstructed image signal decoded and output by the image receiving device 200 may be reproduced by a reproduction device (not shown).
[0104] The image receiving apparatus 200 can receive the image in the form of a bit stream from Figure 2The received signal can be decoded by the entropy decoder 210. For example, the entropy decoder 210 can parse the bitstream to derive the information required for image reconstruction (or picture reconstruction) (for example, video / image information). The video / image information may also include information about various parameter sets, such as an adaptive parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). In addition, the video / image information may also include general constraint information. The image decoding device may also decode the picture based on the information about the parameter set and / or the general constraint information. The signaled / received information and / or syntax elements described in the present disclosure can be decoded and obtained from the bitstream through a decoding process. For example, the entropy decoder 210 decodes the information in the bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, and outputs the values of the syntax elements required for image reconstruction and the quantized values of the transform coefficients of the residual. More specifically, the CABAC entropy decoding method can receive a bin corresponding to each syntax element in the bitstream, use the decoding target syntax element information, the decoding information of the neighboring blocks and the decoding target block, or the information of the symbol / bin decoded at the previous stage to determine the context model, perform arithmetic decoding on the bin by predicting the probability of occurrence of the bin according to the determined context model, and generate a symbol corresponding to the value of each syntax element. In this case, after determining the context model, the CABAC entropy decoding method can update the context model by using the information of the decoded symbol / bin for the context model of the next symbol / bin. The information related to prediction among the information decoded by the entropy decoder 210 can be provided to the prediction unit (inter-frame prediction unit 260 and intra-frame prediction unit 265), and the residual value (i.e., quantized transform coefficient and related parameter information) on which entropy decoding is performed in the entropy decoder 210 can be input to the dequantizer 220. In addition, the information about filtering among the information decoded by the entropy decoder 210 can be provided to the filter 240. In addition, a receiver (not shown) for receiving a signal output from the image encoding apparatus may be further configured as an internal / external element of the image receiving device 200 , or the receiver may be a component of the entropy decoder 210 .
[0105] In addition, the image decoding device according to the present disclosure may be referred to as a video / image / picture decoding device. The image decoding device may be divided into an information decoder (video / image / picture information decoder) and a sample decoder (video / image / picture sample decoder). The information decoder may include an entropy decoder 210. The sample decoder may include a dequantizer 220, an inverse transformer 230, an adder 235, a filter 240, a memory 250, an inter-frame prediction unit 260, or at least one of an intra-frame prediction unit 265.
[0106] The dequantizer 220 may dequantize the quantized transform coefficients and output the transform coefficients. The dequantizer 220 may rearrange the quantized transform coefficients in the form of two-dimensional blocks. In this case, the rearrangement may be performed based on the coefficient scanning order performed in the image encoding device. The dequantizer 220 may dequantize the quantized transform coefficients using quantization parameters (e.g., quantization step size information) and obtain the transform coefficients.
[0107] The inverse transformer 230 may perform inverse transformation on the transformation coefficients to obtain a residual signal (residual block, residual sample array).
[0108] The prediction unit may perform prediction on the current block and generate a prediction block including prediction samples of the current block. The prediction unit may determine whether to apply intra prediction or inter prediction to the current block based on the information about prediction output from the entropy decoder 210, and may determine a specific intra / inter prediction mode (prediction technique).
[0109] As described in the prediction unit of the image source device 100 , the prediction unit may generate a prediction signal based on various prediction methods (techniques) to be described later.
[0110] The intra prediction unit 265 may predict the current block by referring to samples in the current picture. The description of the intra prediction unit 185 is also applicable to the intra prediction unit 265.
[0111] The inter-frame prediction unit 260 can derive a prediction block for the current block based on a reference block (reference sample array) specified by a motion vector on a reference picture. In this case, to reduce the amount of motion information transmitted in inter-frame prediction mode, motion information can be predicted in units of blocks, sub-blocks, or samples based on the correlation of motion information between neighboring blocks and the current block. Motion information may include a motion vector and a reference picture index. Motion information may also include information on the inter-frame prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.). In the case of inter-frame prediction, neighboring blocks may include spatial neighboring blocks in the current picture and temporal neighboring blocks in the reference picture. For example, the inter-frame prediction unit 260 may configure a motion information candidate list based on neighboring blocks and derive a motion vector and / or reference picture index for the current block based on received candidate selection information. Inter-frame prediction can be performed based on various prediction modes, and information about the prediction may include information indicating the inter-frame prediction mode of the current block.
[0112] The adder 235 can generate a reconstruction signal (reconstructed picture, reconstructed block, reconstructed sample array) by adding the obtained residual signal to the prediction signal (prediction block, prediction sample array) output from the prediction unit (including the inter-frame prediction unit 260 and / or the intra-frame prediction unit 265). If the block to be processed has no residual, such as when the skip mode is applied, the prediction block can be used as the reconstructed block. The description of the adder 155 also applies to the adder 235. The adder 235 can be called a reconstructor or a reconstructed block generator. The generated reconstruction signal can be used for intra-frame prediction of the next block to be processed in the current picture, and can be used for inter-frame prediction of the next picture through filtering as described below.
[0113] The filter 240 can improve the subjective / objective image quality by applying filtering to the reconstructed signal. For example, the filter 240 can generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture, and store the modified reconstructed picture in the memory 250, specifically, in the DPB of the memory 250. The various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filtering, bilateral filtering, etc.
[0114] The (modified) reconstructed picture stored in the DPB of the memory 250 can be used as a reference picture in the inter-frame prediction unit 260. The memory 250 can store motion information of blocks for deriving (or decoding) motion information in the current picture and / or motion information of reconstructed blocks in the picture. The stored motion information can be sent to the inter-frame prediction unit 260 to be used as motion information of spatially adjacent blocks or motion information of temporally adjacent blocks. The memory 250 can store reconstructed samples of the reconstructed blocks in the current picture and transmit the reconstructed samples to the intra-frame prediction unit 265.
[0115] In the present disclosure, the embodiments described in the filter 160 , the inter prediction unit 180 , and the intra prediction unit 185 of the image source device 100 may be equally or correspondingly applied to the filter 240 , the inter prediction unit 260 , and the intra prediction unit 265 of the image receiving device 200 .
[0116] Inter-frame prediction
[0117] The prediction units of the image encoding device 100 and the image decoding device 200 can derive prediction samples by performing inter-frame prediction on a block-by-block basis. Inter-frame prediction may be prediction derived in a manner that depends on data elements (e.g., sample values or motion information) of pictures other than the current picture. When inter-frame prediction is applied to the current block, a prediction block (prediction sample array) for the current block may be derived based on a reference block (reference sample array) specified by a motion vector on a reference picture indicated by a reference picture index. Herein, to reduce the amount of motion information transmitted in inter-frame prediction mode, motion information of the current block may be predicted on a per-block, per-subblock, or per-sample basis based on the correlation of motion information between neighboring blocks and the current block. Motion information may include a motion vector and a reference picture index. Motion information may also include information on the inter-frame prediction type (L0 prediction, L1 prediction, bi-prediction, etc.). When inter-frame prediction is applied, neighboring blocks may include spatially neighboring blocks in the current picture and temporally neighboring blocks in a reference picture. The reference picture comprising the reference block and the reference picture comprising the temporally neighboring block may be the same or different. Temporally neighboring blocks may be referred to as collocated reference blocks or collocated CUs (collocated CUs). A reference picture including temporally neighboring blocks may be referred to as a collocated picture (colPic). For example, a motion information candidate list may be constructed based on neighboring blocks of the current block. A flag or index information indicating which candidate is selected (used) to derive the motion vector and / or reference picture index of the current block may be signaled. Inter-frame prediction may be performed based on various prediction modes. For example, in the case of skip mode and merge mode, the motion information of the current block may be the same as the motion information of the selected neighboring block. In the case of skip mode, unlike merge mode, a residual signal may not be sent. In the case of motion information prediction (motion vector prediction MVP) mode, the motion vector of the selected neighboring block may be used as a motion vector predictor, and the motion vector difference may be signaled. In this case, the sum of the motion vector predictor and the motion vector difference may be used to derive the motion vector of the current block.
[0118] Depending on the inter-frame prediction type (L0 prediction, L1 prediction, bi-prediction, etc.), the motion information may include L0 motion information and / or L1 motion information. A motion vector in the L0 direction may be referred to as an L0 motion vector or MVL0, and a motion vector in the L1 direction may be referred to as an L1 motion vector or MVL1. Prediction based on the L0 motion vector may be referred to as L0 prediction. Prediction based on the L1 motion vector may be referred to as L1 prediction. Prediction based on the L0 motion vector and the L1 motion vector may be referred to as bi-directional prediction. Herein, an L0 motion vector may refer to a motion vector associated with reference picture list L0 (L0), and an L1 motion vector may refer to a motion vector associated with reference picture list L1 (L1). Reference picture list L0 may include pictures that precede the current picture in output order as reference pictures. Reference picture list L1 may include pictures that follow the current picture in output order. The previous picture may be referred to as a forward (reference) picture, and the subsequent picture may be referred to as a backward (reference) picture. Reference picture list L0 may also include pictures that follow the current picture in output order as reference pictures. In this case, within reference picture list L0, the previous picture may be indexed first, and the subsequent picture may be indexed next. Reference picture list L1 may also include pictures preceding the current picture in output order as reference pictures. In this case, within reference picture list 1, the subsequent picture may be indexed first, and the previous picture may be indexed next. Herein, the output order may correspond to the picture order count (POC) order.
[0119] Figure 4 is a diagram schematically illustrating the inter-frame prediction unit 180 of the image encoding device 100, and Figure 5 is a flowchart illustrating a method of encoding an image based on inter-frame prediction.
[0120] The image encoding device 100 may perform inter-frame prediction on the current block (S510). The image encoding device 100 may derive an inter-frame prediction mode and motion information of the current block, and may generate prediction samples of the current block. In this document, the processes of determining the inter-frame prediction mode, deriving motion information, and generating prediction samples may be performed simultaneously, or any one process may be performed before the other process. For example, the inter-frame prediction unit 180 of the image encoding device 100 may include a prediction mode determination unit 181, a motion information derivation unit 182, and a prediction sample derivation unit 183. The prediction mode determination unit 181 may determine a prediction mode for the current block. The motion information derivation unit 182 may derive motion information of the current block. The prediction sample derivation unit 183 may derive prediction samples of the current block. For example, the inter-frame prediction unit 180 of the image encoding device 100 may search a predetermined area (search area) of a reference picture for a block similar to the current block through motion estimation, and may derive a reference block whose difference with the current block is minimal or less than or equal to a predetermined standard. Based on this, a reference picture index indicating the reference picture where the reference block is located can be derived, and a motion vector can be derived based on the position difference between the reference block and the current block. The image encoding device 100 can determine a mode to be applied to the current block among various prediction modes. The image encoding device 100 can compare the RD costs for various prediction modes and determine the optimal prediction mode for the current block.
[0121] For example, when skip mode or merge mode is applied to the current block, the image encoding device 100 may construct a merge candidate list, which will be described later, and may derive a reference block whose difference with the current block is the smallest or less than or equal to a predetermined standard among the reference blocks indicated by the merge candidates included in the merge candidate list. In this case, a merge candidate associated with the derived reference block may be selected, and merge index information indicating the selected merge candidate may be generated and signaled to the decoding device. The motion information of the selected merge candidate may be used to derive the motion information of the current block.
[0122] As another example, when the (A)MVP mode is applied to the current block, the image encoding device 100 may construct an (A)MVP candidate list described later, and may use the motion vector of the MVP candidate selected from the motion vector predictor (MVP) candidates included in the (A)MVP candidate list as the MVP of the current block. In this case, for example, the motion vector indicating the reference block derived by the above-mentioned motion estimation may be used as the motion vector of the current block. Among the MVP candidates, the MVP candidate having the motion vector with the smallest difference from the motion vector of the current block may be the selected MVP candidate. A motion vector difference (MVD) may be derived as the difference obtained by subtracting the MVP from the motion vector of the current block. In this case, information about the MVD may be signaled to the image decoding device 200. In addition, when the (A)MVP mode is applied, the value of the reference picture index may be constructed as reference picture index information and may be signaled separately to the image decoding device 200.
[0123] The image encoding apparatus 100 may induce residual samples based on the prediction samples (S520). The image encoding apparatus 100 may compare the prediction samples with original samples of the current block to induce the residual samples.
[0124] The image encoding device 100 may encode image information including prediction information and residual information (S530). The image encoding device 100 may output the encoded image information in the form of a bitstream. The prediction information is information related to the prediction process and may include prediction mode information (e.g., a skip flag, a merge flag, or a mode index) and information about motion information. The information about the motion information may include candidate selection information (e.g., a merge index, an mvp flag, or an mvp index) as information for deriving a motion vector. In addition, the information about the motion information may include the above-mentioned reference picture index information and / or information about MVD. In addition, the information about the motion information may include information indicating whether L0 prediction, L1 prediction, or bidirectional prediction is applied. The residual information is information about the residual sample. The residual information may include information about the quantized transform coefficients of the residual sample.
[0125] The output bit stream may be stored in a (digital) storage medium and transmitted to the decoding device, or may be transmitted to the image decoding device 200 via a network.
[0126] In addition, as described above, the image encoding device 100 can generate a reconstructed picture (including reconstructed samples and reconstructed blocks) based on the reference samples and the residual samples. This is to derive the same prediction result as the prediction result performed in the image decoding device 200 through the image encoding device 100, and thereby improve the encoding efficiency. Therefore, the image encoding device 100 can store the reconstructed picture (or reconstructed sample, reconstructed block) in a memory and use it as a reference picture for inter-frame prediction. As described above, the loop filtering process can also be applied to the reconstructed picture.
[0127] Figure 6 is a diagram schematically illustrating the inter-frame prediction unit 260 of the image decoding apparatus 200, and Figure 7 is a flowchart illustrating a method of decoding an image based on inter-frame prediction.
[0128] The image decoding apparatus 200 may perform an operation corresponding to the operation performed by the image encoding apparatus 100. The image decoding apparatus 200 may perform prediction on the current block based on the received prediction information, and may derive a prediction sample.
[0129] Specifically, the image decoding apparatus 200 may determine a prediction mode for the current block based on the received prediction information (S710). The image decoding apparatus 200 may determine which inter prediction mode is applied to the current block based on prediction mode information in the prediction information.
[0130] For example, based on the merge flag, it can be determined whether to apply the merge mode to the current block or determine the (A)MVP mode. Alternatively, one of various inter-frame prediction mode candidates can be selected based on the mode index. The inter-frame prediction mode candidates may include skip mode, merge mode and / or (A)MVP mode, or may include various inter-frame prediction modes described later.
[0131] The image decoding device 200 may derive motion information of the current block based on the determined inter-frame prediction mode (S720). For example, when the skip mode or merge mode is applied to the current block, the image decoding device 200 may construct a merge candidate list described later and may select a merge candidate from among the merge candidates included in the merge candidate list. The selection may be performed based on the above-mentioned selection information (merge index). The motion information of the selected merge candidate may be used to derive the motion information of the current block. The motion information of the selected merge candidate may be used as the motion information of the current block.
[0132] As another example, when the (A)MVP mode is applied to the current block, the image decoding device 200 can construct an (A)MVP candidate list described later, and can use the motion vector of the motion vector predictor (MVP) candidate selected from the motion vector predictor (MVP) candidates included in the (A)MVP candidate list as the MVP of the current block. The selection can be performed based on the above-mentioned selection information (MVP flag or MVP index). In this case, the MVD of the current block can be derived based on the information about the MVD, and the motion vector of the current block can be derived based on the MVP and MVD of the current block. In addition, the reference picture index of the current block can be derived based on the reference picture index information. The picture indicated by the reference picture index in the reference picture list related to the current block can be derived as a reference picture, which is referenced for inter-frame prediction of the current block.
[0133] In addition, as will be described later, the motion information of the current block can be derived without constructing a candidate list. In this case, the motion information of the current block can be derived according to the process described in the prediction mode described later. In this case, the candidate list configuration described above can be omitted.
[0134] The image decoding apparatus 200 may generate prediction samples for the current block based on the motion information of the current block (S730). In this case, a reference picture may be derived based on a reference picture index of the current block, and prediction samples of the current block may be derived using samples of the reference block indicated on the reference picture by the motion vector of the current block. In this case, as described below, in some cases, a prediction sample filtering process may also be performed on all or part of the prediction samples of the current block.
[0135] For example, the inter-frame prediction unit 260 of the image decoding apparatus 200 may include a prediction mode determination unit 261, a motion information derivation unit 262, and a prediction sample derivation unit 263. The prediction mode determination unit 181 may determine a prediction mode for the current block based on the received prediction mode information. The motion information derivation unit 182 may derive motion information (motion vector and / or reference picture index) of the current block based on the received information about motion information. The prediction sample derivation unit 183 may derive a prediction sample for the current block.
[0136] The image decoding device 200 may generate residual samples for the current block based on the received residual information (S740). The image decoding device 200 may generate reconstructed samples for the current block based on the predicted samples and the residual samples, and may generate a reconstructed picture based on the reconstructed samples (S750). Thereafter, as described above, a loop filtering process may be applied to the reconstructed picture.
[0137] Reference Figure 8The inter-frame prediction process may include the following steps: determining an inter-frame prediction mode (S810), deriving motion information according to the determined prediction mode (S820), and performing prediction (generating prediction samples) based on the derived motion information (S830). The inter-frame prediction process may be performed in the image encoding apparatus 100 and the image decoding apparatus 200 as described above.
[0138] Inter-frame prediction mode determination
[0139] Various inter prediction modes can be used to predict the current block in the picture. For example, various modes such as merge mode, skip mode, motion vector prediction (MVP) mode, affine mode, sub-block merge mode, and merge with MVD (MMVD) mode can be used. Decoder-side motion vector refinement (DMVR) mode, adaptive motion vector resolution (AMVR) mode, bidirectional prediction with CU-level weights (BCW), bidirectional optical flow (BDOF), etc. can also be used in addition or alternatively as additional modes. Affine mode can be referred to as affine motion prediction mode. MVP mode can be referred to as advanced motion vector prediction (AMVP) mode. In this document, some modes and / or motion information candidates derived by some modes can be included as one of the motion information candidates of other modes. For example, an HMVP candidate can be added as a merge candidate in merge / skip mode, or can be added as an MVP candidate in MVP mode.
[0140] Prediction mode information indicating the inter-frame prediction mode of the current block can be signaled from the image encoding device 100 to the image decoding device 200. The prediction mode information can be included in the bitstream and received by the image decoding device 200. The prediction mode information may include index information indicating one of a plurality of candidate modes. Alternatively, the inter-frame prediction mode may be indicated by hierarchical signaling of flag information. In this case, the prediction mode information may include one or more flags. For example, a skip flag may be signaled to indicate whether the skip mode is applied, and if the skip mode is not applied, a merge flag may be signaled to indicate whether the merge mode is applied, and if the merge mode is not applied, an MVP mode may be applied, or a flag for additional classification may be further signaled. The affine mode may be signaled in an independent mode, or the affine mode may be signaled in a mode that depends on the merge mode or the MVP mode. For example, the affine mode may include an affine merge mode and an affine MVP mode.
[0141] Derivation of motion information
[0142] Inter-frame prediction can be performed using the motion information of the current block. The image encoding device 100 can derive the best motion information for the current block through a motion estimation process. For example, the image encoding device 100 can use the original block in the original picture for the current block to search for a similar reference block with high correlation in units of fractional pixels within a predetermined search range in the reference picture, thereby deriving motion information. The similarity of the blocks can be derived based on the difference in phase-based sample values. For example, the similarity of the blocks can be calculated based on the SAD between the current block (or the template of the current block) and the reference block (or the template of the reference block). In this case, the motion information can be derived based on the reference block with the smallest SAD in the search area. The derived motion information can be signaled to the image decoding device 200 according to various methods based on the inter-frame prediction mode.
[0143] Generation of prediction samples
[0144] A prediction block for the current block can be derived based on motion information derived according to a prediction mode. The prediction block may include prediction samples (an array of prediction samples) for the current block. When the motion vector of the current block indicates fractional sample units, an interpolation process may be performed to derive prediction samples for the current block based on reference samples in fractional sample units within a reference picture. When affine inter prediction is applied to the current block, prediction samples may be generated based on sample / subblock units MV. When bidirectional prediction is applied, prediction samples derived by weighting or weighted averaging (based on phase) prediction samples derived based on L0 prediction (i.e., prediction using a reference picture and MVL0 in reference picture list L0) and prediction samples derived based on L1 prediction (i.e., prediction using a reference picture and MVL1 in reference picture list L1) may be used as prediction samples for the current block. When bidirectional prediction is applied, if the reference picture used for L0 prediction and the reference picture used for L1 prediction are located in different temporal directions relative to the current picture (i.e., bidirectional prediction and bi-prediction), this may be referred to as true bidirectional prediction.
[0145] As described above, reconstructed samples and reconstructed pictures may be generated based on the derived prediction samples, and thereafter, processes such as in-loop filtering may be performed.
[0146] GPM (Geometric Partitioning Mode)
[0147] Figure 9is a diagram illustrating GPM (Geometric Partition Mode) partitioning according to the present disclosure. GPM partitioning (i.e., geometric partitioning mode) is a mode that can be supported in prediction, is a type of merge mode and other merges including subblock merge mode, CIIP mode, MMVD mode, and general merge mode, and can be signaled as a CU-level flag. Geometric partitioning mode can be supported for all CU sizes except 8×64 and 64×8, where m, n∈{3…6} and w×h=2^m×2^n, and a total of 64 partitions can be supported.
[0148] According to the geometric partitioning mode, the CU can be split into two parts by a geometrically positioned straight line. The position of the partition line can be mathematically derived from the angle and offset parameters of the specific partition. The geometric partition of the CU (i.e., each part) can use its own motion for inter-frame prediction. Each partition is allowed to be subject to only unidirectional prediction, and each part can be associated with one motion vector and one reference index. This constraint (unidirectional prediction motion) is to ensure that there are only two motion compensated predictions for each CU similar to bidirectional prediction. The unidirectional prediction motion of each partition is as described above.
[0149] Figure 9 An example of GPM partitioning grouped by the same angle is shown. If the geometric partitioning mode is used for the current CU, a geometric partitioning index indicating the partitioning mode (angle and offset) of the geometric partitioning part and two merge indices (one for each partition) can be additionally signaled. The maximum number of GPM candidate sizes can be explicitly signaled in the SPS, and the syntax binarization for the GPM merge indices can be specified.
[0150] Figure 10 is a diagram illustrating GPM intra / inter according to the present disclosure. If the GPM mode is applied, the syntax of the following Table 1 may be signaled.
[0151] [Table 1]
[0152] merge_gpm-partition-idx[x0][y0] ae(v) merge_gpm-idx0[x0][y0] ae(v) if(MaxNumGpmMergeCand>2) merge-gpm-idx1[x0][y0] ae(v)
[0153] The angles and distances in Table 2 may be derived based on the signaled GPM index as in Table 1 above.
[0154] [Table 2]
[0155]
[0156] Based on the derived angle and distance, a block can be split into two arbitrary regions. Each region constitutes a single sub-block, and different motion prediction information can be used to generate each prediction block. The prediction blocks generated in this way can be mixed and used as prediction blocks for the corresponding block.
[0157] Although only inter-frame prediction can be used to generate a prediction block for each of the two sub-blocks, an embodiment of the GPM intra / inter hybrid method can use intra-frame prediction to generate a prediction block for each region. As an example, an intra-frame prediction method can be used to generate a prediction block for one region of the two sub-blocks, and an inter-frame prediction method can be used to generate a prediction block for the other region.
[0158] Reference Picture Resampling (RPR)
[0159] Depending on the video compression technology, adaptive resolution change (ARC) of a coded layer video sequence (CLVS) may be supported. If ARC is enabled, a reference picture having a different resolution than the current picture may be resampled. The reference picture may be a picture included in the same layer as the current layer including the current picture. Resampling may be referred to as reference picture resampling (RPR). For example, reference picture resampling may include scaling and interpolation of the reference picture.
[0160] If ARC is enabled, inter prediction can be performed based on a reference picture with a different resolution. The reference picture can have a different luma sample width and / or height than the current picture. For inter prediction, the reference picture can be resampled. The prediction samples for the current block in the current picture can be derived based on the motion vector of the current block and the resampled reference picture.
[0161] This disclosure describes a technique for generating a prediction block in GPM intra / inter prediction mode by referencing resampled information of a reference picture during inter prediction. According to one embodiment of the present disclosure, motion information or intra prediction information for the geometric partitioning (GPM) intra / inter prediction mode can be configured. Furthermore, for clarity, the following assumes that the geometric partitioning (GPM) mode is applied to a current block to partition it into two or more regions, generating a first region (i.e., a first subblock) and a second region (i.e., a second subblock). As an example, the first subblock and the second subblock can be intra-predicted or inter-predicted. The following description of the embodiments assumes that GPM intra / inter is applied, intra prediction mode is applied to the first region (i.e., the first subblock), and inter prediction mode is applied to the second region (i.e., the second subblock). However, in the case of embodiments based on other assumptions (e.g., when GPM intra / intra is applied and intra prediction is applied to the first and second regions), the above assumptions may not apply. In such cases, the other assumptions will be explained.
[0162] In addition, when explaining one embodiment of the present disclosure, since the geometric partitioning mode can be supported in inter-frame prediction, the reference picture list of the second sub-block to which the inter-frame prediction mode is applied can be the reference picture list of the current block, and the reference picture of the second sub-block can be the reference picture of the current block.
[0163] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
[0164] Implementation Method
[0165] Figure 11 FIG. 4 is a diagram illustrating a method of deriving an intra prediction mode of a geometric partition block based on whether a reference picture is resampled according to the present disclosure.
[0166] For example, when the current block is geometrically partitioned to generate a first subblock and a second subblock, the first subblock and the second subblock may be predicted by intra prediction or inter prediction to generate a prediction block. For example, when the first subblock is intra predicted and the second subblock is inter predicted, the second subblock may be unidirectionally predicted or bidirectionally predicted so that at least one reference picture of the second subblock may exist. In order to derive the intra prediction mode of the first subblock, it may be determined whether to resample the reference picture of the inter prediction block (i.e., the second subblock) (S1110). As another example, when both the first subblock and the second subblock are intra predicted, it may be determined whether to resample the reference picture (S1110) by using the reference picture as a collocated picture without referring to information about a motion vector. Whether to perform reference picture resampling (RPR) may be derived from reference picture resampling information, which may include information related to the resolution of the reference sample. As an example, the reference picture resampling information may be included in the bitstream or derived from other information.
[0167] When determining whether to resample the reference picture, an intra prediction mode may be derived based on whether the reference picture is resampled (S1120). Here, the intra prediction mode may be used for the geometric partition block to be intra-predicted and may be used for the first sub-block. As an example, the intra prediction mode may be derived through a specific process, or may be derived as a specific intra prediction mode based on whether the reference sample is resampled.
[0168] according to Figure 11The intra prediction mode (i.e., intra prediction mode) derived by the embodiment of the present disclosure is stored in a buffer and the intra prediction information of the current block can be referenced in a block or picture to be decoded after the current block. In addition, according to one embodiment of the present disclosure, when performing geometric partitioning (GPM) intra / inter prediction, the intra prediction mode can be stored for a region where a prediction block is generated in inter prediction mode rather than for a region where a prediction block is generated in intra prediction mode. In addition, when the intra prediction mode in the picture referenced by the motion information stored in the inter prediction region is stored as the intra prediction mode of the current region, reference can be made to whether the reference picture is resampled.
[0169] As an example, when an intra prediction mode is derived during image encoding in an image encoding device or during image decoding in an image decoding device, it is possible to perform Figure 11 That is, Figure 11 The method may be included in an image encoding method or an image decoding method.
[0170] According to one embodiment of the present disclosure, motion information or intra prediction information may be configured by referring to reference picture resampling information, and the configured prediction information may be stored, thereby improving compression efficiency.
[0171] In the following, based on Figure 11 Various embodiments of the present disclosure are described in detail.
[0172] Figure 12 is a diagram illustrating a method of deriving an intra prediction mode of a geometric partition block when reference picture resampling is applied according to one embodiment of the present disclosure, and Figure 13 is a diagram illustrating a method for deriving an intra prediction mode of a geometric partition block when reference picture resampling is applied according to another embodiment of the present disclosure. Figure 14 is a flowchart illustrating a method for deriving an intra prediction mode of a geometric partition block when reference picture resampling is applied according to one embodiment of the present disclosure.
[0173] More specifically, Figure 12 、 Figure 13 and Figure 14 All based on Figure 11 ,but Figure 13 is shown compared to Figure 12 FIGURES of more specific embodiments. Figure 14 This is an example based on Figure 13 A flowchart of one embodiment of the present disclosure.
[0174] Reference Figures 12 to 14 The implementation of can be based on the determination of whether to resample the reference picture of the inter-frame prediction block. As an example, Figure 12 、 Figure 13 and Figure 14 Can be used when reference picture resampling is applied.
[0175] As an example, when reference sample resampling is applied, a prediction direction for the block may be determined (S1410) to derive an intra prediction mode for the geometrically partitioned block. As an example, if the block is an inter-predicted (sub-)block, the prediction direction may be the prediction direction of the inter-predicted (sub-)block (e.g., the second sub-block). Step S1410 may include a process for determining whether the inter-predicted block is unidirectionally predicted or bidirectionally predicted, etc. If the inter-predicted block is unidirectionally predicted, since there may be only a single reference picture, the process of deriving the intra prediction mode (e.g., steps S1430 and subsequent steps) may be performed only for the single reference picture. On the other hand, as another example, if the current block is bidirectionally predicted, the process of deriving the intra prediction mode (e.g., steps S1440 and subsequent steps) may be performed for each of reference picture list 0 and reference picture list 1 (S1420). Since multiple reference pictures may exist when the inter-predicted block is bidirectionally predicted (including bidirectional prediction), the process of deriving the intra prediction mode may be performed for each reference picture. That is, a loop may be applied (S1420).
[0176] For example, if the inter-prediction block is not bidirectionally predicted or is unidirectionally predicted and only a single reference picture exists, the reference picture list may be determined to be one of List 0 and List 1, and a reference picture index indicating the reference picture may be determined (S1430). On the other hand, if the inter-prediction block is bidirectionally predicted, a reference picture index indicating the reference picture of each reference picture list (List 0 and List 1) may be determined (S1440). In addition, as another example, there may be a case where the motion information of the reference picture cannot be referenced. For example, this may be a case where both the first subblock and the second subblock are intra-predicted. To determine the reference picture, steps S1430 and / or S1440 may be replaced with a process of determining the reference picture as a predefined reference picture. In this case, the reference picture may be derived from other information obtained from the bitstream. For example, the reference picture may be determined based on the HLS (e.g., ph_collocated_ref_idx, ph_collocated_from_l0_flag).
[0177] When resampling is applied to a reference picture indicated by a reference picture index, a position value within the reference picture may be derived based on motion information of an inter-frame prediction block (S1450), and this step may be performed in conjunction with Figure 13The motion information of the inter-frame prediction block is about the reference picture and may include motion vector information, and the motion vector information may include information about the abscissa and ordinate. As an example, the position value within the reference picture may be derived by adding the motion vector information (e.g., MV.x, MV.y) to the position information (X, Y) of the current block (e.g., X+MV.x, Y+MV.y), and may be derived as PosX, PosY (PosX=X+MV.x, PosY=Y+MV.y).
[0178] When the position value within the reference picture is derived, cropping may be applied to the position value (S1460). Figure 13 The same as step S1320 of . As an example, the clipping may be based on a clipping function (e.g., ClipColPos). The clipping function may have information about a position value as a parameter, and according to the clipping function, the position value may be set within a specific range. For example, the clipping function (e.g., ClipColPos(PosX, PosY)) may be a function that clips a position value (e.g., PosX, PosY) within a reference picture to have a position value within a range from a left pixel of a unit (e.g., CTU) to which the current block belongs to a position of a left pixel + a size CTU_SIZE of a coding tree unit (CTU) + a minimum block size (e.g., minBlockSize(4)) and a position value within a range from a top pixel of a unit (e.g., CTU) to which the current block belongs to a position of a top pixel + a size CTU_SIZE of a coding tree unit + a minimum block size (e.g., minBlockSize(4)).
[0179] If the position value within the reference picture is clipped, scaling based on the reference picture scaling ratio may be performed based on application of reference picture resampling (S1470). Figure 12 Step S1210 and Figure 13 The same as step S1330 of . As an example, the position within the reference picture can be scaled (S1470) while taking into account the reference picture scaling rate (i.e., resampling rate). Step S1470 can be based on a scaling function (e.g., scalePositionInRef). As an example, the scaling function can have as parameters a reference picture list, a reference picture index, a position value (e.g., PosX, PosY) of a block within the reference picture, etc. According to step S1470, based on the resampling rate (i.e., scaling rate) of the reference picture indicated by the reference picture index in the reference picture list of the inter-frame prediction block, the position value (e.g., posX, posY) within the reference picture can be scaled to a collocated position of the reference picture.
[0180] The scaled position value within the reference picture can be transformed into an integer pixel position (S1480). The position value in the reference picture can be expressed as the precision of the motion information and can therefore be transformed into an integer pixel position. This step can be combined with Figure 12 Step S1220 and Figure 13 Step S1480 may be performed based on a transformation function to an integer pixel position (e.g., integerPos), and the transformation function may have a position value within the reference picture (e.g., PosX, PosY) as a parameter and may output a transformed position value (e.g., intX, intY).
[0181] Information about the intra prediction mode may be determined based on the transformed position value within the reference picture (S1490). This step may be performed in conjunction with Figure 13 The intra prediction information may also be determined based on the reference picture list and the reference picture index, and may be determined by a specific function (e.g., getIpminfo and / or getGpmIpm). Here, the function may refer to a function that derives or determines intra mode information from a reference picture among decoded pictures, and may have a reference picture list, a reference picture index, an integer transform position value, etc. as parameters. Information about the determined intra prediction mode (e.g., GPM_intra) may be directly derived as the final intra prediction mode and used for the intra prediction block (e.g., the first subblock), or may be included in an IPM (intra prediction mode) list used to derive the final intra prediction mode (S1411). For example, if the inter prediction block is bidirectionally predicted, information about the intra prediction mode for each reference picture in list 0 and list 1 may be determined separately and included in the IPM list (S1411). In addition, if information about the intra prediction mode is determined through the above-mentioned specific function (eg, getIpminfo and / or getGpmIpm), information about the final geometric partition (GPM) intra prediction mode may be determined.
[0182] Reference Figure 12 , the process of deriving the position value within the reference picture or the process of cropping the position value within the reference picture may not be performed. That is, only the process of scaling the position value within the reference picture (S1210) and the process of converting the scaled position value within the reference picture to an integer pixel position (S1220) may be performed to derive the intra prediction mode of the geometric partition block.
[0183] Reference Figure 13 The process of scaling the position value in the reference picture (S1330) can be the same as Figure 12The process of scaling the position value within the reference picture (S1210) is the same as that of the process of deriving the position value within the reference picture (S1310) and the process of cropping the position value within the reference picture (S1320). In addition, the process of converting the scaled position value within the reference picture into an integer pixel position (S1340) can be the same as that of Figure 12 The process of transforming the position of the pixel into an integer pixel position (S1220) is the same. After the process of transforming the position (S1340), intra prediction information can be determined based on the transformed position value within the reference picture (S1350).
[0184] Figures 12 to 14 The process may be performed by an image encoding and decoding apparatus and may be included in an image encoding method and an image decoding method. In addition, the information or value described in the above embodiments may be signaled in a bitstream.
[0185] According to one embodiment of the present disclosure, quality may be improved during image encoding / decoding by considering whether to resample a reference picture during geometric partitioning intra / inter (GPM intra / inter) prediction.
[0186] Figure 15 and Figure 16 is a flowchart illustrating a method for deriving an intra prediction mode of a geometric partition block based on a reference sample resampling scaling ratio according to another embodiment of the present disclosure. Figure 15 and Figure 16 All based on Figure 11 Flowchart of an implementation method.
[0187] Reference Figure 15 and Figure 16 The implementation of can be based on the determination of whether to resample the reference picture of the inter-frame prediction block. As an example, Figure 15 and Figure 16 Can be used when reference picture resampling is applied.
[0188] Reference Figure 15 and Figure 16 , as referenced Figure 14 As described above, the prediction direction of the current block can be determined (S1510, S1610). Figure 14 The S1410 process is the same as that of S1410, so repeated description will be omitted. Similarly, on the other hand, when the current block is bidirectionally predicted, the process of deriving the intra prediction mode (S1520, S1620) for each of the reference picture list 0 and the reference picture list 1 may be performed. That is, a loop (S1520, S1620) may be applied. Since this step is the same as Figure 14 The S1420 process is the same, so repeated description will be omitted.
[0189] As an example, if a reference picture for deriving information about an intra prediction mode is resampled, it is proposed to define a specific intra prediction mode (e.g., a default intra prediction mode) and derive the intra prediction mode of a geometric partition block based on it, without obtaining information about the intra prediction mode from the reference picture.
[0190] Reference Figure 15 and Figure 16 If the reference picture is resampled, scaling is performed based on motion information to derive the collocation position within the reference picture, and without deriving the intra-frame prediction mode of the reference picture, a predefined default intra-frame prediction mode can be used as the geometric partitioning (GPM) intra-frame prediction mode of the current subblock.
[0191] First refer to Figure 15 , when the inter prediction block is unidirectionally predicted and the reference picture is resampled, the predefined default intra prediction mode may be derived as the geometric partition intra (GPM intra) prediction mode of the current subblock (S1530). The derived geometric partition intra prediction mode may be included in the intra prediction mode (IPM) list (S1540), and since this step is similar to Figure 14 The default intra prediction mode is the same as S1450 of S1450, so repeated description will be omitted. As another example, the default intra prediction mode can be directly determined as the final intra prediction mode. In addition, when the inter prediction block is bidirectionally predicted, a predefined default intra prediction mode can be used depending on whether the reference picture for each list (list 0 and list 1) is resampled. In other words, a loop (S1520) can be applied.
[0192] Reference Figure 16 , if the inter-frame prediction block is bidirectionally predicted and at least one of the reference pictures in each direction is subjected to reference picture resampling, the intra-frame prediction mode for the geometric partition block can be derived as a default intra-frame prediction mode (S1630) and can be included in the intra-frame prediction mode (IPM) list (S1640). In addition, since this step (S1640) is similar to Figure 14 As another example, the default intra prediction mode may be directly determined as the final intra prediction mode.
[0193] As an example, the default intra prediction mode may be any prediction mode, but as an example, the default intra prediction mode may be one of planar mode or DC mode.
[0194] According to one embodiment of the present disclosure, the derived intra prediction mode of a subblock is stored in a buffer so that intra prediction information of the current block can be referenced in a block or picture decoded after the current block.
[0195] Figure 17 is a flowchart illustrating an image encoding method or decoding method according to one embodiment of the present disclosure.
[0196] As an example, Figure 17 It can be performed by an image encoding device or an image decoding device, and can also be combined with the other embodiments described above.
[0197] As an example, if Figure 17 An image decoding method performed by an image decoding apparatus is shown. It may be determined whether geometric partitioning (GPM) is applied to a current block (S1710), and based on the geometric partitioning being applied to the current block, the current block may be partitioned into a first sub-block and a second sub-block (S1720), intra-frame prediction may be performed on the first sub-block, and inter-frame prediction may be performed on the second sub-block (S1730). As an example, whether geometric partitioning is applied to the current block may be obtained from a bitstream.
[0198] As another example, if Figure 17 An image encoding method performed by an image encoding apparatus is shown. It may be determined whether geometric partitioning is applied to a current block (S1710), and based on the geometric partitioning being applied to the current block, the current block may be partitioned into a first sub-block and a second sub-block (S1720), intra-frame prediction may be performed on the first sub-block, and inter-frame prediction may be performed on the second sub-block (S1730). As an example, whether geometric partitioning is applied to the current block may be encoded into a bitstream.
[0199] Furthermore, the intra prediction mode of the first subblock may be derived based on the intra prediction mode of a collocated block within a reference picture and whether the reference picture is resampled, wherein the reference picture may be with respect to an inter-prediction block (e.g., the current block and / or the second subblock). As an example, if the reference picture is resampled, the collocated block may be derived based on a value clipped to a position within a specific range for the current block. Furthermore, the position within the specific range for the current block may be determined based on the coding tree unit size for the current block. Furthermore, if the reference picture is resampled, the collocated block may be derived based on scaling according to a sampling rate of the reference picture. The collocated block may be derived by transforming to integer pixel positions after scaling. If the reference picture is resampled, the intra prediction mode of the first subblock may be derived based on a specific intra prediction mode. As an example, if the second subblock is bi-directionally predicted and at least one of the reference pictures is resampled, the intra prediction mode of the first subblock may be derived based on the specific intra prediction mode. As another example, if the second sub-block is bi-directionally predicted and only one of the reference pictures is not resampled, the intra-prediction mode of the first sub-block can be derived based on the intra-prediction mode of the non-resampled collocated block of the reference picture and the specific intra-prediction mode. As an example, the specific intra-prediction mode can be one of the planar mode and the DC mode.
[0200] In addition, although not illustrated, a method for transmitting a bit stream generated by an image encoding method and a non-transitory computer-readable storage medium storing the bit stream generated by the image encoding method are also proposed. The image encoding method may include the above-mentioned image encoding method.
[0201] Figure 18 is a diagram illustrating a content streaming system to which embodiments of the present disclosure can be applied.
[0202] like Figure 18 As shown, the content streaming system applying the embodiments of the present 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.
[0203] The encoding server compresses content input from a multimedia input device such as a smartphone, a camera, or a camcorder into digital data to generate a bitstream and transmits the bitstream to the streaming server. As another example, when a multimedia input device such as a smartphone, a camera, or a camcorder directly generates a bitstream, the encoding server may be omitted.
[0204] A bitstream may be generated by applying the image encoding method or the image encoding apparatus according to the embodiment of the present disclosure, and a streaming server may temporarily store the bitstream in the process of transmitting or receiving the bitstream.
[0205] A streaming server transmits multimedia data to a user device based on a user's request via a network server. The network server acts as an intermediary to inform users of services. When a user requests a desired service from the network server, the network server delivers it to the streaming server, which then transmits the multimedia data to the user. In this case, the content streaming system may include a separate control server. In this case, the control server is used to control commands and responses between devices in the content streaming system.
[0206] The streaming server can receive content from a media storage device and / or an encoding server. For example, when receiving content from an encoding server, the content can be received in real time. In this case, in order to provide a smooth streaming service, the streaming server can store the bitstream for a predetermined time.
[0207] Examples of user devices may include mobile phones, smart phones, laptop computers, digital broadcast terminals, personal digital assistants (PDAs), portable multimedia players (PMPs), navigation devices, slate PCs, tablet PCs, ultrabooks, wearable devices (e.g., smart watches, smart glasses, head-mounted displays), digital televisions, desktop computers, digital signage, etc.
[0208] The various servers in the content streaming system may operate as distributed servers, in which case data received from the various servers may be distributed.
[0209] The scope of the present disclosure includes software or machine-executable commands (e.g., operating systems, applications, firmware, programs, etc.) for enabling operations according to the methods of various embodiments to be performed on a device or computer, and non-transitory computer-readable media having such software or commands stored thereon and executable on a device or computer.
[0210] Industrial Applicability
[0211] The embodiments of the present disclosure may be used to encode or decode an image.
Claims
1. An image decoding method performed by an image decoding device, the image decoding method comprising the following steps: Determine whether to apply geometric segmentation to the current block; Based on geometric partitioning being applied to the current block, the current block is partitioned into a first sub-block and a second sub-block; as well as performing intra prediction on the first subblock and performing inter prediction on the second subblock, The intra-frame prediction mode of the first sub-block is derived based on the intra-frame prediction mode of the collocated block in the reference picture and whether the reference picture is resampled.
2. The image decoding method according to claim 1, wherein: The collocated block is derived based on a value clipped to a position within a specific range for the current block based on the reference picture being resampled.
3. The image decoding method according to claim 2, wherein: The position within the specific range for the current block is determined based on a coding tree unit size for the current block.
4. The image decoding method according to claim 1, wherein: Based on the reference picture being resampled, the collocated block is derived based on scaling according to a sampling rate of the reference picture.
5. The image decoding method according to claim 4, wherein: The collocated blocks are derived by being transformed into integer pixel positions after scaling.
6. The image decoding method according to claim 1, wherein: Based on the reference picture being resampled, the intra prediction mode of the first subblock is derived based on a specific intra prediction mode.
7. The image decoding method according to claim 6, wherein: The specific intra prediction mode is one of planar mode or DC mode.
8. The image decoding method according to claim 1, wherein: The intra prediction mode of the first subblock is derived based on a specific intra prediction mode based on that the second subblock is bi-predicted and at least one of the reference pictures is resampled.
9. The image decoding method according to claim 1, wherein: Based on the second subblock being bi-predicted and only one of the reference pictures being not resampled, the intra prediction mode of the first subblock is derived based on an intra prediction mode of a collocated block within the reference picture that is not resampled and a specific intra prediction mode.
10. An image encoding method performed by an image encoding device, the image encoding method comprising the following steps: Determine whether to apply geometric segmentation to the current block; Based on geometric partitioning being applied to the current block, the current block is partitioned into a first sub-block and a second sub-block; as well as performing intra prediction on the first subblock and performing inter prediction on the second subblock, The intra-frame prediction mode of the first sub-block is derived based on the intra-frame prediction mode of the collocated block in the reference picture and whether the reference picture is resampled.
11. A method for transmitting a bit stream generated by an image encoding method, the image encoding method comprising the following steps: Determine whether to apply geometric segmentation to the current block; Based on geometric partitioning being applied to the current block, the current block is partitioned into a first sub-block and a second sub-block; as well as performing intra prediction on the first subblock and performing inter prediction on the second subblock, The intra-frame prediction mode of the first sub-block is derived based on the intra-frame prediction mode of the collocated block in the reference picture and whether the reference picture is resampled. 12 . A non-transitory computer-readable storage medium storing a bit stream generated by the image encoding method according to claim 10 .
