CN113891094A - Method and apparatus for predicting residual signal - Google Patents
Method and apparatus for predicting residual signal Download PDFInfo
- Publication number
- CN113891094A CN113891094A CN202111287890.5A CN202111287890A CN113891094A CN 113891094 A CN113891094 A CN 113891094A CN 202111287890 A CN202111287890 A CN 202111287890A CN 113891094 A CN113891094 A CN 113891094A
- Authority
- CN
- China
- Prior art keywords
- block
- prediction
- residual signal
- current block
- intra
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 183
- 239000013074 reference sample Substances 0.000 claims description 148
- 238000005070 sampling Methods 0.000 claims description 62
- 230000008569 process Effects 0.000 abstract description 18
- 230000033001 locomotion Effects 0.000 description 85
- 238000013139 quantization Methods 0.000 description 50
- 239000000523 sample Substances 0.000 description 48
- 230000006870 function Effects 0.000 description 38
- 239000013598 vector Substances 0.000 description 37
- 230000007423 decrease Effects 0.000 description 23
- 238000001914 filtration Methods 0.000 description 23
- 238000010586 diagram Methods 0.000 description 22
- 238000005192 partition Methods 0.000 description 17
- 238000000638 solvent extraction Methods 0.000 description 13
- 208000037170 Delayed Emergence from Anesthesia Diseases 0.000 description 12
- 230000015654 memory Effects 0.000 description 12
- 230000009466 transformation Effects 0.000 description 8
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 description 6
- 230000003247 decreasing effect Effects 0.000 description 5
- 238000005457 optimization Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 230000003252 repetitive effect Effects 0.000 description 5
- 230000001131 transforming effect Effects 0.000 description 5
- 230000003044 adaptive effect Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 239000011159 matrix material Substances 0.000 description 3
- 230000002457 bidirectional effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000009499 grossing Methods 0.000 description 2
- 230000005055 memory storage Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012805 post-processing Methods 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 230000002441 reversible effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 241000023320 Luma <angiosperm> Species 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- OSWPMRLSEDHDFF-UHFFFAOYSA-N methyl salicylate Chemical group COC(=O)C1=CC=CC=C1O OSWPMRLSEDHDFF-UHFFFAOYSA-N 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/593—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/103—Selection of coding mode or of prediction mode
- H04N19/105—Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/129—Scanning of coding units, e.g. zig-zag scan of transform coefficients or flexible macroblock ordering [FMO]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/132—Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/134—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
- H04N19/157—Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/17—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
- H04N19/176—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/46—Embedding additional information in the video signal during the compression process
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
A method and apparatus for predicting a residual signal are disclosed. An encoding method and an encoding apparatus additionally predict a residual signal of a current block by using residual signals of neighboring blocks, thereby generating a predicted residual signal. A decoding method and a decoding apparatus use residual signals of neighboring blocks that have been reconstructed in generating a reconstructed block of a current block. In the encoding and decoding processes, values of prediction samples used to generate the prediction block may be updated before the prediction block is generated. The coding efficiency can be improved by prediction of the residual signal and updating of the predicted samples.
Description
The present application is a divisional application of the invention patent application having an application date of 2016, month 02 and day 01, application number of "201680074812.8", entitled "method and apparatus for predicting a residual signal".
Technical Field
The following embodiments generally relate to an image decoding method, a decoding apparatus, an encoding method, and an encoding apparatus, and more particularly, to a method and apparatus for predicting a residual signal.
Background
With the continuous development of the information and communication industry, broadcasting services having High Definition (HD) resolution have been popularized throughout the world. With this popularity, a large number of users have become accustomed to high resolution and high definition images.
In order to meet the demand of users for high definition, a large number of mechanisms have accelerated the development of next-generation imaging devices. In addition to the increasing interest of users in high definition TV (hdtv) and Full High Definition (FHD) TV, the interest in Ultra High Definition (UHD) TV, which has a resolution more than four times that of full high definition (FUD) TV, has also increased. With this increase in interest, image encoding/decoding techniques for images with higher resolution and higher definition are required.
The image encoding/decoding apparatus and method may use an inter prediction technique, an intra prediction technique, an entropy encoding technique, etc. in order to perform encoding/decoding on high resolution and high definition images. The inter prediction technique may represent a technique for predicting values of pixels included in a current picture using temporally previous pictures and/or temporally subsequent pictures. Intra prediction may refer to a technique for predicting values of pixels included in a current picture using information on other pixels in the current picture. Entropy coding techniques may represent techniques for assigning short codes to more frequently occurring symbols and long codes to less frequently occurring symbols.
In encoding and decoding of an image, prediction may mean generating a prediction signal similar to an original signal. Predictions can be classified primarily as: prediction for reference to spatially reconstructed images, prediction for reference to temporally reconstructed images, and prediction related to other symbols.
Intra-prediction may refer to a prediction technique that allows only spatial reference. The current block may be a block that is a target to be currently encoded. Intra prediction may be a method for predicting a current block by referring to previously reconstructed reference samples adjacent to the current block.
In intra prediction, each neighboring reference sample may have a luminance value that is predicted and reconstructed, instead of the luminance value of the original image, and may have a value before applying post-processing filtering. Since the reference samples have been previously encoded and reconstructed, the reference samples can be used for predicting the current block in the encoder and the decoder.
However, conceptually, intra prediction may be effective only in a flat area where continuity with neighboring reference signals exists and an area having uniform directivity. In an area having no intra image attribute, the encoding efficiency of intra prediction may be greatly deteriorated as compared with the encoding efficiency of inter prediction. In particular, in image coding, there may occur a case where: it is necessary to encode the first picture using only intra prediction, and it is necessary to encode a certain picture using only intra prediction to improve random access and error robustness. Therefore, a method capable of improving the coding efficiency of intra prediction is required.
Disclosure of Invention
Technical problem
An embodiment is to provide a method and apparatus for updating reference samples for intra prediction to be as close as possible to a current block that is a target to be encoded to improve encoding efficiency of intra prediction.
Another embodiment is to provide a method and apparatus for predicting a residual signal of a current block using residual signals of neighboring blocks, the encoding or decoding of which has been completed.
Solution scheme
According to an aspect, there is provided an image encoding method including: generating a first residual signal of the current block based on residual signals of first neighboring blocks of the current block; encoding of the current block is performed using the first residual signal of the current block.
The image encoding method may also include generating a second residual signal of the current block.
The second residual signal may be a difference between the current block and a prediction block of the current block.
The first residual signal may be generated based on both the second residual signal and the residual signal of the first neighboring block.
The first residual signal may be generated based on a difference between the second residual signal and a residual signal of the first neighboring block.
The first residual signal may be a difference between the second residual signal and a residual signal of the first neighboring block.
The image encoding method may further include determining whether to perform residual signal prediction.
The step of generating a first residual signal of the current block may be performed when it is determined to perform residual signal prediction.
The image encoding method may further include encoding information indicating whether to perform residual signal prediction.
The image encoding method may further include encoding an identifier of the first neighboring block.
According to another aspect, there is an image decoding method including: a prediction block for the current block is generated.
Generating a reconstructed block of the current block based on the prediction block, the residual signal of the current block, and the residual signal of a first neighboring block of the current block.
The reconstructed block may be generated based on a sum of a residual signal of the current block and a residual signal of the first neighboring block.
The reconstructed block may be a sum of the prediction block of the current block, a residual signal of the current block, and a residual signal of the first neighboring block.
The image decoding method may also include generating a residual signal of the current block.
The image decoding method may also include identifying a first neighboring block.
The first neighboring block may be identified by an identifier of the first neighboring block.
When the identifier of the first neighboring block does not exist, the block selected according to the predefined scheme may be identified as the first neighboring block.
The image decoding method may also include updating values of reference samples used to generate the prediction block.
According to another aspect, there is provided an image decoding method including: determining values of reference samples based on neighboring blocks of the current block; generating a prediction block for the current block using the reference samples.
The values of the reference samples may be determined based on the gradient patterns of the neighboring blocks.
When the gradient pattern is symmetric, the values of the reference sample points may be determined based on gradient values of two symmetric rows in the gradient pattern.
The value of the reference sample may be determined based on a gradient between two adjacent reference samples of the plurality of reference samples belonging to a single row in the neighboring block.
The step of determining the value of the reference sample may be configured such that the value of the reference sample is changed from a value before being updated to a value after being updated.
The pre-updated value may be a value generated when a block including the reference sample is predicted and reconstructed.
When the intra prediction mode of the current block is a horizontal prediction mode, the reference sample point may be a left neighboring sample point of the current block, and the neighboring block is a block obtained by adding an upper neighboring block of the current block to an upper left neighboring block of the current block.
According to another aspect, there is provided an image encoding method including: determining values of reference samples based on neighboring blocks of the current block; generating a prediction block for the current block using the reference samples.
Advantageous effects
A method and apparatus for updating reference samples for intra prediction to be as close as possible to a current block that is a target to be encoded to improve encoding efficiency of intra prediction are provided.
Also, a method and apparatus for predicting a residual signal of a current block using residual signals of neighboring blocks, which have completed encoding or decoding, are provided.
Drawings
Fig. 1 is a block diagram showing a configuration of an embodiment of an encoding apparatus to which the present invention is applied;
fig. 2 is a block diagram showing the configuration of an embodiment of a decoding apparatus to which the present invention is applied;
fig. 3 is a diagram schematically showing a partition structure of an image when the image is encoded and decoded;
fig. 4 to 11 are diagrams illustrating the shape of a Prediction Unit (PU) that can be included in a Coding Unit (CU);
fig. 12 is a diagram illustrating a shape of a Transform Unit (TU) that can be included in a CU;
FIG. 13 is a diagram illustrating an embodiment of an intra prediction process;
FIG. 14 is a diagram illustrating an embodiment of an inter prediction process;
fig. 15 is a configuration diagram of an encoding device according to an embodiment;
fig. 16 and 17 are flowcharts showing an encoding method according to the embodiment;
fig. 18 is a flowchart showing an encoding method according to the embodiment;
fig. 19 is a flowchart illustrating a reference sampling point updating method according to an embodiment;
fig. 20 is a flowchart illustrating a reference signal prediction method according to an embodiment;
FIG. 21 is a flowchart illustrating a current block encoding method according to an embodiment;
FIG. 22 illustrates a current block and reference samples according to an example;
FIG. 23 illustrates a method for updating reference samples in view of horizontal gradients of neighboring blocks, according to an example;
FIG. 24 illustrates a method for obtaining a gradient pattern according to an example;
FIG. 25 illustrates a method for updating reference samples in view of vertical gradients of neighboring blocks, according to an example;
fig. 26 illustrates intra prediction with 33 angular modes according to an example;
fig. 27 illustrates intra prediction with 65 angular modes according to an example;
FIG. 28 illustrates an image region according to an example;
fig. 29 illustrates a method for calculating residual signals of neighboring blocks according to an example;
FIG. 30 illustrates a method for calculating a residual signal of a current block according to an example;
fig. 31 illustrates a residual signal prediction method according to an example;
fig. 32 shows a default residual signal according to an example;
fig. 33 shows the result of performing a discrete cosine transform on a default residual signal according to an example;
fig. 34 shows a proposed residual signal according to an example;
fig. 35 shows the result of performing a discrete cosine transform on the proposed residual signal according to an example;
FIG. 36 illustrates locations of neighboring blocks according to an example;
fig. 37 is a configuration diagram of a decoding apparatus according to an embodiment;
fig. 38 and 39 are flowcharts showing a decoding method according to the embodiment;
fig. 40 is a flowchart illustrating a residual signal generating method according to an embodiment;
FIG. 41 is a flowchart illustrating a current block decoding method using a residual signal according to an embodiment;
fig. 42 is a flowchart illustrating a prediction block generating method according to an embodiment;
FIG. 43 is a flow chart illustrating a reconstructed block generation method according to an embodiment;
fig. 44 is a configuration diagram of an electronic device in which an encoding apparatus according to the embodiment is implemented;
fig. 45 is a configuration diagram of an electronic device in which a decoding apparatus according to an embodiment is implemented.
Best mode for carrying out the invention
The following exemplary embodiments will be described in detail with reference to the accompanying drawings showing specific embodiments. These embodiments are described so that those of ordinary skill in the art to which this disclosure pertains will be readily able to practice them. It should be noted that the various embodiments are distinct from one another, but are not necessarily mutually exclusive. For example, with respect to one embodiment, a particular shape, structure, and characteristic described herein may be implemented as other embodiments without departing from the spirit and scope of the embodiments. In addition, it is to be understood that the location or arrangement of individual components within each disclosed embodiment can be modified without departing from the spirit and scope of the embodiments. Therefore, the appended detailed description is not intended to limit the scope of the disclosure, and the scope of exemplary embodiments is defined only by the appended claims and equivalents thereof, as they are properly described.
In the drawings, like numerals are used to designate the same or similar functions in various respects. The shapes, sizes, and the like of components in the drawings may be exaggerated for clarity of the description.
It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may be present. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. It should be noted that, in the exemplary embodiments, the expression for describing a component "including" a specific component means that another component may be included in a practical range or a technical spirit of the exemplary embodiments, but does not exclude components other than the specific component from being present.
Terms such as "first" and "second" may be used to describe various elements, but the elements are not limited by the terms. The terms are only used to distinguish one element from another. For example, a first element could be termed a second element without departing from the scope of the present invention. Similarly, a second element may be termed a first element.
Further, the component modules described in the embodiments of the present invention are independently illustrated to represent different characteristic functions, but this does not mean that each component module is formed of a separate hardware or software. That is, for convenience of description, the element module is arranged and included, and at least two element units may form one element unit, or one element may be divided into a plurality of element units, and the plurality of element units may perform functions. Embodiments in which elements are integrated or embodiments in which some elements are separated are included in the scope of the present invention as long as they do not depart from the essence of the present invention.
Further, in the present invention, some elements are not essential elements for performing essential functions, but may be optional elements for only improving performance. The present invention may be implemented using only necessary elements for implementing the essence of the present invention, excluding elements for only improving performance, and a structure including only necessary elements and excluding optional elements for only improving performance is included in the scope of the present invention.
Embodiments of the present invention are described in detail with reference to the accompanying drawings so that those skilled in the art to which the present invention pertains can easily practice the present invention. In the following description of the present invention, a detailed description of known functions or configurations incorporated herein will be omitted when it may make the subject matter of the present invention rather unclear.
Hereinafter, "image" may represent a single picture constituting a part of a video, or may represent the video itself. For example, "encoding and/or decoding of an image" may mean "encoding and/or decoding of a video", and may also mean "encoding and/or decoding of any one of a plurality of images constituting a video".
First, terms used in the embodiments will be described below.
A unit: it may be a region generated by partitioning one image when encoding and decoding the image. A single image may be partitioned into multiple cells. In encoding and decoding an image, a predefined process may be performed for each unit. Units such as blocks, macroblocks, Coding Units (CUs), Prediction Units (PUs), and Transform Units (TUs) are used according to functions. A single cell may be further partitioned into lower level cells having a size smaller than the size of the cell.
The block partition information may comprise information on the depth of the cell. The depth information may indicate the number of times and/or degree to which the unit is partitioned.
A single cell may be hierarchically partitioned into a plurality of lower level cells, while the plurality of lower level cells have tree structure based depth information. In other words, a cell and a lower level cell generated by partitioning the cell may correspond to a node and a child node of the node, respectively. Each partitioned lower level cell may have depth information. The depth information of a cell indicates the number of times and/or degree to which the cell is partitioned, and thus, the partition information of a lower cell may include information on the size of the lower cell.
In the tree structure, the top node may correspond to the initial node before partitioning. The top node may be referred to as the "root node". Further, the root node may have a minimum depth value. Here, the depth of the top node may be level "0".
A node with a depth of level "1" may represent a unit that is generated when an initial unit is partitioned once. A node with a depth of level "2" may represent a unit that is generated when an initial unit is partitioned twice.
A leaf node with a depth of level "3" may represent a unit generated when an initial unit is partitioned three times. The leaf node may be the bottom node and may have the largest depth value.
-a block: the block may be a matrix of M × N samples, where M and N may each be a positive integer. A block may generally represent an array of two-dimensional (2D) samples, and each sample may be a pixel or a pixel value.
-a Transform Unit (TU): a TU may be a basic unit of residual signal encoding and/or residual signal decoding, such as transform, inverse transform, quantization, inverse quantization, transform coefficient encoding, and transform coefficient decoding. A single TU may be partitioned into multiple TUs, wherein each TU of the multiple TUs has a smaller size.
-a set of parameters: the parameter set may correspond to information regarding a header of a structure of the bitstream. For example, the parameter sets may include sequence parameter sets, picture parameter sets, adaptation parameter sets, and the like.
-rate distortion optimization: the encoding apparatus may use rate-distortion optimization to provide higher encoding efficiency by utilizing a combination of: the size of the CU, the prediction mode, the size of the prediction unit, the motion information, and the size of the TU.
The rate-distortion optimization scheme may calculate rate-distortion costs for each combination to select an optimal combination from the combinations. The rate-distortion cost may be calculated using equation 1 below. In general, the combination that minimizes the rate-distortion cost can be selected as the optimal combination under the rate-distortion optimization method.
[ equation 1]
D+λ*R
Here, D may represent distortion. D may be the average of the squares of the differences between the original transform coefficients and the reconstructed transform coefficients in the transform block (mean square error).
R denotes a code rate, which can represent a bit rate using relevant context information.
λ represents the lagrange multiplier. R may include not only coding parameter information such as a prediction mode, motion information, and a coding block flag, but also bits generated as a result of coding transform coefficients.
The encoding apparatus performs processes such as inter-prediction and/or intra-prediction, transformation, quantization, entropy coding, inverse quantization, and inverse transformation in order to calculate accurate D and R, but these processes may greatly increase the complexity of the encoding apparatus.
Fig. 1 is a block diagram showing the configuration of an embodiment of an encoding apparatus to which the present invention is applied.
The encoding apparatus 100 may be a video encoding apparatus or an image encoding apparatus. A video may comprise one or more images (pictures). The encoding apparatus 100 may sequentially encode one or more pictures of a video over time.
Referring to fig. 1, the encoding apparatus 100 includes a motion prediction unit 111, a motion compensation unit 112, an intra prediction unit 120, a switch 115, a subtractor 125, a transform unit 130, a quantization unit 140, an entropy encoding unit 150, an inverse quantization unit 160, an inverse transform unit 170, an adder 175, a filtering unit 180, and a reference picture buffer 190.
The encoding apparatus 100 may perform encoding on an input image in an intra mode and/or an inter mode. Also, the encoding apparatus 100 may generate a bitstream by encoding an input image, and may output the generated bitstream. The switch 115 may switch to the intra mode when the intra mode is used, whereas the switch 115 may switch to the inter mode when the inter mode is used.
The encoding apparatus 100 may generate a prediction block for an input block in an input image. Further, after the prediction block is generated, the encoding apparatus 100 may encode a residual between the input block and the prediction block. The input image may be referred to as a "current image" as a target to be currently encoded. An input block may be referred to as a "current block" as a target to be currently encoded.
When the prediction mode is an intra mode, the intra prediction unit 120 may use pixel values of previously encoded neighboring blocks around the current block as reference pixels. The intra prediction unit 120 may perform spatial prediction using the reference pixels and generate prediction samples for the input block via spatial prediction.
When the prediction mode is an inter mode, the motion prediction unit 111 may search for a region that best matches the input block in the reference image in the motion prediction process, and may derive a motion vector using the found region. The reference image may be stored in the reference picture buffer 190. More specifically, when encoding and/or decoding of a reference image is processed, the reference image may be stored in the reference picture buffer 190.
The motion compensation unit 112 may generate the prediction block by performing motion compensation using the motion vector. Here, the motion vector may be a two-dimensional (2D) vector for inter prediction. In addition, the motion vector may represent an offset between the current picture and the reference picture.
The transform unit 130 may generate transform coefficients by transforming the residual block, and may output the transform coefficients. Here, the transform coefficient may be a coefficient value generated by transforming the residual block. When the transform skip mode is used, the transform unit 130 may omit an operation of transforming the residual block.
By performing quantization on the transform coefficients, quantized transform coefficient levels may be generated. Here, in the embodiment, the quantized transform coefficient level may also be referred to as a "transform coefficient".
The quantization unit 140 may generate quantized transform coefficient levels by quantizing the transform coefficients according to a quantization parameter, and may output the quantized transform coefficient levels. In this case, the quantization unit 140 may quantize the transform coefficient using a quantization matrix.
The entropy encoding unit 150 may generate a bitstream by performing probability distribution-based entropy encoding on the values calculated by the quantization unit 140 or on encoding parameter values calculated in an encoding process, and may output the bitstream.
In addition to the pixel information of the image, the entropy encoding unit 150 may perform entropy encoding on information required to decode the image. For example, information required for decoding an image may include syntax elements and the like.
The encoding parameters may be information required for encoding and/or decoding. The encoding parameters may include information encoded by the encoding apparatus and transmitted to the decoding apparatus, and may also include information derived in the encoding or decoding process. For example, the information transmitted to the decoding apparatus may include a syntax element.
For example, the encoding apparatus may include values or statistical information such as a prediction mode, a motion vector, a reference picture index, a coded block pattern, the presence or absence of a residual signal, a transform coefficient, a quantized transform coefficient, a quantization parameter, a block size, and block partition information. The prediction mode may be an intra prediction mode or an inter prediction mode.
The residual signal may represent the difference between the original signal and the predicted signal. Alternatively, the residual signal may be a signal generated by transforming a difference between the original signal and the prediction signal. Alternatively, the residual signal may be a signal generated by transforming and quantizing the difference between the original signal and the prediction signal. The residual block may be a block-based residual signal.
When entropy coding is applied, fewer bits may be allocated to more frequently occurring symbols and more bits may be allocated to less frequently occurring symbols. Since the symbols are represented by this allocation, the size of the bit string for the target symbol to be encoded can be reduced. Accordingly, the compression performance of video encoding can be improved by entropy encoding.
In addition, for entropy encoding, an encoding method such as exponential golomb, context-adaptive variable length coding (CAVLC), or context-adaptive binary arithmetic coding (CABAC) may be used. For example, entropy encoding unit 150 may perform entropy encoding using a variable length coding/code (VLC) table. For example, the entropy encoding unit 150 may derive a binarization method for the target symbol. Furthermore, entropy encoding unit 150 may derive a probability model for the target symbol/bin. The entropy encoding unit 150 may perform entropy encoding using the derived binarization method or probability model.
When the encoding apparatus 100 performs encoding via inter prediction, the encoded current picture may be used as a reference picture for another picture to be subsequently processed. Accordingly, the encoding apparatus 100 may decode the encoded current picture and store the decoded picture as a reference picture. For decoding, inverse quantization and inverse transformation of the encoded current image may be performed.
The quantized coefficients may be inverse quantized by inverse quantization unit 160 and inverse transformed by inverse transformation unit 170. The coefficients that have been inverse quantized and inverse transformed may be added to the prediction block by adder 175. The inverse quantized and inverse transformed coefficients and the prediction block are added, and then a reconstructed block may be generated.
The reconstructed block is filtered via the filtering unit 180. Filtering unit 180 may apply one or more of a deblocking filter, a Sample Adaptive Offset (SAO) filter, and an Adaptive Loop Filter (ALF) to the reconstructed block or reconstructed picture. The filtering unit 180 may also be referred to as an "adaptive in-loop filter".
The deblocking filter may remove block distortion occurring at the boundary of the block. The SAO filter may add appropriate offset values to the pixel values in order to compensate for the coding error. The ALF may perform filtering based on the comparison between the reconstructed block and the original block. The reconstructed block that has been filtered by the filtering unit 180 may be stored in the reference picture buffer 190.
Fig. 2 is a block diagram showing the configuration of an embodiment of a decoding apparatus to which the present invention is applied.
The decoding apparatus 200 may be a video decoding apparatus or an image decoding apparatus.
Referring to fig. 2, the decoding apparatus 200 may include an entropy decoding unit 210, an inverse quantization unit 220, an inverse transform unit 230, an intra prediction unit 240, a motion compensation unit 250, an adder 255, a filtering unit 260, and a reference picture buffer 270.
The decoding apparatus 200 may receive the bitstream output from the encoding apparatus 100. The decoding apparatus 200 may perform decoding on the bitstream in an intra mode or an inter mode. Further, the decoding apparatus 200 may generate a reconstructed image via decoding, and may output the reconstructed image.
When the prediction mode for decoding is an intra mode, the switch may be operated to switch to the intra mode. When the prediction mode for decoding is an inter mode, the switch may be operated to switch to the inter mode.
The decoding apparatus 200 may acquire a reconstructed residual block from an input bitstream and may generate a prediction block. When the reconstructed residual block and the prediction block are acquired, the decoding apparatus 200 may generate a reconstructed block by adding the reconstructed residual block to the prediction block.
The entropy-decoding unit 210 may generate symbols by performing entropy-decoding based on probability distribution on the bitstream. The generated symbols may comprise quantized coefficient format symbols. Here, the entropy decoding method may be similar to the entropy encoding method described above. That is, the entropy decoding method may be the inverse process of the entropy encoding method described above.
The quantized coefficients may be inverse quantized by the inverse quantization unit 220 and inverse transformed by the inverse transformation unit 230. As a result of inverse quantization and inverse transformation of the quantized coefficients, a reconstructed residual block may be generated. Here, the inverse quantization unit 220 may apply a quantization matrix to the quantized coefficients.
When using the intra mode, the intra prediction unit 240 may generate a prediction block by performing spatial prediction using pixel values of previously encoded neighboring blocks around the current block. When the inter mode is used, the motion compensation unit 250 may generate a prediction block by performing motion compensation using a motion vector and a reference image stored in the reference picture buffer 270.
The reconstructed residual block and the prediction block may be added to each other by an adder 255. A block generated when the reconstructed residual block and the prediction block are added to each other may be filtered by the filtering unit 160. The filtering unit 260 may apply one or more of a deblocking filter, an SAO filter, and an ALF to the reconstructed block or the reconstructed picture. The filtering unit 260 may output a reconstructed picture (block). The reconstructed picture may be stored in the reference picture buffer 270 and then may be used for inter prediction.
Fig. 3 is a diagram schematically showing a partition structure of an image when the image is encoded and decoded.
In order to efficiently partition an image, a Coding Unit (CU) may be used in encoding and decoding. The term "unit" may be a term that generically refers to a block that includes 1) syntax elements and 2) picture samples. For example, "partition of a unit" may represent "partition of a block corresponding to the unit".
Referring to fig. 3, a picture 300 is sequentially partitioned in units of a maximum coding unit (LCU), and a partition structure of the picture 300 is determined based on the LCU. Here, "LCU" may be used to have the same meaning as a Coding Tree Unit (CTU).
The partition structure may represent the distribution of CUs in LCU 310. A CU may be a unit required to efficiently encode an image. Such a distribution may be determined according to whether a single CU is partitioned into four CUs. The width and length of a CU generated by performing partitioning may be half the length and width, respectively, of the CU before performing partitioning. Each partitioned CU may be recursively partitioned into four CUs, and in the same manner, the width and length of the four CUs are half the length and width of the respective CUs.
At this point, partitioning of the CU may be performed recursively until a predetermined depth. The depth information may be information indicating a size of the CU. Further, depth information is stored for each CU. For example, the depth of an LCU may be 0 and the depth of a minimum coding unit (SCU) may be a predefined maximum depth. Here, as described above, the LCU may be a coding unit having the largest coding unit size, and the SCU may be a coding unit having the smallest coding unit size.
Partitioning begins at LCU 310, and the depth of a CU is increased by "1" by partitioning each time the width and length of the CU is halved. At each depth, a CU that is not partitioned may have a size of 2N × 2N. In the case where a CU is partitioned, a CU of size 2N × 2N may be partitioned into four CUs each of size N × N. The dimension N is halved each time the depth is increased by 1.
Referring to fig. 3, the size of an LCU having a depth of 0 may be 64 × 64 pixels. "0" may be a minimum depth. The size of an SCU with a depth of 3 may be 8 × 8 pixels, where 3 may be the maximum depth. Here, a CU of 64 × 64 pixels corresponding to an LCU may be represented by a depth of 0. A CU of 32 × 32 pixels may be represented by depth 1. A CU of 16 × 16 pixels may be represented by depth 2. A CU of 8 × 8 pixels corresponding to an SCU may be represented by depth 3.
Further, the information on whether the CU is partitioned or not may be represented by partition information of the CU. The partition information may be one bit of information. All CUs except the SCU may have partition information. For example, when the value of the partition information is 0, the CU may not be partitioned, and conversely, when the value of the partition information is 1, the CU may be partitioned.
Fig. 4 to 11 are diagrams illustrating the shape of a Prediction Unit (PU) that can be included in a Coding Unit (CU).
Among CUs partitioned from the LCU, each CU that is no longer partitioned may be partitioned into one or more PUs. This process may also be referred to as "partitioning".
A PU may be the basic unit of prediction. The PU may be encoded and decoded in any one of a skip mode, an inter mode, and an intra mode. The PUs may be divided into various shapes according to the mode.
As shown in fig. 4, in the skip mode, partitioning may not be performed in a CU. In the skip mode, a 2N × 2N mode 410 having the same size as a CU may be supported.
In the inter mode, eight different shapes into which a CU can be divided may be supported. For example, in the inter mode, a 2N × 2N mode 410, a 2N × N mode 415, an N × 2N mode 420, an N × N mode 425, a 2N × nU mode 430, a 2N × nD mode 440, an nL × 2N mode 445, and an nR × 2N mode 450 may be supported.
In intra mode, a 2N × 2N mode 410 and an N × N mode 425 may be supported.
Fig. 12 is a diagram illustrating the shape of a Transform Unit (TU) that can be included in a CU.
A TU may be a basic unit in a CU for transform, quantization, inverse transform, and inverse quantization processes. The TU may have a square or rectangular shape.
Among CUs partitioned from an LCU, each CU that is no longer partitioned into CUs may be divided into one or more TUs. At this time, the partition structure of the TU may be a quad-tree structure. For example, as shown in fig. 12, a single CU 510 may be partitioned one or more times according to a quadtree structure. With such partitioning, a single CU 510 may be composed of TUs having various sizes.
Fig. 13 is a diagram illustrating an embodiment of an intra prediction process.
The number of intra prediction modes may be fixed at 35 regardless of the size of the prediction unit.
As shown in fig. 13, the prediction modes may include two non-directional modes and 33 directional modes. The two non-directional modes may include a DC mode and a planar mode.
The number of prediction modes may be different according to the types of color components. For example, the number of prediction modes may be different depending on whether the color component is a luminance (luma) signal or a chrominance (chroma) signal.
The PU may have a square shape with dimensions of nxn or 2 nx2N. The nxn sizes may include sizes 4 × 4, 8 × 8, 16 × 16, 32 × 32, and 64 × 64. The PU unit may have a size of at least one of a CU, a PU, and a TU.
The intra-frame encoding and/or decoding may be performed using sample values or encoding parameters included in adjacent reconstruction units.
Fig. 14 is a diagram illustrating an embodiment of an inter prediction process.
The rectangle shown in fig. 14 may represent an image (or picture). Further, the arrows in fig. 14 may indicate the prediction directions. That is, the image may be encoded and/or decoded according to the prediction direction.
According to the encoding type, respective images (or pictures) can be classified into an intra picture (I picture), a unidirectional predicted picture (P picture), and a bidirectional predicted picture (B picture). Each picture may be encoded according to the coding type of the picture.
When the image to be encoded is an I picture, the image itself may be encoded without performing inter prediction. When the picture to be encoded is a P picture, the picture can be encoded via inter prediction using only a reference picture in a forward direction. When the image to be encoded is a B picture, the image may be encoded using inter prediction using reference pictures in both forward and reverse directions, and may be encoded via inter prediction using reference pictures in either one of the forward and reverse directions.
An image of a P picture and a B picture that are encoded and/or decoded using a reference image may be regarded as an image using inter prediction.
In the following description, inter prediction according to an embodiment will be described in detail.
Inter prediction may be performed using a reference picture and motion information. Further, inter prediction may be performed using the skip mode described above.
The reference picture may be at least one of a picture preceding the current picture and a picture following the current picture. Here, the inter prediction may be prediction performed on a block of the current picture based on a reference picture. Here, the reference picture may be an image for predicting a block.
Here, the area in the reference picture can be specified by using the reference picture index (refIdx) indicating the reference picture and the motion vector, which will be described later.
Inter prediction may be performed by: a reference picture and a reference block corresponding to the current block within the reference picture are selected, and a prediction block for the current block is generated using the selected reference block. The current block may be a block that is a target to be currently encoded or decoded among a plurality of blocks in the current picture.
The motion information may be derived by each of the encoding apparatus 100 and the decoding apparatus 200 during inter prediction. Furthermore, the derived motion information may be used to perform inter prediction.
In this case, each of the encoding apparatus 100 and the decoding apparatus 200 may improve encoding and/or decoding efficiency by using motion information of reconstructed neighboring blocks and/or motion information of co-located blocks (col blocks). The col block may be a block corresponding to the current block in a co-located picture (col picture) that has been reconstructed. The reconstructed neighboring block may be a block that exists in the current picture and has been reconstructed through encoding and/or decoding. Also, the reconstructed neighboring blocks may be neighboring blocks adjacent to the current block and/or blocks located at outer corners of the current block. Here, the block located at an outer corner of the current block may be a block vertically adjacent to a neighboring block horizontally adjacent to the current block, or a block horizontally adjacent to a neighboring block vertically adjacent to the current block.
Each of the encoding apparatus 100 and the decoding apparatus 200 may determine a block existing in a col picture at a position spatially corresponding to the current block, and may determine a predefined relative position based on the determined block. The predefined relative position may be an external and/or internal position in the block that is present at a position spatially corresponding to the current block. Further, each of the encoding apparatus 100 and the decoding apparatus 200 may derive the col block based on the predefined relative position. Here, the col picture may be one of one or more reference pictures included in the reference picture list.
The method for deriving motion information may vary according to the prediction mode of the current block. For example, as a prediction mode applied to inter prediction, there may be an Advanced Motion Vector Predictor (AMVP), a merge mode, and the like.
For example, when AMVP is used as the prediction mode, each of the encoding apparatus 100 and the decoding apparatus 200 may generate the prediction motion vector candidate list using the motion vectors of reconstructed neighboring blocks and/or the motion vectors of col blocks. The reconstructed motion vectors of the neighboring blocks and/or the motion vectors of the col blocks may be used as prediction motion vector candidates.
The bitstream generated by the encoding apparatus 100 may include a prediction motion vector index. The predicted motion vector index may represent a best predicted motion vector selected from among predicted motion vector candidates included in the predicted motion vector candidate list. The predictive motion vector index may be transmitted from the encoding apparatus 100 to the decoding apparatus 200 through a bitstream.
The decoding apparatus 200 may select a predicted motion vector for the current block from among predicted motion vector candidates included in the predicted motion vector candidate list using the predicted motion vector index.
The encoding apparatus 100 may calculate a Motion Vector Difference (MVD) between the motion vector of the current block and the prediction motion vector, and may encode the MVD. The bitstream may include coded MVDs. The MVD may be transmitted from the encoding apparatus 100 to the decoding apparatus 200 through a bitstream. Here, the decoding apparatus 200 may decode the received MVD. The decoding apparatus 200 may derive a motion vector of the current block using the sum of the decoded MVD and the prediction motion vector.
The bitstream may include a reference picture index indicating a reference picture, or the like. The reference picture index may be transmitted from the encoding apparatus 100 to the decoding apparatus 200 through a bitstream. The decoding apparatus 200 may predict a motion vector of the current block using motion information of a plurality of neighboring blocks, and may derive the motion vector of the current block using a difference between the predicted motion vector and the motion vector. The decoding apparatus 200 may generate a prediction block for the current block based on information on the derived motion vector and the reference picture index.
As another example of a method for deriving motion information, a merging method is used. The term "merging" may denote merging of motions of a plurality of blocks. "merging" may mean that motion information of one block is also applied to other blocks. When the merging is applied, each of the encoding apparatus 100 and the decoding apparatus 200 may generate a merge candidate list using pieces of motion information of respective reconstructed neighboring blocks and/or motion information of a col block. The motion information may include at least one of: 1) motion vector, 2) index of reference picture and 3) prediction direction. The prediction direction may be unidirectional information or bidirectional information.
At this time, the merging may be applied on a CU basis or a PU basis. When the merging is performed on a CU basis or a PU basis, the encoding apparatus 100 may transmit predefined information to the decoding apparatus 200 through a bitstream. The bitstream may include predefined information. The predefined information may include: 1) information indicating whether merging is performed for each block partition, and 2) information indicating with which block of neighboring blocks adjacent to the current block merging is to be performed. For example, the neighboring blocks around the current block may include a left block adjacent to the current block, an upper block adjacent to the current block, a block temporally adjacent to the current block, and the like.
The merge candidate list may represent a list in which a plurality of pieces of motion information are stored. Further, the merge candidate list may be generated before performing the merge. The motion information stored in the merge candidate list may be 1) motion information of a neighboring block adjacent to the current block or 2) motion information of a block (co-located block) corresponding to the current block in a reference picture. Further, the motion information stored in the merge candidate list may be new motion information generated via a combination of pieces of motion information previously existing in the merge candidate list.
The skip mode may be a mode in which information of a neighboring block is applied to the current block without change. The skip mode may be one of a plurality of modes for inter prediction. When the skip mode is used, the encoding apparatus 100 may transmit only information indicating the following motion blocks to the decoding apparatus 200 through the bitstream: the motion information of the motion block will be used as the motion information of the current block. The encoding apparatus 100 may not transmit additional information to the decoding apparatus 200. For example, the further information may be syntax information. The syntax information may include information on a motion vector difference.
In the following embodiments, residual signal prediction is described. Generally, in existing image coding and/or decoding techniques, such as High Efficiency Video Coding (HEVC) or Advanced Video Coding (AVC), a residual signal of a current block is generated in order to encode and/or decode the current block. When the residual signal of the current block is generated, a residual signal predicted again by residual signal prediction, which is performed using the residual signal of a block adjacent to the current block, may be generated.
Residual signal prediction may aim at predicting a residual signal of a current block using residual signals of neighboring blocks. Alternatively, the residual signal prediction may aim at using a difference between a residual signal of the current block and a residual signal of an adjacent block as a residual signal of the current block.
The residual signal acquired through residual signal prediction may have advantages from the viewpoint of coding efficiency, compared to the residual signal acquired using the existing intra prediction method. For example, the number of bits occurring for the residual signal can be reduced by using the residual signal acquired through the residual signal prediction.
In the following embodiments, a residual signal acquired through residual signal prediction may be referred to as a "first residual signal", and a residual signal acquired using an existing intra prediction method may be referred to as a "second residual signal".
Further, in the following embodiments, updating of the reference sampling points will be described. The reference samples are used to generate a prediction block. Accordingly, when the reference sample point has a characteristic similar to the attribute of the predicted current block (which is a target of encoding or decoding), the efficiency of encoding or decoding may be improved. In the following description, an embodiment for updating reference samples according to a predetermined condition before generating a prediction block will be described below.
Fig. 15 is a configuration diagram of an encoding apparatus according to an embodiment.
The encoding apparatus 800 may correspond to the encoding apparatus 100 described above. The encoding apparatus 800 may include a motion prediction unit 111, a motion compensation unit 112, an intra prediction unit 120, a switch 115, a subtractor 125, a transformation unit 130, a quantization unit 140, an entropy encoding unit 150, an inverse quantization unit 160, an inverse transformation unit 170, an adder 175, a filtering unit 180, and a reference picture buffer 190, and may further include an intra residual prediction unit 810.
The motion prediction unit 111, the motion compensation unit 112, the intra prediction unit 120, the switch 115, the subtractor 125, the transform unit 130, the quantization unit 140, the entropy encoding unit 150, the inverse quantization unit 160, the inverse transform unit 170, the adder 175, the filtering unit 180, and the reference picture buffer 190 may perform the same functions and/or operations as those described above with reference to fig. 1. A repetitive description thereof will be omitted.
Also, the motion prediction unit 111, the motion compensation unit 112, the intra prediction unit 120, the switch 115, the subtractor 125, the transform unit 130, the quantization unit 140, the entropy encoding unit 150, the inverse quantization unit 160, the inverse transform unit 170, the adder 175, the filtering unit 180, and the reference picture buffer 190 may perform functions and/or operations related to the intra residual prediction unit 810. The functions and/or operations of the motion compensation unit 112, the intra prediction unit 120, the switch 115, the subtractor 125, the transform unit 130, the quantization unit 140, the entropy encoding unit 150, the inverse quantization unit 160, the inverse transform unit 170, the adder 175, the filtering unit 180, the reference picture buffer 190, and the intra residual prediction unit 810 will be described in detail below.
The intra residual prediction unit 810 may not be separated from the intra prediction unit 120. The intra prediction unit 120 and the intra residual prediction unit 810 may be integrated as the intra prediction unit 120. In an embodiment, the functions and/or operations described as being performed by the intra residual prediction unit 810 may also be performed by the intra prediction unit 120.
Further, the decoding apparatus 2300 corresponding to the encoding apparatus 800 according to the embodiment will be described in detail later with reference to fig. 37.
Fig. 16 and 17 are flowcharts illustrating an encoding method according to an embodiment.
In the following description, the current block may be a block that is a target to be currently encoded or a block in a current image.
First, referring to FIG. 16, step 910 may be performed.
Prior to performing step 910, reference samples may be generated. The generation of the reference samples according to an example will be described in detail later with reference to fig. 22.
In generating the reference samples, a reference sample generation method based on an existing image coding and/or decoding technique (such as HEVC or AVC) may be used.
In step 910, the intra prediction unit 120 may determine whether to perform the update of the reference samples. Here, the updating of the reference samples may be configured to refine sample values of the reference samples used to generate the prediction block before generating the prediction block for the current block.
When it is determined that the updating of the reference spots is performed, step 915 may be performed. On the other hand, when it is determined that the update of the reference sample point is not performed, steps 920 and 970 may be performed.
In step 915, the intra prediction unit 120 may update the values of the reference samples, and through the update, may determine the values of the reference samples used to generate the prediction block of the current block.
The intra prediction unit 120 may update the value of the reference sample according to the direction pattern of the neighboring samples.
Updating of reference samples according to an example will be described in detail later with reference to fig. 23, 24 and 25.
After step 915 is performed, steps 920 and 970 may be performed.
In step 920, the intra prediction unit 120 may perform intra prediction. The intra prediction unit 120 may generate a prediction block for the current block. The intra prediction unit 120 may generate a prediction block of the current block using the reference samples according to an intra prediction mode for the current block.
For example, in generating a prediction block, a prediction block generation method based on an existing image coding and/or decoding technique (such as HEVC or AVC) may be used.
After step 920 is performed, step 930 may be performed.
In step 930, the intra residual prediction unit 810 may determine whether to perform residual signal prediction.
When it is determined to perform residual signal prediction, steps 935, 940, and 980 may be performed.
When it is determined that residual signal prediction is not performed, step 960 and step 980 may be performed.
In step 935, the intra residual prediction unit 810 may determine one of one or more neighboring blocks of the current block as a first neighboring block. The first neighboring block may be a block for performing residual signal prediction. The determination of the neighboring blocks according to an example will be described in detail later with reference to fig. 20.
After step 935 is performed, steps 950 and 985 may be performed.
In step 940, the intra prediction unit 120 may generate a second residual signal of the current block using intra prediction. The intra prediction unit 120 may generate a second residual signal of the current block based on both the intra prediction mode for the current block and the reference sample.
The second residual signal may correspond to a residual signal of the current block in an existing image coding and/or decoding technique, such as HEVC or AVC. For example, in generating the second residual signal, a residual signal generation method based on an existing image coding and/or decoding technique (such as HEVC or AVC) may be used.
The generation of the second residual signal according to the embodiment will be described in detail later with reference to fig. 28, 29, and 30.
After step 940 is performed, step 950 may be performed.
When it is determined that residual signal prediction is performed, step 950 may be performed as a result of steps 935 and 940 being performed.
In step 950, the intra residual prediction unit 810 may generate a first residual signal of the current block based on the residual signal prediction.
The intra residual prediction unit 810 may perform residual signal prediction using the residual signal of the first neighboring block.
The intra residual prediction unit 810 may generate a first residual signal of the current block based on the second residual signal of the current block and the residual signals of the first neighboring blocks.
The first residual signal may be a difference between a second residual signal of the current block and a residual signal of the first neighboring block. Alternatively, the first residual signal may be a result of subtracting the residual signal of the first neighboring block from the second residual signal of the current block. The intra residual prediction unit 810 may generate a difference between a second residual signal of the current block and a residual signal of a first neighboring block as a first residual signal.
The first residual signal may be a residual signal of the current block generated via residual signal prediction. Alternatively, the first residual signal may be a residual signal of the current block generated based on residual signals of first neighboring blocks of the current block.
By applying the residual signal prediction to the second residual signal generated in step 940, more efficient encoding of the current block can be performed.
The generation of the first residual signal according to the embodiment will be described in detail later with reference to fig. 31.
When it is determined that the residual signal prediction is not performed, the intra prediction unit 120 or the intra residual prediction unit 810 may generate a third residual signal of the current block in step 960.
The third residual signal may be a residual signal of the current block in an existing image coding and/or decoding technique, such as HEVC or AVC. For example, in generating the third residual signal, a residual signal generation method based on an existing image coding and/or decoding technique (such as HEVC or AVC) may be used.
Also, the third residual signal may be the same signal as the second residual signal at step 940. In other words, in step 940 and step 960, the same scheme may be used to generate the residual signal of the current block.
In step 970, intra prediction unit 120 may encode information indicating whether to perform updating of the reference samples.
When performing the update of the reference samples, the intra prediction unit 120 may encode the information, unlike the existing intra prediction, so that the decoding apparatus 2300, which will be described later with reference to fig. 21, recognizes whether the update of the reference samples has been used. For example, the value of the information may be set to "1" when the update on the reference spot has been used, and conversely, the value of the information may be set to "0" when the update on the reference spot has not been used.
For example, the intra prediction unit 120 may use a flag to indicate whether an update to the reference samples has been performed. By means of the flag, it can be indicated whether an update of the reference sample point has been performed.
In step 980, the intra residual prediction unit 810 may encode information indicating whether residual signal prediction has been performed.
When the residual signal prediction is performed, the intra residual prediction unit 810 may encode the information so that the decoding apparatus 2300, which will be described later with reference to fig. 37, may recognize whether the residual signal prediction has been performed. For example, when residual signal prediction has been used, the value of the information may be set to "1", and conversely, when residual signal prediction is not used, the value of the information may be set to "0".
For example, the intra prediction unit 120 may indicate whether residual signal prediction has been performed using a flag "intra _ residual _ prediction _ flag", which may indicate whether residual signal prediction has been performed.
In step 985, the intra prediction unit 810 may encode an identifier of the first neighboring block.
The identifier of the first neighboring block may be information capable of identifying a neighboring block used for predicting a residual signal of the current block.
For example, the identifier of the first neighboring block may indicate a neighboring block used for predicting a residual signal of the current block among a plurality of neighboring blocks. Alternatively, the identifier of the first neighboring block may be position information indicating a position of a neighboring block used for predicting the residual signal of the current block among the plurality of neighboring blocks. The location of the neighboring block may indicate a location of the selected neighboring block relative to the current block. The position of the neighboring block may indicate a direction in which the selected neighboring block is adjacent to the current block.
The identifier of the first neighboring block may be configured to indicate the same block in both the encoding device 800 and the decoding device 2300. For example, regarding the identifier of the first neighboring block, the size N of the block and the position of the neighboring block must be identical to each other in both the encoding apparatus 800 and the decoding apparatus 2300. In order for the encoding apparatus 800 and the decoding apparatus 2300 to share the same component with respect to the identifier of the first neighboring block with each other, the identifier of the first neighboring block may be encoded using a "(neighboring residual index (idx) truncated unary)" scheme.
When residual signal prediction is performed, step 950, step 970, step 980, and step 985 may be performed, and thereafter step 990 may be performed. Further, when the residual signal prediction is not performed, step 960, step 970 and step 980 may be performed, and thereafter step 990 may be performed.
Next, reference will be made to fig. 17.
In step 990, the encoding apparatus 800 may encode the current block using the residual signal of the current block. Step 990 may be performed by at least one of the transform unit 130, the quantization unit 140, and the entropy encoding unit 150.
In step 990, the residual signal to be used for encoding the current block may be one of two residual signals.
When it is determined at step 930 that residual signal prediction is performed, the first residual signal of the current block generated at step 950 may be the residual signal used at step 990. In other words, a residual signal generated through residual signal prediction may be used to encode the current block, and the encoding apparatus 800 may encode the current block using a first residual signal of the current block.
When it is determined at step 930 that the residual signal prediction is not performed, the third residual signal of the current block generated at step 960 may be the residual signal used at step 990.
Step 990 may include step 991, step 992, and step 993.
In step 991, the transform unit 130 may generate transform coefficients by performing a transform on the residual signal.
In step 992, the quantization unit 140 generates quantized transform coefficient levels using the transform coefficients.
In step 993, entropy encoding unit 150 may perform entropy encoding on the transform coefficient levels.
Among the above-described steps related to the encoding of information, step 970, step 980 and step 985 may be performed by one body in an order different from the above-described order. For example, step 993 may include step 970, step 980 and step 985. Further, the entropy encoding unit 150 may encode at least one of: information indicating whether an update to the reference samples has been performed, information indicating whether residual signal prediction has been performed, and an identifier of the first neighboring block.
Fig. 18 is a flowchart illustrating an encoding method according to an embodiment.
Fig. 19 is a flowchart illustrating a reference sampling point updating method according to an embodiment.
Fig. 20 is a flowchart illustrating a reference signal prediction method according to an embodiment.
FIG. 21 is a flowchart illustrating a current block encoding method according to an embodiment.
In contrast to the embodiment described above with reference to fig. 9, in the embodiments described with reference to fig. 18, 19, and 20, the updating of the reference samples and the prediction of the residual signal may be performed separately.
Hereinafter, the current block may be a block that is a target to be currently encoded or a block in a current image.
First, fig. 18 will be referred to.
In step 1010, the intra prediction unit 120 may generate reference samples of the current block. The intra-prediction unit 120 may generate neighboring reference samples of the current block for intra-prediction. The generation of the reference samples according to the embodiment will be described in detail later with reference to fig. 22.
In generating the reference samples, a reference sample generation method based on an existing image coding and/or decoding technique (such as HEVC or AVC) may be used.
The encoding apparatus 800 may selectively provide a reference sample point update function. When the reference sample update function is used, step 1020 may be performed after step 1010. Step 1030 may be performed after step 1010 when the reference sample update function is not used. In other words, the reference sampling point updating function can be selectively combined in this embodiment.
In step 1020, the intra prediction unit 120 may provide functions related to the updating of the reference samples.
Thereafter, reference will be made to fig. 19.
Referring to fig. 19, step 1020 may include step 1021, step 1022, and step 1023.
At step 1021, the intra prediction unit 120 may determine whether to perform an update of the reference samples. Here, the updating of the reference samples may be configured to refine sample values of the reference samples used to generate the prediction block prior to generating the prediction block for the current block.
When it is determined to perform an update to the reference samples, step 1022 may be performed. When it is determined that the update of the reference spots is not performed, step 1023 may be performed.
In step 1022, the intra prediction unit 120 may update the values of the reference samples, and through the update, the values of the reference samples used to generate the prediction block of the current block may be determined.
The intra prediction unit 120 may update the value of the reference sample according to the direction pattern of the neighboring samples.
Updating of reference samples according to an example will be described in detail later with reference to fig. 23, 24 and 25.
After step 1022 is performed, step 1023 may be performed.
In step 1023, the intra prediction unit 120 may encode information indicating whether the update of the reference samples has been performed.
Unlike the existing intra prediction, when the reference sample point is updated, the intra prediction unit 120 may encode the information so that the decoding apparatus 2300, which will be described later with reference to fig. 37, may recognize whether the update of the reference sample point has been performed. For example, the value of the information may be set to "1" when the update on the reference spot has been used, and conversely, the value of the information may be set to "0" when the update on the reference spot has not been used.
For example, the intra prediction unit 120 may use a flag to indicate whether the update of the reference samples has been performed, wherein by the flag, whether the update of the reference samples has been performed may be indicated.
When step 1010 or step 1020 is performed, step 1030 may be performed.
Reference will be made again to fig. 18.
In step 1030, the intra prediction unit 120 may perform intra prediction. The intra prediction unit 120 may generate a prediction block for the current block. The intra prediction unit 120 may generate a prediction block of the current block using the reference samples according to an intra prediction mode for the current block.
For example, in generating a prediction block, a prediction block generation method based on an existing image coding and/or decoding technique (such as HEVC or AVC) may be used.
The encoding apparatus 800 may selectively provide a residual signal prediction function. When the residual signal prediction function is used, step 1040 may be performed after step 1030. When the residual signal prediction function is not used, step 1050 may be performed after step 1030. In other words, the residual signal prediction function can be selectively combined in this embodiment.
When the residual signal of the current block is acquired through intra prediction, the intra residual prediction unit 120 may predict the residual signal of the current block using the residual signals of the neighboring blocks. After the residual signal is generated, updating of the residual signal is performed, and thus "prediction" of the residual signal may be referred to as "re-prediction" of the residual signal.
In step 1040, the intra residual prediction unit 120 may provide functions related to prediction of the residual signal.
Referring to fig. 20, step 1040 may include step 1041, step 1042, step 1046, and step 1047.
In step 1041, the intra residual prediction unit 810 may determine whether to perform residual signal prediction.
When it is determined to perform residual signal prediction, step 1042 may be performed.
When it is determined that residual signal prediction is not performed, step 1046 may be performed.
In step 1042, the intra residual prediction unit 810 may perform prediction of the residual signal.
In step 1042, step 1043 and step 1044 can be performed. Step 1043 and step 1044 may be performed in a predefined order. For example, step 1043 may be performed before step 1044. Optionally, step 1044 may be performed before step 1043.
In step 1043, the intra residual prediction unit 810 may determine one of one or more neighboring blocks of the current block as a first neighboring block. The first neighboring block may be a block used for prediction of a residual signal. The determination of the neighboring block according to the embodiment will be described in detail later with reference to fig. 36.
In step 1044, the intra prediction unit 120 may generate a second residual signal of the current block using intra prediction. The intra prediction unit 120 may generate a second residual signal of the current block based on the intra prediction mode for the current block and the reference sample point.
The second residual signal may correspond to a residual signal of the current block in an existing image coding and/or decoding technique, such as HEVC or AVC. For example, in generating the second residual signal, a residual signal generation method based on an existing image coding and/or decoding technique (such as HEVC or AVC) may be used.
The generation of the second residual signal according to the embodiment will be described in detail later with reference to fig. 28, 29, and 30.
If it is determined that residual signal prediction is performed, step 1045 may be subsequently performed as a result of steps 1043 and 1044 being performed.
In step 1045, the intra residual prediction unit 810 may generate a first residual signal of the current block through residual signal prediction.
The intra residual prediction unit 810 may perform residual signal prediction using the residual signal of the first neighboring block.
The intra residual prediction unit 810 may generate a first residual signal of the current block based on the second residual signal of the current block and the residual signals of the first neighboring blocks.
The first residual signal may be a difference between a second residual signal of the current block and a residual signal of the first neighboring block. Alternatively, the first residual signal may be a result of subtracting the residual signal of the first neighboring block from the second residual signal of the current block. The intra residual prediction unit 810 may generate a difference between a second residual signal of the current block and a residual signal of a first neighboring block as a first residual signal.
The first residual signal may be a residual signal of the current block generated via residual signal prediction. Alternatively, the first residual signal may be a residual signal of the current block generated based on residual signals of first neighboring blocks of the current block.
By applying the residual signal prediction to the second residual signal generated in step 1044, more efficient encoding for the current block may be performed.
The generation of the first residual signal according to an example will be described in detail later with reference to fig. 31.
When it is determined that the residual signal prediction is not performed, the intra prediction unit 120 or the intra residual prediction unit 810 may generate a third residual signal of the current block in step 1046.
The third residual signal may be a residual signal of the current block in an existing image coding and/or decoding technique, such as HEVC or AVC. For example, in generating the third residual signal, a residual signal generation method based on an existing image coding and/or decoding technique (such as HEVC or AVC) may be used.
Further, the third residual signal may be the same signal as the second residual signal at step 1044. In other words, step 1044 and step 1046, the same method may be used to generate the residual signal of the current block.
When step 1042 or step 1046 is performed, step 1047 may be performed.
In step 1047, the intra residual prediction unit 810 may encode information related to the residual signal prediction.
When the residual signal prediction is performed, the intra residual prediction unit 810 may encode the information so that the decoding apparatus 2300, which will be described later with reference to fig. 21, may recognize whether the residual signal prediction has been performed. For example, when residual signal prediction has been used, the value of the information may be set to "1", and conversely, when residual signal prediction is not used, the value of the information may be set to "0".
For example, the intra prediction unit 120 may indicate whether residual signal prediction has been performed using a flag "intra _ residual _ prediction _ flag", which may indicate whether residual signal prediction has been performed.
Reference will next be made again to fig. 20.
In step 1048, the intra residual prediction unit 810 may encode an identifier of the first neighboring block.
The identifier of the first neighboring block may be information capable of identifying a neighboring block used for predicting a residual signal of the current block.
For example, the identifier of the first neighboring block may indicate a neighboring block used for predicting a residual signal of the current block among a plurality of neighboring blocks. Alternatively, the identifier of the first neighboring block may be position information indicating a position of a neighboring block used for predicting the residual signal of the current block among the plurality of neighboring blocks. The location of the neighboring block may indicate a location of the selected neighboring block relative to the current block. The position of the neighboring block may indicate a direction in which the selected neighboring block is adjacent to the current block.
The identifier of the first neighboring block may be configured to indicate the same block in both the encoding device 800 and the decoding device 2300. For example, regarding the identifier of the first neighboring block, the size N of the block and the position of the neighboring block must be identical to each other in the encoding apparatus 800 and the decoding apparatus 2300. In order for the encoding apparatus 800 and the decoding apparatus 2300 to share the same component with respect to the identifier of the first neighboring block with each other, the identifier of the first neighboring block may be encoded using a "(neighboring residual index (idx) truncated unary)" scheme.
In step 1049, the intra residual prediction unit 810 may encode information indicating whether residual signal prediction has been performed.
In step 1047, step 1048 and step 1049 may be performed. Step 1048 and step 1049 may be performed in a predefined order. For example, step 1048 may be performed before step 1049. Optionally, step 1049 may be performed before step 1048.
When step 1030 or step 1040 is performed, step 1050 may be subsequently performed.
In step 1050, the encoding apparatus 800 may perform encoding of the current block using the residual signal of the current block. Step 1050 may be performed by at least one of transform unit 130, quantization unit 140, and entropy encoding unit 150.
In step 1050, the residual signal used to encode the current block may be one of two residual signals.
When it is determined in step 1041 that residual signal prediction is performed, the first residual signal of the current block generated in step 1045 may be the residual signal used in step 1050. In other words, a residual signal generated through residual signal prediction may be used to encode the current block, and the encoding apparatus 800 may encode the current block using a first residual signal of the current block.
When it is determined in step 1041 that residual signal prediction is not performed, the third residual signal of the current block generated in step 1046 may be the residual signal used in step 1050.
Reference will next be made to fig. 21.
In step 1051, the transform unit 130 may generate a transform coefficient by performing a transform on the residual signal.
In step 1052, the quantization unit 140 may use the transform coefficients to generate quantized transform coefficient levels.
In step 1053, entropy encoding unit 150 may perform entropy encoding on the transform coefficient levels.
Among the above-described steps related to the encoding of information, step 1023, step 1048, and step 1049 may be performed by one body in an order different from the order described above. For example, step 1053 may include step 1023, step 1048, and step 1049. Further, the entropy encoding unit 150 encodes at least one of: information indicating whether an update to the reference samples has been performed, information indicating whether residual signal prediction has been performed, and an identifier of the first neighboring block.
Proposed coding method
In the embodiment described above with reference to fig. 10, the encoding method may be classified into two methods. Various methods are described below.
-a first method: the first method may be a method for performing the following operations: the reference samples for intra prediction are generated using the existing method, and the sample values of the reference samples generated using the existing method are again improved according to the direction patterns of the neighboring samples. Here, the existing method may represent the method for generating reference samples for intra prediction performed by the intra prediction unit 120 described above with reference to fig. 1.
-a second method: the second method may be a method for reducing energy of a residual signal by performing re-prediction using residual signals of neighboring blocks on a residual signal acquired through existing intra prediction. In other words, in the second method, the re-prediction of the level of the residual signal may be performed. Here, the existing method may include a process for generating a prediction signal of the current block via spatial prediction of reference samples and a process for acquiring a residual signal of the current block using the prediction signal, wherein the processes may be performed by the intra prediction unit 120 described above with reference to fig. 1.
Classification of embodiments
The embodiments described above with reference to fig. 18, 19, 20 and 21 can be classified into three embodiments. Various embodiments will be described below.
First embodiment: the first embodiment is indicated by thick black arrows in fig. 18. The first embodiment may include step 1010, step 1020, step 1030, and step 1050. The first embodiment updates the reference samples, but may not predict the residual signal.
-second embodiment: the second embodiment is indicated by thick white arrows in fig. 18. The second embodiment may include step 1010, step 1020, step 1030, step 1040, and step 1050. The second embodiment may update the reference samples and predict the reference signal.
-third embodiment: the third embodiment is indicated by the shaded arrows in fig. 18. The third embodiment may include step 1010, step 1030, step 1040, and step 1050. The third embodiment does not update the reference samples, but can predict the residual signal.
The encoding apparatus 800 may encode the current block using one of the first, second, and third embodiments. Alternatively, the encoding apparatus 800 may perform rate distortion optimization for all three embodiments, and a method for deriving the smallest rate distortion value may be selected from the three embodiments. For example, the encoding apparatus 800 may selectively use each of the steps 1020 and 1040 to derive the minimum rate-distortion value.
Unit for updating reference sampling points
In step 910, the intra prediction unit 120 may determine, for each predefined unit, whether to perform an update of the reference samples. The predefined unit may be at least one of: 1) an entire image sequence (i.e., video), 2) a single image (i.e., picture), 3) slices, and 4) coding units.
For a predefined unit, the reference sampling point update information may be used to indicate whether an update to the reference sampling point has been performed. The reference sampling point update information may be information indicating whether an update of the reference sampling point has been performed for the predefined unit. For example, the value of the reference sample update information being the "first value" may indicate that the update of the reference sample has been performed when the current block is encoded. The value of the reference sample update information being the "second value" may indicate that the update of the reference sample is not performed when the current block is encoded.
The encoding apparatus 800 may include encoded residual signal prediction information in a bitstream. The decoding apparatus 2300 may use the residual signal prediction information to determine whether prediction of a residual signal for the current block has been performed.
In the following description, the updating of the reference samples for each predefined cell will be described below.
1) The whole image sequence: it may be determined whether to perform an update of the reference sample points for the entire image sequence. In this case, the sequence parameter set may include reference sample point update information. When the reference sample update information of the sequence parameter set indicates that the update of the reference sample has been performed, the intra prediction unit 120 may perform intra prediction for the entire image sequence, wherein the intra prediction uses the reference sample to which the directivity-based gradient is applied.
2) Single image: it may be determined for each image whether to perform an update of the reference sample points. In this case, the picture parameter set may include reference sample point update information. When the reference sample update information of the picture parameter set indicates that the reference sample has been updated, the intra prediction unit 120 may perform intra prediction for the entire image corresponding to the picture parameter set, wherein the intra prediction uses the reference sample to which the directivity-based gradient is applied. Alternatively, the intra prediction unit 120 may identify whether the update of the reference samples has been performed using a picture parameter set Identifier (ID) specified in the slice header.
3) Strip: a single picture may be partitioned into multiple slice segments or multiple parallel blocks in a single slice segment. It may be determined for each stripe whether to perform an update to the reference samples. In this case, the slice header may include reference sampling point update information. When the reference sample update information of the slice header indicates that the reference sample has been updated, the intra prediction unit 120 may perform intra prediction on a slice corresponding to the slice header, wherein the intra prediction uses the reference sample to which the directivity-based gradient is applied.
4) An encoding unit: whether to perform the update of the reference sampling point may be determined for each coding unit. In this case, there may be reference sample point update information for the coding unit. When the reference sample update information for the coding unit indicates that the reference sample has been updated, the intra prediction unit 120 may perform intra prediction on the coding unit corresponding to the reference sample update information, wherein the intra prediction uses the reference sample to which the directivity-based gradient is applied.
As described above, the reference sample update information may be encoded in a sequence parameter set, a picture parameter set, or a slice header. Alternatively, the update information may be encoded for the coding unit.
Residual signal prediction unit
It may be determined for the predefined unit whether to perform residual signal prediction (determined at step 930). The predefined unit may be at least one of: 1) an entire image sequence (i.e., video), 2) a single image (i.e., picture), 3) slices, and 4) coding units.
The residual signal prediction information may be information indicating whether prediction of the residual signal has been performed for a predefined unit. For example, the value of the residual signal prediction information being the "first value" may indicate that residual signal prediction has been performed when the current block is encoded. The value of the residual signal prediction information being the "second value" may indicate that no residual signal prediction is performed when the current block is encoded.
The encoding apparatus 800 may include encoded residual signal prediction information in a bitstream. The decoding apparatus 2300 may use the residual signal prediction information to determine whether prediction of a residual signal for the current block has been performed.
In the following description, prediction of a residual signal for each predefined unit will be described.
1) The whole image sequence: whether to perform residual signal prediction may be determined for the entire image sequence. In this case, the sequence parameter set may include residual signal prediction information. When the residual signal prediction information of the sequence parameter set indicates that residual signal prediction has been performed, the intra residual prediction unit 810 may perform residual signal prediction for the entire image sequence.
2) Single image: whether to perform residual signal prediction may be determined for each picture. In this case, the picture parameter set may include residual signal prediction information. When the residual signal prediction information of the picture parameter set indicates that residual signal prediction has been performed, the intra residual prediction unit 810 may perform residual signal prediction with respect to an entire image corresponding to the picture parameter set.
3) Strip: a single image may be partitioned into multiple slice segments or multiple parallel blocks in a single slice segment. Whether to perform residual signal prediction may be determined for each slice. In this case, the slice segment header may include residual signal prediction information. When the residual signal prediction information of the slice header indicates that residual signal prediction has been performed, the intra prediction unit 120 may perform residual signal prediction on a slice corresponding to the slice header.
4) An encoding unit: whether to perform residual signal prediction may be determined for each coding unit. In this case, residual signal prediction information may exist for the coding unit. When the residual signal prediction information for the coding unit indicates that residual signal prediction has been performed, the intra residual prediction unit 810 may perform residual signal prediction on the coding unit corresponding to the residual signal prediction information.
As described above, the residual signal prediction information may be encoded in a sequence parameter set, a picture parameter set, or a slice header. Further, the residual signal prediction information may be encoded for the coding unit.
Fig. 22 shows a current block and reference samples according to an example.
The processing of the reference samples, which will be described later, may be used to determine the values of the reference samples before the reference samples are updated, and may be performed by the intra prediction unit 120 before step 910, which has been described above with reference to fig. 16. Further, the processing of the reference samples, which will be described later, may correspond to step 1010, which has been described above with reference to fig. 18.
In FIG. 22, a current block 1100, an above neighboring line 1110, a left neighboring line 1120, and an above-left sampling point 1130 are depicted.
The reference samples of the current block 1100 may include an upper neighboring line 1110, a left neighboring line 1120, and an upper-left sample 1130. Alternatively, the reference samples of the current block 1100 may be at least some of the upper neighboring line 1110, the left neighboring line 1120, and the upper-left sample 1130. The intra prediction unit 120 may select at least some of the pixels of the upper neighboring line 1110, the left neighboring line 1120, and the upper-left sampling point 1130 as reference sampling points according to an intra prediction mode for the current block.
The upper neighboring line 1110 may be a horizontal line adjacent to the top of the current block 1100. The left neighboring line 1120 may be a vertical line adjacent to the left end of the current block 1100. The top-left sample 1130 may be a sample adjacent to the top-left portion of the current block 1100.
The x-coordinate of the leftmost sample of the upper neighboring line 1100 may be the same as the x-coordinate of the leftmost sample of the current block 1100. When the size of the current block 1100 is N × N, the length of the upper neighboring line 1110 may be 2N. Here, N may be an integer of 1 or more. The upper adjacent line 1110 may include 2N × 1 pixels.
The y-coordinate of the uppermost sample of the left adjacent line 1120 may be the same as the y-coordinate of the uppermost pixel of the current block 1100. When the size of the current block 1100 is N × N, the length of the left neighboring line 1120 may be 2N. The left adjacent line 1120 may include 1 × 2N pixels.
The x-coordinate of the upper-left sample point 1130 may be a value obtained by subtracting 1 from the x-coordinate of the leftmost pixel of the current block 1100. The y-coordinate of the upper-left sample 1130 may be a value obtained by subtracting 1 from the y-coordinate of the leftmost pixel of the current block 1100.
The samples described above may be used for intra-prediction of the current block.
The reference sample points used for the intra prediction may have luminance values reconstructed through prediction and reconstruction, instead of the luminance values of the pixels of the original image. For example, neighboring blocks of the current block 1100 may be encoded before encoding the current block 1100. The luminance values of the pixels in the neighboring blocks can be reconstructed through prediction and reconstruction in the encoding process. The reference samples may be some pixels in neighboring blocks. Furthermore, the luminance value of the reference sample may be a value before the post-processing filtering is applied.
When there are no available reference samples near the current block 1100, the intra prediction unit 120 may perform reference sample filling in which a sample closest to the current block 1100 among available neighboring samples (i.e., pixels) is used. The brightness value of the reference sampling point can be generated by the filling mode of the reference sampling point.
The intra prediction unit 120 may perform reference sample filtering to reduce a prediction error caused by a quantization error according to the size of the current block 1100, an intra prediction mode, and the like.
Fig. 23 illustrates a method for updating reference samples in view of horizontal gradients of neighboring blocks according to an example.
In fig. 23, circles may represent samples (or pixels). The solid line rectangle may represent a block.
In fig. 23, a current block 1210, a reference sample block 1220, a reference sample 1221, and an adjacent block 1230 are depicted.
The current block is shown as a block having a size of 4 x 4. The size of a block may represent the width and height of the corresponding block.
The reference sample block 1220 may be a block including reference samples 1221 for the current block 1210. The reference sample block 1220 may be a block adjacent to the current block 1210 and having the same size as the current block 1210.
The reference samples 1221 are shown with the values I ', J', K ', and L', respectively, by the updating of the reference samples. The illustrated reference spots may be spots constructed using the following method: the method is for generating reference samples among neighboring samples according to an intra prediction mode in a current block.
In fig. 23, reference samples generated by the intra prediction unit 120 when the intra prediction mode for the current block 1210 is the horizontal prediction mode are depicted.
The dashed lines in the neighboring block 1230 may indicate horizontal lines defined by the samples in the neighboring block 1230. The thick solid line on the neighboring block 1230 may represent the gradient of the sampling points included in the horizontal line. Dx represents a gradient value.
In fig. 23, an example of this is shown: in the horizontal line of the sampling points, the sampling point values uniformly increase and then uniformly decrease from left to right.
The neighboring block 1230 may be a block that has been reconstructed prior to encoding and/or decoding of the current block 1210.
The neighboring block used for updating the reference samples may be different from the neighboring block used for intra residual prediction of the current block. As described above with reference to fig. 16 and 20, the neighboring block used for intra residual prediction of the current block may be referred to as a first neighboring block. Further, the neighboring block used for updating the reference sampling point may be referred to as a second neighboring block. The first adjacent block and the second adjacent block may be the same as or different from each other. Further, the first neighboring block may include a second neighboring block, or the second neighboring block may include the first neighboring block.
For example, when the intra prediction mode is the horizontal prediction mode, the reference samples may be samples adjacent to the left end of the current block 1210. Alternatively, the reference samples may be samples in a vertical line adjacent to the left end of the current block 1210. The reference sample block 1220 may be a block adjacent to the left end of the current block 1210. Also, the neighboring block 1230 may be a block for adding an upper neighboring block of the current block 1210 and an upper left neighboring block of the current block 1210 to each other. The above-adjacent block of the current block 1210 may be a block adjacent to the top of the current block 1210. An upper-left neighboring block of the current block 1210 may be a block adjacent to an upper-left part of the current block 1210. The upper adjacent block and the upper left adjacent block may be adjacent to each other.
When the size of the current block 1210 is N × N, the size of each of the upper neighboring block and the upper-left neighboring block may be N × N, and the size of the neighboring block 1230 may be 2N × N. In fig. 23, the size of the neighboring block is shown as 8 × 4.
Further, when the size of the current block 1210 is N × N, the size of each of the upper neighboring block and the upper-left neighboring block may be aN xnbn, and the size of the neighboring block 1230 may be 2aN × bN. Here, "a" and "b" may be real numbers, respectively.
Further, each of the top neighboring block, the top-left neighboring block, and the neighboring block 1230 may have a predefined size or a size determined according to a predefined scheme.
The intra prediction unit 120 of the encoding apparatus 800 and the intra prediction unit 240 of the decoding apparatus 2300, which will be described later, may use upper neighboring blocks, upper left neighboring blocks, and neighboring blocks having the same size. The encoding apparatus 800 may set the size of each of the upper neighboring block, the upper left neighboring block, and the neighboring block 1230. The size of the upper neighboring block, the size of the upper left neighboring block, and the size of the neighboring block 1230 have to be equally used in the decoding apparatus 2300. The set size may be transmitted from the encoding apparatus 800 to the decoding apparatus 2300 through a bitstream.
The updating of reference samples may be considered as a reconstruction of neighboring reference samples of the current block for intra prediction.
When intra prediction is performed on the second neighboring block, the current block may also have a texture having a directivity similar to that of the texture of the second neighboring block according to spatial correlation. To reflect such directionality, the intra prediction unit 120 may update the value of the reference sample point required for intra prediction before performing intra prediction for the current block.
The intra prediction unit 120 may refine the reference sampling point by using a directional gradient pattern based on the directivity of the second neighboring block such that the reference sampling point becomes similar to the sampling point in the current block.
In step 915 described above with reference to fig. 16 and step 1022 described above with reference to fig. 19, the intra prediction unit 120 may detect the gradient pattern of the second neighboring block and calculate the gradient. The gradient pattern detection method according to an example will be described later in detail with reference to fig. 24.
In step 915 described above with reference to fig. 16 and step 1022 described above with reference to fig. 19, the intra-prediction unit 120 may detect a gradient pattern of a row in the second neighboring block. The intra prediction unit 120 may check whether the plurality of gradient patterns of the plurality of rows in the second neighboring block are identical to each other. When the plurality of gradient patterns of the plurality of rows in the second neighboring block are identical to each other, the intra prediction unit 120 may calculate the gradient of the second neighboring block. Here, the gradient of the second neighboring block may be a gradient of a single selected row in the second neighboring block. For example, the gradient of the second neighboring block may be a gradient of a line adjacent to the current block 1210 among a plurality of lines in the second neighboring block. The intra prediction unit 120 may determine a gradient of a line adjacent to the current block 1210 among a plurality of lines in a second adjacent block as a final gradient of the second adjacent block.
Further, in steps 915 and 1022, the intra prediction unit 120 may determine or update the value of the reference sample point based on neighboring blocks of the current block. The intra prediction unit 120 may determine or update the value of the reference sample based on the gradient pattern of the second neighboring block.
The value of the reference sample may be changed from a value before the update to a value after the update by the intra prediction unit 120, and the value of the reference sample before the update may be a value generated when the reference sample block 1220 including the reference sample is predicted and reconstructed. In other words, when the reference sample point block 1220 is predicted and reconstructed, a value of the reference sample point may be determined, and when the reference sample point is updated, this value may be used as a value before the update. In predicting and reconstructing reference samples, a prediction and reconstruction method based on existing image coding and/or decoding techniques (such as HEVC or AVC) may be used.
Once the gradient ∑ dx is calculated, the intra prediction unit 120 may determine or update the value of the reference sample point using a predefined method.
For example, when the intra prediction mode is the horizontal prediction mode, the intra prediction unit 120 may determine or update the value of the reference sampling point using equation 2 below:
[ equation 2]
I'=I-w*f(▽dx)
J'=J-w*f(▽dx)
K'=K-w*f(▽dx)
L'=L-w*f(▽dx)
Where f represents a function. w represents a weight. I denotes the value of the uppermost sample among the reference samples 1221 before updating. I' represents the value of the uppermost sample after updating. J. K and L denote values of the respective reference samples before the update, and J ', K ', and L ' denote values of the respective reference samples after the update.
As described in equation 2, the intra prediction unit 120 may generate the improved reference samples I ', J', K ', and L' by applying gradient-based subtraction to the previous reference samples I, J, K and L. Further, the intra prediction unit 120 may consider the weight factor w when updating the value of the reference sample. The intra prediction unit 120 may update the value of the corresponding reference sample point by subtracting a product of the value determined based on the gradient ∑ dx and the predefined weight factor w from the value of the reference sample point before updating. By this way of updating, the value of the reference spline may be reduced by w · (dx).
There may be multiple reference samples. The weighting factors w may be the same as each other between the plurality of reference samples. Optionally, the weighting factors w may be different from each other between the plurality of reference samples. For example, the weighting factors w may be different from each other for respective positions in the plurality of reference samples. The location of each reference sample may be a location relative to the current block 1210.
The intra prediction unit 120 may combine the above-described reference sample point update method with the existing method. For example, when performing the update of the reference samples described above with reference to fig. 18, the intra prediction unit 120 may perform padding without using the reference samples in step 1010. Further, when performing the update of the reference samples described above with reference to fig. 18, the intra prediction unit 120 may not perform the smoothing using the low pass filter in step 1020.
Fig. 24 illustrates a method for obtaining a gradient pattern according to an example.
As described above with reference to fig. 13, the second neighboring block may be selected based on the location of the current block. For example, the intra prediction unit 120 may select a block located at a predefined position as a second neighboring block according to an intra prediction mode among blocks reconstructed based on the position of the current block. Furthermore, the intra prediction unit 120 may analyze the gradient pattern of the selected second neighboring block.
As described above with reference to fig. 23, the size of the second neighboring block may be determined based on the size of the current block. For example, when the size of the current block is N × N, the size of the second neighboring block may be 2N × N. The encoding apparatus 800 may set the size of the second neighboring block. The size of this setting must be equally used also in the decoding apparatus 2300. The set size may be transmitted from the encoding apparatus 800 to the decoding apparatus 2300 through a bitstream.
In fig. 24, the second adjacent block is shown as a single line. The single line may be a row or a column in an adjacent block. In fig. 23, the size of the second neighboring block is shown as 8 × 4, and in fig. 24, the single line of the second neighboring block is shown as 8 × 1.
The intra prediction unit 120 may calculate one or more sample gradients for each line. Each of the one or more sample gradients may be a gradient between two adjacent samples in a line. Since a single line may include multiple samples, intra-prediction unit 120 may obtain multiple sample gradients for the single line. As an example of one or more spline gradients, v dx1, vdx 2, vdx 3, vdx 4, vdx 5, vdx 6, and v dx7 are plotted in fig. 24. For example, dx1 may be the gradient between the first and second samples on the single line.
The intra prediction unit 120 may calculate one or more sample gradients for each line in the second neighboring block.
The intra prediction unit 120 may calculate a line gradient based on one or more sample gradients. For example, the line gradient may be 1) a median of one or more sample gradients, 2) an average of one or more sample gradients, or 3) a predefined representative value of one or more sample gradients.
The predefined representative value may always have a positive value.
When the median of one or more sample point gradients is used as the line gradient, equation 3 below may be used.
[ equation 3]
f(▽dx)=median(|dx1|,|dx2|,|dx3|,|dx4|,|dx5|,|dx6|,|dx7|)
Wherein, dx may represent a line gradient.
When calculating the line gradients, the intra prediction unit 120 may apply a weight to one or more sample gradients for each sample gradient.
With the above-described scheme, the intra prediction unit 120 may calculate one or more line gradients for one or more lines in the second neighboring block.
When calculating the line gradient, the intra prediction unit 120 may calculate the gradient of the second neighboring block based on one or more line gradients. For example, the gradient of the second neighboring block may be 1) a median value of one or more line gradients, 2) an average value of one or more line gradients, or 3) a predefined representative value of one or more line gradients. Alternatively, when calculating the gradient of the second neighboring block, the intra prediction unit 120 may apply a weight to one or more line gradients for each line gradient.
The calculated gradient of the second neighboring block may be used as a final gradient for updating the reference sample point.
For example, as shown in fig. 24, when the line sample gradients increase and then decrease, updated sample values I ', J', K ', and L' may be obtained by subtracting the respective line gradients from the reference samples I, J, K and L previously generated as the reference sample 1221 of the current block 1210 of fig. 23.
As described above with respect to the sample gradient, the line gradient, and the gradient of the second neighboring block, the intra prediction unit 120 may determine the value of the reference sample based on a gradient value between two neighboring reference samples among the plurality of reference samples belonging to one row in the second neighboring block.
Alternatively, the intra prediction unit 120 may use the line gradient of a single line as the gradient of the reference sample corresponding to the line. For example, a line and a reference spot having the same relative position may correspond to each other. In another example, the intra prediction unit 120 may update the uppermost reference sample among the one or more reference samples using a line gradient of the uppermost line of the one or more lines. Alternatively, the intra prediction unit 120 may update the reference sample point using a line gradient of a line adjacent to the current block 1210 among the one or more lines.
When calculating the gradient of the second neighboring block, the intra prediction unit 120 may select some of all lines of the second neighboring block. The intra prediction unit 120 may calculate the gradient of the second neighboring block using the line gradient of the selected line. The intra prediction unit 120 may select a line located at a predefined position or a predefined number of lines from among all lines of the second neighboring block. The intra prediction unit 120 may set a scheme for selecting only some lines from among all lines of the second neighboring block. The set scheme may be transmitted from the encoding apparatus 800 to the decoding apparatus 2300 through a bitstream.
When calculating the line gradient of a line, the intra prediction unit 120 may select only some samples from among all samples in the corresponding line. In other words, the one or more sample gradients for each line do not necessarily need to be calculated for all samples in the respective line. The intra prediction unit 120 may calculate respective line gradients of left and right symmetric regions around the central dotted line in fig. 23. For example, the intra prediction unit 120 may calculate one or more sampling point gradients of each line for sampling points on the left side of the line, and may calculate a line gradient based on the calculated one or more sampling point gradients. Further, the intra prediction unit 120 may calculate one or more sampling point gradients of each line with respect to the sampling points on the right side of the line, and may calculate the line gradient based on the calculated one or more sampling point gradients.
The intra prediction unit 120 may calculate one or more sampling point gradients of the respective lines for sampling points selected from among the sampling points in each line according to a predefined scheme, and may calculate the line gradients based on the calculated one or more sampling point gradients. When the line gradient is calculated, the size of the line (or the number of samples) may be larger or smaller than the width 2N of the second neighboring block. The intra prediction unit 120 may calculate a line gradient of the line using a sample point gradient between some selected sample points. The intra prediction unit 120 may select a sample located at a predefined position or a predefined number of samples from among all samples in the line. The intra prediction unit 120 may set a scheme for selecting only some samples from among all samples in the corresponding line. The set scheme may be transmitted from the encoding apparatus 800 to the decoding apparatus 2300 through a bitstream.
The intra prediction unit 120 may select some reference samples to which the update is to be applied from among all reference samples of the current block. The intra prediction unit 120 may select the number of reference samples to which the update is to be applied from among all the reference samples of the current block. For example, the intra prediction unit 120 may update only some of the reference samples 1221 of fig. 23.
The intra prediction unit 120 may select some reference samples to which the update is to be applied from among all reference samples of the current block according to the attribute of the current block. In addition, the intra prediction unit 120 may select the number of reference samples to which the update is to be applied from among all the reference samples of the current block according to the attribute of the current block.
For example, the attribute of the current block may be a size of the current block. The intra prediction unit 120 may select some reference samples to which the update is to be applied from among all reference samples of the current block using different schemes according to the size of the current block.
For example, considering a case where the size of the current block is relatively large (e.g., 16 × 16 or 32 × 32), as the size of the current block increases, the number of reference samples of the current block may increase. When the number of reference sample points becomes larger, the correlation with the directivity-based gradient pattern may be relatively reduced. In this case, the encoding apparatus 800 may determine the number of reference samples to be updated based on the gradient.
A scheme for selecting some reference samples to which the update is to be applied from among the reference samples and selecting the number of some reference samples to which the update is to be applied from among the reference samples may be transmitted from the encoding apparatus 800 to the decoding apparatus 2300 through a bitstream.
Fig. 25 illustrates a method for updating reference samples in view of vertical gradients of neighboring blocks according to an example.
In fig. 25, circles may represent samples (or pixels). The solid line rectangle may represent a block.
In fig. 25, a current block 1410, a reference sample block 1420, a reference sample 1421, and a neighboring block 1430 are depicted.
The current block is shown as a block of size 4 x 4. The size of the block may represent the width and height of the block.
The reference sample block 1420 may be a block including a reference sample 1421 for the current block 1410. The reference sample block 1420 may be a block adjacent to the current block 1410 and having the same size as the current block 1410.
In fig. 25, reference samples generated by the intra prediction unit 120 when the intra prediction mode for the current block 1310 is the vertical prediction mode are shown.
The dashed lines in the neighboring block 1430 may represent vertical lines of pixels in the neighboring block 1430. The thick solid lines in the neighboring blocks 1430 may represent the gradients of the samples included in the respective vertical lines. Dx may represent a gradient value.
In fig. 25, an example of this is shown: in the vertical line of the sampling points, the sampling point values increase uniformly from top to bottom and then decrease uniformly.
The neighboring block 1430 may be a block that has been reconstructed prior to encoding and/or decoding of the current block 1410.
The neighboring block used for updating the reference samples may be different from the neighboring block used for intra residual prediction of the current block. As described above with reference to fig. 16, a neighboring block used for intra residual prediction of the current block may be referred to as a first neighboring block. Further, the neighboring block used for updating the reference sampling point may be referred to as a second neighboring block. The first adjacent block and the second adjacent block may be the same as or different from each other. Further, the first neighboring block may include a second neighboring block, or the second neighboring block may include the first neighboring block.
For example, when the intra prediction mode is a vertical prediction mode, the reference samples may be samples adjacent to the top of the current block 1410. Alternatively, the reference samples may be samples in a horizontal line adjacent to the top of the current block 1210. The reference sample block 1420 may be a block adjacent to the top of the current block 1410. Also, the neighboring block 1430 may be a block for adding a left neighboring block of the current block 1410 and a left upper neighboring block of the current block 1410 to each other. The left neighboring block of the current block 1410 may be a block adjacent to the left end of the current block 1410. The upper-left neighboring block of the current block 1410 may be a block adjacent to an upper-left part of the current block 1410. The left adjacent block and the upper left adjacent block may be adjacent to each other.
When the size of the current block 1410 is N × N, the size of each of the left neighboring block and the upper-left neighboring block may be N × N, and the size of the neighboring block 1430 may be N × 2N. In fig. 22, the size of the neighboring block is shown as 8 × 4.
Further, when the size of the current block 1410 is N × N, the size of each of the upper neighboring block and the upper-left neighboring block may be aN × bN, and the size of the neighboring block 1430 may be aN × 2 bN. Here, "a" and "b" may be real numbers, respectively.
Further, each of the top neighboring block, the top left neighboring block, and the neighboring block 1430 may have a predefined size or a size determined according to a predefined scheme.
The intra prediction unit 140 of the encoding apparatus 800 and the intra prediction unit 240 of the decoding apparatus 2300, which will be described later, may use upper neighboring blocks, upper left neighboring blocks, and neighboring blocks having the same size. The encoding apparatus 800 may set the size of each of the upper neighboring block, the upper left neighboring block, and the neighboring block 1430. The size of the upper neighboring block, the size of the upper left neighboring block, and the size of the neighboring block 1430 must be equally used in the decoding apparatus 2300. The set size may be transmitted from the encoding apparatus 800 to the decoding apparatus 2300 through a bitstream.
The updating of reference samples may be considered as a reconstruction of neighboring reference samples of the current block for intra prediction.
When intra prediction is performed on the second neighboring block, the current block may also have a texture having a directivity similar to that of the texture of the second neighboring block according to spatial correlation. To reflect such directionality, the intra prediction unit 120 may update the value of the reference sample point required for intra prediction before performing intra prediction for the current block.
The intra prediction unit 120 may update the reference sampling point by using a directional gradient pattern based on the directivity of the second neighboring block such that the reference sampling point becomes similar to the sampling point in the current block.
In step 915 described above with reference to fig. 16 and step 1022 described above with reference to fig. 19, the intra prediction unit 120 may detect the gradient pattern of the second neighboring block and may calculate the gradient.
In step 915 described above with reference to fig. 16 and step 1022 described above with reference to fig. 19, the intra prediction unit 120 may detect a plurality of gradient patterns of a plurality of columns in the second neighboring block. The intra prediction unit 120 may check whether the plurality of gradient patterns of the plurality of columns in the second neighboring block are identical to each other. When the plurality of gradient patterns of the plurality of columns in the second neighboring block are identical to each other, the intra prediction unit 120 may calculate the gradient of the second neighboring block. Here, the gradient of the second neighboring block may be a gradient of a single selected column in the second neighboring block. For example, the gradient of the second neighboring block may be a gradient of a column adjacent to the current block 1410 among a plurality of columns in the second neighboring block. The intra prediction unit 120 may determine a gradient of a column adjacent to the current block 1410 among a plurality of columns in a second adjacent block as a final gradient of the second adjacent block.
Further, in steps 915 and 1022, the intra prediction unit 120 may determine or update the value of the reference sample point based on neighboring blocks of the current block. The intra prediction unit 120 may determine or update the value of the reference sample based on the gradient pattern of the second neighboring block.
The value of the reference sample may be changed from a value before update to a value after update by the intra prediction unit 120, and the value of the reference sample before update may be a value generated when the reference sample block 1420 including the reference sample is predicted and reconstructed. In other words, when the reference sample point block 1420 is predicted and reconstructed, the value of the reference sample point may be determined, and when the reference sample point is updated, this value may be used as a value before the update. In predicting and reconstructing reference samples, a prediction and reconstruction method based on existing image coding and/or decoding techniques (such as HEVC or AVC) may be used.
Once the gradient ∑ dx is calculated, the intra prediction unit 120 may use a predefined method to determine or update the value of the reference sample point.
For example, when the intra prediction mode is the vertical prediction mode, the intra prediction unit 120 may determine or update the value of the reference sample point using equation 4 below:
[ equation 4]
A'=A+w*f(▽dx)
B'=B+w*f(▽dx)
C'=C+w*f(▽dx)
D'=D+w*f(▽dx)
Where f represents a function. w represents a weight. A denotes the value of the uppermost sample among the reference samples 1421 before update. A' represents the value of the uppermost sample point after the update. B. C and D represent values of the respective reference samples before the update, and B ', C ', and D ' represent values of the respective reference samples after the update.
As described in equation 4, the intra prediction unit 120 may generate the improved reference samples a ', B', C ', and D' by applying gradient-based subtraction to the previous reference samples A, B, C and D. Further, the intra prediction unit 120 may consider the weight factor w when updating the value of the reference sample. The intra prediction unit 120 may update the value of the corresponding reference sampling point by adding the value determined based on the gradient ∑ dx to the product of the predefined weight factor w and the value of the reference sampling point before updating. By this way of updating, the value of the reference spline may be increased by w · (dx).
There may be multiple reference samples. The weighting factors w may be the same as each other between the plurality of reference samples. Optionally, the weighting factors w may be different from each other between the plurality of reference samples. For example, the weighting factors w may be different from each other for respective positions in the plurality of reference samples. The location of each reference sample may be a location relative to the current block 1410.
The intra prediction unit 120 may combine the above-described reference sample point updating method with the existing method. For example, when performing the update of the reference samples described above with reference to fig. 18, the intra prediction unit 120 may perform padding without using the reference samples in step 1110. Further, when performing the update of the reference samples described above with reference to fig. 18, the intra prediction unit 120 may not perform the smoothing using the low pass filter in step 1020.
Type of gradient pattern
The directivity-based gradient patterns described above with reference to fig. 23 through 25 may be classified into predefined types. For example, the type of gradient pattern may include at least one of: 1) increase, 2) decrease, 3) increase and saturation, 4) decrease and saturation, 5) saturation and increase, 6) saturation and decrease, 7) symmetrically increase and decrease, and 8) symmetrically decrease and increase. In the following description, the above types will be described.
1) "increase" means a gradient pattern in which the value of a sample point increases according to the direction. The direction may be a left-to-right direction. Alternatively, the direction may be a top-to-bottom direction.
2) "decreasing" may mean a gradient pattern in which the values of the spots decrease according to direction.
3) "increase and saturation" may mean a gradient pattern in which the value of a sample point increases in a preceding portion and is maintained at a constant value in a following portion according to the direction.
4) "decrease and saturation" may mean a gradient pattern in which the value of a spot decreases in a preceding portion and remains at a constant value in a following portion according to the direction.
5) "saturation and increase" may mean a gradient pattern in which the value of a spot is maintained at a constant value in the former portion and increased in the latter portion depending on the direction.
6) "saturation and decrease" may mean a gradient pattern in which the value of a spot is maintained at a constant value in the former portion and decreased in the latter portion according to the direction.
7) "symmetrically increasing and decreasing" may mean a bilaterally symmetric gradient pattern in which the value of a sample point increases in a front portion and decreases in a rear portion according to the direction.
8) "symmetrically decreasing and increasing" may mean a bilaterally symmetric gradient pattern in which the values of the spots decrease in the front portion and increase in the rear portion according to the direction.
The "increase" described above may be a constant increase or a non-constant increase. Further, the "decrease" described above may be a constant decrease or a non-constant decrease.
The intra prediction unit 120 may determine the value of the reference sample point according to the type of the gradient pattern of the second neighboring block of the current block. For example, when the gradient pattern is one of an "increase" pattern, a "decrease" pattern, an "increase and saturation" pattern, a "decrease and saturation" pattern, a "saturation and increase" pattern, and a "saturation and decrease" pattern, the intra prediction unit 120 may determine the value of the reference sampling point based on the gradient value of the "increase" line or the "decrease" line.
When the type of the gradient pattern is a "symmetric" pattern, the intra prediction unit 120 may determine the value of the reference sampling point based on the gradient values of the two lines forming the symmetric gradient pattern. For example, as described above with reference to fig. 22, when the type of gradient pattern is "symmetric increase and decrease", the update given in equation 2 may be applied. For example, the intra prediction unit 120 may update the value of each reference sample by subtracting the product of the value determined based on the gradient ∑ dx and the predefined weight w from the value of the reference sample before updating. By this update, the value of the reference spot may be decreased by w × (dx). For example, as described above with reference to fig. 24, when the type of gradient pattern is "symmetric decrease and increase", the update of equation 3 may be applied. For example, the intra prediction unit 120 may update the value of the reference sampling point by adding the value determined based on the gradient ∑ dx to a product of the predefined weight w and the value of the reference sampling point before updating. By this update, the value of the reference spot may be increased w × (dx).
Detecting gradient patterns using encoding parameters
In addition to the above-described embodiments, the intra prediction unit 120 may detect a gradient pattern using an encoding parameter. For example, the encoding parameters may include 1) syntax predefined in relation to intra prediction, 2) encoding variables, 3) current coding unit, 4) prediction unit, 5) size of transform unit, and 6) coding unit partitioning or not partitioning. For example, the intra prediction unit 120 may determine values related to neighboring blocks using the encoding parameters. The neighbor block may be neighbor block 1230 described above with reference to FIG. 23 or neighbor block 1430 described above with reference to FIG. 25. The values associated with neighboring blocks may include the size of the neighboring blocks. Intra-prediction unit 120 may use the encoding parameters to determine gradients of neighboring blocks. The intra-prediction unit 120 may use the encoding parameters to determine a range of reference values to which the update is to be applied. Furthermore, the intra-prediction unit 120 may use the encoding parameters to determine the weighting factors.
Extended use of gradients
In the above-described embodiment, the update of the reference samples performed according to the gradient of the neighboring block may also be equally applied to the prediction block. For example, the update performed on the reference samples in a row may also be applied to each of the plurality of rows of the prediction block as well. Alternatively, for example, the update performed on the reference samples in one column may also be applied to each of the plurality of columns of the prediction block as well. The intra prediction unit 120 may also update the prediction block using the encoding parameters in the same manner as used to update the reference samples. In other words, the intra prediction unit 120 may update the pixel values of the prediction block based on the encoding parameters.
Fig. 26 illustrates intra prediction with 33 angular modes according to an example.
Fig. 27 illustrates intra prediction with 65 angular modes according to an example.
In step 920 described above with reference to fig. 16 and step 1030 described above with reference to fig. 18, the intra prediction unit 120 may generate a prediction block of the current block by performing intra prediction on the current block. When performing intra prediction on the current block, the intra prediction unit 120 may use the updated (or improved) reference samples. The intra prediction unit 120 may generate a prediction block for the current block using the updated (or improved) reference samples.
The intra prediction unit 120 may configure neighboring reference samples for the current block through the update of the reference samples described above. The intra prediction unit 120 may generate one or more prediction blocks of the current block in one or more intra modes. The one or more intra predictions may have an angular mode.
The intra-prediction unit 120 may determine a prediction block having a smallest rate-distortion value among the one or more prediction blocks. The intra prediction unit 120 may select an intra mode corresponding to the prediction block as the final intra prediction mode. Alternatively, the intra-prediction unit 120 may select an intra-mode that generates the prediction block having the smallest rate-distortion value as the final intra-prediction mode.
In fig. 26, an intra mode having 33 kinds of angular modes is shown. In fig. 27, an intra mode having 65 angular modes is shown. Further, mode 0 may represent a planar mode. Mode 1 may represent a DC mode.
Fig. 28 illustrates an image region according to an embodiment.
In fig. 28, a portion 1600 of an image is depicted. The portion 1600 of the image may include a current block 1610, neighboring blocks 1620, a reconstructed region 1630, neighboring block reference samples 1631, and current block reference samples 1632.
The neighboring block reference samples 1631 may be reference samples used to perform intra prediction on neighboring blocks. The current block reference sample 1632 may be a reference sample for performing intra prediction on the current block.
The sample value of the neighboring block reference sample 1631 may be an updated value when updating of the reference sample is performed for the neighboring block 1620 in steps 915 and 1022.
The sample value of the current block reference sample 1632 may be an updated value when updating of the reference sample is performed for the current block 1610 in steps 915 and 1022.
The current block 1610, the neighboring block 1620, the neighboring block reference sample point 1631, and the current block reference sample point 1632 shown in fig. 28 may represent relative positions when the intra prediction mode of the neighboring block 1620 and the intra prediction mode of the current block 1610 are both a vertical prediction mode. For example, when the intra prediction mode is the vertical prediction mode, the first neighboring block described in fig. 16 and 20 may be a block adjacent to the left end of the current block. The current block reference sample point may be a pixel in a horizontal line adjacent to the top of the current block. Further, the neighboring block reference samples may be pixels in a horizontal line adjacent to the top of the neighboring block.
Fig. 29 illustrates a method for calculating residual signals of neighboring blocks according to an example.
In fig. 29, a neighboring block 1710, a prediction block 1720 of the neighboring block, and a residual signal 1730 of the neighboring block are shown. In fig. 29, "Intra neighboring block _ residual signal" which is a residual signal of a neighboring block is described in the form of a determinant.
The neighboring block 1710 may correspond to the first neighboring block described above with reference to fig. 16 and 20. Alternatively, adjacent tile 1710 may correspond to adjacent tile 1620 described above with reference to fig. 28.
The residual signal may correspond to the "residual signal of the first neighboring block" described above with reference to fig. 16 and 20.
As shown in fig. 29, the residual signal 1730 may be the difference between the neighboring block 1710 and the prediction block 1720. Alternatively, the residual signal 1730 may be the result of subtracting the prediction block 1720 from the neighboring block 1710.
The value of the prediction block 1720 may be determined based on the intra prediction mode of the neighboring block 1710.
For example, as shown in fig. 29, when the intra prediction mode of the neighboring block 1710 is a vertical prediction mode, values of respective rows in the prediction block 1720 may be values of reference pixels in the neighboring block 1710. In other words, when the intra prediction mode of the neighboring block 1710 is a vertical prediction mode, values of respective rows in the prediction block 1720 may be values of pixels in a horizontal line adjacent to the top of the neighboring block 1710.
Alternatively, when the intra prediction mode adjacent to the block 1710 is a horizontal prediction mode, the values of the respective columns in the prediction block 1720 may be the values of the reference sample points in the adjacent block 1710. In other words, when the intra prediction mode of the neighboring block 1710 is a horizontal prediction mode, values of respective columns in the prediction block 1720 may be values of pixels in a vertical line adjacent to the left end of the neighboring block 1710.
In addition to the vertical prediction mode and the horizontal prediction mode, in other intra prediction modes, a prediction block generation method based on an existing image coding and/or decoding technique, such as HEVC or AVC, may be used.
FIG. 30 illustrates a method for calculating a residual signal of a current block according to an example.
In fig. 30, a current block 1810, a prediction block 1820 of the current block, and a residual signal 1830 of the current block are depicted. In fig. 30, an Intra current block _ residual signal, which is a residual signal of a current block, is depicted in a determinant form.
The current block 1810 may correspond to the current block described above with reference to fig. 16 and 18. Alternatively, the current block 1810 may correspond to the current block 1610 described above with reference to fig. 28.
The residual signal 1830 may correspond to the "second residual signal of the current block" described above with reference to fig. 16 and 20.
As shown in fig. 30, the residual signal 1830 may be the difference between the current block 1810 and the prediction block 1820. Alternatively, the residual signal 1830 may be the result of subtracting the prediction block 1820 from the current block 1810.
Referring to fig. 30, the sum of the values in the residual signal 1830 is 560. In other words, the sum of the levels of the residual signal 1830 is 560.
The value of the prediction block 1820 may be determined based on the intra prediction mode of the current block 1810.
For example, as shown in fig. 30, when the intra prediction mode of the current block 1810 is the vertical prediction mode, values of respective lines in the prediction block 1820 may be values of reference pixels in neighboring blocks. In other words, when the intra prediction mode of the current block 1810 is a vertical prediction mode, values of respective lines in the prediction block 1820 may be values of pixels in a horizontal line adjacent to the top of the current block 1810.
Alternatively, when the intra prediction mode of the current block 1810 is a horizontal prediction mode, values of respective columns in the prediction block 1820 may be values of reference samples in neighboring blocks. In other words, when the intra prediction mode of the current block 1810 is a horizontal prediction mode, values of respective columns in the prediction block 1820 may be values of pixels in a vertical line adjacent to the left end of the current block 1810.
The method for calculating the residual signal 1830 of the current block 1810 described with reference to fig. 30 may correspond to the generation of the second residual signal of the current block at step 940 described above with reference to fig. 16 and at step 1045 described above with reference to fig. 20.
Further, the method for calculating the residual signal 1830 of the current block 1810 described with reference to fig. 30 may correspond to the generation of the third residual signal of the current block at steps 940 and 1045.
A residual signal generated after prediction of the residual signal according to an embodiment will be described in detail with reference to fig. 31.
Fig. 31 illustrates a residual signal prediction method according to an example.
In fig. 31, a residual signal 1910 of a current block, a residual signal 1920 of an adjacent block, and a prediction residual signal 1930 of the current block are shown. In fig. 31, an Intra prediction residual signal, which is a prediction residual signal of a current block, is depicted in a determinant form.
Fig. 31 may illustrate prediction of a residual signal at step 950 of fig. 16 and step 1042 of fig. 20.
The residual signal 1910 of the current block may correspond to the residual signal 1830 of the current block described above with reference to fig. 30. Alternatively, the residual signal 1910 of the current block may correspond to the "second residual signal of the current block" described above with reference to fig. 16 and 20.
The residual signal 1920 of the neighboring block may correspond to the residual signal 1730 of the neighboring block described above with reference to fig. 29. Alternatively, the residual signal 1920 of the neighboring block may correspond to the "residual signal of the first neighboring block" described above with reference to fig. 16 and 20.
The prediction residual signal 1930 of the current block may correspond to the "first residual signal of the current block" described above with reference to fig. 16 and 20.
The prediction residual signal 1930 may be the difference between the residual signal 1910 of the current block and the residual signal 1920 of the neighboring block. Alternatively, the prediction residual signal 1930 may be the result of subtracting the residual signal 1920 of the neighboring block from the residual signal 1910 of the current block.
The sum of the values of the prediction residual signal 1930 is 267. In other words, the sum of the levels of the prediction residual signal 1930 is 267. The level sum of the final residual signal of the current block is reduced from 560 to 269 by prediction of the residual signal. The reduction of the level sum of the final residual signal due to the residual signal prediction may mean that the energy of the residual signal itself used to encode the current block is reduced. The reduction in energy of the residual signal itself used for encoding may mean that the number of bits required for encoding is reduced. Accordingly, the encoding apparatus 800 may reduce the capacity of the bitstream through residual signal prediction.
Fig. 32 shows a default residual signal according to an example.
The default residual of fig. 32 may be an example of the second residual signal described above with reference to fig. 16 and 20. In other words, the default residual may be a residual signal of the current block before residual signal prediction is performed. Alternatively, the residual signal of fig. 32 may be an example of the residual signal 1910 of the current block described above with reference to fig. 31.
Fig. 33 shows a result of performing discrete cosine transform on a default residual signal according to an example.
In fig. 33, a result of performing discrete cosine transform on the default residual signal of fig. 32 is shown.
Fig. 34 shows a proposed residual signal according to an example.
The proposed residual signal of fig. 34 may be an example of the first residual signal described above with reference to fig. 16 and 20. In other words, the proposed residual signal may be a residual signal of the current block predicted based on the residual signal. Alternatively, the proposed residual signal in fig. 34 may be an example of the prediction residual signal 1930 of the current block described above with reference to fig. 31.
Fig. 35 shows the result of performing a discrete cosine transform on the proposed residual signal according to an example.
In fig. 35, the result of performing discrete cosine transform on the default residual signal of fig. 34 is depicted.
Referring to fig. 32 to 35, it can be seen that the concentration of energy in the frequency domain is improved by means of residual signal prediction. The intra prediction unit 810 may increase the energy concentration in the frequency domain of the residual signal of the current block by means of residual signal prediction. As the magnitude of the coefficient value in the frequency domain is reduced by the residual signal prediction, the probability that the resultant value generated via quantization will be "0" and the probability that the resultant value generated via quantization will approach "0" can be increased.
Fig. 36 illustrates locations of neighboring blocks according to an example.
In fig. 28, the neighboring block 1620 is shown adjacent to the left end of the current block 1610. In fig. 28, a case where residual signal prediction is performed using a left neighboring block is shown. However, the location of the first neighboring block described above with reference to fig. 16 and 20 may not be limited to the left side of the current block 1610.
As described above in step 935 of fig. 16 and step 1043 of fig. 20, the intra residual prediction unit 810 may determine one of one or more neighboring blocks of the current block as a first neighboring block. The first neighboring block may be a block for residual signal prediction. The intra residual prediction unit 810 may determine one of one or more previously reconstructed neighboring blocks of the current block as a first neighboring block.
When a first neighboring block is determined among a plurality of neighboring blocks, the intra residual prediction unit 810 may improve spatial correlation of the first neighboring block with the residual signal.
In FIG. 36, a lower-left neighboring block A, which is one or more neighboring blocks of a current block, is shown02221. Left adjacent block a12222. Upper right adjacent block B 02223. Upper adjacent block B 12224 and upper left neighboring block B 22225. As shown in the drawing, the one or more neighboring blocks of the current block may include a lower-left neighboring block, a left neighboring block, an upper-right neighboring block, an upper neighboring block, and an upper-left neighboring block. The one or more neighboring blocks of the current block are not limited to the blocks at the positions shown in fig. 36.
In order to improve the efficiency of residual signal prediction, it is necessary to improve the spatial correlation between the current block and the neighboring block. In order to obtain neighboring blocks having high spatial correlation, the intra residual prediction unit 810 may perform residual signal prediction on each of a plurality of neighboring blocks of the current block. When a plurality of residual signals for a plurality of neighboring blocks are generated through residual signal prediction, the intra residual prediction unit 810 may select a minimum rate-distortion residual signal having a minimum rate-distortion value from among the plurality of residual signals. Further, the intra residual prediction unit 810 may select a neighboring block corresponding to a minimum rate-distortion residual signal from among a plurality of neighboring blocks. The intra residual prediction unit 810 may use the selected neighboring blocks and the selected minimum rate-distortion residual signal in order to encode the current block.
For example, steps 935, 940 and 950 described above with reference to fig. 16 and steps 1043, 1044 and 1045 described above with reference to fig. 20 may be performed on each of a plurality of neighboring blocks of the current block. Here, the plurality of neighboring blocks of the current block may be at least some of one or more previously reconstructed blocks adjacent to the current block. The number and position of the plurality of neighboring blocks may vary according to the setting of the encoding apparatus 800.
Through repetition of step 935 or step 1043, the intra residual prediction unit 810 may sequentially select a plurality of neighboring blocks of the current block as the first block.
Through the repetition of step 935 or step 1045, the intra residual prediction unit 810 may generate a plurality of first residual signals of a plurality of neighboring blocks of the current block. Further, the intra residual prediction unit 810 may calculate a rate-distortion value for each of the plurality of first residual signals.
The intra residual prediction unit 810 may determine a minimum rate-distortion residual signal having a minimum rate-distortion value among the plurality of first residual signals, and determine a neighboring block corresponding to the minimum rate-distortion residual signal as a first neighboring block used for prediction of the residual signal of the current block.
Step 940 may be repeated with the repetition of step 950 or may be performed only once. Step 1044 may be repeated with the repetition of step 1055 or may be performed only once.
In steps 935 and 1043, a first neighboring block of the current block may be determined for each coding unit. Further, in steps 985 and 1048, an identifier of the first neighboring block may be encoded for each coding unit.
Fig. 37 is a configuration diagram of a decoding apparatus according to an embodiment.
The decoding apparatus 2300 may correspond to the decoding apparatus 200 described above. The decoding apparatus 2300 may include the entropy decoding unit 210, the inverse quantization unit 220, the inverse transform unit 230, the intra prediction unit 240, the motion compensation unit 250, the adder 255, the filtering unit 260, and the reference picture buffer 270, and may further include an intra residual prediction unit 2310.
The entropy decoding unit 210, the inverse quantization unit 220, the inverse transform unit 230, the intra prediction unit 240, the motion compensation unit 250, the adder 255, the filtering unit 260, and the reference picture buffer 270 may perform the same functions and/or operations as those described above with reference to fig. 2. Therefore, a detailed description thereof will be omitted.
In the embodiments described above with reference to fig. 16 to 36, the functions and/or operations described as being performed by the intra prediction unit 120 of the encoding apparatus 800 may be performed by the intra prediction unit 240 of the decoding apparatus 2300. Also, the functions and/or operations described as being performed by the intra residual prediction unit 810 of the encoding apparatus 800 may be performed by the intra residual prediction unit 2310 of the decoding apparatus 2300.
Further, the entropy decoding unit 210, the inverse quantization unit 220, the inverse transform unit 230, the intra prediction unit 240, the motion compensation unit 250, the adder 255, the filtering unit 260, and the reference picture buffer 270 may perform functions and/or operations related to the intra residual prediction unit 2310. The functions and/or operations of the entropy decoding unit 210, the inverse quantization unit 220, the inverse transform unit 230, the intra prediction unit 240, the motion compensation unit 250, the adder 255, the filtering unit 260, the reference picture buffer 270, and the intra residual prediction unit 2310 will be described in detail below.
The intra residual prediction unit 2310 may not be separated from the intra prediction unit 240. The intra prediction unit 240 and the intra residual prediction unit 2310 may be integrated into the intra prediction unit 240, and in some embodiments, the functions and/or operations described as being performed by the intra residual prediction unit 2310 may be performed by the intra prediction unit 240.
Fig. 38 and 39 are flowcharts illustrating a decoding method according to an embodiment.
Hereinafter, the current block may be a block that is a target to be currently decoded or a block in a current image.
First, referring to fig. 38, step 2410 may be performed.
In step 2410, the decoding apparatus 2310 may generate a residual signal of the current block. Here, as described above with reference to fig. 16 and 20, the generated residual signal may correspond to the first residual signal of the current block.
In step 2411, the entropy decoding unit 210 may generate quantized coefficients of the current block.
In step 2412, the inverse quantization unit 220 may generate inverse quantized coefficients by performing inverse quantization on the quantized coefficients.
In step 2413, the inverse transform unit 230 may generate a residual signal by performing inverse transform on the inversely quantized coefficients.
After step 2410 is performed, steps 2420 and 2440 may be performed.
Next, reference will be made to fig. 39.
Before step 2420 is performed, reference samples may be generated. The description related to the generation of the reference spots made above with reference to fig. 22 can also be applied to the present embodiment. Therefore, a repetitive description thereof will be omitted.
In step 2420, the intra prediction unit 240 may determine whether to perform the update of the reference samples.
Here, the updating of the reference samples may be configured to refine sample values of the reference samples used to generate the prediction block prior to generating the prediction block for the current block.
The intra prediction unit 240 may determine whether to perform the update of the reference samples using the information indicating whether to perform the update of the reference samples described above with reference to fig. 16 and 19. The bitstream transmitted from the encoding apparatus 800 to the decoding apparatus 2300 may include information indicating whether to perform updating of the reference samples. Information indicating whether to perform updating of the reference samples may be encoded in the bitstream.
The intra prediction unit 240 may decode the encoded information indicating whether to perform the update of the reference samples. The intra prediction unit 240 may determine whether to perform the update of the reference samples using the decoded information indicating whether to perform the update of the reference samples. When the information indicates that the update of the reference samples is to be performed, the intra prediction unit 240 may update the reference samples. When the information indicates that updating of the reference samples will not be performed, the intra prediction unit 240 may not update the reference samples.
If it is determined that an update to the reference samples is to be performed, step 2425 may be performed. If it is determined that no update to the reference sample points is to be performed, step 2430 may be performed.
In step 2425, the intra prediction unit 240 may update the values of the reference samples, and through the update, the values of the reference samples used to generate the prediction block of the current block may be determined.
The description regarding the updating of the reference spots made above with reference to fig. 23, 24, and 25 can also be applied to the present embodiment. In the embodiments described above with reference to fig. 23, 24, and 25, the functions and/or operations described as being performed by the intra prediction unit 120 of the encoding apparatus 800 may be performed by the intra prediction unit of the decoding apparatus 2300. Further, the functions and/or operations described as being performed at step 915 described above with reference to fig. 16 and at step 1022 described above with reference to fig. 19 may also be performed at step 2425. A repetitive description thereof will be omitted.
After step 2425 is performed, step 2430 may be performed.
In step 2430, the intra prediction unit 240 may generate a prediction block for the current block. The intra prediction unit 240 may generate a prediction block of the current block using the reference samples according to an intra prediction mode for the current block.
For example, in generating the prediction unit, a prediction block generation method based on an existing image coding and/or decoding technique (such as HEVC or AVC) may be used.
After step 2430 is performed, steps 2460 and 2490 may be performed.
In step 2440, the intra residual prediction unit 2310 may determine whether to perform residual signal prediction.
The intra residual prediction unit 2310 may determine whether to perform residual signal prediction by using the information indicating whether to perform residual signal prediction described above with reference to fig. 16 and 20. The bitstream transmitted from the encoding apparatus 800 to the decoding apparatus 2300 may include information indicating whether to perform residual signal prediction. Information indicating whether to perform residual signal prediction may be encoded in a bitstream.
The intra prediction unit 240 may decode the encoded information indicating whether to perform residual signal prediction. The intra prediction unit 240 may determine whether to perform residual signal prediction by using the decoded information indicating whether to perform residual signal prediction. When the information indicates that residual signal prediction is to be performed, the intra prediction unit 240 may perform residual signal prediction. When the information indicates that residual signal prediction is not to be performed, the intra prediction unit 240 may not perform residual signal prediction.
When it is determined to perform residual signal prediction, step 2450 may be performed.
When it is determined that residual signal prediction is not to be performed, step 2490 may be performed.
In step 2450, the intra residual prediction unit 2310 may identify the first neighboring block. The first neighboring block may be a block used for residual signal prediction, and may be a block located near the current block. The description related to the determination of the first neighboring block made above with reference to fig. 36 can also be applied to the present embodiment.
The intra residual prediction unit 2310 may identify the first neighboring block using an identifier of the first neighboring block, which has been described above with reference to fig. 16 and 20. The bitstream transmitted from the encoding apparatus 800 to the decoding apparatus 2300 may include an identifier of the first neighboring block. The identifier of the first neighboring block may be encoded in the bitstream.
The intra residual prediction unit 2310 may decode the encoded identifier of the first neighboring block. The intra prediction unit 2310 may identify the first neighboring block using the decoded identifier of the first neighboring block.
The identifier of the first neighboring block may be information capable of identifying a neighboring block used for predicting a residual signal of the current block.
For example, the identifier of the first neighboring block may indicate a neighboring block used for predicting a residual signal of the current block among a plurality of neighboring blocks. Alternatively, the identifier of the first neighboring block may be position information indicating a position of a neighboring block used for predicting the residual signal of the current block among the plurality of neighboring blocks. The location of the neighboring block may indicate a relative location of the selected neighboring block with respect to the current block. The position of the neighboring block may indicate a direction in which the selected neighboring block is adjacent to the current block.
The location and number of neighboring blocks may be defined based on the encoding parameters.
The identifier of the first neighboring block may be configured to indicate the same block in both the encoding device 800 and the decoding device 2300. For example, regarding the identifier of the first neighboring block, the size N of the block and the position of the neighboring block must be identical to each other in both the encoding apparatus 800 and the decoding apparatus 2300. In order for the encoding apparatus 800 and the decoding apparatus 2300 to share the same component with respect to the identifier of the first neighboring block with each other, the identifier of the first neighboring block may be encoded using a "(neighboring residual index (idx) truncated unary)" scheme.
When steps 2450 and 2430 are performed, step 2460 may be performed subsequently.
In step 2460, the intra residual prediction unit 2310 may generate a reconstructed block of the current block.
The intra residual prediction unit 2310 may generate a reconstructed block of the current block based on the prediction block, the residual signal of the current block, and the residual signal of the first neighboring block.
The residual signal of the current block used in step 2460 may be a residual signal generated by the encoding apparatus 800 via residual signal prediction. In other words, the residual signal of the current block used at step 2460 may correspond to the first residual signal described above with reference to fig. 16 and 20.
The first neighboring block may be a block that has been reconstructed before the current block is decoded. Therefore, the residual signal of the first neighboring block may have been acquired by the intra residual prediction unit 2310 before the current block is decoded.
The reconstructed block of the current block may be a sum of a predicted block of the current block, a residual signal of the current block, and residual signals of neighboring blocks. Further, a reconstructed block of the current block may be generated based on a sum of the residual signal of the current block and the residual signal of the first neighboring block.
The reconstructed block may be the sum of 1) the prediction block, 2) the residual signal of the current block, and 3) the residual signal of the first neighboring block. The prediction block may be acquired according to an intra prediction mode. The residual signal of the current block may be transmitted from the encoding apparatus 800 to the decoding apparatus 2300. The residual signal of the first neighboring block may be acquired via residual signal prediction. For example, when the residual signal prediction is not performed, the residual signal of the first neighboring block may be a signal having a value of 0.
According to circumstances, when the intra residual prediction unit 2310 generates the residual signal of the first neighboring block through residual signal prediction, the intra prediction unit 240 may generate the reconstructed block of the current block by summing the predicted block of the current block, the residual signal of the current block, and the residual signals of the neighboring blocks.
When step 2430 is performed and it is determined at step 2440 that residual signal prediction is not to be performed, step 2490 may be performed.
In step 2490, the intra prediction unit 240 or the intra residual prediction unit 2310 may generate a reconstructed block of the current block based on both the prediction block and the residual signal of the current block.
The residual signal of the current block used in step 2490 may be a residual signal generated by the encoding apparatus 800 without performing residual signal prediction. In other words, the residual signal of the current block used at step 2490 may correspond to the third residual signal described above with reference to fig. 16 and 20.
The third residual signal may be a residual signal of the current block in an existing image coding and/or decoding technique, such as HEVC or AVC. For example, in generating the third residual signal, a residual signal generation method based on an existing image coding and/or decoding technique (such as HEVC or AVC) may be used.
Fig. 40 is a flowchart illustrating a residual signal generating method according to an embodiment.
Hereinafter, the current block may be a block that is a target to be currently decoded or a block in a current image.
First, referring to FIG. 40, step 2510 may be performed.
In step 2510, the decoding apparatus 2310 may generate a residual signal of the current block. Here, the generated residual signal may correspond to the first residual signal of the current block described above with reference to fig. 16 and 20.
In step 2511, the entropy decoding unit 210 may generate quantized coefficients of the current block.
In step 2512, the inverse quantization unit 220 may generate inverse quantized coefficients for the quantized coefficients by performing inverse quantization on the quantized coefficients.
In step 2513, the inverse transform unit 230 may generate a residual signal by performing inverse transform on the inversely quantized coefficients.
After step 2510 is performed, step 2520, which will be described below with reference to FIG. 41, may be performed.
Fig. 41 is a flowchart illustrating a method for decoding a residual signal according to an embodiment.
In step 2520, the intra prediction unit 240 may decode the encoded information indicating whether to perform the update of the reference samples.
The bitstream transmitted from the encoding apparatus 800 to the decoding apparatus 2300 may include information indicating whether to update the reference samples. Information indicating whether to perform updating of the reference samples may be encoded in the bitstream.
In step 2530, the intra prediction unit 240 may decode the encoded information indicating whether to perform residual signal prediction.
The bitstream transmitted from the encoding apparatus 800 to the decoding apparatus 2300 may include information indicating whether to perform residual signal prediction. Information indicating whether to perform residual signal prediction may be encoded in a bitstream.
In step 2540, the intra residual prediction unit 2310 may decode the encoded identifier of the first neighboring block.
The bitstream transmitted from the encoding apparatus 800 to the decoding apparatus 2300 may include an identifier of the first neighboring block. The identifier of the first neighboring block may be encoded in the bitstream.
In step 2550, the intra prediction unit 240 and the intra residual prediction unit 2310 may decode the residual signal. The intra prediction unit 240 and the intra residual prediction unit 2310 may generate a reconstructed block by decoding the residual signal.
Further, step 2550 may include step 2571, step 2572, step 2573, and step 2574, which will be described later with reference to fig. 43.
Fig. 42 is a flowchart illustrating a prediction block generating method according to an embodiment.
Reference samples may be generated at step 2561. The description related to the generation of the reference spots made above with reference to fig. 22 can also be applied to the present embodiment. A repetitive description thereof will be omitted.
In step 2562, the intra prediction unit 240 may determine whether to perform the update of the reference samples.
Here, the updating of the reference samples may be configured to refine sample values of the reference samples used to generate the prediction block prior to generating the prediction block for the current block.
The intra prediction unit 240 may determine whether to update the reference samples using the information indicating whether to perform the update of the reference samples described above with reference to fig. 16 and 19.
The intra prediction unit 240 may determine whether to perform the update of the reference samples using the decoded information indicating whether to perform the update of the reference samples. When the information indicates that the update of the reference samples is to be performed, the intra prediction unit 240 may update the reference samples. When the information indicates that updating of the reference samples will not be performed, the intra prediction unit 240 may not update the reference samples.
When it is determined to update the reference samples, step 2563 may be performed. When it is determined that the reference samples are not to be updated, step 2564 may be performed.
In step 2563, the intra prediction unit 240 may update the values of the reference samples, and through the update, the values of the reference samples used to generate the prediction block of the current block may be determined.
The description regarding the updating of the reference spots made above with reference to fig. 23, 24, and 25 can also be applied to the present embodiment. In the embodiments described above with reference to fig. 23, 24, and 25, the functions and/or operations described as being performed by the intra prediction unit 120 of the encoding apparatus 800 may be performed by the intra prediction unit 240 of the decoding apparatus 2300. Further, the functions and/or operations described as being performed at step 915 described above with reference to fig. 16 and at step 1022 described above with reference to fig. 19 may also be performed at step 2563. A repetitive description thereof will be omitted.
After step 2563 is performed, step 2564 may be performed.
In step 2564, the intra prediction unit 240 may generate a prediction block for the current block. The intra prediction unit 240 may generate a prediction block of the current block using the reference samples according to an intra prediction mode of the current block.
For example, in generating a prediction block, a prediction block generation method based on an existing image coding and/or decoding technique (such as HEVC or AVC) may be used.
For example, after step 2564 is performed, step 2571, which will be described later with reference to fig. 43, may be performed.
Fig. 43 is a flowchart illustrating a reconstruction block generation method according to an embodiment.
In step 2571, the intra residual prediction unit 2310 may determine whether to perform residual signal prediction.
The intra residual prediction unit 2310 may determine whether to perform residual signal prediction using the information indicating whether to perform residual signal prediction described above with reference to fig. 16 and 20.
The intra prediction unit 240 may determine whether to perform residual signal prediction using the decoded information indicating whether to perform residual signal prediction. When the information indicates that residual signal prediction is to be performed, the intra prediction unit 240 may perform residual signal prediction. When the information indicates that residual signal prediction is not to be performed, the intra prediction unit 240 may not perform residual signal prediction.
When it is determined to perform residual signal prediction, step 2572 may be performed.
When it is determined that residual signal prediction is not to be performed, step 2574 may be performed.
In step 2572, the intra residual prediction unit 2310 may identify the first neighboring block. The first neighboring block may be a block used for residual signal prediction, and may be a block located near the current block. The description related to the determination of the first neighboring block made above with reference to fig. 36 can also be applied to the present embodiment.
The intra residual prediction unit 2310 may identify the first neighboring block using an identifier of the first neighboring block described above with reference to fig. 16 and 20.
The intra residual prediction unit 2310 may identify the first neighboring block using the decoded identifier of the first neighboring block.
The identifier of the first neighboring block may be information capable of identifying a neighboring block used for predicting a residual signal of the current block.
For example, the identifier of the first neighboring block may indicate a neighboring block used for predicting a residual signal of the current block among a plurality of neighboring blocks. Alternatively, the identifier of the first neighboring block may be position information indicating a position of a neighboring block used for predicting the residual signal of the current block among the plurality of neighboring blocks. The location of the neighboring block may indicate a location of the selected neighboring block relative to the current block. The position of the neighboring block may indicate a direction in which the selected neighboring block is adjacent to the current block.
The location and number of neighboring blocks may be defined based on the encoding parameters.
The identifier of the first neighboring block may be configured to indicate the same block in both the encoding device 800 and the decoding device 2300. For example, regarding the identifier of the first neighboring block, the size N of the block and the position of the neighboring block must be identical to each other in both the encoding apparatus 800 and the decoding apparatus 2300. In order for the encoding apparatus 800 and the decoding apparatus 2300 to share the same component with respect to the identifier of the first neighboring block with each other, the identifier of the first neighboring block may be encoded using a "(neighboring residual index (idx) truncated unary)" scheme.
When step 2572 is performed, step 2573 may then be performed.
In step 2573, the intra residual prediction unit 2310 may generate a reconstructed block of the current block.
The intra residual prediction unit 2310 may generate a reconstructed block of the current block based on the prediction block, the residual signal of the current block, and the residual signal of the first neighboring block.
The residual signal of the current block used in step 2573 may be a residual signal generated by the encoding apparatus 800 via residual signal prediction. In other words, the residual signal of the current block used in step 2573 may correspond to the first residual signal described above with reference to fig. 16 and 20.
The first neighboring block may be a block that has been reconstructed before the current block is decoded. Therefore, the residual signal of the first neighboring block may have been acquired by the intra residual prediction unit 2310 before the current block is decoded.
The reconstructed block of the current block may be a sum of a predicted block of the current block, a residual signal of the current block, and residual signals of neighboring blocks. Further, a reconstructed block of the current block may be generated based on a sum of the residual signal of the current block and the residual signal of the first neighboring block.
The reconstructed block may be the sum of 1) the prediction block, 2) the residual signal of the current block, and 3) the residual signal of the first neighboring block. The prediction block may be acquired according to an intra prediction mode. The residual signal of the current block may be transmitted from the encoding apparatus 800 to the decoding apparatus 2300. The residual signal of the first neighboring block may be acquired via residual signal prediction. For example, when the residual signal prediction is not performed, the residual signal of the first neighboring block may be a signal having a value of 0.
According to circumstances, when the intra residual prediction unit 2310 generates the residual signal of the first neighboring block through residual signal prediction, the intra prediction unit 240 may generate the reconstructed block of the current block by summing the predicted block of the current block, the residual signal of the current block, and the residual signals of the neighboring blocks.
In step 2571, when it is determined that residual signal prediction is not to be performed, step 2574 may be performed.
In step 2574, the intra prediction unit 240 or the intra residual prediction unit 2310 may generate a reconstructed block of the current block based on the prediction block and the residual signal of the current block.
The residual signal of the current block used in step 2574 may be a residual signal generated by the encoding apparatus 800 without performing residual signal prediction. In other words, the residual signal of the current block used in step 2574 may correspond to the third residual signal described above with reference to FIGS. 16 and 20.
The third residual signal may be a residual signal of the current block under existing image coding and/or decoding techniques, such as HEVC or AVC. For example, in generating the residual signal, a residual signal generation method based on an existing image coding and/or decoding technique (such as HEVC or AVC) may be used.
Implicit transmission of information related to residual signal prediction
As described above, the bitstream may include 1) information indicating whether to perform residual signal prediction and 2) an identifier of a first neighboring block used to predict a residual signal of the current block. In other words, the information and the identifier may be explicitly transmitted from the encoding apparatus 800 to the decoding apparatus 2300.
In contrast, when a predefined condition for reducing the number of bits required for the information is satisfied, 1) information indicating whether to perform residual signal prediction may be omitted. Even if the information is omitted, the decoding apparatus 2300 may derive the information when a predefined condition is satisfied. In other words, this information may be implicitly transmitted.
Further, when a predefined condition for reducing the number of bits required for the identifier is satisfied, 2) the identifier of the first neighboring block used for predicting the residual signal of the current block may be omitted. Even if this information is omitted, the decoding apparatus 2300 can derive the identifier when a predefined condition is satisfied. In other words, the identifier may be implicitly transmitted.
In step 930 described above with reference to fig. 16 and step 1041 described above with reference to fig. 20, the intra residual prediction unit 810 may determine to perform residual signal prediction on the current block when a predefined condition is satisfied. Alternatively, the intra residual prediction unit 810 may determine not to perform residual signal prediction on the current block when a predefined condition is satisfied.
Further, in step 935 and step 1043, the intra residual prediction unit 810 may determine that the predefined block is the first neighboring block when the predefined condition is satisfied. Further, in step 980, step 985, step 1048, and step 1049 may be optionally performed.
In step 980 and step 1049, the intra residual prediction unit 810 may selectively encode information indicating whether to perform residual signal prediction. Alternatively, when a predefined condition is satisfied, the intra residual prediction unit 810 may omit encoding of information indicating whether to perform residual signal prediction.
In steps 985 and 1048, the intra residual prediction unit 810 may selectively encode an identifier of the first neighboring block. Alternatively, the intra residual prediction unit 810 may omit encoding of the identifier of the first neighboring block when the predefined condition is satisfied.
At step 2440 described above with reference to fig. 39, the intra residual prediction unit 2310 may determine to perform residual signal prediction when a predefined condition is satisfied. Alternatively, the intra residual prediction unit 2310 may determine not to perform the residual signal prediction when a predefined condition is satisfied. For example, when there is no information indicating whether to perform residual signal prediction, the intra residual prediction unit 2310 may determine to perform residual signal prediction.
Alternatively, the intra residual prediction unit 2310 may identify a block selected according to a predefined scheme as a first neighboring block when a predefined condition is satisfied, in step 2440. For example, when there is no identifier of the first neighboring block, the intra residual prediction unit 2310 may identify a block selected according to a predefined scheme as the first neighboring block.
For example, when the directivity of the current block and the directivity of the first neighboring block are identical to each other, high efficiency may be expected when the residual signal is predicted. Accordingly, when there is any block having the same intra prediction mode as the current block in the vicinity of the current block, prediction of the residual signal of the current block may be performed on the block having the same intra prediction mode.
In step 930 described above with reference to fig. 16 and step 1041 described above with reference to fig. 20, the intra residual prediction unit 810 may determine to perform residual signal prediction on the current block when there is any block having the same intra prediction mode as the current block in the vicinity of the current block. For example, when the value of the Most Probable Mode (MPM) flag is "true" (or 1), the intra residual prediction unit 2310 may detect that a block having the same intra prediction mode as the current block exists near the current block, and may determine to perform residual signal prediction on the current block. Accordingly, the intra residual prediction unit 2310 may identify whether residual signal prediction is used based on the value of the MPM flag.
Also, in steps 935 and 1043, when there is any block having the same intra prediction mode as the current block in the vicinity of the current block, the intra residual prediction unit 810 may determine a block having the same intra prediction mode as the first neighboring block. When a plurality of blocks having the same intra prediction mode as the current block exists near the current block, the intra residual prediction unit 810 may determine a block selected from the plurality of blocks according to a preset priority as a first neighboring block.
In step 980 and step 1049, when there is any block having the same intra prediction mode as the current block in the vicinity of the current block, the intra residual prediction unit 810 may omit encoding of information indicating whether to perform residual signal prediction.
In step 985 and step 1048, when there is any block having the same intra prediction mode as the current block in the vicinity of the current block, the intra residual prediction unit 810 may omit encoding of the identifier of the first neighboring block.
In step 2440 described above with reference to fig. 39, the intra residual prediction unit 2310 may determine to perform residual signal prediction when there is a block having the same intra prediction mode as the current block in the vicinity of the current block. Alternatively, when there is no information indicating whether to perform residual signal prediction, the intra residual prediction unit 2310 may determine to perform residual signal prediction if there is any block having the same intra prediction mode as the current block in the vicinity of the current block. Alternatively, when there is no information indicating whether to perform residual signal prediction, the intra residual prediction unit 2310 may determine not to perform residual signal prediction if there is no block having the same intra prediction mode as the current block in the vicinity of the current block.
Also, in step 2440, when there is any block having the same intra prediction mode as the current block in the vicinity of the current block, the intra residual prediction unit 2310 may identify the block having the same intra prediction mode as the first neighboring block. Also, when there is no identifier of the first block, if there is any block having the same intra prediction mode near the current block, the intra residual prediction unit 2310 may identify a block having the same intra prediction mode as the current block as a first neighboring block. Alternatively, when there is no identifier of the first block and a plurality of blocks having the same intra prediction mode as the current block exist near the current block, the intra residual prediction unit 810 may determine a block selected from the plurality of blocks according to a preset priority as the first neighboring block.
When the intra prediction is performed, the intra prediction mode may be transmitted from the encoding apparatus 800 to the decoding apparatus 2300 through the MPM flag and the MPM index. In other words, the intra prediction mode may be entropy-encoded by the MPM representation and the MPM index. The MPM may indicate a total of three intra prediction modes. The intra prediction mode indicated by the MPM may be designated as an MPM candidate mode. The intra prediction unit 240 may identify the MPM candidate mode through a prediction block in the picture near the current block.
The value of the MPM identification may be "true" (or "1") if the intra prediction mode of the current block is the same as one of the three intra prediction modes identified by the MPM. Also, when the value of the MPM flag is "true" (or "1"), the encoding apparatus 800 may transmit the MPM index to the decoding apparatus 2300. The MPM index may indicate which one of the MPM candidate modes is an intra prediction mode of the current block.
The intra residual prediction unit 2310 may perform intra prediction according to syntax definitions. When the final intra prediction mode acquired after performing intra prediction is the same as one of the MPM candidate modes, the intra residual prediction unit 2310 may acquire a residual signal of the current block and may predict the residual signal of the current block using a residual signal of a first neighboring block. The intra residual prediction unit 2310 may identify a position of a first neighboring block used for predicting a residual signal of the current block through the MPM index when the intra prediction mode of the current block is the same as the intra prediction mode of the first neighboring block.
Unit for updating reference sampling points
At step 2420, the intra prediction unit 240 may determine whether to perform the update of the reference samples for each predefined unit. The predefined unit may be at least one of: 1) an entire image sequence (i.e., video), 2) a single image (i.e., picture), 3) slices, and 4) coding units.
For a predefined unit, the reference sampling point update information may be used to indicate whether an update to the reference sampling point has been performed. The reference sampling point update information may be information indicating whether an update of the reference sampling point has been performed for a predefined unit. For example, the value of the reference sample update information being the "first value" may indicate that updating of the reference sample is to be performed when the current block is decoded. The value of the reference sample update information being the "second value" may indicate that updating of the reference sample will not be performed when decoding the current block.
The encoding apparatus 800 may include encoded residual signal prediction information in a bitstream. The decoding apparatus 2300 may use the residual signal prediction information to determine whether to perform prediction of a residual signal for the current block.
In the following description, the updating of the reference samples for each predefined cell will be described below.
1) The whole image sequence: it may be determined whether to perform an update of the reference sample points for the entire image sequence. In this case, the sequence parameter set may include reference sample point update information. When the reference sample update information of the sequence parameter set indicates that updating of the reference samples is to be performed, the intra prediction unit 240 may perform intra prediction for the entire image sequence, wherein the intra prediction uses the reference samples to which the directivity-based gradient is applied.
2) Single image: it may be determined for each image whether to perform an update of the reference sample points. In this case, the picture parameter set may include reference sample point update information. When the reference sample update information of the picture parameter set indicates that the reference sample is to be updated, the intra prediction unit 240 may perform intra prediction using the reference sample to which the directivity-based gradient is applied, with respect to the entire image corresponding to the picture parameter set.
3) Strip: a single image may be partitioned into multiple slice segments or multiple parallel blocks in a single slice segment. It may be determined for each stripe whether to perform an update to the reference samples. In this case, the slice header may include reference sampling point update information. When the reference sample update information of the slice header indicates that the reference sample is to be updated, the intra prediction unit 240 may perform intra prediction on a slice corresponding to the slice header, wherein the intra prediction uses the reference sample to which the directivity-based gradient is applied.
4) An encoding unit: whether to perform the update of the reference sampling point may be determined for each coding unit. In this case, there may be reference sample point update information for the coding unit. When the reference sample update information for the coding unit indicates that the reference sample is to be updated, the intra prediction unit 240 may perform intra prediction on the coding unit corresponding to the reference sample update information, wherein the intra prediction uses the reference sample to which the directivity-based gradient is applied.
As described above, the reference sample update information may be encoded in a sequence parameter set, a picture parameter set, or a slice header. Alternatively, the update information may be encoded for the coding unit.
Unit for prediction of residual signal
In step 2440, the intra residual prediction unit 2310 may determine, for each predefined unit, whether to perform residual signal prediction. The predefined unit may be at least one of: 1) an entire image sequence (i.e., video), 2) a single image (i.e., picture), 3) slices, and 4) coding units.
The residual signal prediction information may be information indicating whether prediction of the residual signal has been performed for a predefined unit. For example, the value of the residual signal prediction information being the "first value" may indicate that residual signal prediction is to be performed when the current block is decoded. The value of the residual signal prediction information being the "second value" may indicate that no residual signal prediction is to be performed when decoding the current block.
The encoding apparatus 800 may include encoded residual signal prediction information in a bitstream. The decoding apparatus 2300 may use the residual signal prediction information to determine whether prediction of a residual signal for the current block is to be performed.
In the following description, prediction of a residual signal for each predefined unit will be described.
1) The whole image sequence: whether to perform residual signal prediction may be determined for the entire image sequence. In this case, the sequence parameter set may include residual signal prediction information. When the residual signal prediction information of the sequence parameter set indicates that residual signal prediction is to be performed, the intra residual prediction unit 2310 may perform residual signal prediction for the entire image sequence. All blocks encoded using intra prediction in an image sequence may be decoded using residual signal prediction, or all blocks encoded using intra prediction in an image sequence may be decoded without using residual signal prediction, depending on whether residual signal prediction is performed or not.
2) Single image: whether to perform residual signal prediction may be determined for each picture. In this case, the picture parameter set may include residual signal prediction information. When the residual signal prediction information of the picture parameter set indicates that residual signal prediction is to be performed, the intra residual prediction unit 2310 may perform residual signal prediction for an entire image corresponding to the picture parameter set. All blocks in a single picture that are encoded using intra prediction may be decoded using residual signal prediction, or all blocks in a single picture that are encoded using intra prediction may be decoded without using residual signal prediction, depending on whether residual signal prediction is performed or not.
3) Strip: a single image may be partitioned into multiple slice segments or multiple parallel blocks in a single slice segment. Whether to perform residual signal prediction may be determined for each slice. In this case, the slice segment header may include residual signal prediction information. When the residual signal prediction information of the slice header indicates that residual signal prediction is to be performed, the intra prediction unit 2310 may perform residual signal prediction on a slice corresponding to the slice header. When the slice header includes the residual signal prediction information, all blocks encoded using intra prediction at a slice level may be decoded using residual signal prediction, or all blocks encoded using intra prediction at a slice level may be decoded without using residual signal prediction, depending on whether residual signal prediction is performed.
4) An encoding unit: whether to perform residual signal prediction may be determined for each coding unit. In this case, residual signal prediction information may exist for the coding unit. When the residual signal prediction information for the coding unit indicates that residual signal prediction is to be performed, the intra residual prediction unit 2310 may perform residual signal prediction on the coding unit corresponding to the residual signal prediction information.
As described above, the residual signal prediction information may be encoded in a sequence parameter set, a picture parameter set, or a slice header. Further, the residual signal prediction information may be encoded for the coding unit.
Fig. 44 is a configuration diagram of an electronic device in which the encoding apparatus according to the embodiment is implemented.
According to an embodiment, at least some of the motion prediction unit 111, the motion compensation unit 112, the intra prediction unit 120, the switch 115, the subtractor 125, the transform unit 130, the quantization unit 140, the entropy encoding unit 150, the inverse quantization unit 160, the inverse transform unit 170, the adder 175, the filtering unit 180, the reference picture buffer 190, and the intra residual prediction unit 180 of the encoding apparatus 800 may be program modules and may communicate with an external device or an external system. The program modules may be included in the encoding device 800 in the form of an operating system, application program modules, and other program modules.
The program modules may be physically stored in any of a variety of well-known memory devices. At least some of the program modules may also be stored in a remote memory storage device that is capable of communicating with the encoding apparatus 800.
Program modules may include, but are not limited to, routines, subroutines, programs, objects, components, and data structures for performing functions or operations in accordance with the embodiments or for running abstract data types in accordance with the embodiments.
The program modules may be implemented as instructions or code executed by at least one processor of the encoding apparatus 800.
The encoding apparatus 800 may be implemented as the electronic device 2600 illustrated in fig. 44. The electronic apparatus 2600 may be a general-purpose computer system serving as the encoding device 800.
As shown in fig. 44, the electronic device 2600 may include at least one processor 2621, a memory 2623, a User Interface (UI) input device 2626, a UI output device 2627, and a storage 2628 that communicate with each other over a bus 2622. The electronic device 2600 may also include a network interface 2629 to connect to a network 2630. The processor 2621 may be a semiconductor device for executing processing instructions stored in a central processing unit (cpu), the memory 2623, or the storage 2628. Memory 2623 and storage 2628 may be any of various types of volatile or non-volatile storage media. For example, the memory may include at least one of Read Only Memory (ROM)2624 and Random Access Memory (RAM) 2625.
The encoding device 800 may be implemented in a computer system including a computer-readable storage medium.
The storage medium may store at least one module required for the electronic apparatus 2600 to function as the encoding device 800. The memory 2623 may be configured to store at least one module and to be executed by the at least one processor 2621.
Functions related to communication of data or information by the encoding apparatus 800 may be performed via the network interface 2629.
Fig. 45 is a configuration diagram of an electronic device in which a decoding apparatus according to an embodiment is implemented.
According to an embodiment, the entropy decoding unit 210, the inverse quantization unit 220, the inverse transform unit 230, the intra prediction unit 240, the motion compensation unit 250, the adder 255, the filtering unit 260, the reference picture buffer 270, and the intra residual prediction unit 2310 of the decoding apparatus 2300 may be program modules and may communicate with an external device or an external system. The program modules may be included in the decoding device 2300 in the form of an operating system, application program modules, and other program modules.
The program modules may be physically stored in any of a variety of well-known memory devices. At least some of the program modules may also be stored in a remote memory storage device that is capable of communicating with decoding apparatus 2300.
Program modules may include, but are not limited to, routines, subroutines, programs, objects, components, and data structures for performing functions or operations in accordance with the embodiments or for running abstract data types in accordance with the embodiments.
The program modules may be implemented as instructions or code executed by at least one processor of the decoding apparatus 2300.
The decoding apparatus 2300 may be implemented as the electronic device 2700 shown in fig. 45. The electronic apparatus 2700 may be a general-purpose computer system serving as the decoding apparatus 2300.
As shown in fig. 45, the electronic device 2700 may include at least one processor 2721, a memory 2723, a UI input device 2726, a UI output device 2727, and a storage 2728, which communicate with each other through a bus 2722. The electronic device 2700 may also include a network interface 2729 to connect to a network 2730. The processor 2721 may be a semiconductor device for executing a processing instruction stored in the cpu, the memory 2723, or the storage 2728. The memory 2723 and storage 2728 may be any of various types of volatile or nonvolatile storage media. For example, the memory may include at least one of ROM 2724 and RAM 2725.
The storage medium may store at least one module necessary for the electronic apparatus 2700 to function as the decoding apparatus 2300. The memory 2723 may be configured to store at least one module and be executed by the at least one processor 2721.
Functions related to communication of data or information by the decoding device 2300 may be performed via the network interface 2729.
In the above-described embodiments, although the method has been described based on the flowchart as a series of steps or units, the present invention is not limited to the order of the steps, and some steps may be performed in an order different from the order of the steps already described or simultaneously performed with other steps. Furthermore, those skilled in the art will understand that: the steps shown in the flowcharts are not exclusive and may include other steps as well, or one or more steps in the flowcharts may be deleted without departing from the scope of the present invention.
The embodiments according to the present invention described above can be implemented as programs that can be executed by various computer apparatuses and can be recorded on computer-readable storage media. Computer readable storage media may include program instructions, data files, and data structures, alone or in combination. The program instructions recorded on the storage medium may be specially designed and configured for the present invention, or may be known or available to those having ordinary skill in the computer software art. Examples of the computer storage medium may include all types of hardware devices specifically configured to record and execute program instructions, such as magnetic media (such as hard disks, floppy disks, and magnetic tapes), optical media (such as Compact Disk (CD) -ROMs and Digital Versatile Disks (DVDs)), magneto-optical media (such as floppy disks, ROMs, RAMs, and flash memories). Examples of program instructions include both machine code, such as created by a compiler, and high-level language code that may be executed by the computer using an interpreter. The hardware devices may be configured to operate as one or more software modules in order to perform the operations of the present invention, and vice versa.
As described above, although the present invention has been described based on specific details (such as detailed components and a limited number of embodiments and drawings), the specific details are provided only for easy understanding of the present invention, the present invention is not limited to these embodiments, and those skilled in the art will practice various changes and modifications according to the above description.
Therefore, the spirit of the present invention should not be limited to the above-described embodiments, and it should be understood that the appended claims and equivalents or modifications thereof fall within the scope and spirit of the present invention.
Claims (21)
1. An image decoding method, comprising:
performing a determination of a value for a reference sample point used for predicting the current block; and
generating a prediction block for the current block using the reference samples,
wherein a value of at least one pixel of the current block is determined based on the reference sample point.
2. The image decoding method of claim 1, wherein the value of the reference sample is determined based on a plurality of pixels in a horizontal line not adjacent to the current block or a plurality of pixels in a vertical line not adjacent to the current block.
3. The image decoding method of claim 1, wherein the value of the reference sample is determined based on at least one pixel of each of a plurality of vertical lines, and the plurality of vertical lines are located above an upper side of the current block.
4. The image decoding method of claim 3, wherein the prediction is intra prediction, and an intra prediction mode of the intra prediction is a diagonal mode.
5. The image decoding method according to claim 1, wherein the determination of the value for the reference sampling point is an update of the value of the reference sampling point.
6. The image decoding method according to claim 5, wherein the updating is performed based on values of pixels adjacent to a horizontal line.
7. An image encoding method comprising:
performing a determination of a value for a reference sample point used for predicting the current block; and
generating a prediction block for the current block using the reference samples,
wherein a value of at least one pixel of the current block is determined based on the reference sample point.
8. The image encoding method of claim 7, wherein the value of the reference sample is determined based on a plurality of pixels in a horizontal line not adjacent to the current block or a plurality of pixels in a vertical line not adjacent to the current block.
9. The image encoding method of claim 7, wherein the value of the reference sample point is determined based on at least one pixel of each of a plurality of vertical lines, and the plurality of vertical lines are located above an upper side of the current block.
10. The image encoding method of claim 9, wherein the prediction is intra prediction, and an intra prediction mode of the intra prediction is a diagonal mode.
11. The image encoding method according to claim 7, wherein the determination of the value for the reference sampling point is an update of the value of the reference sampling point.
12. The image encoding method of claim 11, wherein the updating is performed based on values of pixels adjacent to a horizontal line.
13. A computer-readable recording medium for storing a bitstream generated by the image encoding method of claim 7.
14. A computer-readable recording medium storing a bitstream, the bitstream comprising:
encoding information for a current block;
wherein decoding is performed on the current block using the encoding information,
performing a determination of a value for a reference sample used for predicting the current block,
generating a prediction block for the current block using the reference samples, an
The value of at least one pixel of the current block is determined based on the reference sample point.
15. The computer-readable recording medium of claim 14, wherein the value of the reference sample is determined based on a plurality of pixels in a horizontal line not adjacent to the current block or a plurality of pixels in a vertical line not adjacent to the current block.
16. The computer-readable recording medium of claim 14, wherein the value of the reference sample is determined based on at least one pixel of each vertical line among a plurality of vertical lines, and the plurality of vertical lines are located above an upper side of the current block.
17. The computer-readable recording medium of claim 14, wherein the determination of the value for the reference sampling point is an update of the value for the reference sampling point.
18. A computer-readable recording medium for storing a bitstream generated by an image encoding method, the image encoding method comprising:
performing a determination of a value for a reference sample point used for predicting the current block; and
generating a prediction block for a current block using the reference samples
Wherein a value of at least one pixel of the current block is determined based on the reference sample point.
19. The computer-readable recording medium of claim 18, wherein the value of the reference sample is determined based on a plurality of pixels in a horizontal line not adjacent to the current block or a plurality of pixels in a vertical line not adjacent to the current block.
20. The computer-readable recording medium of claim 18, wherein the value of the reference sample is determined based on at least one pixel of each vertical line among a plurality of vertical lines, and the plurality of vertical lines are located above an upper side of the current block.
21. The computer-readable recording medium of claim 18, wherein the determination of the value for the reference sampling point is an update of the value for the reference sampling point.
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR10-2016-0001240 | 2016-01-05 | ||
KR1020160001240A KR102345475B1 (en) | 2016-01-05 | 2016-01-05 | Method and apparatus for prediction of residual signal |
CN201680074812.8A CN108432247B (en) | 2016-01-05 | 2016-02-01 | Method and apparatus for predicting residual signal |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201680074812.8A Division CN108432247B (en) | 2016-01-05 | 2016-02-01 | Method and apparatus for predicting residual signal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113891094A true CN113891094A (en) | 2022-01-04 |
Family
ID=59273764
Family Applications (6)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111287890.5A Pending CN113891094A (en) | 2016-01-05 | 2016-02-01 | Method and apparatus for predicting residual signal |
CN201680074812.8A Active CN108432247B (en) | 2016-01-05 | 2016-02-01 | Method and apparatus for predicting residual signal |
CN202111286949.9A Pending CN113891091A (en) | 2016-01-05 | 2016-02-01 | Method and apparatus for predicting residual signal |
CN202111288244.0A Pending CN113891095A (en) | 2016-01-05 | 2016-02-01 | Method and apparatus for predicting residual signal |
CN202111287077.8A Pending CN113891092A (en) | 2016-01-05 | 2016-02-01 | Method and apparatus for predicting residual signal |
CN202111287212.9A Pending CN113891093A (en) | 2016-01-05 | 2016-02-01 | Method and apparatus for predicting residual signal |
Family Applications After (5)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201680074812.8A Active CN108432247B (en) | 2016-01-05 | 2016-02-01 | Method and apparatus for predicting residual signal |
CN202111286949.9A Pending CN113891091A (en) | 2016-01-05 | 2016-02-01 | Method and apparatus for predicting residual signal |
CN202111288244.0A Pending CN113891095A (en) | 2016-01-05 | 2016-02-01 | Method and apparatus for predicting residual signal |
CN202111287077.8A Pending CN113891092A (en) | 2016-01-05 | 2016-02-01 | Method and apparatus for predicting residual signal |
CN202111287212.9A Pending CN113891093A (en) | 2016-01-05 | 2016-02-01 | Method and apparatus for predicting residual signal |
Country Status (3)
Country | Link |
---|---|
KR (4) | KR102345475B1 (en) |
CN (6) | CN113891094A (en) |
WO (1) | WO2017119540A1 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20190043482A (en) * | 2017-10-18 | 2019-04-26 | 한국전자통신연구원 | Method and apparatus for encoding/decoding image and recording medium for storing bitstream |
JP7433346B2 (en) | 2019-06-14 | 2024-02-19 | 北京字節跳動網絡技術有限公司 | Handling video unit boundaries and virtual boundaries |
JP7318120B2 (en) * | 2019-09-22 | 2023-07-31 | 北京字節跳動網絡技術有限公司 | Padding process in adaptive loop filtering |
WO2024151073A1 (en) * | 2023-01-10 | 2024-07-18 | 엘지전자 주식회사 | Image encoding/decoding method and apparatus, and recording medium having bitstream stored therein |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103081474A (en) * | 2010-07-31 | 2013-05-01 | 吴秀美 | Intra-prediction decoding device |
CN103339943A (en) * | 2010-12-08 | 2013-10-02 | Lg电子株式会社 | Intra prediction method and encoding apparatus and decoding apparatus using same |
CN103460700A (en) * | 2011-04-01 | 2013-12-18 | 苗太平洋控股有限公司 | Method for decoding image in intra prediction mode |
WO2014003421A1 (en) * | 2012-06-25 | 2014-01-03 | 한양대학교 산학협력단 | Video encoding and decoding method |
KR20140007097A (en) * | 2012-07-04 | 2014-01-17 | 한양대학교 산학협력단 | Method and apparatus for intra prediction using adaptive filtering |
CN104137549A (en) * | 2012-01-18 | 2014-11-05 | 韩国电子通信研究院 | Method and device for encoding and decoding image |
KR20150055858A (en) * | 2013-11-14 | 2015-05-22 | 삼성전자주식회사 | Method and apparatus for encoding video, method and apparatus for decoding video using differential residual signal |
Family Cites Families (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20090095317A (en) * | 2008-03-05 | 2009-09-09 | 삼성전자주식회사 | Method and apparatus for encoding and decoding image |
KR20100083957A (en) * | 2009-01-15 | 2010-07-23 | 삼성전자주식회사 | Method and apparatus for coding depth map using bit-plane coding |
WO2010086562A1 (en) * | 2009-01-28 | 2010-08-05 | France Telecom | Method and device for encoding images using separate encoding modes, decoding method and device, and corresponding computer programs |
KR101452860B1 (en) * | 2009-08-17 | 2014-10-23 | 삼성전자주식회사 | Method and apparatus for image encoding, and method and apparatus for image decoding |
TW201119407A (en) * | 2009-11-19 | 2011-06-01 | Thomson Licensing | Method for coding and method for reconstruction of a block of an image |
KR101700358B1 (en) * | 2009-12-09 | 2017-01-26 | 삼성전자주식회사 | Method and apparatus for encoding video, and method and apparatus for decoding video |
KR20110068792A (en) * | 2009-12-16 | 2011-06-22 | 한국전자통신연구원 | Adaptive image coding apparatus and method |
US9467705B2 (en) * | 2009-12-30 | 2016-10-11 | Ariscale Inc. | Video encoding apparatus, video decoding apparatus, and video decoding method for performing intra-prediction based on directionality of neighboring block |
EP2557795A4 (en) * | 2010-04-06 | 2015-07-08 | Samsung Electronics Co Ltd | Method and apparatus for video encoding and method and apparatus for video decoding |
EP2375750A1 (en) * | 2010-04-12 | 2011-10-12 | Panasonic Corporation | Complexity reduction of edge detection for edge based spatial prediction |
EP2375751A1 (en) * | 2010-04-12 | 2011-10-12 | Panasonic Corporation | Complexity reduction of edge-detection based spatial interpolation |
AU2015202659B2 (en) * | 2010-07-16 | 2016-05-19 | Samsung Electronics Co., Ltd. | Method and apparatus for encoding and decoding image through intra prediction |
EP2421266A1 (en) * | 2010-08-19 | 2012-02-22 | Thomson Licensing | Method for reconstructing a current block of an image and corresponding encoding method, corresponding devices as well as storage medium carrying an images encoded in a bit stream |
KR101772046B1 (en) * | 2010-11-04 | 2017-08-29 | 에스케이텔레콤 주식회사 | Video Encoding/Decoding Method and Apparatus for Intra-Predicting Using Filtered Value of Pixel According to Prediction Mode |
JP5592295B2 (en) * | 2011-03-09 | 2014-09-17 | 日本電信電話株式会社 | Image encoding method, image encoding device, image decoding method, image decoding device, and programs thereof |
TR201905119T4 (en) * | 2011-04-25 | 2019-05-21 | Lg Electronics Inc | Internal estimation method and the encoder and decoder using this method. |
CN102186082B (en) * | 2011-05-13 | 2014-04-16 | 哈尔滨工业大学 | H.264 protocol based optimized decoding method for intra-frame coding compression technology |
JP5823608B2 (en) * | 2011-06-20 | 2015-11-25 | メディア テック シンガポール ピーティーイー.リミテッド | Method and apparatus for directional intra prediction |
US9179148B2 (en) * | 2011-06-30 | 2015-11-03 | Futurewei Technologies, Inc. | Simplified bilateral intra smoothing filter |
KR20130027400A (en) * | 2011-09-07 | 2013-03-15 | 주식회사 케이티 | Method and apparatus for intra prediction in dc mode |
KR101544390B1 (en) * | 2013-06-26 | 2015-08-17 | 에스케이텔레콤 주식회사 | Method and Apparatus for Encoding and Decoding Motion Vector |
US9503715B2 (en) * | 2013-08-30 | 2016-11-22 | Qualcomm Incorporated | Constrained intra prediction in video coding |
KR101569912B1 (en) * | 2013-12-17 | 2015-11-27 | 세종대학교산학협력단 | Method and apparatus for encoding/decoding video |
-
2016
- 2016-01-05 KR KR1020160001240A patent/KR102345475B1/en active IP Right Grant
- 2016-02-01 CN CN202111287890.5A patent/CN113891094A/en active Pending
- 2016-02-01 CN CN201680074812.8A patent/CN108432247B/en active Active
- 2016-02-01 CN CN202111286949.9A patent/CN113891091A/en active Pending
- 2016-02-01 CN CN202111288244.0A patent/CN113891095A/en active Pending
- 2016-02-01 WO PCT/KR2016/001094 patent/WO2017119540A1/en active Application Filing
- 2016-02-01 CN CN202111287077.8A patent/CN113891092A/en active Pending
- 2016-02-01 CN CN202111287212.9A patent/CN113891093A/en active Pending
-
2021
- 2021-12-27 KR KR1020210188136A patent/KR102448084B1/en active IP Right Grant
-
2022
- 2022-09-22 KR KR1020220120195A patent/KR102558803B1/en active IP Right Grant
-
2023
- 2023-07-19 KR KR1020230093621A patent/KR20230112594A/en active IP Right Grant
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103081474A (en) * | 2010-07-31 | 2013-05-01 | 吴秀美 | Intra-prediction decoding device |
CN103339943A (en) * | 2010-12-08 | 2013-10-02 | Lg电子株式会社 | Intra prediction method and encoding apparatus and decoding apparatus using same |
CN103460700A (en) * | 2011-04-01 | 2013-12-18 | 苗太平洋控股有限公司 | Method for decoding image in intra prediction mode |
CN104137549A (en) * | 2012-01-18 | 2014-11-05 | 韩国电子通信研究院 | Method and device for encoding and decoding image |
WO2014003421A1 (en) * | 2012-06-25 | 2014-01-03 | 한양대학교 산학협력단 | Video encoding and decoding method |
KR20140007097A (en) * | 2012-07-04 | 2014-01-17 | 한양대학교 산학협력단 | Method and apparatus for intra prediction using adaptive filtering |
KR20150055858A (en) * | 2013-11-14 | 2015-05-22 | 삼성전자주식회사 | Method and apparatus for encoding video, method and apparatus for decoding video using differential residual signal |
Also Published As
Publication number | Publication date |
---|---|
KR102448084B1 (en) | 2022-09-28 |
WO2017119540A1 (en) | 2017-07-13 |
CN113891091A (en) | 2022-01-04 |
KR20170082071A (en) | 2017-07-13 |
KR20220136308A (en) | 2022-10-07 |
CN113891095A (en) | 2022-01-04 |
KR102558803B1 (en) | 2023-07-25 |
CN113891093A (en) | 2022-01-04 |
CN108432247A (en) | 2018-08-21 |
CN108432247B (en) | 2021-11-19 |
KR102345475B1 (en) | 2022-01-03 |
CN113891092A (en) | 2022-01-04 |
KR20220002207A (en) | 2022-01-06 |
KR20230112594A (en) | 2023-07-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109076216B (en) | Method and apparatus for encoding and decoding video using picture division information | |
CN109314785B (en) | Method and apparatus for deriving motion prediction information | |
CN110463201B (en) | Prediction method and apparatus using reference block | |
KR102558803B1 (en) | Method and apparatus for prediction of residual signal | |
US20220201295A1 (en) | Method, apparatus and storage medium for image encoding/decoding using prediction | |
CN108605123B (en) | Method and apparatus for encoding and decoding video by using prediction | |
CN115442614A (en) | Method and apparatus for encoding and decoding video by using prediction | |
CN108605139B (en) | Method and apparatus for encoding and decoding video by using prediction | |
CN113924773A (en) | Image encoding/decoding method and apparatus, and recording medium for storing bit stream | |
CN118355663A (en) | Method, apparatus and recording medium for encoding/decoding image | |
CN115941948A (en) | Method and apparatus for encoding and decoding video by using prediction |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |