Intra-prediction-based image encoding / decoding method, device, and recording medium storing bitstreams
The image encoding/decoding method and device address the challenge of high-resolution video compression by employing transformation techniques on reference blocks and template areas, resulting in improved encoding/decoding efficiency and reduced costs for high-resolution video data transmission and storage.
Patent Information
- Application Number
- PCT/KR2024/005298
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-19
- Filing Date
- 2024-04-19
- Publication Date
- 2024-10-24
AI Technical Summary
The increasing demand for high-resolution, high-quality video data leads to higher transmission and storage costs due to increased bit rates, necessitating highly efficient video compression technologies.
The proposed solution involves an image encoding/decoding method and device that performs intra prediction, including transformation techniques such as inversion and rotation on reference blocks and template areas for improved encoding/decoding efficiency, and a non-transitory computer-readable recording medium for storing and transmitting bitstreams.
This approach enhances encoding/decoding efficiency, effectively performs intra template matching prediction, and reduces bitstream storage and transmission costs by optimizing video compression for high-resolution video data.
Smart Images

Figure KR2024005298_24102024_PF_FP_ABST
Abstract
Description
Video encoding / decoding method and device based on intra prediction and recording medium for storing bitstream
[0001] The present disclosure relates to a video encoding / decoding method, a device, and a recording medium for storing a bitstream, and more particularly, to a video encoding / decoding method and device based on intra prediction, and a recording medium for storing a bitstream generated by the video encoding method / device of the present disclosure.
[0002] Recently, demand for high-resolution, high-quality images, such as HD (High Definition) and UHD (Ultra High Definition) images, has been increasing across various fields. As image data becomes higher resolution and higher quality, the amount of information transmitted, or bits, increases relative to conventional image data. This increase in information or bits transmitted leads to increased transmission and storage costs.
[0003] Accordingly, a highly efficient image compression technology is required to effectively transmit, store, and play high-resolution, high-quality image information.
[0004] The present disclosure aims to provide a video encoding / decoding method and device with improved encoding / decoding efficiency.
[0005] In addition, the present disclosure aims to provide an image encoding / decoding method and device that effectively performs intra prediction.
[0006] In addition, the present disclosure aims to provide an image encoding / decoding method and device that effectively performs intra template matching prediction (intraTMP).
[0007] In addition, the present disclosure aims to provide a video encoding / decoding method and device that performs an inverse transformation on a reference block used for intra template matching prediction and / or a template region of the reference block.
[0008] In addition, the present disclosure aims to provide an image encoding / decoding method and device that performs rotation transformation on a reference block used for intra template matching prediction and / or a template region of the reference block.
[0009] In addition, the present disclosure aims to provide a non-transitory computer-readable recording medium that stores a bitstream generated by an image encoding method or device according to the present disclosure.
[0010] In addition, the present disclosure aims to provide a non-transitory computer-readable recording medium that stores a bitstream received and decoded by an image decoding device according to the present disclosure and used for restoring an image.
[0011] In addition, the present disclosure aims to provide a method for transmitting a bitstream generated by an image encoding method or device according to the present disclosure.
[0012] The technical problems to be achieved in the present disclosure are not limited to the technical problems mentioned above, and other technical problems not mentioned will be clearly understood by a person having ordinary skill in the technical field to which the present disclosure belongs from the description below.
[0013] According to one embodiment of the present disclosure, there is provided an image decoding method performed by an image decoding device, comprising: a step of obtaining transformation performance information indicating whether transformation is performed; a step of performing transformation on a predetermined first adjacent area adjacent to a reference block of a current block based on the transformation performance information; a step of generating a first prediction block of the current block based on the first adjacent area on which transformation is performed and a predetermined second adjacent area adjacent to the current block; and a step of generating a final prediction block of the current block by performing transformation on the first prediction block, wherein the first adjacent area is a position corresponding to the second adjacent area, and the transformation may include at least one of an inversion transformation or a rotation transformation.
[0014] According to one embodiment of the present disclosure, the first adjacent area may include at least one of a left adjacent area, an upper adjacent area, an upper left adjacent area, a right adjacent area, or a lower adjacent area of the reference block.
[0015] According to one embodiment of the present disclosure, the conversion performance information may further include conversion type information indicating a conversion type.
[0016] According to one embodiment of the present disclosure, the inversion transform may include at least one of a vertical inversion transform, a horizontal inversion transform, a diagonal inversion transform, or a vertical diagonal inversion transform.
[0017] According to one embodiment of the present disclosure, the rotation transformation may include at least one of a 90 degree counterclockwise rotation transformation, a 180 degree counterclockwise rotation transformation, or a 270 degree counterclockwise rotation transformation.
[0018] According to one embodiment of the present disclosure, the first prediction block may be generated based on an error value calculated based on the first adjacent area and the second adjacent area on which the transformation was performed.
[0019] According to one embodiment of the present disclosure, based on the current block being a non-square block, the first adjacent area may include a sample area within the reference block prior to the transformation.
[0020] According to one embodiment of the present disclosure, the step of generating the first prediction block may further include the step of deriving a luma compensation parameter based on the first adjacent area and the second adjacent area on which the transformation is performed, the step of performing luma compensation on the reference block based on the luma compensation parameter, and the step of generating the first prediction block based on the reference block on which the luma compensation is performed.
[0021] According to one embodiment of the present disclosure, the method further comprises the step of generating a second prediction block of the current block based on an intra prediction mode, wherein the final prediction block can be generated by weighting the first prediction block and the second prediction block on which the transformation is performed.
[0022] According to one embodiment of the present disclosure, a video encoding method performed by an video encoding device includes the steps of performing a transformation on a predetermined first adjacent area adjacent to a reference block of a current block, generating a first prediction block of the current block based on the first adjacent area on which the transformation was performed and a predetermined second adjacent area adjacent to the current block, generating a final prediction block of the current block by performing a transformation on the first prediction block, and encoding transformation performance information indicating whether the transformation was performed, wherein the first adjacent area is a position corresponding to the second adjacent area, and the transformation may include at least one of an inversion transformation or a rotation transformation.
[0023] According to one embodiment of the present disclosure, there may be a computer-readable recording medium storing a bitstream generated by an image encoding method.
[0024] According to one embodiment of the present disclosure, a method for transmitting a bitstream generated by an image encoding method includes the steps of performing a transformation on a predetermined first adjacent area adjacent to a reference block of a current block, generating a first prediction block of the current block based on the first adjacent area on which the transformation was performed and a predetermined second adjacent area adjacent to the current block, generating a final prediction block of the current block by performing a transformation on the first prediction block, and encoding transformation performance information indicating whether the transformation was performed, wherein the first adjacent area is a position corresponding to the second adjacent area, and the transformation may include at least one of an inversion transformation or a rotation transformation.
[0025] According to the present disclosure, a video encoding / decoding method and device with improved encoding / decoding efficiency can be provided.
[0026] In addition, according to the present disclosure, an image encoding / decoding method and device that effectively perform intra prediction can be provided.
[0027] In addition, according to the present disclosure, an image encoding / decoding method and device that effectively perform intra template matching prediction (intraTMP) can be provided.
[0028] In addition, according to the present disclosure, a method and device for encoding / decoding an image may be provided that performs an inverse transformation on a reference block used for intra template matching prediction and / or a template region of the reference block.
[0029] In addition, according to the present disclosure, an image encoding / decoding method and device for performing rotation transformation on a reference block used for intra template matching prediction and / or a template region of the reference block can be provided.
[0030] In addition, according to the present disclosure, a non-transitory computer-readable recording medium for storing a bitstream generated by an image encoding method or device according to the present disclosure can be provided.
[0031] In addition, according to the present disclosure, a non-transitory computer-readable recording medium can be provided that stores a bitstream received and decoded by an image decoding device according to the present disclosure and used for restoring an image.
[0032] Additionally, according to the present disclosure, a method for transmitting a bitstream generated by an image encoding method or device according to the present disclosure can be provided.
[0033] The effects that can be obtained from the present disclosure are not limited to the effects mentioned above, and other effects that are not mentioned will be clearly understood by a person having ordinary skill in the art to which the present disclosure pertains from the description below.
[0034] FIG. 1 is a diagram schematically illustrating a video coding system to which an embodiment according to the present disclosure can be applied.
[0035] FIG. 2 is a schematic diagram of an image encoding device to which an embodiment according to the present disclosure can be applied.
[0036] FIG. 3 is a schematic diagram illustrating an image decoding device to which an embodiment according to the present disclosure can be applied.
[0037] Figure 4 is a flowchart illustrating an intra prediction-based video / image encoding method.
[0038] FIG. 5 is a diagram exemplarily illustrating the configuration of an intra prediction unit according to the present disclosure.
[0039] Fig. 6 is a flowchart illustrating an intra prediction-based video / image decoding method.
[0040] FIG. 7 is a diagram exemplarily illustrating the configuration of an intra prediction unit according to the present disclosure.
[0041] FIG. 8 is a diagram illustrating a template area used in a TIMD (Template-based Intra Mode Derivation) mode according to the present disclosure.
[0042] FIG. 9 is a diagram for explaining a template matching-based encoding / decoding method according to the present disclosure.
[0043] FIG. 10 is a diagram illustrating a search area used for intra template matching prediction (intraTMP) according to one embodiment of the present disclosure.
[0044] FIG. 11 and FIG. 12 are flowcharts of intra template matching prediction according to one embodiment of the present disclosure.
[0045] FIG. 13 and FIG. 14 are diagrams illustrating template areas of a current block and a reference block according to one embodiment of the present disclosure.
[0046] FIG. 15 is a diagram showing a vertical flip transformation applied to a reference block and a template area of the reference block according to one embodiment of the present disclosure.
[0047] FIG. 16 is a diagram showing a horizontal flip transformation applied to a reference block and a template area of the reference block according to one embodiment of the present disclosure.
[0048] FIG. 17 is a diagram showing a diagonal flip transformation applied to a reference block and a template area of the reference block according to one embodiment of the present disclosure.
[0049] FIG. 18 is a diagram showing a vertical diagonal flip transformation applied to a reference block and a template area of the reference block according to one embodiment of the present disclosure.
[0050] FIG. 19 is a diagram showing a 90-degree counterclockwise rotation transformation applied to a reference block and a template block of a reference area according to one embodiment of the present disclosure.
[0051] FIG. 20 is a diagram showing a 180-degree counterclockwise rotation transformation applied to a reference area and a template area of the reference area according to one embodiment of the present disclosure.
[0052] FIG. 21 is a diagram showing a 270-degree counterclockwise rotation transformation applied to a reference area and a template area of the reference area according to one embodiment of the present disclosure.
[0053] FIG. 22 is a diagram illustrating a reference block and template area when the current block is a rectangle according to one embodiment of the present disclosure.
[0054] FIG. 23 is a diagram showing a vertical flip transformation applied to a reference block and a template area of the reference block when the current block is a rectangular block according to one embodiment of the present disclosure.
[0055] FIG. 24 is a diagram showing a horizontal flip transformation applied to a reference block and a template area of the reference block when the current block is a rectangular block according to one embodiment of the present disclosure.
[0056] FIG. 25 is a diagram showing a diagonal flip transformation applied to a reference block and a template area of the reference block when the current block is a rectangular block according to one embodiment of the present disclosure.
[0057] FIG. 26 is a diagram showing a vertical diagonal flip transformation applied to a reference block and a template area of the reference block when the current block is a rectangular block according to one embodiment of the present disclosure.
[0058] FIG. 27 is a diagram showing a vertical 90-degree rotation transformation applied to a reference block and a template area of the reference block when the current block is a rectangular block according to one embodiment of the present disclosure.
[0059] FIG. 28 is a diagram showing a vertical 180-degree rotation transformation applied to a reference area and a template area of the reference area when the current block is a rectangular block according to one embodiment of the present disclosure.
[0060] FIG. 29 is a diagram showing a vertical 270-degree rotation transformation applied to a reference area and a template area of the reference area when the current block is a rectangular block according to one embodiment of the present disclosure.
[0061] FIG. 30 is a diagram illustrating a reference block and a template area of the reference block when the current block is a non-square block according to one embodiment of the present disclosure.
[0062] FIG. 31 is a diagram illustrating a reference block and a template area of the reference block when the current block is a non-square block according to one embodiment of the present disclosure.
[0063] FIG. 32 is a diagram illustrating a reference block and a template area of the reference block when the current block is a non-square block according to one embodiment of the present disclosure.
[0064] FIG. 33 is a diagram illustrating template areas of a current block and a reference block according to one embodiment of the present disclosure.
[0065] FIG. 34 is a diagram illustrating a method for calculating a prediction error between a reference block and a current block according to one embodiment of the present disclosure.
[0066] FIG. 35 is a diagram illustrating a method for calculating a prediction error between an inverted reference block and a current block according to one embodiment of the present disclosure.
[0067] FIG. 36 is a diagram illustrating a method for calculating a prediction error between a rotationally transformed reference block and a current block according to one embodiment of the present disclosure.
[0068] FIGS. 37 to 39 are flowcharts of a method for determining whether to perform a conversion according to one embodiment of the present disclosure.
[0069] FIG. 40 and FIG. 41 are diagrams illustrating a method for performing luma compensation according to one embodiment of the present disclosure.
[0070] FIG. 42 and FIG. 43 are diagrams illustrating a method for generating a final prediction block by weighting a plurality of prediction blocks according to one embodiment of the present disclosure.
[0071] Figure 44 is a flowchart showing an encoding method according to the present disclosure.
[0072] Figure 45 is a flowchart showing a decryption method according to the present disclosure.
[0073] FIG. 46 is a diagram illustrating an example of a content streaming system to which an embodiment according to the present disclosure can be applied.
[0074] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the attached drawings so that those skilled in the art can easily implement the present disclosure. However, the present disclosure may be implemented in various different forms and is not limited to the embodiments described herein.
[0075] In describing embodiments of the present disclosure, detailed descriptions of known configurations or functions will be omitted if they are deemed to obscure the gist of the present disclosure. Furthermore, portions unrelated to the description of the present disclosure in the drawings have been omitted, and similar portions have been designated with similar reference numerals.
[0076] In the present disclosure, when a component is said to be "connected," "coupled," or "connected" to another component, this may include not only a direct connection, but also an indirect connection in which another component exists in between. Furthermore, when a component is said to "include" or "have" another component, unless otherwise specifically stated, this does not exclude the other component, but rather implies that the other component may be included.
[0077] In this disclosure, terms such as first, second, etc. are used solely to distinguish one component from another, and do not limit the order or importance of components unless specifically stated otherwise. Accordingly, within the scope of this disclosure, a first component in one embodiment may be referred to as a second component in another embodiment, and similarly, a second component in one embodiment may be referred to as a first component in another embodiment.
[0078] In this disclosure, distinct components are used to clearly illustrate their respective characteristics, and do not necessarily imply that the components are separated. That is, multiple components may be integrated into a single hardware or software unit, or a single component may be distributed into multiple hardware or software units. Therefore, even if not specifically mentioned, such integrated or distributed embodiments are also included within the scope of this disclosure.
[0079] In the present disclosure, the components described in various embodiments are not necessarily essential components, and some may be optional components. Therefore, embodiments comprising a subset of the components described in one embodiment are also within the scope of the present disclosure. Furthermore, embodiments including other components in addition to the components described in various embodiments are also within the scope of the present disclosure.
[0080] The present disclosure relates to encoding and decoding of images, and terms used in the present disclosure may have their usual meanings commonly used in the technical field to which the present disclosure belongs, unless newly defined in the present disclosure.
[0081] In the present disclosure, “video” may mean a set of images over time.
[0082] In the present disclosure, a "picture" generally refers to a unit representing one image of a specific time period, and a slice / tile is a coding unit that constitutes a part of a picture, and a single picture may be composed of one or more slices / tiles. In addition, a slice / tile may include one or more coding tree units (CTUs).
[0083] In the present disclosure, "pixel" or "pel" may refer to the smallest unit that constitutes a picture (or image). Additionally, "sample" may be used as a term corresponding to a pixel. A sample may generally represent a pixel or a pixel value, and may represent only a pixel / pixel value of a luma component or only a pixel / pixel value of a chroma component.
[0084] In the present disclosure, a "unit" may represent a basic unit of image processing. A unit may include at least one of a specific region of a picture and information related to the region. In some cases, the term "unit" may be used interchangeably with terms such as "sample array," "block," or "area." In general, an MxN block may include a set (or array) of samples (or sample array) or transform coefficients consisting of M columns and N rows.
[0085] In the present disclosure, the "current block" may mean one of the following: a "current coding block," a "current coding unit," a "block to be encoded," a "block to be decoded," or a "block to be processed." When prediction is performed, the "current block" may mean a "current prediction block" or a "block to be predicted." When transformation (inverse transformation) / quantization (inverse quantization) is performed, the "current block" may mean a "current transformation block" or a "block to be transformed." When filtering is performed, the "current block" may mean a "block to be filtered."
[0086] In the present disclosure, a "current block" may mean a block that includes both a luma component block and a chroma component block, or a "luma block of the current block," unless explicitly described as a chroma block. The luma component block of the current block may be explicitly expressed by including an explicit description of the luma component block, such as "luma block" or "current luma block." Additionally, the chroma component block of the current block may be explicitly expressed by including an explicit description of the chroma component block, such as "chroma block" or "current chroma block."
[0087] In this disclosure, " / " and "," can be interpreted as "and / or". For example, "A / B" and "A, B" can be interpreted as "A and / or B". Additionally, "A / B / C" and "A, B, C" can mean "at least one of A, B, and / or C."
[0088] In this disclosure, "or" may be interpreted as "and / or." For example, "A or B" may mean 1) "A" only, 2) "B" only, or 3) "A and B." Alternatively, "or" in this disclosure may mean "additionally or alternatively."
[0089] In this disclosure, "at least one of A, B, and C" may mean "only A," "only B," "only C," or "any and all combinations of A, B, and C." Additionally, "at least one of A, B, or C" or "at least one of A, B, and / or C" may mean "at least one of A, B, and C."
[0090] The parentheses used in this disclosure may mean "for example." For example, when "prediction (intra-prediction)" is indicated, "intra-prediction" may be suggested as an example of "prediction." In other words, "prediction" in this disclosure is not limited to "intra-prediction," and "intra-prediction" may be suggested as an example of "prediction." Furthermore, even when "prediction (i.e., intra-prediction)" is indicated, "intra-prediction" may be suggested as an example of "prediction."
[0091] Video Coding System Overview
[0092] FIG. 1 is a diagram schematically illustrating a video coding system to which an embodiment according to the present disclosure can be applied.
[0093] A video coding system according to one embodiment may include an encoding device (10) and a decoding device (20). The encoding device (10) may transmit encoded video and / or image information or data to the decoding device (20) in the form of a file or streaming through a digital storage medium or a network.
[0094] An encoding device (10) according to one embodiment may include a video source generation unit (11), an encoding unit (12), and a transmission unit (13). A decoding device (20) according to one embodiment may include a reception unit (21), a decoding unit (22), and a rendering unit (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 transmission unit (13) may be included in the encoding unit (12). The reception unit (21) may be included in the decoding unit (22). The rendering unit (23) may include a display unit, and the display unit may be configured as a separate device or an external component.
[0095] The video source generation unit (11) can obtain video / images through a process of capturing, synthesizing, or generating video / images. The video source generation unit (11) can include a video / image capture device and / or a video / image generation device. The video / image capture device can include, for example, one or more cameras, a video / image archive including previously captured video / images, etc. The video / image generation device can include, for example, a computer, a tablet, a smartphone, etc., and can (electronically) generate video / images. For example, a virtual video / image can be generated through a computer, etc., in which case the video / image capture process can be replaced with a process of generating related data.
[0096] The encoding unit (12) can encode input video / images. The encoding unit (12) can perform a series of procedures such as prediction, transformation, and quantization to improve compression and encoding efficiency. The encoding unit (12) can output encoded data (encoded video / image information) in the form of a bitstream.
[0097] The transmission unit (13) can obtain encoded video / image information or data output in the form of a bitstream, and transmit it to the reception unit (21) of the decoding device (20) or another external object through a digital storage medium or a network in the form of a file or streaming. The digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. The transmission unit (13) may include an element for generating a media file through a predetermined file format, and may include an element for transmission through a broadcasting / communication network. The transmission unit (13) may be provided as a separate transmission device from the encoding unit (120), and in this case, the transmission device may include at least one processor for obtaining encoded video / image information or data output in the form of a bitstream, and a transmission unit for transmitting it in the form of a file or streaming. The reception unit (21) can extract / receive the bitstream from the storage medium or network and transmit it to the decoding unit (22).
[0098] The decoding unit (22) can decode video / image by performing a series of procedures such as inverse quantization, inverse transformation, and prediction corresponding to the operation of the encoding unit (12).
[0099] The rendering unit (23) can render the decrypted video / image. The rendered video / image can be displayed through the display unit.
[0100] Overview of the video encoding device
[0101] FIG. 2 is a schematic diagram illustrating an image encoding device to which an embodiment according to the present disclosure can be applied.
[0102] As illustrated in FIG. 2, the image encoding device (100) may include an image segmentation unit (110), a subtraction unit (115), a transformation unit (120), a quantization unit (130), an inverse quantization unit (140), an inverse transformation unit (150), an addition unit (155), a filtering unit (160), a memory (170), an inter prediction unit (180), an intra prediction unit (185), and an entropy encoding unit (190). The inter prediction unit (180) and the intra prediction unit (185) may be collectively referred to as a “prediction unit.” The transformation unit (120), the quantization unit (130), the inverse quantization unit (140), and the inverse transformation unit (150) may be included in a residual processing unit. The residual processing unit may further include a subtraction unit (115).
[0103] All or at least some of the plurality of components constituting the video encoding device (100) may be implemented as a single hardware component (e.g., an encoder or a processor) according to an embodiment. In addition, the memory (170) may include a decoded picture buffer (DPB) and may be implemented by a digital storage medium.
[0104] The image segmentation unit (110) can segment an input image (or picture, frame) input to the image encoding device (100) into one or more processing units. For example, the processing units may be referred to as coding units (CUs). The coding units can be obtained by recursively segmenting a coding tree unit (CTU) or a largest coding unit (LCU) according to a QT / BT / TT (Quad-tree / binary-tree / ternary-tree) structure. For example, one coding unit can be segmented into a plurality of coding units of deeper depth based on a quad-tree structure, a binary-tree structure, and / or a ternary-tree structure. For segmenting the coding unit, the quad-tree structure may be applied first, and the binary-tree structure and / or the ternary-tree structure may be applied later. The coding procedure according to the present disclosure can be performed based on the final coding unit that is no longer segmented. The maximum coding unit can be used directly as the final coding unit, and the coding unit of the lower depth obtained by dividing the maximum coding unit can be used as the final concatenated unit. Here, the coding procedure may include procedures such as prediction, transformation, and / or restoration described below. As another example, the processing unit of the coding procedure may be a prediction unit (PU) or a transformation unit (TU). The prediction unit and the transformation unit may each be divided or partitioned from the final coding unit. The prediction unit may be a unit of sample prediction, and the transformation unit may be a unit that derives a transform coefficient and / or a unit that derives a residual signal from a transform coefficient.
[0105] The prediction unit (inter-prediction unit (180) or intra-prediction unit (185)) can perform prediction on a block to be processed (current block) and generate a predicted block including prediction samples for the current block. The prediction unit can determine whether intra-prediction or inter-prediction is applied to the current block or CU unit. The prediction unit can generate various information regarding the prediction of the current block and transmit the information to the entropy encoding unit (190). The information regarding the prediction can be encoded by the entropy encoding unit (190) and output in the form of a bitstream.
[0106] The intra prediction unit (185) can predict the current block by referring to samples within the current picture. The referenced samples may be located in the neighborhood of the current block or may be located away from it, depending on the intra prediction mode and / or intra prediction technique. The intra prediction modes may include a plurality of non-directional modes and a plurality of directional modes. The non-directional modes may include, for example, a DC mode and a planar mode. The directional modes may include, for example, 33 directional prediction modes or 65 directional prediction modes, depending on the degree of detail in the prediction direction. However, this is merely an example, and a greater or lesser number of directional prediction modes may be used depending on the settings. The intra prediction unit (185) may also determine the prediction mode applied to the current block by using the prediction mode applied to the neighboring blocks.
[0107] The inter prediction unit (180) can derive a predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on a reference picture. At this time, in order to reduce the amount of motion information transmitted in the inter prediction mode, the motion information can be predicted in units of blocks, sub-blocks, or samples based on the correlation of the motion information between the neighboring blocks and the current block. The motion information can include a motion vector and a reference picture index. The motion information can further include information on the inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.). In the case of inter prediction, the neighboring block can include a spatial neighboring block existing in the current picture and a temporal neighboring block existing in the reference picture. The reference picture including the reference block and the reference picture including the temporal neighboring block may be the same or different. The temporal neighboring block may be called a collocated reference block, a collocated CU (colCU), etc. A reference picture including the above temporal neighboring blocks may be called a collocated picture (colPic). For example, the inter prediction unit (180) may construct a motion information candidate list based on neighboring blocks and generate information indicating which candidate is used to derive the motion vector and / or reference picture index of the current block. Inter prediction may be performed based on various prediction modes, and for example, in the case of skip mode and merge mode, the inter prediction unit (180) may use the motion information of neighboring blocks as the motion information of the current block. In the case of skip mode, unlike the merge mode, a residual signal may not be transmitted.In the motion vector prediction (MVP) mode, the motion vector of the current block can be signaled by using the motion vector of the surrounding blocks as the motion vector predictor and encoding the motion vector difference and an indicator for the motion vector predictor. The motion vector difference can mean the difference between the motion vector of the current block and the motion vector predictor.
[0108] The prediction unit can generate a prediction signal based on various prediction methods and / or prediction techniques described below. For example, the prediction unit can apply intra prediction or inter prediction to predict the current block, and can also apply intra prediction and inter prediction simultaneously. A prediction method that simultaneously applies intra prediction and inter prediction to predict the current block may be called combined inter and intra prediction (CIIP). In addition, the prediction unit may perform intra block copy (IBC) to predict the current block. Intra block copy can be used for video / image coding of content such as games, such as screen content coding (SCC). IBC is a method of predicting the current block using a previously restored reference block within the current picture located at a predetermined distance from the current block. When IBC is applied, the location of the reference block within the current picture can be encoded as a vector (block vector) corresponding to the predetermined distance. IBC basically performs prediction within the current picture, but can be performed similarly to inter prediction in that it derives reference blocks within the current picture. That is, IBC can utilize at least one of the inter prediction techniques described in the present disclosure.
[0109] The prediction signal generated through the prediction unit can be used to generate a restoration signal or a residual signal. The subtraction unit (115) can generate a residual signal (residual block, residual sample array) by subtracting the prediction signal (predicted block, predicted sample array) output from the prediction unit from the input image signal (original block, original sample array). The generated residual signal can be transmitted to the conversion unit (120).
[0110] The transform unit (120) can apply a transform technique to the residual signal to generate transform coefficients. For example, the transform technique can include at least one of a Discrete Cosine Transform (DCT), a Discrete Sine Transform (DST), a Karhunen-Loeve Transform (KLT), a Graph-Based Transform (GBT), or a Conditionally Non-linear Transform (CNT). Here, GBT refers to a transform obtained from a graph when the relationship information between pixels is expressed as a graph. CNT refers to a transform obtained based on generating a prediction signal using all previously reconstructed pixels. The transform process can be applied to a pixel block having a square equal size, or can be applied to a block of a non-square variable size.
[0111] The quantization unit (130) can quantize the transform coefficients and transmit them to the entropy encoding unit (190). The entropy encoding unit (190) can encode the quantized signal (information about the quantized transform coefficients) and output it as a bitstream. The information about the quantized transform coefficients can be called residual information. The quantization unit (130) can rearrange the quantized transform coefficients in a block form into a one-dimensional vector form based on a coefficient scan order, and can also generate information about the quantized transform coefficients based on the quantized transform coefficients in the one-dimensional vector form.
[0112] The entropy encoding unit (190) can perform various encoding methods, such as, for example, exponential Golomb, context-adaptive variable length coding (CAVLC), and context-adaptive binary arithmetic coding (CABAC). The entropy encoding unit (190) can also encode, together or separately, information necessary for video / image restoration (e.g., values of syntax elements) in addition to quantized transform coefficients. The encoded information (e.g., encoded video / image information) can be transmitted or stored in the form of a bitstream in the form of a network abstraction layer (NAL) unit. The video / image information may further include information on 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 further include general constraint information. The signaling information, transmitted information and / or syntax elements mentioned in the present disclosure may be encoded through the encoding procedure described above and included in the bitstream.
[0113] The above bitstream may be transmitted via a network or stored in a digital storage medium. Here, the network may include a broadcasting 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 transmission unit (not shown) for transmitting the signal output from the entropy encoding unit (190) and / or a storage unit (not shown) for storing the signal may be provided as an internal / external element of the video encoding device (100), or the transmission unit may be provided as a component of the entropy encoding unit (190).
[0114] The quantized transform coefficients output from the quantization unit (130) can be used to generate a residual signal. For example, by applying inverse quantization and inverse transformation to the quantized transform coefficients through the inverse quantization unit (140) and inverse transformation unit (150), a residual signal (residual block or residual samples) can be restored.
[0115] The addition unit (155) can generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) by adding the reconstructed residual signal to the prediction signal output from the inter prediction unit (180) or the intra prediction unit (185). When there is no residual for the block to be processed, such as when skip mode is applied, the predicted block can be used as the reconstructed block. The addition unit (155) can be called a reconstructor or a reconstructed block generation unit. The generated reconstructed signal can be used for intra prediction of the next block to be processed within the current picture, and can also be used for inter prediction of the next picture after filtering as described below.
[0116] Meanwhile, LMCS (luma mapping with chroma scaling) may be applied during the picture encoding and / or restoration process.
[0117] The filtering unit (160) can improve subjective / objective picture quality by applying filtering to the restoration signal. For example, the filtering unit (160) can apply various filtering methods to the restoration picture to generate a modified restoration picture, and store the modified restoration picture in the memory (170), specifically, in the DPB of the memory (170). The various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, etc. The filtering unit (160) can generate various information regarding filtering and transmit the information to the entropy encoding unit (190), as described later in the description of each filtering method. The information regarding filtering may be encoded by the entropy encoding unit (190) and output in the form of a bitstream.
[0118] The modified restored picture transmitted to the memory (170) can be used as a reference picture in the inter prediction unit (180). Through this, when inter prediction is applied, the image encoding device (100) can avoid prediction mismatch between the image encoding device (100) and the image decoding device, and can also improve encoding efficiency.
[0119] The DPB in the memory (170) can store a modified reconstructed picture to be used as a reference picture in the inter prediction unit (180). The memory (170) can store motion information of a block from which motion information in the current picture is derived (or encoded) and / or motion information of blocks in a picture that has already been reconstructed. The stored motion information can be transferred to the inter prediction unit (180) to be used as motion information of a spatial neighboring block or motion information of a temporal neighboring block. The memory (170) can store reconstructed samples of reconstructed blocks in the current picture and transfer them to the intra prediction unit (185).
[0120] Video Decryption Device Overview
[0121] FIG. 3 is a schematic diagram illustrating an image decoding device to which an embodiment according to the present disclosure can be applied.
[0122] As illustrated in FIG. 3, the image decoding device (200) may be configured to include an entropy decoding unit (210), an inverse quantization unit (220), an inverse transformation unit (230), an addition unit (235), a filtering unit (240), a memory (250), an inter prediction unit (260), and an intra prediction unit (265). The inter prediction unit (260) and the intra prediction unit (265) may be collectively referred to as a “prediction unit.” The inverse quantization unit (220) and the inverse transformation unit (230) may be included in a residual processing unit.
[0123] All or at least some of the plurality of components constituting the video decoding device (200) may be implemented as a single hardware component (e.g., a decoder or processor) depending on the embodiment. In addition, the memory (170) may include a DPB and may be implemented by a digital storage medium.
[0124] The video decoding device (200) that receives a bitstream including video / image information can restore the image by performing a process corresponding to the process performed in the video encoding device (100) of FIG. 2. For example, the video decoding device (200) can perform decoding using a processing unit applied in the video encoding device. Therefore, the processing unit for decoding may be, for example, a coding unit. The coding unit may be a coding tree unit or may be obtained by dividing a maximum coding unit. In addition, the restored image signal decoded and output by the video decoding device (200) can be reproduced through a reproduction device (not shown).
[0125] The video decoding device (200) can receive a signal output from the video encoding device of FIG. 2 in the form of a bitstream. The received signal can be decoded through the entropy decoding unit (210). For example, the entropy decoding unit (210) can parse the bitstream to derive information (e.g., video / image information) necessary for image restoration (or picture restoration). The video / image information may further include information on 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 further include general constraint information. The video decoding device may additionally use information on the parameter set and / or the general constraint information to decode the image. The signaling information, received information, and / or syntax elements mentioned in the present disclosure can be obtained from the bitstream by being decoded through the decoding procedure. For example, the entropy decoding unit (210) can decode information in the bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, and output the values of syntax elements required for image restoration and the quantized values of transform coefficients for residuals. More specifically, the CABAC entropy decoding method receives a bin corresponding to each syntax element in the bitstream, determines a context model using information of the syntax element to be decoded and the decoding information of the surrounding block and the decoding target block or the information of the symbol / bin decoded in the previous step, and predicts the occurrence probability of the bin according to the determined context model to perform arithmetic decoding of the bin to generate a symbol corresponding to the value of each syntax element.At this time, the CABAC entropy decoding method can update the context model using the information of the decoded symbol / bin for the context model of the next symbol / bin after determining the context model. Information regarding prediction among the information decoded by the entropy decoding unit (210) is provided to the prediction unit (inter prediction unit (260) and intra prediction unit (265)), and the residual value on which entropy decoding is performed by the entropy decoding unit (210), i.e., quantized transform coefficients and related parameter information, can be input to the inverse quantization unit (220). In addition, information regarding filtering among the information decoded by the entropy decoding unit (210) can be provided to the filtering unit (240). Meanwhile, a receiving unit (not shown) that receives a signal output from an image encoding device may be additionally provided as an internal / external element of the image decoding device (200), or the receiving unit may be provided as a component of an entropy decoding unit (210).
[0126] Meanwhile, the video decoding device according to the present disclosure may be referred to as a video / video / picture decoding device. The video decoding device may include an information decoder (video / video / picture information decoder) and / or a sample decoder (video / video / picture sample decoder). The information decoder may include an entropy decoding unit (210), and the sample decoder may include at least one of an inverse quantization unit (220), an inverse transformation unit (230), an addition unit (235), a filtering unit (240), a memory (250), an inter prediction unit (260), and an intra prediction unit (265).
[0127] In this disclosure, "or" may be interpreted as "and / or." For example, "A or B" may mean 1) "A" only, 2) "B" only, or 3) "A and B." Alternatively, "or" in this disclosure may mean "additionally or alternatively."
[0128] In this disclosure, "at least one of A, B, and C" may mean "only A," "only B," "only C," or "any and all combinations of A, B, and C." Additionally, "at least one of A, B, or C" or "at least one of A, B, and / or C" may mean "at least one of A, B, and C."
[0129] The parentheses used in this disclosure may mean "for example." For example, when "prediction (intra-prediction)" is indicated, "intra-prediction" may be suggested as an example of "prediction." In other words, "prediction" in this disclosure is not limited to "intra-prediction," and "intra-prediction" may be suggested as an example of "prediction." Furthermore, even when "prediction (i.e., intra-prediction)" is indicated, "intra-prediction" may be suggested as an example of "prediction."
[0130] Video Coding System Overview
[0131] FIG. 1 is a diagram schematically illustrating a video coding system to which an embodiment according to the present disclosure can be applied.
[0132] A video coding system according to one embodiment may include an encoding device (10) and a decoding device (20). The encoding device (10) may transmit encoded video and / or image information or data to the decoding device (20) in the form of a file or streaming through a digital storage medium or a network.
[0133] An encoding device (10) according to one embodiment may include a video source generation unit (11), an encoding unit (12), and a transmission unit (13). A decoding device (20) according to one embodiment may include a reception unit (21), a decoding unit (22), and a rendering unit (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 transmission unit (13) may be included in the encoding unit (12). The reception unit (21) may be included in the decoding unit (22). The rendering unit (23) may include a display unit, and the display unit may be configured as a separate device or an external component.
[0134] The video source generation unit (11) can obtain video / images through a process of capturing, synthesizing, or generating video / images. The video source generation unit (11) can include a video / image capture device and / or a video / image generation device. The video / image capture device can include, for example, one or more cameras, a video / image archive including previously captured video / images, etc. The video / image generation device can include, for example, a computer, a tablet, a smartphone, etc., and can (electronically) generate video / images. For example, a virtual video / image can be generated through a computer, etc., in which case the video / image capture process can be replaced with a process of generating related data.
[0135] The encoding unit (12) can encode input video / images. The encoding unit (12) can perform a series of procedures such as prediction, transformation, and quantization to improve compression and encoding efficiency. The encoding unit (12) can output encoded data (encoded video / image information) in the form of a bitstream.
[0136] The transmission unit (13) can obtain encoded video / image information or data output in the form of a bitstream, and transmit it to the reception unit (21) of the decoding device (20) or another external object through a digital storage medium or a network in the form of a file or streaming. The digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. The transmission unit (13) may include an element for generating a media file through a predetermined file format, and may include an element for transmission through a broadcasting / communication network. The transmission unit (13) may be provided as a separate transmission device from the encoding unit (120), and in this case, the transmission device may include at least one processor for obtaining encoded video / image information or data output in the form of a bitstream, and a transmission unit for transmitting it in the form of a file or streaming. The reception unit (21) can extract / receive the bitstream from the storage medium or network and transmit it to the decoding unit (22).
[0137] The decoding unit (22) can decode video / image by performing a series of procedures such as inverse quantization, inverse transformation, and prediction corresponding to the operation of the encoding unit (12).
[0138] The rendering unit (23) can render the decrypted video / image. The rendered video / image can be displayed through the display unit.
[0139] Overview of the video encoding device
[0140] FIG. 2 is a schematic diagram illustrating an image encoding device to which an embodiment according to the present disclosure can be applied.
[0141] As illustrated in FIG. 2, the image encoding device (100) may include an image segmentation unit (110), a subtraction unit (115), a transformation unit (120), a quantization unit (130), an inverse quantization unit (140), an inverse transformation unit (150), an addition unit (155), a filtering unit (160), a memory (170), an inter prediction unit (180), an intra prediction unit (185), and an entropy encoding unit (190). The inter prediction unit (180) and the intra prediction unit (185) may be collectively referred to as a “prediction unit.” The transformation unit (120), the quantization unit (130), the inverse quantization unit (140), and the inverse transformation unit (150) may be included in a residual processing unit. The residual processing unit may further include a subtraction unit (115).
[0142] All or at least some of the plurality of components constituting the video encoding device (100) may be implemented as a single hardware component (e.g., an encoder or a processor) according to an embodiment. In addition, the memory (170) may include a decoded picture buffer (DPB) and may be implemented by a digital storage medium.
[0143] The image segmentation unit (110) can segment an input image (or picture, frame) input to the image encoding device (100) into one or more processing units. For example, the processing units may be referred to as coding units (CUs). The coding units can be obtained by recursively segmenting a coding tree unit (CTU) or a largest coding unit (LCU) according to a QT / BT / TT (Quad-tree / binary-tree / ternary-tree) structure. For example, one coding unit can be segmented into a plurality of coding units of deeper depth based on a quad-tree structure, a binary-tree structure, and / or a ternary-tree structure. For segmenting the coding unit, the quad-tree structure may be applied first, and the binary-tree structure and / or the ternary-tree structure may be applied later. The coding procedure according to the present disclosure can be performed based on the final coding unit that is no longer segmented. The maximum coding unit can be used directly as the final coding unit, and the coding unit of the lower depth obtained by dividing the maximum coding unit can be used as the final concatenated unit. Here, the coding procedure may include procedures such as prediction, transformation, and / or restoration described below. As another example, the processing unit of the coding procedure may be a prediction unit (PU) or a transformation unit (TU). The prediction unit and the transformation unit may each be divided or partitioned from the final coding unit. The prediction unit may be a unit of sample prediction, and the transformation unit may be a unit that derives a transform coefficient and / or a unit that derives a residual signal from a transform coefficient.
[0144] The prediction unit (inter-prediction unit (180) or intra-prediction unit (185)) can perform prediction on a block to be processed (current block) and generate a predicted block including prediction samples for the current block. The prediction unit can determine whether intra-prediction or inter-prediction is applied to the current block or CU unit. The prediction unit can generate various information regarding the prediction of the current block and transmit the information to the entropy encoding unit (190). The information regarding the prediction can be encoded by the entropy encoding unit (190) and output in the form of a bitstream.
[0145] The intra prediction unit (185) can predict the current block by referring to samples within the current picture. The referenced samples may be located in the neighborhood of the current block or may be located away from it, depending on the intra prediction mode and / or intra prediction technique. The intra prediction modes may include a plurality of non-directional modes and a plurality of directional modes. The non-directional modes may include, for example, a DC mode and a planar mode. The directional modes may include, for example, 33 directional prediction modes or 65 directional prediction modes, depending on the degree of detail in the prediction direction. However, this is merely an example, and a greater or lesser number of directional prediction modes may be used depending on the settings. The intra prediction unit (185) may also determine the prediction mode applied to the current block by using the prediction mode applied to the neighboring blocks.
[0146] The inter prediction unit (180) can derive a predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on a reference picture. At this time, in order to reduce the amount of motion information transmitted in the inter prediction mode, the motion information can be predicted in units of blocks, sub-blocks, or samples based on the correlation of the motion information between the neighboring blocks and the current block. The motion information can include a motion vector and a reference picture index. The motion information can further include information on the inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.). In the case of inter prediction, the neighboring block can include a spatial neighboring block existing in the current picture and a temporal neighboring block existing in the reference picture. The reference picture including the reference block and the reference picture including the temporal neighboring block may be the same or different. The temporal neighboring block may be called a collocated reference block, a collocated CU (colCU), etc. A reference picture including the above temporal neighboring blocks may be called a collocated picture (colPic). For example, the inter prediction unit (180) may construct a motion information candidate list based on neighboring blocks and generate information indicating which candidate is used to derive the motion vector and / or reference picture index of the current block. Inter prediction may be performed based on various prediction modes, and for example, in the case of skip mode and merge mode, the inter prediction unit (180) may use the motion information of neighboring blocks as the motion information of the current block. In the case of skip mode, unlike the merge mode, a residual signal may not be transmitted.In the motion vector prediction (MVP) mode, the motion vector of the current block can be signaled by using the motion vector of the surrounding blocks as the motion vector predictor and encoding the motion vector difference and an indicator for the motion vector predictor. The motion vector difference can mean the difference between the motion vector of the current block and the motion vector predictor.
[0147] The prediction unit can generate a prediction signal based on various prediction methods and / or prediction techniques described below. For example, the prediction unit can apply intra prediction or inter prediction to predict the current block, and can also apply intra prediction and inter prediction simultaneously. A prediction method that simultaneously applies intra prediction and inter prediction to predict the current block may be called combined inter and intra prediction (CIIP). In addition, the prediction unit may perform intra block copy (IBC) to predict the current block. Intra block copy can be used for video / image coding of content such as games, such as screen content coding (SCC). IBC is a method of predicting the current block using a previously restored reference block within the current picture located at a predetermined distance from the current block. When IBC is applied, the location of the reference block within the current picture can be encoded as a vector (block vector) corresponding to the predetermined distance. IBC basically performs prediction within the current picture, but can be performed similarly to inter prediction in that it derives reference blocks within the current picture. That is, IBC can utilize at least one of the inter prediction techniques described in the present disclosure.
[0148] The prediction signal generated through the prediction unit can be used to generate a restoration signal or a residual signal. The subtraction unit (115) can generate a residual signal (residual block, residual sample array) by subtracting the prediction signal (predicted block, predicted sample array) output from the prediction unit from the input image signal (original block, original sample array). The generated residual signal can be transmitted to the conversion unit (120).
[0149] The transform unit (120) can apply a transform technique to the residual signal to generate transform coefficients. For example, the transform technique can include at least one of a Discrete Cosine Transform (DCT), a Discrete Sine Transform (DST), a Karhunen-Loeve Transform (KLT), a Graph-Based Transform (GBT), or a Conditionally Non-linear Transform (CNT). Here, GBT refers to a transform obtained from a graph when the relationship information between pixels is expressed as a graph. CNT refers to a transform obtained based on generating a prediction signal using all previously reconstructed pixels. The transform process can be applied to a pixel block having a square equal size, or can be applied to a block of a non-square variable size.
[0150] The quantization unit (130) can quantize the transform coefficients and transmit them to the entropy encoding unit (190). The entropy encoding unit (190) can encode the quantized signal (information about the quantized transform coefficients) and output it as a bitstream. The information about the quantized transform coefficients can be called residual information. The quantization unit (130) can rearrange the quantized transform coefficients in a block form into a one-dimensional vector form based on a coefficient scan order, and can also generate information about the quantized transform coefficients based on the quantized transform coefficients in the one-dimensional vector form.
[0151] The entropy encoding unit (190) can perform various encoding methods, such as, for example, exponential Golomb, context-adaptive variable length coding (CAVLC), and context-adaptive binary arithmetic coding (CABAC). The entropy encoding unit (190) can also encode, together or separately, information necessary for video / image restoration (e.g., values of syntax elements) in addition to quantized transform coefficients. The encoded information (e.g., encoded video / image information) can be transmitted or stored in the form of a bitstream in the form of a network abstraction layer (NAL) unit. The video / image information may further include information on 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 further include general constraint information. The signaling information, transmitted information and / or syntax elements mentioned in the present disclosure may be encoded through the encoding procedure described above and included in the bitstream.
[0152] The above bitstream may be transmitted via a network or stored in a digital storage medium. Here, the network may include a broadcasting 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 transmission unit (not shown) for transmitting the signal output from the entropy encoding unit (190) and / or a storage unit (not shown) for storing the signal may be provided as an internal / external element of the video encoding device (100), or the transmission unit may be provided as a component of the entropy encoding unit (190).
[0153] The quantized transform coefficients output from the quantization unit (130) can be used to generate a residual signal. For example, by applying inverse quantization and inverse transformation to the quantized transform coefficients through the inverse quantization unit (140) and inverse transformation unit (150), a residual signal (residual block or residual samples) can be restored.
[0154] The addition unit (155) can generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) by adding the reconstructed residual signal to the prediction signal output from the inter prediction unit (180) or the intra prediction unit (185). When there is no residual for the block to be processed, such as when skip mode is applied, the predicted block can be used as the reconstructed block. The addition unit (155) can be called a reconstructor or a reconstructed block generation unit. The generated reconstructed signal can be used for intra prediction of the next block to be processed within the current picture, and can also be used for inter prediction of the next picture after filtering as described below.
[0155] Meanwhile, LMCS (luma mapping with chroma scaling) may be applied during the picture encoding and / or restoration process.
[0156] The filtering unit (160) can improve subjective / objective picture quality by applying filtering to the restoration signal. For example, the filtering unit (160) can apply various filtering methods to the restoration picture to generate a modified restoration picture, and store the modified restoration picture in the memory (170), specifically, in the DPB of the memory (170). The various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, etc. The filtering unit (160) can generate various information regarding filtering and transmit the information to the entropy encoding unit (190), as described later in the description of each filtering method. The information regarding filtering may be encoded by the entropy encoding unit (190) and output in the form of a bitstream.
[0157] The modified restored picture transmitted to the memory (170) can be used as a reference picture in the inter prediction unit (180). Through this, when inter prediction is applied, the image encoding device (100) can avoid prediction mismatch between the image encoding device (100) and the image decoding device, and can also improve encoding efficiency.
[0158] The DPB in the memory (170) can store a modified reconstructed picture to be used as a reference picture in the inter prediction unit (180). The memory (170) can store motion information of a block from which motion information in the current picture is derived (or encoded) and / or motion information of blocks in a picture that has already been reconstructed. The stored motion information can be transferred to the inter prediction unit (180) to be used as motion information of a spatial neighboring block or motion information of a temporal neighboring block. The memory (170) can store reconstructed samples of reconstructed blocks in the current picture and transfer them to the intra prediction unit (185).
[0159] Video Decryption Device Overview
[0160] FIG. 3 is a schematic diagram illustrating an image decoding device to which an embodiment according to the present disclosure can be applied.
[0161] As illustrated in FIG. 3, the image decoding device (200) may be configured to include an entropy decoding unit (210), an inverse quantization unit (220), an inverse transformation unit (230), an addition unit (235), a filtering unit (240), a memory (250), an inter prediction unit (260), and an intra prediction unit (265). The inter prediction unit (260) and the intra prediction unit (265) may be collectively referred to as a “prediction unit.” The inverse quantization unit (220) and the inverse transformation unit (230) may be included in a residual processing unit.
[0162] All or at least some of the plurality of components constituting the video decoding device (200) may be implemented as a single hardware component (e.g., a decoder or processor) depending on the embodiment. In addition, the memory (170) may include a DPB and may be implemented by a digital storage medium.
[0163] The video decoding device (200) that receives a bitstream including video / image information can restore the image by performing a process corresponding to the process performed in the video encoding device (100) of FIG. 2. For example, the video decoding device (200) can perform decoding using a processing unit applied in the video encoding device. Therefore, the processing unit for decoding may be, for example, a coding unit. The coding unit may be a coding tree unit or may be obtained by dividing a maximum coding unit. In addition, the restored image signal decoded and output by the video decoding device (200) can be reproduced through a reproduction device (not shown).
[0164] The video decoding device (200) can receive a signal output from the video encoding device of FIG. 2 in the form of a bitstream. The received signal can be decoded through the entropy decoding unit (210). For example, the entropy decoding unit (210) can parse the bitstream to derive information (e.g., video / image information) necessary for image restoration (or picture restoration). The video / image information may further include information on 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 further include general constraint information. The video decoding device may additionally use information on the parameter set and / or the general constraint information to decode the image. The signaling information, received information, and / or syntax elements mentioned in the present disclosure can be obtained from the bitstream by being decoded through the decoding procedure. For example, the entropy decoding unit (210) can decode information in the bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, and output the values of syntax elements required for image restoration and the quantized values of transform coefficients for residuals. More specifically, the CABAC entropy decoding method receives a bin corresponding to each syntax element in the bitstream, determines a context model using information of the syntax element to be decoded and the decoding information of the surrounding block and the decoding target block or the information of the symbol / bin decoded in the previous step, and predicts the occurrence probability of the bin according to the determined context model to perform arithmetic decoding of the bin to generate a symbol corresponding to the value of each syntax element.At this time, the CABAC entropy decoding method can update the context model using the information of the decoded symbol / bin for the context model of the next symbol / bin after determining the context model. Information regarding prediction among the information decoded by the entropy decoding unit (210) is provided to the prediction unit (inter prediction unit (260) and intra prediction unit (265)), and the residual value on which entropy decoding is performed by the entropy decoding unit (210), i.e., quantized transform coefficients and related parameter information, can be input to the inverse quantization unit (220). In addition, information regarding filtering among the information decoded by the entropy decoding unit (210) can be provided to the filtering unit (240). Meanwhile, a receiving unit (not shown) that receives a signal output from an image encoding device may be additionally provided as an internal / external element of the image decoding device (200), or the receiving unit may be provided as a component of an entropy decoding unit (210).
[0165] Meanwhile, the video decoding device according to the present disclosure may be referred to as a video / video / picture decoding device. The video decoding device may include an information decoder (video / video / picture information decoder) and / or a sample decoder (video / video / picture sample decoder). The information decoder may include an entropy decoding unit (210), and the sample decoder may include at least one of an inverse quantization unit (220), an inverse transformation unit (230), an addition unit (235), a filtering unit (240), a memory (250), an inter prediction unit (260), and an intra prediction unit (265).
[0166] Intra prediction modeAssociated name0INTRA_PLANAR1INTRA_DC2..66INTRA_ANGULAR2..INTRA_ANGULAR6681..83INTRA_LT_CCLM, INTRA_L_CCLM, INTRA_T_CCLM
[0167] Meanwhile, the intra prediction type (or additional intra prediction mode, etc.) may include at least one of the above-described LIP, PDPC, MRL, ISP, and MIP. The intra prediction type may be indicated based on intra prediction type information, and the intra prediction type information may be implemented in various forms. For example, the intra prediction type information may include intra prediction type index information indicating one of the intra prediction types. As another example, the intra prediction type information may include at least one of reference sample line information (e.g., intra_luma_ref_idx) indicating whether the MRL is applied to the current block and, if so, which reference sample line is used, ISP flag information (e.g., intra_subpartitions_mode_flag) indicating whether the ISP is applied to the current block, ISP type information (e.g., intra_subpartitions_split_flag) indicating a split type of subpartitions if the ISP is applied, flag information indicating whether PDCP is applied, or flag information indicating whether LIP is applied. Additionally, the intra prediction type information may include a MIP flag (or may be called intra_mip_flag) indicating whether MIP is applied to the current block.
[0168] Overview of TIMD (Template-based intra mode derivation)
[0169] FIG. 8 is a diagram illustrating a template region used in the TIMD mode according to the present disclosure. For the intra prediction mode (IPM) of adjacent intra blocks and inter blocks in the surrounding area, as shown in FIG. 8, the SATD (sum of absolute transformed differences) between the predicted block predicted from the template region and the actual restored sample is calculated, and then the mode with the smallest SATD can be selected as the intra mode of the current block.
[0170] That is, the first two intra prediction modes with the minimum SATD are selected as the TIMD modes. These two TIMD modes are fused with weights, and this weighted intra prediction is used to encode the current CU. Position-dependent intra prediction combination (PDPC) can be included in the derivation of the TIMD mode.
[0171] The costs of the two selected modes are compared with a threshold, and the two cost factors are applied in the test as follows.
[0172] costMode2 < 2*costMode1
[0173] If the above conditions are true, fusion is applied, otherwise only mode 1 is used.
[0174] The weights of the modes are calculated by their SATD costs as follows:
[0175] weight1 = costMode2 / (costMode1+ costMode2)
[0176] weight2 = 1 - weight1
[0177] Template matching(TM)
[0178] FIG. 9 is a diagram for explaining a template matching-based encoding / decoding method according to the present disclosure.
[0179] Template Matching (TM) is a method of deriving a motion vector performed at the decoder stage. It is a method of refining the motion information of the current block by finding a template (hereinafter referred to as a “reference template”) within a reference picture that is most similar to a template (hereinafter referred to as a “current template”) adjacent to the current block (e.g., current coding unit, current CU). The current template may be an upper neighboring block and / or a left neighboring block of the current block, or a part of these neighboring blocks. In addition, the reference template may be determined to have the same size as the current template.
[0180] As illustrated in Fig. 9, once the initial motion vector of the current block is derived, a search for a better motion vector can be performed in a surrounding area of the initial motion vector. For example, the range of the surrounding area where the search is performed can be within a [-8, +8]-pel search area centered on the initial motion vector. In addition, the size of the search step for performing the search can be determined based on the AMVR mode of the current block. In addition, template matching can also be performed continuously with the bilateral matching process in merge mode.
[0181] If the prediction mode of the current block is AMVP mode, a motion vector predictor candidate (MVP candidate) may be determined based on a template matching error. For example, a motion vector predictor candidate (MVP candidate) that minimizes the error between the current template and a reference template may be selected. Thereafter, template matching for improving a motion vector may be performed on the selected motion vector predictor candidate. At this time, template matching for improving a motion vector may not be performed on motion vector predictor candidates that are not selected.
[0182] More specifically, the improvement of the selected motion vector predictor candidate can be started from full-pel accuracy within the [-8, +8]-pel search region using an iterative diamond search. Alternatively, it can be started from 4-pel accuracy in the case of 4-pel AMVR mode. This can be followed by a search for half-pel and / or quarter-pel accuracy depending on the AMVR mode. According to the search process, the motion vector predictor candidate can maintain the same motion vector accuracy as indicated by the AMVR mode even after the template matching process. In the iterative search process, the search process is terminated if the difference between the previous minimum cost and the current minimum cost is less than an arbitrary threshold. The threshold can be equal to the area of the block, i.e., the number of samples in the block. Table 2 shows examples of search patterns according to the AMVR mode and the merge mode accompanied by AMVR.
[0183]
[0184] If the prediction mode of the current block is merge mode, a similar search method can be applied to the merge candidate indicated by the merge index. As shown in Table 2 above, template matching can be performed up to 1 / 8-pel accuracy or can skip half-pel accuracy or lower, which can be determined depending on whether an alternative interpolation filter is used according to merge motion information. In this case, the alternative interpolation filter can be a filter used when AMVR is in half-pel mode. In addition, if template matching is available, depending on whether bilateral matching (BM) is available, the template matching can operate as an independent process, or can operate as an additional motion vector improvement process between block-based bilateral matching and sub-block-based bilateral matching. The availability of template matching and / or the availability of bilateral matching can be determined based on an availability condition check. The accuracy of the motion vector as described above can refer to the accuracy of the motion vector difference (MVD).
[0185] Overview of intra template matching prediction (intraTMP)
[0186] Intra Template Matching Prediction (IntraTMP) may be a special intra prediction mode that copies an optimal prediction block having an L-shaped template matching the template region of the current block from a reconstructed portion of the current picture. For a predefined search range, the video encoding device (100) may search for a template most similar to the template region of the current block within the reconstructed portion of the current picture, and may use the corresponding block as a prediction block. Then, the video encoding device (100) may signal information indicating the use of the IntraTMP mode, and the video decoding device (200) may perform the same prediction operation through the signaled information.
[0187] FIG. 10 is a diagram illustrating a search area used for intra-template matching prediction (intraTMP) according to one embodiment of the present disclosure. A prediction block can be generated by matching the L-shaped causal neighbors of a current block with other blocks within four predefined search areas illustrated in FIG. 10. The four predefined search areas can be R1 (1010), R2 (1020), R3 (1030), and R4 (1040), as defined below.
[0188] - R1(1010): Current CTU
[0189] - R2(1020): Top left CTU
[0190] - R3(1030): Top CTU
[0191] - R4(1040): Left CTU
[0192] SAD (Sum of Absolute Differences) can be used as a cost function. Within each region, the image decoding device (200) can search for a template having the minimum SAD with respect to the template region of the current block, and use the corresponding block of the searched template as a prediction block.
[0193] The dimensions of all regions (SearchRange_w, SearchRange_h) can be set to be proportional to the block dimensions (BlkW, BlkH) to have a fixed number of SAD comparisons per pixel, as in Equation 1 below.
[0194]
[0195] In Equation 1, a can be a constant that controls the gain / complexity trade-off. For example, a can be 5.
[0196] To speed up the template matching process, the search range of all search regions can be subsampled by a factor of 2. This leads to a reduction in the template matching search by 4. After finding the optimal matching region, a refinement process can be performed. The refinement process can be performed by performing a second template matching search around the optimal matching region with the reduced range. Here, the reduced range can be defined as min(BlkW, BlkH) / 2.
[0197] The intra-template matching tool can be used for CUs with width and height sizes of 64 or less. The maximum CU size for intra-template matching can be configured. That is, the maximum CU size for intra-template matching can be set arbitrarily. Additionally, the intra-template matching prediction mode can be signaled at the CU level via a dedicated flag when the decoder-side intra-mode derivation (DIMD) mode is not used for the current CU.
[0198] Hereinafter, a video encoding / decoding method according to one embodiment of the present disclosure will be described in detail.
[0199] The present disclosure may relate to intra prediction. Specifically, the present disclosure may relate to a method for generating a prediction block by inverting or rotating a reference block and / or a template region of a reference block in intra template matching prediction. Intra template matching prediction may be a method for deriving a block vector in an image decoding device (200) and generating a prediction block corresponding to the derived block vector. Specifically, the present disclosure may propose a method for considering rotation and inversion of a template in a process of generating a template region to derive a block vector (BV) in an image decoding device (200), a process of predicting the BV based on the generated template region, and a process of generating a prediction block.
[0200] FIG. 11 is a flowchart of intra-template matching prediction according to an embodiment of the present disclosure. Referring to FIG. 11, the video decoding device (200) can parse the intraTMP flag (S1101). That is, the video decoding device (200) can decode the intraTMP flag information transmitted in the bitstream. The video decoding device (200) can check whether the value of the intraTMP flag is 1 (S1103). If the value of the intraTMP flag is not 1 (NO in S1103), the video decoding device (200) can terminate the intra-template matching prediction related procedure. If the value of the intraTMP flag is 1 (YES in S1103), the video decoding device (200) can search for a template region. Specifically, the image decoding device (200) can perform motion estimation or block vector estimation, and can calculate the ME (motion extimation) cost for each block vector until a predefined search process is completed.
[0201] The video decoding device (200) can check whether the intraTMP search is finished (S1105). That is, it can check whether the template region search of the intra-template matching prediction is finished. If the intraTMP search is not finished (NO in S1105), the video decoding device (200) can set a block vector (S1107). That is, the video decoding device (200) can perform initial settings for calculating the cost (error) for the block vector in a predefined intraTMP search process. Thereafter, the video decoding device (200) can configure a template region (S1109). That is, the video decoding device (200) can assume that the template region of the reference block corresponding to the template region of the current block in the reference block corresponding to the block vector is a reference template and configure the reference template. The video decoding device (200) can calculate the cost between template regions and configure block vector candidates (S1111). Specifically, the image decoding device (200) can calculate the similarity (cost) between the reference template region configured in step S1109 and the surrounding template region of the current block and insert the corresponding block vector into the candidate list. Thereafter, step S1105 can be performed again.
[0202] If the intraTMP search is terminated (YES in S1105), the image decoding device (200) can rearrange the candidates (S1113). Specifically, if the intraTMP search is terminated, the image decoding device (200) can calculate the similarity (cost) for each candidate within the candidate list composed of the number of block vector cases in step S1111 and sort the calculated costs in ascending order.
[0203] The video decoding device (200) can determine the final candidate for prediction (S1115). That is, the video decoding device (200) can check the candidate index signaled from the bitstream to derive the candidate index within the rearranged candidate list in step S1115. The candidate indicated by the candidate index signaled from the bitstream can be determined as the final candidate. Alternatively, if there is no candidate index signaled from the bitstream, the most similar candidate among the candidates within the rearranged candidate list can be used as the final prediction candidate.
[0204] The image decoding device (200) can generate a predictor from the determined candidate (S1117). That is, the image decoding device (200) can fetch a prediction block using the block vector of the final prediction candidate determined in step S1115.
[0205] Example 1
[0206] In order to derive a block vector through intra-template matching prediction, the present disclosure proposes a method of deriving a block vector by applying a rotation transformation and / or an inversion transformation to a template region of a reference block and calculating the similarity (i.e., cost, error value) between the template region of the transformed reference block (i.e., first adjacent region) and the template region of the current block (i.e., second adjacent region).
[0207] FIG. 12 is a flowchart of intra-template matching prediction according to an embodiment of the present disclosure. Steps S1101 to S1117 of FIG. 12 may be identical to each step of FIG. 11. According to an embodiment of the present disclosure, if intraTMP search is not completed (NO in step S1107), the video decoding device (200) may set a block vector (S1107). Thereafter, the video decoding device (200) may check whether inversion and / or rotation transformation is available (S1201). The video decoding device (200) may check whether rotation and / or inversion transformation of intraTMP is supported in a profile or application through a high-level syntax. In addition, the video decoding device (200) may check whether rotation and / or inversion transformation is supported in a corresponding module based on information acquired through the high-level syntax.
[0208] The image decoding device (200) can configure a template area (S1203). That is, the image decoding device (200) can assume that the template area (i.e., the first adjacent area) of the reference block corresponding to the block vector and the template area (i.e., the second adjacent area) of the current block are reference templates.
[0209] The video decoding device (200) can calculate a cost between template regions and configure block vector candidates (S1205). That is, the similarity (cost) between the reference template region configured in step S1203 and the template region of the current block can be calculated, and the corresponding block vector can be inserted into the candidate list.
[0210] The image decoding device (200) can configure a rotated template region (S1207). Specifically, the image decoding device (200) can configure a rotated reference template by assuming a template region of a reference block corresponding to a template region of a current block in a reference block corresponding to a block vector as a reference template and then performing a rotation transformation on the reference template. Here, the rotation transformation may include at least one of a 90-degree counterclockwise rotation transformation, a 180-degree counterclockwise rotation transformation, or a 270-degree counterclockwise rotation transformation. However, the present disclosure is not limited thereto, and the rotation transformation may be performed at various angles.
[0211] The video decoding device (200) can calculate a cost between template regions and configure block vector candidates (S1209). That is, the similarity (cost) between the rotated reference template region configured in step S1207 and the template region of the current block can be calculated, and the corresponding block vector can be inserted into the candidate list.
[0212] The image decoding device (200) can configure an inverted template region (S1211). Specifically, the image decoding device (200) can configure an inverted reference template by assuming a template region of a reference block corresponding to a template region of a current block in a reference block corresponding to a block vector as a reference template and then performing an inversion transformation on the reference template. Here, the inversion transformation may include at least one of a vertical inversion transformation, a horizontal inversion transformation, a diagonal inversion transformation, or a vertical-diagonal inversion transformation. However, the present disclosure is not limited thereto, and the inversion transformation may be performed based on inversion axes in various directions.
[0213] The video decoding device (200) can calculate the cost between template regions and configure block vector candidates (S1213). That is, the similarity (cost) between the inverted reference template region configured in step S1211 and the template region of the current block can be calculated, and the corresponding block vector can be inserted into the candidate list. The present disclosure is not limited thereto, and the order of steps S1207 and S1211 described above may be changed. In addition, steps S1207 and S1209 may be omitted. Alternatively, steps S1211 and S1213 may be omitted.
[0214] According to one embodiment of the present disclosure, a template region of a reference block may be rotated and / or inverted to derive a block vector through intra-template matching prediction. In this case, rotation and / or inversion may be performed on a reference block corresponding to a current block, and the rotated and / or inverted reference block may be used as a prediction block of the current block.
[0215] IntraTMP can perform motion estimation based on an image decoding device (200) that calculates the similarity (i.e., cost, error value) of a template region to find a similar block vector. Therefore, the present disclosure proposes a method for performing rotation and / or inversion transformation on a template region of a reference block (hereinafter, referred to as a reference template region) corresponding to a block vector, and proposes a process for calculating the similarity between the reference template region to which rotation and / or inversion have been applied and the template region of the current block to find a block vector with high similarity in the entire reference template region. That is, the proposed method may be a method for performing ME (motion estimation) by performing rotation and / or inversion transformation on a reference template region to derive a block vector in the image decoding device (200).
[0216] The shapes of blocks supported by the hybrid-based image decoding device (200) may vary. For example, the shape of the block to be generated may be square or rectangular. Alternatively, the shape of the block may be a variety of non-rectangular, non-square, irregular shapes such as triangles, depending on the prediction technology. Therefore, the present disclosure proposes a method for performing intraTMP based on rotation and / or inversion transformation for blocks of various shapes.
[0217] FIGS. 13 and 14 are diagrams illustrating template areas of a current block and a reference block according to one embodiment of the present disclosure. The shaded areas of FIGS. 13 and 14 may be template areas, and the unshaded areas represent the current block and the reference block corresponding to the block vector.
[0218] FIG. 15 is a diagram illustrating a case in which a vertical inversion transform is applied to a reference block and a template region of the reference block according to an embodiment of the present disclosure. Referring to FIG. 15, the present disclosure can induce a block vector by applying a vertical inversion transform to a reference block and a template region of the reference block. The image encoding apparatus (100) and / or the image decoding apparatus (200) can calculate the similarity between the template region of the current block and the template region of the reference block to which the vertical inversion transform is applied by applying the vertical inversion transform to the template region of the reference block. The prediction block of the current block can be generated using the block vector derived through the similarity calculation. In this case, in order to generate the prediction block of the current block, the image encoding apparatus (100) and / or the image decoding apparatus (200) can apply a vertical inversion transform to a candidate prediction block generated based on the block vector, and can generate a final prediction block of the current block by fetching the candidate prediction block to which the vertical inversion transform is applied.
[0219] FIG. 16 is a diagram illustrating a case in which a horizontal inversion transform is applied to a reference block and a template region of the reference block according to an embodiment of the present disclosure. Referring to FIG. 16, the present disclosure can induce a block vector by applying a horizontal inversion transform to a reference block and a template region of the reference block. The image encoding apparatus (100) and / or the image decoding apparatus (200) can calculate the similarity between the template region of the current block and the template region of the reference block to which the horizontal inversion transform is applied by applying the horizontal inversion transform to the template region of the reference block. The prediction block of the current block can be generated using the block vector derived through the similarity calculation. In this case, in order to generate the prediction block of the current block, the image encoding apparatus (100) and / or the image decoding apparatus (200) can apply the horizontal inversion transform to a candidate prediction block generated based on the block vector, and can generate the final prediction block of the current block by fetching the candidate prediction block to which the horizontal inversion transform is applied.
[0220] FIG. 17 is a diagram illustrating a case in which a diagonal inversion transform is applied to a reference block and a template region of the reference block according to an embodiment of the present disclosure. Referring to FIG. 17, the present disclosure can induce a block vector by applying a diagonal inversion transform to a reference block and a template region of the reference block. The image encoding apparatus (100) and / or the image decoding apparatus (200) can calculate the similarity between the template region of the current block and the template region of the reference block to which the diagonal inversion transform is applied by applying the diagonal inversion transform to the template region of the reference block. The prediction block of the current block can be generated using the block vector derived through the similarity calculation. In this case, in order to generate the prediction block of the current block, the image encoding apparatus (100) and / or the image decoding apparatus (200) can apply a diagonal inversion transform to a candidate prediction block generated based on the block vector, and can generate a final prediction block of the current block by fetching the candidate prediction block to which the diagonal inversion transform is applied.
[0221] FIG. 18 is a diagram illustrating a case in which a vertical diagonal inversion transform is applied to a reference block and a template region of the reference block according to an embodiment of the present disclosure. Referring to FIG. 17, the present disclosure can induce a block vector by applying a vertical diagonal inversion transform to a reference block and a template region of the reference block. The image encoding apparatus (100) and / or the image decoding apparatus (200) can calculate the similarity between the template region of the current block and the template region of the reference block to which the vertical diagonal inversion transform is applied by applying the vertical diagonal inversion transform to the template region of the reference block. A prediction block of the current block can be generated using the block vector derived through the similarity calculation. In this case, in order to generate the prediction block of the current block, the image encoding apparatus (100) and / or the image decoding apparatus (200) can apply a vertical diagonal inversion transform to a candidate prediction block generated based on the block vector, and can generate a final prediction block of the current block by fetching the candidate prediction block to which the vertical diagonal inversion transform is applied.
[0222] FIG. 19 is a diagram showing a 90-degree counterclockwise rotation transformation applied to a reference block and a template region of the reference block according to an embodiment of the present disclosure. Referring to FIG. 19, the present disclosure can derive a block vector by applying a 90-degree counterclockwise rotation transformation to a reference block and a template region of the reference block. The image encoding device (100) and / or the image decoding device (200) can calculate the similarity between the template region of the current block and the template region of the reference block to which the 90-degree counterclockwise rotation transformation is applied by applying the 90-degree counterclockwise rotation transformation to the template region of the reference block. A prediction block of the current block can be generated using the block vector derived through the similarity calculation. In this case, in order to generate a prediction block of the current block, the image encoding device (100) and / or the image decoding device (200) may apply a 90-degree counterclockwise rotation transformation to a candidate prediction block generated based on a block vector, and may generate a final prediction block of the current block by fetching the candidate prediction block to which the 90-degree counterclockwise rotation transformation has been applied.
[0223] FIG. 20 is a diagram showing a 180-degree counterclockwise rotation transformation applied to a reference block and a template region of the reference block according to an embodiment of the present disclosure. Referring to FIG. 20, the present disclosure can derive a block vector by applying a 180-degree counterclockwise rotation transformation to a reference block and a template region of the reference block. The image encoding device (100) and / or the image decoding device (200) can calculate the similarity between the template region of the current block and the template region of the reference block to which the 180-degree counterclockwise rotation transformation is applied by applying the 180-degree counterclockwise rotation transformation to the template region of the reference block. A prediction block of the current block can be generated using the block vector derived through the similarity calculation. In this case, in order to generate a prediction block of the current block, the image encoding device (100) and / or the image decoding device (200) may apply a 180-degree counterclockwise rotation transformation to a candidate prediction block generated based on a block vector, and may generate a final prediction block of the current block by fetching the candidate prediction block to which the 180-degree counterclockwise rotation transformation has been applied.
[0224] FIG. 21 is a diagram showing a 270-degree counterclockwise rotation transformation applied to a reference block and a template region of the reference block according to an embodiment of the present disclosure. Referring to FIG. 21, the present disclosure can derive a block vector by applying a 270-degree counterclockwise rotation transformation to a reference block and a template region of the reference block. The image encoding device (100) and / or the image decoding device (200) can calculate the similarity between the template region of the current block and the template region of the reference block to which the 270-degree counterclockwise rotation transformation is applied by applying the 270-degree counterclockwise rotation transformation to the template region of the reference block. A prediction block of the current block can be generated using the block vector derived through the similarity calculation. In this case, in order to generate a prediction block of the current block, the image encoding device (100) and / or the image decoding device (200) can apply a 270-degree counterclockwise rotation transformation to a candidate prediction block generated based on a block vector, and can generate a final prediction block of the current block by fetching the candidate prediction block to which the 270-degree counterclockwise rotation transformation has been applied.
[0225] FIG. 22 is a diagram illustrating a reference block and a template area when the current block is rectangular, according to one embodiment of the present disclosure. Specifically, FIG. 22 is a diagram illustrating a reference block and a template area of the reference block to which rotation and / or inversion transformations have not been applied. Unlike square blocks, the reference area of a non-square block can be adaptively determined based on rotation and / or inversion.
[0226] FIG. 23 is a diagram illustrating a case in which a vertical inversion transformation is applied to a reference block and a template region of the reference block when the current block is a rectangular block according to an embodiment of the present disclosure. When the height of the current block is twice as long as the width (i.e., an Nx2N block, where N is an integer), a vertical inversion transformation may also be applied to the reference block and the template region of the reference block, taking into account the ratio of the height and width of the current block. For example, when the size of the current block is Nx2N, the reference block may also be vertically inverted based on an Nx2N portion at the same position as that of the current block. The template region of the reference block may also be vertically inverted based on a template region of the same width and / or height as that of the current block, taking into account the width and / or height of the current block.
[0227] FIG. 24 is a diagram illustrating a horizontal inversion transformation applied to a reference block and a template region of the reference block when the current block is a rectangular block according to an embodiment of the present disclosure. In the case of a rectangular block, when performing a horizontal inversion transformation, a problem may arise in which an area where samples are not defined occurs due to the difference between the width and height of the current block. To solve this problem, the present disclosure assumes that the current block is a square block based on the longer area between the width and height, and then performs a horizontal inversion transformation. This process can be equally applied to all rotation transformations and inversion transformations. When the height of the current block is twice as long as the width (i.e., an Nx2N block, where N is an integer), a horizontal inversion transformation can be performed on the reference block and the template region of the reference block in the same manner as in the case of a square block of size 2Nx2N. In this case, among the reference block and the template region of the reference block on which the horizontal inversion transformation was performed, only an area of the same size as the current block can be considered when generating a prediction block of the current block.
[0228] FIG. 25 is a diagram illustrating a case in which a diagonal inversion transform is applied to a reference block and a template region of the reference block when the current block is a rectangular block according to an embodiment of the present disclosure. In the case of a rectangular block, when performing a diagonal inversion transform, a problem may arise in which an area in which samples are not defined occurs due to the difference between the width and height of the current block. To solve this problem, the present disclosure may assume that the current block is a square block based on a longer area between the width and height, and then perform a diagonal inversion transform. When the height of the current block is twice as long as the width (i.e., an Nx2N block, where N is an integer), a diagonal inversion transform may be performed on the reference block and the template region of the reference block in the same manner as in the case of a square block of size 2Nx2N. In this case, among the reference block and the template region of the reference block on which the diagonal inversion transform is performed, only an area having the same size as the current block may be considered when generating a prediction block of the current block.
[0229] FIG. 26 is a diagram illustrating a case in which a vertical diagonal inversion transform is applied to a reference block and a template region of the reference block when the current block is a rectangular block according to an embodiment of the present disclosure. In the case of a rectangular block, when performing a vertical diagonal inversion transform, a problem may arise in which an area in which samples are not defined occurs due to the difference between the width and height of the current block. To solve this problem, the present disclosure may assume that the current block is a square block based on a longer area between the width and height, and then perform a vertical diagonal inversion transform. When the height of the current block is twice as long as the width (i.e., an Nx2N block, where N is an integer), a vertical diagonal inversion transform may be performed on the reference block and the template region of the reference block in the same manner as in the case of a square block of size 2Nx2N. In this case, among the reference block and the template region of the reference block on which a vertical diagonal inversion transform has been performed, only an area having the same size as the current block may be considered when generating a prediction block of the current block.
[0230] FIG. 27 is a diagram showing a 90-degree counterclockwise rotation transformation applied to a reference block and a template region of the reference block when the current block is a rectangular block according to an embodiment of the present disclosure. FIG. 28 is a diagram showing a 180-degree counterclockwise rotation transformation applied to a reference block and a template region of the reference block when the current block is a rectangular block according to an embodiment of the present disclosure. FIG. 29 is a diagram showing a 270-degree counterclockwise rotation transformation applied to a reference block and a template region of the reference block when the current block is a rectangular block according to an embodiment of the present disclosure.
[0231] In the case of rectangular blocks, when performing a rotation transformation (e.g., 90-degree counterclockwise rotation transformation, 180-degree counterclockwise rotation transformation, 270-degree counterclockwise rotation transformation), a problem may arise in which an area where samples are not defined is generated due to the difference between the width and height of the current block. To solve this problem, the present disclosure may perform a rotation transformation after assuming that the current block is a square block based on the longer area between the width and height of the current block. For example, when the height of the current block is twice as long as the width (i.e., an Nx2N block, where N is an integer), a rotation transformation may be performed on the reference block and the template area of the reference block in the same manner as in the case of a square block of size 2Nx2N. In this case, among the reference block and the template area of the reference block on which the rotation transformation was performed, only areas having the same size as the current block may be considered when generating a prediction block of the current block.
[0232] In the case of a 180-degree counterclockwise rotation transformation, there is no difference in the width and height ratio of the block after rotation, but the left template area of the reference block after rotation can be replaced with samples of the reference block before rotation. In other words, the template area after rotation can be samples of the reference block before rotation.
[0233] FIGS. 30 to 32 are diagrams illustrating a reference block and a template area of the reference block when the current block is a non-square block according to one embodiment of the present disclosure. That is, the present disclosure can also be applied to blocks of various shapes.
[0234] According to one embodiment of the present disclosure, rotation and / or inversion transformation may be performed only on a reference block, and no rotation and / or inversion transformation may be performed on a template region of the reference block. Alternatively, rotation and / or inversion transformation may be performed only on a template region of the reference block, and no rotation and / or inversion transformation may be performed on the reference block.
[0235] Example 2
[0236] The present disclosure proposes a method for generating a prediction block by performing rotation and / or inversion transformation on pixel values of a reference region within a reference block corresponding to a current block during an intra-template matching prediction process. The present disclosure proposes a method for signaling from a bitstream whether rotation and / or inversion transformation is performed on pixel values of a reference region within a reference block. All methods proposed in Embodiment 2 can be applied to all rotation and / or inversion transformations proposed in Embodiment 1 described above.
[0237] Since the method proposed in the present disclosure transmits whether a reference block is rotated and / or inverted from the bitstream, the video encoding device (100) can perform Rate Distortion Optimization for cases where rotation and / or inversion are performed. Accordingly, the video encoding device (100) can determine a case with a minimum restoration error value and transmit this as a bitstream. This is to enable the video decoding device (200) to perform the same prediction process as the video encoding device (100).
[0238] FIG. 33 is a diagram illustrating template areas of a current block and a reference block according to one embodiment of the present disclosure. FIG. 34 is a diagram illustrating a method for calculating a prediction error between a reference block and a current block according to one embodiment of the present disclosure. FIG. 34 is a diagram explaining a method for calculating a prediction error using the reference block and the current block of FIG. 33. Specifically, the present disclosure can calculate a prediction error between a current block and a corresponding reference block indicated by a block vector.
[0239] According to one embodiment of the present disclosure, a rotation and / or inversion transformation may be performed on a corresponding reference block indicated by a block vector, and a prediction error between the reference block on which the transformation was performed and the current block may be calculated.
[0240] FIG. 35 is a diagram illustrating a method for calculating a prediction error between an inverted transformed reference block and a current block according to an embodiment of the present disclosure. FIG. 36 is a diagram illustrating a method for calculating a prediction error between a rotated transformed reference block and a current block according to an embodiment of the present disclosure. As illustrated in FIGS. 35 and 36, the image encoding device (100) can calculate an actual prediction error for rotation and / or inversion. Information about the case in which the minimum prediction error is generated among these can be transmitted in the bitstream. The image decoding device (200) can determine whether to rotate and / or invert a prediction block based on information received from the bitstream, thereby generating a final prediction block.
[0241] Figures 37 to 39 are flowcharts of a method for determining whether to perform transformation according to an embodiment of the present disclosure. Referring to Figure 37, the image decoding device (200) can check whether transformation is available in intraTMP (S3710). The determination of whether transformation is available in intraTMP can be performed based on information obtained from the bitstream, and the image decoding device (200) can also derive whether transformation is available without separate information from the bitstream.
[0242] If the transformation is not available in the intraTMP (NO in step S3710), the video decoding device (200) can terminate the step. If the transformation is available in the intraTMP (YES in step S3710), the video decoding device (200) can parse the intraTMP rotation flag (S3730). Thereafter, the video decoding device (200) can check the value of the intraTMP rotation transformation flag (S3750). If the value of the intraTMP rotation transformation flag is 1 (YES in step S3750), the video decoding device (200) can parse the rotation transformation index (S3770). If the value of the intraTMP rotation transformation flag is not 1 (NO in step S3750), the video decoding device (200) can parse the inversion transformation index (S3790). The image decoding device (200) can perform transformation on the reference block and / or the template area of the reference block based on the index obtained in step S3770 or S3790.
[0243] Referring to FIG. 38, the image decoding device (200) can determine whether transformation is available in intraTMP (S3810). The determination of whether transformation is available in intraTMP can be performed based on information obtained from the bitstream, and the image decoding device (200) can also derive whether transformation is available without separate information from the bitstream.
[0244] If the transformation is not available in the intraTMP (NO in step S3810), the video decoding device (200) can terminate the step. If the transformation is available in the intraTMP (YES in step S3810), the video decoding device (200) can parse the intraTMP inversion flag (S3830). Thereafter, the video decoding device (200) can check the value of the intraTMP inversion transformation flag (S3850). If the value of the intraTMP inversion transformation flag is 1 (YES in step S3850), the video decoding device (200) can parse the inversion transformation index (S3870). If the value of the intraTMP inversion transformation flag is not 1 (NO in step S3850), the video decoding device (200) can parse the rotation transformation index (S3890). The image decoding device (200) can perform transformation on the reference block and / or the template area of the reference block based on the index obtained in step S3870 or S3890.
[0245] Referring to FIG. 39, the image decoding device (200) can determine whether transformation is available in intraTMP (S3910). The determination of whether transformation is available in intraTMP can be performed based on information obtained from the bitstream, and the image decoding device (200) can also derive whether transformation is available without separate information from the bitstream.
[0246] If transformation is not available in intraTMP (NO in step S3910), the video decoding device (200) can terminate the step. If transformation is available in intraTMP (YES in step S3910), the video decoding device (200) can parse the intraTMP rotation / inversion index (S3930). The video decoding device (200) can perform transformation on the reference block and / or the template area of the reference block based on the index obtained in step S3930.
[0247] When the rotation transformation index and the inversion transformation index are transmitted as separate indices as in FIGS. 37 and 38, the meaning of each index value may be as shown in Tables 3 and 4 below. Table 3 shows the rotation transformation index, and Table 4 shows the inversion transformation index.
[0248] Rotation IndexSemantic090-degree rotation1180-degree rotation2270-degree rotation
[0249] Flip indexSemantic0Horizontal flip1Vertical flip2Diagonal flip3Vertical diagonal flip
[0250] When the rotation transformation type and the inversion transformation type are transmitted as one index, as in Figure 39, the meaning of the index value may be as shown in Table 5 below.
[0251] Rotation / flip indexSemantic0Horizontal flip1Vertical flip2Diagonal flip3Vertical diagonal flip490-degree rotation5180-degree rotation6270-degree rotation
[0252] When transmitting rotation and / or inversion transformation as a bitstream, the present disclosure proposes a method of sorting indices in ascending order based on the template similarity (cost) of the current block and the reference block to minimize the amount of bits to be transmitted. For example, when having template similarity as in Table 6 below, the video encoding device (100) and / or the video decoding device (200) can rearrange the index values in descending order of template similarity (cost) as in Table 7.
[0253] Rotation / flip indexSemanticCost0Horizontal flip1001Vertical flip2002Diagonal flip303Vertical diagonal flip10490-degree rotation405180-degree rotation3006270-degree rotation400
[0254] Rotation / flip indexSemanticCost0Vertical diagonal flip101Diagonal flip30290-degree rotation403Horizontal flip1004Vertical flip2005180-degree rotation3006270-degree rotation400
[0255] The present disclosure is not limited thereto, and templates may be rearranged in order of increasing similarity (cost).
[0256] Example 3
[0257] The present disclosure proposes a method for applying luma compensation to a prediction block. Furthermore, the present disclosure proposes a method for deriving compensation information (e.g., parameters) for luma compensation by referencing the template region of a rotated and / or inverted reference block and the template region of the current block when rotation and / or inversion are applied during an intraTMP prediction process.
[0258] FIGS. 40 and 41 are diagrams illustrating a method for performing luma compensation according to an embodiment of the present disclosure. When performing horizontal inversion transformation on a template region of a reference block as shown in FIG. 40, the present disclosure can derive parameters for luma compensation from the template region (4110) of the horizontally inverted reference block as shown in FIG. 41. The derived parameters can be used to generate a final prediction block of the current block.
[0259] The present disclosure is not limited thereto, and parameters for luma compensation can be derived from a template region of a reference block to which various transformation methods are applied, and the derived parameters can be used to generate a final prediction block of the current block.
[0260] Example 4
[0261] The present disclosure proposes a method for generating a final prediction block by generating one or more prediction blocks in addition to a prediction block generated using an intraTMP prediction method to which rotation and / or inversion transformation is applied, and then weighting the multiple prediction blocks on a block-by-block or pixel-by-pixel basis.
[0262] FIG. 42 and FIG. 43 are diagrams illustrating a method for generating a final prediction block by weighting multiple prediction blocks according to one embodiment of the present disclosure. Referring to FIG. 42, the video encoding device (100) and / or the video decoding device (200) can generate a horizontally inverted prediction block (4210) corresponding to one block vector (BV1) and a prediction block (4230) corresponding to another block vector (BV2). The video encoding device (100) and / or the video decoding device (200) can generate a final prediction block of the current block by weighting the two generated prediction blocks (4210, 4230).
[0263] As another example, referring to FIG. 43, the image encoding device (100) and / or the image decoding device (200) can generate a final prediction block of the current block by weighting a horizontally inverted prediction block (4310) corresponding to one block vector (BV1) and a prediction block (4330) generated in an intra prediction mode. Here, the intra prediction mode used to generate the prediction block (4330) can be various intra prediction methods other than a directional mode or a non-directional mode.
[0264] Fig. 44 is a flowchart illustrating an encoding method according to the present disclosure. The image encoding device (100) may perform transformation on a predetermined first adjacent region adjacent to a reference block of a current block (S4410). Here, the first adjacent region may be a template region adjacent to the reference block. In addition, the first adjacent region may include at least one of a left adjacent region, an upper adjacent region, an upper-left adjacent region, a right adjacent region, or a lower adjacent region of the reference block.
[0265] The video encoding device (100) can generate a first prediction block of the current block based on the first adjacent region where the transformation was performed and a predetermined second adjacent region adjacent to the current block (S4430). Here, the second adjacent region may be a template region of the current block. Specifically, the first prediction block can be generated based on an error value (cost, similarity) calculated based on the first adjacent region and the second adjacent region where the transformation was performed.
[0266] The video encoding device (100) can generate a final prediction block of the current block by performing a transformation on the first prediction block (S4450). The video encoding device (100) can encode transformation performance information indicating whether transformation is performed (S4470). Here, the transformation performance information may be a flag indicating whether transformation is available. In addition, the transformation performance information may further include transformation type information indicating a transformation type. The transformation type information may be information indicating one of an inversion transformation or a rotation transformation. Alternatively, the transformation type information may be information indicating one of a vertical inversion transformation, a horizontal inversion transformation, a diagonal inversion transformation, a vertical diagonal inversion transformation, a 90-degree counterclockwise rotation transformation, a 180-degree counterclockwise rotation transformation, or a 270-degree counterclockwise rotation transformation.
[0267] According to one embodiment of the present disclosure, the video encoding device (100) can derive a luma compensation parameter based on a first adjacent region and a second adjacent region on which transformation has been performed. Based on the derived luma compensation parameter, the video encoding device (100) can perform luma compensation on a reference block. A first prediction block can be generated based on the reference block on which luma compensation has been performed.
[0268] According to one embodiment of the present disclosure, the video encoding device (100) can generate a final prediction block by weighting a plurality of prediction blocks. Specifically, the final prediction block can be generated by weighting a second prediction block generated in an intra-prediction mode and a first prediction block on which transformation has been performed.
[0269] Fig. 45 is a flowchart illustrating a decoding method according to the present disclosure. The image decoding device (200) can obtain transformation performance information indicating whether transformation is performed (S4510). Here, the transformation performance information may be a flag indicating whether transformation is available. In addition, the transformation performance information may further include transformation type information indicating a transformation type. The transformation type information may be information indicating one of inversion transformation or rotation transformation. Alternatively, the transformation type information may be information indicating one of vertical inversion transformation, horizontal inversion transformation, diagonal inversion transformation, vertical diagonal inversion transformation, 90-degree counterclockwise rotation transformation, 180-degree counterclockwise rotation transformation, or 270-degree counterclockwise rotation transformation.
[0270] The image decoding device (200) may perform transformation on a predetermined first adjacent region adjacent to the reference block of the current block based on the transformation performance information (S4530). Here, the first adjacent region may be a template region adjacent to the reference block. In addition, the first adjacent region may include at least one of the left adjacent region, the upper adjacent region, the upper-left adjacent region, the right adjacent region, or the lower adjacent region of the reference block.
[0271] The image decoding device (200) can generate a first prediction block of the current block based on the first adjacent region on which the transformation was performed and a predetermined second adjacent region adjacent to the current block (S4550). Here, the second adjacent region may be a template region of the current block. Specifically, the first prediction block can be generated based on an error value (cost, similarity) calculated based on the first adjacent region and the second adjacent region on which the transformation was performed. The image decoding device (200) can generate a final prediction block of the current block by performing a transformation on the first prediction block (S4570).
[0272] According to one embodiment of the present disclosure, the image decoding device (200) can derive a luma compensation parameter based on the first adjacent region and the second adjacent region on which transformation has been performed. Based on the derived luma compensation parameter, the image decoding device (200) can perform luma compensation on a reference block. A first prediction block can be generated based on the reference block on which luma compensation has been performed.
[0273] According to one embodiment of the present disclosure, the image decoding device (200) can generate a final prediction block by weighting a plurality of prediction blocks. Specifically, the final prediction block can be generated by weighting a second prediction block generated in an intra-prediction mode and a first prediction block on which transformation has been performed.
[0274] According to various embodiments proposed in the present disclosure, encoding efficiency can be improved and encoding performance can be enhanced by performing intraTMP with rotation transformation and / or inversion transformation applied.
[0275] While the exemplary methods of this disclosure are presented as a series of operations for clarity of description, this is not intended to limit the order in which the steps are performed, and individual steps may be performed simultaneously or in different orders, if desired. To implement a method according to this disclosure, additional steps may be included in addition to the steps illustrated, some steps may be excluded and the remaining steps included, or some steps may be excluded and additional steps included.
[0276] In the present disclosure, a video encoding device or video decoding device performing a predetermined operation (step) may perform an operation (step) of checking the conditions or circumstances under which the operation (step) is performed. For example, if it is described that a predetermined operation is performed when a predetermined condition is satisfied, the video encoding device or video decoding device may perform an operation of checking whether the predetermined condition is satisfied and then perform the predetermined operation.
[0277] The various embodiments of the present disclosure are not intended to list all possible combinations but rather to illustrate representative aspects of the present disclosure, and the matters described in the various embodiments may be applied independently or in combination of two or more.
[0278] Additionally, various embodiments of the present disclosure may be implemented by hardware, firmware, software, or a combination thereof. In the case of hardware implementation, the embodiments may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general processors, controllers, microcontrollers, microprocessors, etc.
[0279] In addition, the video decoding device and the video encoding device to which the embodiments of the present disclosure are applied may be included in a multimedia broadcasting transmitting and receiving device, a mobile communication terminal, a home cinema video device, a digital cinema video device, a surveillance camera, a video conversation device, a real-time communication device such as a video communication, a mobile streaming device, a storage medium, a camcorder, a video-on-demand (VoD) service providing device, an OTT (Over the top video) device, an Internet streaming service providing device, a three-dimensional (3D) video device, a video phone video device, and a medical video device, and may be used to process a video signal or a data signal. For example, the OTT (Over the top video) device may include a game console, a Blu-ray player, an Internet-connected TV, a home theater system, a smartphone, a tablet PC, a DVR (Digital Video Recorder), and the like.
[0280] FIG. 46 is a diagram illustrating an example of a content streaming system to which an embodiment according to the present disclosure can be applied.
[0281] As illustrated in FIG. 46, a content streaming system to which an embodiment of the present disclosure is applied may largely include an encoding server, a streaming server, a web server, a media storage, a user device, and a multimedia input device.
[0282] The encoding server compresses content input from multimedia input devices such as smartphones, cameras, and camcorders into digital data, generates a bitstream, and transmits it to the streaming server. Alternatively, if multimedia input devices such as smartphones, cameras, and camcorders directly generate bitstreams, the encoding server may be omitted.
[0283] The above bitstream can be generated by an image encoding method and / or an image encoding device to which an embodiment of the present disclosure is applied, and the streaming server can temporarily store the bitstream during the process of transmitting or receiving the bitstream.
[0284] The streaming server transmits multimedia data to a user device based on a user request via a web server, and the web server can act as an intermediary to inform the user of available services. When a user requests a desired service from the web server, the web server transmits the request to the streaming server, and the streaming server can transmit multimedia data to the user. At this time, the content streaming system may include a separate control server, and in this case, the control server may control commands / responses between each device within the content streaming system.
[0285] The streaming server can receive content from a media repository and / or encoding server. For example, when receiving content from the encoding server, the content can be received in real time. In this case, to provide a smooth streaming service, the streaming server can store the bitstream for a certain period of time.
[0286] Examples of the user devices may include mobile phones, smart phones, laptop computers, digital broadcasting terminals, personal digital assistants (PDAs), portable multimedia players (PMPs), navigation devices, slate PCs, tablet PCs, ultrabooks, wearable devices (e.g., smartwatches, smart glasses, HMDs), digital TVs, desktop computers, digital signage, etc.
[0287] Each server within the above content streaming system can be operated as a distributed server, in which case data received from each server can be processed in a distributed manner.
[0288] The scope of the present disclosure includes software or machine-executable instructions (e.g., operating systems, applications, firmware, programs, etc.) that cause operations according to the methods of various embodiments to be executed on a device or a computer, and a non-transitory computer-readable medium having such software or instructions stored thereon and executable on the device or computer.
[0289] Embodiments according to the present disclosure can be used to encode / decode images.
Claims
1. An image decoding method performed by an image decoding device, A step of obtaining conversion performance information indicating whether conversion is performed; A step of performing transformation on a predetermined first adjacent area adjacent to a reference block of a current block based on the above transformation performance information; A step of generating a first prediction block of the current block based on the first adjacent area where transformation is performed and a predetermined second adjacent area adjacent to the current block; and A step of generating a final prediction block of the current block by performing a transformation on the first prediction block; The above first adjacent area is a location corresponding to the above second adjacent area, The above transformation includes at least one of an inversion transformation or a rotation transformation, How to decrypt video.
2. In paragraph 1, The first adjacent region includes at least one of a left adjacent region, an upper adjacent region, an upper left adjacent region, a right adjacent region, or a lower adjacent region of the reference block. How to decrypt video.
3. In paragraph 1, The above conversion performance information further includes conversion type information indicating the conversion type. How to decrypt video.
4. In paragraph 1, The above inversion transformation includes at least one of a vertical inversion transformation, a horizontal inversion transformation, a diagonal inversion transformation, or a vertical diagonal inversion transformation. How to decrypt video.
5. In paragraph 1, The above rotation transformation includes at least one of a 90 degree counterclockwise rotation transformation, a 180 degree counterclockwise rotation transformation, or a 270 degree counterclockwise rotation transformation. How to decrypt video.
6. In paragraph 1, The first prediction block is generated based on an error value calculated based on the first adjacent area and the second adjacent area where the transformation is performed. How to decrypt video.
7. In paragraph 1, Based on the above current block being a non-square block, the first adjacent area includes a sample area within the reference block prior to the transformation. How to decrypt video.
8. In paragraph 1, The step of generating the first prediction block is: A step of deriving a luma compensation parameter based on the first adjacent area and the second adjacent area where the above transformation is performed; and A step of performing luma compensation on the reference block based on the luma compensation parameter; and Further comprising a step of generating the first prediction block based on the reference block on which the luma compensation has been performed. How to decrypt video.
9. In paragraph 1, Further comprising a step of generating a second prediction block of the current block based on the intra prediction mode, The above final prediction block is generated by weighting the first prediction block and the second prediction block on which the above transformation was performed. How to decrypt video.
10. An image encoding method performed by an image encoding device, A step of performing a transformation on a predetermined first adjacent area adjacent to a reference block of the current block; A step of generating a first prediction block of the current block based on the first adjacent area where transformation is performed and a predetermined second adjacent area adjacent to the current block; A step of generating a final prediction block of the current block by performing a transformation on the first prediction block; and Including a step of encoding conversion performance information indicating whether the above conversion is performed, The first adjacent area is a position corresponding to the second adjacent area, The above transformation includes at least one of an inversion transformation or a rotation transformation, Video encoding method.
11. A computer-readable recording medium storing a bitstream generated by the image encoding method of Article 10.
12. In a method for transmitting a bitstream generated by an image encoding method, the image encoding method comprises: A step of performing a transformation on a predetermined first adjacent area adjacent to a reference block of the current block; A step of generating a first prediction block of the current block based on the first adjacent area where transformation is performed and a predetermined second adjacent area adjacent to the current block; A step of generating a final prediction block of the current block by performing a transformation on the first prediction block; and Including a step of encoding conversion performance information indicating whether the above conversion is performed, The first adjacent area is a position corresponding to the second adjacent area, The above transformation includes at least one of an inversion transformation or a rotation transformation, Bitstream transmission method.
Citation Information
Patent Citations
Template-based inter-prediction technique based on encoding and decoding latency reduction
JP2021518059A
Method and apparatus for encoding and decoding video pictures
JP6379186B2
Encoder / decoder for performing intra-prediction and methods for performing the same
KR1020130002871A
Intra prediction method and encoding apparatus and decoding apparatus using same
KR102427824B1
Conveyor Controller based on Non PLC
KR102508543B1
