The present invention relates to a method and apparatus for encoding or decoding a video signal, and more particularly, to a method and apparatus for encoding or decoding a video signal for improving coding efficiency.
Recently, the demand for high resolution and high quality images such as a high definition(HD) image and an ultra high definition(UHD) image is increasing in various application fields. As the image data has high resolution and high quality bit by bit, the amount of data is relatively increased as compared with the conventional image data. Therefore, when image data is transmitted by using a conventional wired/wireless broadband line or stored by using an existing storage medium, the cost for transmission storage are increased. High-efficiency image compression techniques may be utilized to solve such problems caused by high-resolution and high-quality image data.
Video compression techniques include spatial prediction and/or temporal prediction to reduce or eliminate redundancy inherent in video sequences. In block-based video coding, a video frame or slice may be divided into blocks. Each block may be divided once again. Blocks in an intra-coded I frame or slice are encoded using spatial prediction for reference samples in neighboring blocks of the same frame or slice. Blocks in inter-coded P or B frames or slices may also use spatial prediction for reference samples in neighboring blocks of the same frame or slice, or temporal prediction for reference samples in different reference frames. The spatial or temporal prediction generates a prediction block for the block to be coded. The residual data represents a pixel difference between the original block to be coded and the prediction block.
Generally, in connection with the current block, an image is encoded using a square coding block(CU) and a transform block (TU) of the same size. Based on each coding block or prediction block size, the transform blocks are applied to a coding block as a quad-tree division structure. However, when the square coding block is used, since the prediction mode and the prediction information must be transmitted for each coding block, unnecessary information may be transmitted according to the type of the image, thereby reducing the coding efficiency. In addition, there is a disadvantage in that characteristics of an image corresponding to a coding block, and the characteristics of a residual signal generated according to a prediction mode may not be considered.
In addition, in a general video codec, the coding units of various sizes may be used and thus, it is possible to effectively perform encoding in consideration of spatial resolution and block characteristics of an image. Generally, when the image has a low resolution and the pixel value of the image is highly changed locally, the coding units having small size are used to perform effectively the intra prediction and inter prediction. In this way, when a coding unit of a small size is used, the amount of coding bits necessary is increased, but there is an advantage that the quantization error and the amount of bits necessary for coding the transform coefficients are reduced because the prediction is relatively accurate.
Conversely, in a region where the spatial resolution of the image is large or changes of the pixel values are small, a method using a large coding unit may increase the coding efficiency. In this case, even when a large coding unit is used, there is a tendency that a prediction error does not greatly increase as compared with a prediction method using a small coding unit. Therefore, when coding these blocks, it may be efficient to save the amount of transmitted bits by using a large coding unit. However, even if various coding units are used, there is a demerit that it is difficult to efficiently code various images having high resolution.
In video compression techniques for improving coding efficiency, the motion prediction is used to eliminate temporal redundancy between consecutive pictures. In order to detect temporal redundancy, a motion of a current block is prediction using a plurality of reference pictures, and a motion compensation is performed to generate a prediction block. A motion information includes at least one reference picture index and at least one motion vector.
Further, in order to acquire motion information, the current block performs bi-directional prediction to construct a prediction motion vector list of the current block, and based upon the vector list, a difference motion vector which is a difference value between the prediction motion vector and the motion vector of the current block may be transmitted to the decoder.
In this case, the prediction motion vector lists including the prediction motion vectors for each direction are independent from each other. However, as various sizes are used for inter-picture prediction, the relationships between the motion information of the current block and the motion information of one or more adjacent blocks increases. Therefore, according to the above-described conventional compression method, when the picture size is larger than the high-quality picture and various sizes are used for motion prediction and motion compensation, the compression efficiency of the motion information is lowered.
An object of the present invention is to provide an apparatus for encoding and decoding a video signal, which improves coding efficiency by using coding blocks and transform blocks having various shapes according to images.
Further, another object of the present invention is to provide a method of determining a coding order of a transform block capable of increasing a coding efficiency according to an intra-picture prediction mode of a current block, and a method and apparatus for encoding and decoding a video signal in order to perform the determining method.
An object of the present invention is to provide a method and a apparatus for decoding a video signal, which improve the coding efficiency of intra-picture prediction using transform blocks of various shapes.
Further, another object of the present invention is to provide a method and a apparatus for decoding a video signal capable of enhancing coding efficiency by first coding a transform coefficient group in a low frequency region rather than a high frequency region.
An object of the present invention is to provide a method and an apparatus for constructing a prediction motion vector list that improves the coding efficiency of inter-picture prediction by using highly correlated information in bi-directional prediction of a current block.
Further, another object of the present invention is to provide a method and a apparatus for constructing a prediction motion vector list capable of increasing coding efficiency according to whether reference pictures for bi-directional prediction of a current block are same or not.
According to an embodiment of the present invention devised for solving the above problems, there is provided a method for decoding a video signal, the method comprising: a step for setting a structure of a coding block constituting a current image; a step for setting a structure of transform blocks corresponding to the coding block; and a step for generating a prediction signal by using the transform blocks, wherein the coding block includes at least one or more blocks of a square block and a non-square block.
The transform block includes any one more block of a square transform block and a non-square transform block of the same size or small size of the coding block.
According to one embodiment of the present invention, the square transform block may be a transform block having a quad-tree structure, and the non-square transform block may be a transform block having a non-square binary tree structure or a non-square quad-tree structure. Further, a step for receiving a piece of transform block division information indicating the shape and size of the transform block may be included.
According to one embodiment of the present invention, the transform block may be divided to include more than any one selected from a non-square transform sub-block and a square transform sub-block, and further comprises a step for subdividing the transform block into sub-transform blocks. When dividing into the sub-transform blocks once again, the prediction signal may be generated for each sub-transform block. In addition, the sub-transform blocks may include more than any one selected from a non-square sub-transform block and a square sub-transform block.
When the current block performs intra-picture prediction, the method of the present invention may further include a step for determining to which region the intra-picture prediction mode of the current block belongs to, among the first mode region having 90° or more and less than 180°, the second mode region having 180° or more and less than 225°, and the third mode region having 45° or more and less than 90°; and a step for variably determining a coding order of the transform block based on a mode region to which the intra-picture prediction mode belongs.
If the direction of the intra-picture prediction mode is the second mode region, the transform block may be coded in order from the lower left direction to the upper right direction, and if the transform block is the square transform block, the transform block may be coded according to an order of the lower left, the lower right, the left upper and the right upper directions. If the transform block is a square transform block, it may be coded according to the order of the lower left, the upper left, the lower right, and the upper right directions.
Further, if the transform block is a divided non-square transform block in a vertical direction, it may be coded in order from left side to right side. If the transform block is a divided non-square transform block in a horizontal direction, it may be coded in order from the bottom to the top.
If the direction of the intra-picture prediction mode is the third region mode, the transform block may be coded in order from the upper right direction to the lower left direction, and if the transform block is the square transform block, the transform block may be coded according to an order of the upper right, the upper left, the lower right, and the lower left directions. If the transform block is a square transform block, it may be coded according to the order of the upper right, the lower right, the upper left, and the lower left directions.
Further, if the transform block is a divided non-square transform block in a vertical direction, it may be coded in order from right side to left side. If the transform block is a horizontally divided non-square transform block, it may be coded in order from the top to the bottom.
According to another embodiment of the present invention devised for solving the above problems, there is provided an apparatus for decoding a video signal, the apparatus comprising: a block setting unit for setting a structure of a coding block constituting a current image, and for setting a structure of transform blocks corresponding to the coding block; and a prediction signal generation unit for generating a prediction signal by using the transform blocks, wherein the coding block and the transform block include at least one or more blocks of a square block and a non-square block, and the prediction signal generation unit may code the transform blocks according to a variable coding order, based the mode region to which the coding block belongs, among the mode regions classified according to the prediction direction of the intra-picture prediction mode of the coding block.
According to one embodiment of the present invention devised for solving the above problems, there is provided a method for decoding a transform block including a scan method for scanning a transform block having a plurality of transform coefficient groups. The scan method comprises a step for obtaining transform region information indicating at least one or more transform regions included in the transform block; a step for setting a plurality of transformation coefficient groups included in the first transform region based on the transform region information; and a step for scanning the plurality of transform coefficient groups included in the second transform region in the transform block.
In connection with the plurality of transformation coefficient groups, the transform coefficient group of the low frequency region may be set prior to the transform coefficient group of the high frequency region.
According to one embodiment of the present invention, the transform region information is received from an encoder or may be obtained from at least one of a sequence parameter set(SPS) and a slice header. Further, the transform region information may be obtained in a predetermined manner in the decoder.
The present method may further include a step for determining whether the transform block is a non-square block or not, prior to the step of obtaining the transform region information. The determining may be performed based on the horizontal length and the vertical length of the transform block.
According to one embodiment of the present invention devised to solve another problems, there is provided an apparatus for decoding a video signal comprising, a transform region information obtaining unit for obtaining transform region information indicating at least one transform region included in a transform block; and a transform coefficient group scan unit that sequentially scans a plurality of transform coefficient groups included in the transform region according to at least one or more transform regions on the basis of the transform region information.
According to one embodiment of the present invention devised to solve another problems, there is provided a method of constructing a prediction motion vector list comprising: a step for obtaining a motion vector for a first direction of a current block; and a step for setting at least one or more prediction motion vector candidates of the second direction constituting a prediction motion vector list in the second direction by using the motion vector for the first direction.
The at least one or more prediction motion vector candidates of the second direction may be set by copying the motion vector for the first direction, and the reference pictures for the first direction and the reference picture for the second direction may have the same picture information. Further, the prediction motion vector candidates of the second direction may be assigned to the index according to the order starting from the smallest code word.
According to one embodiment of the present invention, the prediction motion vector candidate of the second direction may be set by scaling the motion vector for the first direction based on picture information, and the picture information of the reference pictures for the first direction and the reference pictures for the second direction may be different. Also, the prediction motion vector candidates of the second direction may be assigned to the index according to the ascending order starting from the smallest code word.
Prior to the step of setting at least one or more prediction motion vector candidates of the second direction, the step for determining whether or not the picture information of the reference picture for the first direction and the picture information of the reference picture for the second direction are the same or not is further included.
According to one embodiment of the present invention devised to solve the above-mentioned problems, there is provided an apparatus for constructing a prediction motion vector list comprising: a motion vector obtaining unit for obtaining a motion vector for a first direction of a current block; and a second direction prediction motion vector list determining unit for setting at least one or more prediction motion vector candidates of the second direction constituting the prediction motion vector list of the second direction by using the motion vector for the first direction.
The second direction prediction motion vector list determining unit may include a first prediction motion vector candidate determining unit for setting at least one or more prediction motion vector candidates of the second direction by using the motion vector for the first direction; and a second prediction motion vector candidate determining unit for setting at least one or more prediction motion vector candidates of the second direction by using the spatial and temporal neighbor blocks of the current block.
The prediction motion vector candidate of the second direction obtained by the first prediction motion vector candidate determining unit may be set by copying the motion vector for the first direction. The picture information of the reference picture for the first direction and the reference picture for the second direction may be same.
The predicted motion vector candidate of the second direction obtained by the first prediction motion vector candidate determining unit may be set by scaling the motion vector for the first direction on the basis of picture information, the picture information of the reference picture for the first direction, and the picture information of the reference picture for the second direction may be different from each other. In addition, the prediction motion vector candidates of the second direction obtained by the first prediction motion vector candidate determining unit may be assigned to the index in the order having the smallest code word.
According to an embodiment of the present invention, an apparatus for encoding and decoding a video signal which improves coding efficiency by using a non-square coding block and a non-square transform block according to an image is provided.
Further, according to another embodiment of the present invention, a high-resolution image may be encoded and decoded by changing the coding order of the transform block according to the direction of the intra-picture prediction mode of the current block. In addition, it is another object of the present invention to provide a method for determining a coding order of a transform block capable of increasing a coding efficiency, and a method and apparatus for decoding a video signal to perform the coding order.
According to the embodiment of the present invention, when the transform block is a non-square block, the transform block is divided into at least one or more transform regions including a part of the plurality of transform coefficient groups, and the transform coefficient groups included in the transform region are sequentially scanned, so that the coding efficiency of intra-picture prediction may be improved. That is, a method for decoding a video signal which improves the coding efficiency of intra-picture prediction, and an apparatus thereof are provided.
Further, according to another embodiment of the present invention, a decoding method for decoding a video signal, wherein the transform block is divided into at least one or more transform regions, and the transform coefficient groups included in the divided transform region are sequentially scanned so that the transform coefficient group in the low frequency region may first be coded rather than the high frequency region, and thereby coding efficiency may be improved, and an apparatus thereof are provided.
According to an embodiment of the present invention, a method for constructing a predicted motion vector list, wherein a motion vector for a first direction of a current block performing bi-directional prediction is used in setting at least one or more prediction motion vector candidate for a second direction while constructing a prediction motion vector list for a second direction, and thus, the coding efficiency of the inter-picture prediction may be improved due to use of information having a high degree of correlation in inter-picture prediction, and the apparatus thereof are provided.
Further, according to another embodiment of the present invention, a method for constructing a prediction motion vector list, wherein it is determined whether the reference pictures for bi-directional prediction of the current block are same or not, and according to whether the reference pictures are same or not, the motion vector for the first direction in various ways is used as at least one or more prediction motion vector candidates while the prediction motion vector list for a second direction is constructed, and thereby coding efficiency may be provided, and an apparatus thereof are provided.
Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.
The embodiments of the present invention are provided to more fully describe the present invention to those skilled in the art having a common knowledge. The following embodiments may be modified in various forms, and the scope of the present invention is not limited to the following embodiments. Rather, these embodiments are provided so that the present disclosure may be explained more thoroughly and completely, and the concept of the invention may be fully conveyed to those skilled in the art.
Further, in the drawings, the thickness and the size of each unit are exaggerated for convenience and clarity of description, and the same reference numerals denote the same elements in the drawings. As used herein, the term “and/or” includes any and all combinations of one or more items of the listed items.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting the invention. As used herein, the singular forms “a”, “an” and “the” may include plural referents unless the context clearly dictates otherwise. Also, the terms, “comprise” and/or “comprising” when used in this specification are employed to specify the stated forms, numbers, steps, operations, elements, components and/and presence of the above item group, and does not preclude the addition of one or more other forms numbers, steps, operations, elements, components and/or presence of the above item group.
Although the terms, first, second, and etc. are used herein to describe various elements, members, parts, regions, and/or portions. In the present specification, it is very apparent that the present invention should not be limited to the elements, members, parts, regions, and/or portions. These terms are only used to distinguish one element, member, component, region, or portion from another region or portion. Thus, a first element, member, component, region, or portion described below may refer to a second element, member, component, region, or portion without departing from the teachings of the present invention. Furthermore, the term, “and/or” include any combination of a plurality of related items as described above, or any item of a plurality of related items as described above.
It is to be understood that when an element is referred to as being “connected” or “coupled” to another element, it is to be understood that not only the element is directly connected or coupled to the other element, but also the case where another element is arranged between the above-described element and the other element is included. However, when an element is referred to as being “directly connected” or “directly coupled” to another element, it should be understood that there is no other element between them and the element and the other element are directly connected or coupled.
Hereinafter, the embodiments of the present invention will be described with reference to the drawings schematically showing ideal embodiments of the present invention. In the drawings, for example, the size and shape of members may be exaggerated for convenience and clarity of illustration, and in actual implementation, variations of the illustrated shape may be expected. Accordingly, the embodiments of the present invention should not be construed as being limited to the specific shapes of the range shown herein.
Referring
Each configuring component shown in
That is, each configuring component is enumerated as each constituent element for convenience of description, and at least two constituent elements of each constituent element are combined to form one constituent element, or one constituent element is divided into a plurality of constituent elements for fulfilling the functions of the present invention. It is to be understood that either the embodiments in which each of these configuring elements according to even the integrated or the separate embodiments may be included in the scope of the present invention without departing from the essential aspects of the present invention.
The picture partition unit 1050 may divide the inputted picture into at least one processing unit. The processing unit may be a Prediction Unit(hereinafter, “PU”), a Transform Unit(hereinafter, “TU”), or a Coding Unit(hereinafter, “CU”). However, for the sake of convenience of explanation, the prediction block may be expressed as a prediction unit, the transform block may be expressed as a transform unit, and the encoding or decoding block may be expressed as a coding unit or a decoding unit.
According to an embodiment of the present invention, the picture partition unit 1050 divides a picture into a combination of a plurality of encoding blocks, a prediction block, and a transform block, and it is possible to encode a picture by selecting a combination of an encoding block, a prediction block, and a transform block based on a predetermined criterion(for example, a cost function).
For example, one picture may be divided into a plurality of coding blocks. According to an embodiment of the present invention, one picture may partition the coding block using a recursive tree structure such as a quad tree structure or a binary tree structure. A coding block, which is divided into other coding blocks with one picture or a largest coding unit as a root, may be divided with child nodes as many as the number of the divided coding blocks. In this process, the coding block which is not further divided may be a leaf node. For example, in a case where it is assumed that only a square block division is possible for one coding block, one coding block may be divided into four coding blocks, for example.
However, according to the present invention, the coding block, the prediction block, and/or the transform block are not limited to the symmetric partition in a division step, but the asymmetric division is also possible. Not only 4 partitions but also 2 partitions are possible. However, this number of divisions is only exemplary and the present invention is not limited thereto. In this way, a method and apparatus for encoding and decoding a video signal using a non-square block that is asymmetrically divided into a coding block and a transform block will be described with reference to
The prediction block may also be divided into at least one square or non-square shape of the same size in one coding block, and any one of the divided prediction blocks in one coding block. One prediction block may be divided so as to have a shape and a size which are different from those of the other prediction block. In an embodiment, the coding block and prediction block are same, and all coding block is used for prediction as the prediction block. That is, the prediction may also be performed based on the divided coding blocks without distinguishing between the coding blocks and the prediction blocks.
The prediction unit may include an inter-picture prediction unit 1100 for performing inter-prediction and an intra-picture prediction unit 1150 for performing intra-prediction. In order to enhance the coding efficiency, instead of coding the video signal as it is, a video is predicted using a specific region of an inner side of the previously completed coded and decoded picture, and the residual between the original image and the predicted image. In addition, the prediction mode information, motion vector information, and the like used for prediction may be encoded by the entropy encoding unit 1350 together with the residual value, and may be transmitted to the decoding unit. When a particular encoding mode is used, it is also possible to encode the original block as it is without generating a prediction block through the prediction units 1100 and 1150, and transmit it to the decoding unit.
According to an embodiment of the present invention, the prediction units 1100 and 1150 may determine whether inter-picture prediction or intra-picture prediction is performed or not with respect to the prediction block, and determine whether specific information according to each of the prediction methods such as the intra-picture prediction mode, the motion vector, and the reference picture may be determined. In this case, the processing unit in which the prediction is performed, the prediction method, and the detail processing unit may be different from each other. For example, even if the prediction mode and the prediction method are determined according to the prediction block, but a prediction may be performed according to the transform block.
The prediction units 1100 and 1150 may generate prediction blocks composed of predicted samples by performing prediction on the processing units of pictures divided by the picture partition unit 1050. The picture processing unit in the prediction units 1100 and 1150 may be a coding block unit, a transform block unit, or a prediction block unit.
The inter-picture prediction unit 1100 may predict a prediction block based on information of at least one of a previous picture or a following picture of the current picture and the prediction block may be predicted based on the information of the partially coded region in the current picture in some cases. The inter-picture prediction unit 1100 may include a reference picture interpolation unit, a motion prediction unit, and a motion compensation unit.
According to an embodiment of the present invention, the information of the one or more pictures used for prediction in the inter-picture prediction unit 1100 may be information of already coded and decoded pictures, or it may be the information of the modified and stored pictures according to some arbitrary methods. For example, the picture modified and stored by any of the above arbitrary methods may be a picture obtained by enlarging or reducing a picture on which coding and decoding has been performed, or may be a picture acquired by changing the brightness of all pixel values in a picture, or by modifying a color format.
The reference picture interpolation unit may generate the pixel information having integer pixels or less from the reference picture when receiving the reference picture information from the memory 1550. In the case of a luma pixel, pixel information of less than or equal to an integer may be generated in units of ¼ pixel by using a DCT-based 8-tap interpolation filter with different coefficients of the filter. In the case of a chroma pixel, pixel information of less than or equal to an integer may be generated in units of ⅛ pixel by using a DCT-based 4-tap interpolation filter having different coefficients of a filter. However, the unit for generating the pixel information of the type of the filter and a piece of pixel information of less than or equal to an integer is not limited to thereof, and a unit for generating pixel information equal or less than an integer using various interpolation filters may be determined.
The motion prediction unit may perform motion prediction based on the reference pictures interpolated by the reference picture interpolation unit. Various methods may be used to calculate the motion vector. The motion vector may have a motion vector value of an integer pixel unit or a motion vector value of ¼ or ⅛ pixel unit based on the interpolated pixel. According to an embodiment of the present invention, the prediction unit of the current block may be predicted by differentiating the motion prediction method in the motion prediction unit. The motion prediction method may be a variety of methods including a merge method, an AMVP(Advanced Motion Vector Prediction) method, and a skip method. In this way, the information including the index of the reference picture, the motion vector prediction (MVP), and the residual signal selected in the inter-picture prediction unit 1100 may be entropy coded and transmitted to the decoder.
Unlike the inter-picture prediction, the intra-picture prediction unit 1150 may generate a prediction block based on reference pixel information around the current block, which is pixel information in the current picture. In the case where the neighboring blocks of the prediction block are blocks in which the inter-picture prediction is performed, that is, in a case where the reference pixels are pixels subjected to inter-picture prediction, the reference pixels included in the block in which the inter-picture prediction has been performed may be replaced with the reference pixel information of a block subject to the neighboring intra-picture prediction.
If the reference pixel is unavailable, a setting step should be preceded to make it available. Generally, in such a case, the non-available reference pixel has been used by replacing it with at least one reference pixel among available neighboring pixels or assigning a predetermined sample value.
However, a method of copying and using the reference pixels available for such unavailable reference pixels may cause a problem such as lowering the intra-picture prediction coding efficiency in decoding the current image. According to various embodiments of the present invention, in order to solve this problem, it is possible to perform intra-picture prediction using an available reference pixel region rather than a reference pixel region which is not available in the coding of the transform block. For this purpose, the coding order of the transform blocks may be changed in various ways according to the direction of the intra-picture prediction mode. A detailed description thereof will be described later.
In addition, the intra-picture prediction unit 1150 may use the most probable mode (MPM) obtained from the neighboring blocks to encode the intra-picture prediction mode. According to various embodiments of the present invention, the most probable mode list (MPM List), which is constructed with the most probable intra-picture prediction modes, may be constructed in various ways.
Even when the intra-picture prediction unit 1150 performs intra-picture prediction, the processing unit in which the prediction is performed, the prediction method, and the processing unit in which the concrete contents are determined may be different from each other. For example, when the prediction mode may be defined as a prediction unit (PU), the prediction may be performed in the prediction unit, the prediction mode may be defined as a prediction unit, and the prediction may be performed in a transform unit (TU). According to an embodiment of the present invention, the prediction mode may be determined as units of coding blocks (CU), and the prediction may be performed in units of the coding blocks because the coding unit and the prediction unit are the same.
The prediction mode of the intra-prediction may include 65 directional prediction modes and at least more than two non-directional modes. The non-directional mode may include a DC prediction mode and a planar mode. The number of the 67 inter-picture prediction modes is only an example, and the present invention is not limited thereto, and intra-prediction may be performed in a more directional or non-directional mode in order to predict in various ways.
According to an embodiment of the present invention, intra-prediction may generate a prediction block after applying a filter to a reference pixel. In this case, whether to apply the filter to the reference pixel may be determined according to the intra-picture prediction mode and/or the size of the current block.
The prediction unit (PU) may be determined in various sizes and forms based upon coding unit (CU) which is no longer divided. For example, in case of inter-picture prediction, the prediction unit may have the same size as 2N×2N, 2N×N, N×2N or N×N. In the case of the intra-prediction, the prediction unit may have the same size as 2N×2N or N×N (N is an integer), but the intra-picture prediction may be performed even as a shape of a non-square size as well as a shape of a square size. In this case, the N×N size prediction unit may be set to be applied only in a specific case. Further, an intra-prediction unit having the same size as N×mN, mN×N, 2N×mN or mN×2N(m is a fraction or an integer) may be further defined and used in addition to the prediction unit of the above-described size.
A residual value(a residual block or a residual signal) between the prediction block generated in the intra-picture prediction unit 1150 and the original block may be inputted to the transform unit 1200. In addition, the prediction mode information, the interpolation filter information, and the like used for prediction may be encoded by the entropy encoding unit 1350 together with the residual value, and then transmitted to the decoder.
The transforming unit 1200 may transform a residual block including residual values of the prediction unit generated through the prediction units 1100 and 1150 by using the transform methods such as a discrete cosine transform (DCT), a discrete sine transform(DST), and KLT(Karhunen Loeve Transform). The step for determining whether the DCT, DST, or KLT method is applied to transform the residual block may be determined based on the intra-picture prediction mode information of the prediction unit used to generate the residual block.
The transform block in transform unit 1200 may be a TU and may be a square, a non-square, a square quad tree structure, a non-square quad tree structure or a binary tree structure. According to an embodiment of the present invention, the size of the transform unit may be determined within a range of predetermined maximum and minimum sizes. In addition, one transform block may be further divided into sub transform blocks, which may be a square structure, a non-square structure, a square quad tree structure, a non-square quad tree structure, or a binary tree structure.
The quantization unit 1250 may quantize the residual values transformed by the transform unit 1200 to generate a quantization coefficient. According to an embodiment of the present invention, the transformed residual values may be value transformed into a frequency region. The quantization coefficient may be changed according to the transform unit or the importance of the image, and the value calculated by the quantization unit 1250 may be provided to the dequantization unit 1400 and the rearrangement unit 1300.
The rearrangement unit 1300 may rearrange the quantization coefficients provided from the quantization unit 1250. The rearrangement unit 1300 may improve the coding efficiency in the entropy encoding unit 1350 by rearranging the quantization coefficients. The rearrangement unit 1300 may rearrange the quantization coefficients of the two-dimensional block form into a one-dimensional vector form through a coefficient scan method. In the coefficient scan method, it is possible to determine which scan method is used according to the size of the transform unit and the intra-picture prediction mode. The coefficient scan method may include a jig-zag scan, a vertical scan method that scans coefficients of a two-dimensional block type in a column direction, and a horizontal scan method that scans coefficients of a two-dimensional block type in a row direction. According to an embodiment of the present invention, the rearrangement unit 1300 may increase the entropy encoding efficiency in the entropy encoding unit 1350 by changing the order of the coefficient scanning based on the probabilistic statistics of the coefficients transmitted from the quantization unit.
The entropy encoding unit 1350 may perform entropy encoding on the quantized coefficients rearranged by the rearrangement unit 1300. For entropy encoding, various encoding methods such as Exponential Golomb, Context-Adaptive Variable Length Coding(CAVLC), and Content-Adaptive Binary Arithmetic Coding(CABAC) may be used.
The entropy encoding unit 1350 encodes various information such as quantization coefficient information, block type information, prediction mode information, division unit information, prediction unit information, and transmission unit information, motion vector information, reference picture information, interpolation information of a block, and filtering information of the coding unit received from the rearrangement unit 1300 and the prediction units 1100 and 1150. Further, according to an embodiment of the present invention, the entropy encoding unit 1350 may make a certain change to the parameter set or syntax to be transmitted, if necessary.
The dequantization unit 1400 dequantizes the quantized values in the quantization unit 1250 and the inverse transform unit 1450 inversely changes the dequantized values in the dequantization unit 1400. The residual value generated by the dequantization unit 1400 and the inverse transformation unit 1450 may be combined with the prediction block predicted by the prediction units 1100 and 1150 to generate a reconstructed block. The image composed of the generated restoration blocks may be a motion compensation image or an MC image(Motion Compensated Picture).
The motion compensation image may be input to the filter unit 1500. The filter unit 1500 may include a deblocking filter unit, a sample adaptive offset(SAO) unit, and an adaptive loop filter unit(ALF). In summary, the motion compensation image may be input to an offset correction unit to correct an offset after a deblocking filter is applied in the deblocking filter unit to reduce or remove blocking artifacts. The picture output from the offset correction unit is input to the adaptive loop filter unit, passes through an ALF(Adaptive Loop Filter) filter, and the picture passed through the filter may be transmitted to the memory 1550.
To describe the filter unit 1500 in detail, the deblocking filter unit may remove distortion in a block generated at a boundary between blocks in a reconstructed picture. In order to determine whether to perform deblocking, it may be determined whether to apply a deblocking filter to a current block based on pixels included in a few columns or rows included in the block. When a deblocking filter is applied to a block, a strong filter or a weak filter may be applied according to the required deblocking filtering strength. Further, in applying the deblocking filter, horizontal filtering and vertical filtering may be performed concurrently in performing vertical filtering and horizontal filtering.
The offset correction unit may correct the offset from the original image on a pixel-by-pixel basis with respect to the residual block to which the deblocking filter is applied. In order to correct an offset for a specific picture, a method(Band Offset) comprising the steps for dividing a pixel included in an image into a predetermined number of regions, determining an region to perform an offset, and applying an offset to the region, or a method(Edge Offset) for applying an offset in consideration of edge information of each pixel may be applied. However, according to an embodiment of the present invention, filtering may not be applied to the filter unit 1500 for the restoration block used in inter-picture prediction.
The adaptive loop filter (ALF) may be performed only when high efficiency is applied based on a value obtained by comparing the filtered reconstructed image with the original image. After partitioning the pixels included in the image into predetermined groups, one filter to be applied to the concerning group may be determined and different filtering may be performed for each group. In connection with information related to whether or not to apply the ALF, The luma signal may be transmitted for each coding unit(CU), and the shape and the filter coefficient of the ALF filter to be applied may be changed according to each block. In addition, ALF filters of the same type(fixed form) may be applied regardless of the characteristics of the applied target block.
The memory 1550 may store the restored block or picture calculated through the filter unit 1500. The restored block or the picture stored in the memory 1550 may be provided to the inter-picture prediction unit 1100 performing inter-picture prediction or the intra-picture prediction unit 1150. The pixel values of the reconstruction blocks used in the intra-picture prediction unit 1150 may be data to which the deblocking filter unit, the offset correction unit, and the adaptive loop filter unit are not applied.
When an image bit stream is input from the image encoding apparatus, the input bit stream may be decoded through an inverse process of a procedure in which image information is processed in the encoding apparatus. For example, when variable length coding (VLC) such as CAVLC is used to perform entropy coding in an image coding apparatus, the entropy decoding unit 2100 may also perform entropy decoding by implementing the same VLC table as the VLC table used in the encoding apparatus. Further, when CABAC is used to perform entropy encoding in the encoding apparatus, the entropy decoding unit 2100 may perform entropy decoding using CABAC in response to the above state.
The entropy decoding unit 2100 provides the information for generating a prediction block among the decoded information to the inter-picture prediction unit 2300 and the intra-picture prediction unit 2350. The residual value processed entropy decoding in the entropy decoding unit 2100 may be input to the rearrangement unit 2150.
The rearrangement unit 2150 may rearrange the entropy-decoded bit stream in the entropy decoding unit 2100 based on a method of re-arranging the entropy-decoded bit stream in the image encoder. The rearrangement unit 2150 may perform rearrangement according to a method comprising the steps for receiving information related to the coefficient scanning performed by the encoder, and performing a reverse scanning based on the scanning order performed by the encoder.
The dequantization 2200 may perform a dequantization process based on the quantization parameters provided by the encoding apparatus, and the coefficient values of the re-arranged blocks. The transform unit 2250 may perform an inverse DCT, an inverse DST, or an inverse KLT on the quantization result performed by the image coding apparatus with respect to the DCT, DST, or KLT performed by the transform unit of the encoding apparatus. The inverse transform may be performed based on the transmission unit determined by the encoding apparatus or the division unit of the image. The transforming unit of the encoding apparatus may selectively perform DCT, DST, or KLT according to the prediction method, and information such as the size and prediction direction of the current block, and in the inverse transform unit 2250 of the decoding apparatus, the inverse transform method is determined based on the transform information performed by the transform unit of the encoding apparatus and thereby, the inverse transform may be performed.
The prediction units 2300 and 2350 may generate a prediction block based on the information related to the prediction block generation provided by the entropy decoding unit 2100 and the previously decoded block and/or picture information provided in the memory 2450. The reconstruction block may be generated using the prediction block generated by the prediction units 2300 and 2350 and the residual block provided by the inverse transform unit 2250. The concrete prediction method performed by the prediction units 2300 and 2350 may be the same as the prediction method performed by the prediction units 1100 and 1150 of the encoding apparatus.
The prediction units 2300 and 2350 may include a prediction unit determination unit(not shown), an inter-picture prediction unit 2300, and an intra-prediction unit 2350. The prediction unit determination unit receives various information such as prediction unit information input from the entropy decoding unit 2100, a piece of prediction mode information of the intra-prediction method, a piece of motion prediction related information of the inter-picture prediction method, distinguish the prediction blocks in the current coding block, and discriminate whether the prediction block performs inter-picture prediction or intra-picture prediction.
The inter-picture prediction unit 2300 uses information necessary for inter-picture prediction of the current prediction block provided by the image encoder so that an inter-picture prediction for the current prediction block may be performed based on information included in at least any one of a previous picture or a following picture of a current picture in which the current prediction block is included.
Specifically, in the inter-picture prediction, a reference block for a current block is selected and a reference block having the same size as the current block is selected to generate a prediction block for the current block. At this time, information of neighboring blocks of the current picture may be used to use the information of the reference picture. For example, a prediction block for a current block may be generated based on information of neighboring blocks by using a method such as a skip mode, a merge mode, and AMVP (Advanced Motion Vector Prediction).
The prediction block may be generated in unit of a sample less than or equal to integer, such as ½ pixel sample unit and ¼ pixel sample unit. In this case, the motion vector may also be expressed in unit of less than or equal to integer pixel or less. For example, it may be expressed in units of ¼ pixel for luminance pixels and ⅛ pixels for chrominance pixels.
The motion information including the motion vector and the reference picture index necessary for inter-picture prediction of the current block may be derived in response to a result acquired by confirming the skip flag, merge flag, and the like received from the encoding apparatus.
The intra-prediction unit 2350 may generate a prediction block based on the pixel information in the current picture. If the prediction unit is a prediction unit that performs intra-prediction, the intra-prediction may be performed based on the intra-prediction mode information of the prediction unit provided by the image encoder. In the case where the neighboring blocks of the prediction unit are the blocks in which the inter-picture prediction is performed, that is, when the reference pixels are the pixels performing the inter-picture prediction, the reference pixels included in the block for which the inter-picture prediction has been performed may be replaced with the reference pixel information of a block for which the neighboring intra-picture prediction is performed.
If the reference pixel is unavailable, it must be set to be available in advance. Generally, in such a case, the non-available reference pixel has been used by replacing it with at least one reference pixel among available neighboring pixel values or assigning a predetermined sample value.
However, a method of copying and using the reference pixels available for such unavailable reference pixels may cause a problem of lowering the intra-picture prediction coding efficiency in decoding the current image. According to various embodiments of the present invention in order to solve this problem, the coding order of the transform blocks may be changed in various ways according to the direction of the intra-prediction mode so that intra-prediction may be performed using available reference pixel regions rather than non-available reference pixel regions in coding the transform block. A detailed description related to this content will be explained later.
In addition, the intra-prediction unit 2350 may use the most probable intra-prediction mode (MPM) obtained from the neighboring blocks to encode the intra-prediction mode. According to an embodiment of the present invention, the most probable intra-picture prediction mode may use an intra-picture prediction mode of a spatially neighboring block of the current block.
According to an embodiment of the present invention, in the intra-prediction unit 2350, the processing unit in which the prediction is performed may be different from the processing unit in which the prediction method and the specific contents are determined. For example, when the prediction mode may be determined as a prediction unit, the prediction may be performed in a prediction unit. Further, the prediction mode may be defined as a prediction unit and then, the intra-prediction may be performed in the transform unit.
In this case, the prediction block (PU) may be determined as formats having various sizes and shapes from a coding block (CU) which is not further divided. For example, in the case of the intra-picture prediction, the prediction block may have the sizes as 2N×2N or N×N (N is an integer), but the intra-picture prediction may be performed by using the prediction blocks having the sizes such as the N×mN, mN×N, 2N×mN or mN×2N (m is a fraction or an integer). In this case, the prediction unit of the N×N may be set to be applied only in a specific case.
Further, the transform block TU may also be determined as formats having various sizes and shapes. For example, the transform block may have the sizes as 2N×2N or N×N (where N is an integer), but the intra-picture prediction may be performed by using a transform blocks having the sizes such as N×mN, mN×N, 2N×mN or mN×2N (m is a fraction or an integer). In this case, a prediction unit of the N×N size may be set to be applied only in a specific case. According to an embodiment of the present invention, the transform block may be any one selected from the blocks having a square structure, a non-square structure, a square quad tree structure, a non-square quad tree structure, or a binary tree structure. According to an embodiment of the present invention, the size of the transform block may be determined within a range of predetermined maximum and minimum sizes. In addition, one transform block may be divided into sub-transform blocks. In this case, the sub-transform blocks may also be divided into a square structure, a non-square structure, a square quad tree structure, a non-square quad tree structure, or a binary tree structure.
The intra-picture prediction unit 2350 may include an AIS (Adaptive Intra Smoothing) filter unit, a reference pixel interpolation unit, and a DC filter unit. The AIS filter unit performs filtering on the reference pixels of the current block and determines whether to apply the filter according to the prediction mode of the current prediction unit. The AIS filtering may be performed on the reference pixels of the current block by using the prediction mode of the prediction unit provided in the image encoder and the AIS filter information. If the prediction mode of the current block is a mode for which AIS filtering is not performed, the AIS filter unit may not be applied to the current block.
The reference pixel interpolation unit may interpolate the reference pixel to generate a reference pixel in the pixel unit less than an integer value when the prediction mode of the prediction unit is a prediction unit for performing intra-picture prediction based on the sample value obtained by interpolating the reference pixel have. If the prediction mode of the current prediction unit does not interpolate the reference pixel and generates a prediction block, the reference pixel may not be interpolated. The DC filter unit may generate a prediction block through filtering when the prediction mode of the current block is the DC mode.
The reconstructed block and/or the reconstructed picture may be provided to the filter unit 2400. The filter unit 2400 may include a deblocking filter unit, an adaptive offset, and/or an adaptive loop filter unit in the reconstructed block and/or the reconstructed the picture. The deblocking filter unit may receive information indicating whether a deblocking filter is applied to a corresponding block or a picture from the image encoder or not, and information indicating whether a strong or weak filter is applied or not when a deblocking filter is applied. The deblocking filter unit may receive the information concerning deblocking filter which is provided by the image encoder and may perform a deblocking filtering process on the corresponding block in the image decoder.
The offset correction unit may perform offset correction on the reconstructed image based on the type of offset correction applied to the image, and the offset value information during encoding. The adaptive loop filter unit may be applied as a coding unit based on information such as information on whether the adaptive loop filter provided from the encoder is applied or not, and the coefficient information of the adaptive loop filter. The information associated with the adaptive loop filter may be provided in a specific parameter set.
The memory 2450 may store the reconstructed picture or block, use the reconstructed picture as a reference picture or reference block later, and may also provide the reconstructed picture to the output unit.
Although omitted herein for the sake of convenience, the bit stream input to the decoding apparatus may be input to an entropy decoding unit through a parsing step. In addition, the entropy decoding unit may perform a parsing process.
In this specification, coding may be interpreted as encoding or decoding in some cases, and information may be construed as including all of values, parameters, coefficients, elements, flags, and the like. A ‘screen’ or a ‘picture’ generally means a unit representing one image of a specific time zone. A ‘slice’, a ‘frame’, or the like refers to a unit constituting a part of a picture in the coding of an actual video signal and may be used in combination with a picture as needed.
‘Pixel’ or ‘pel’ represents the smallest unit of a single image. Also, as a term indicating the value of a specific pixel, ‘sample’ may be used. The sample may be divided into luma and chroma components, but generally it may be used as a term including all of them. The chroma component represents a difference between predetermined colors, and is generally composed of Cb and Cr.
The term ‘unit’ refers to a basic unit of an image processing unit or a specific position of an image, such as the encoding unit, the prediction unit, and the transform unit described above. In some cases, the “unit” may be used in combination with terms such as ‘block’ or ‘region’. The block may also be used as a term indicating a set of samples consisting of M rows and N rows, or a set of transform coefficients.
Referring to
In such a method, since there are many pieces of information to be transmitted regardless of the features of the image of the concerned block, the coding efficiency may be lowered. In order to solve this problem, the coding block according to an embodiment of the present invention may include not only a square coding block but also a non-square coding block.
As shown in
First of all, referring to
Further, referring to
According to an embodiment of the present invention, the current coding block CU may be used as a prediction block PU as it is, without separately setting a prediction block PU corresponding to the current coding block CU. In this case, the coding block CU may be a non-square block as well as a square block like a general method, and a current block including the coding blocks CU may have a 1:N division structure. Also, in another embodiment, the current coding block CU may be used equally in both the prediction block PU and the transform block TU, in which case the current block containing the current coding block may be divided using a structure divided into square blocks, a structure divided into non-square blocks, and a structure divided into 1:N.
Referring to
In the conventional coding of a video signal, only a square block is used as a coding block, and only a square transform block is also used as a transform block. The transform blocks based on the size of each coding block or prediction block may be subdivided into a quad tree partition structure. For example, when one transform block is divided into a quad tree structure, the transform block may be divided into four square sub-blocks. In the conventional coding method using only the square transform blocks, it is difficult to consider characteristics of an image corresponding to a coding block and characteristics of a residual signal generated according to a prediction mode. Therefore, the coding method of a video signal according to an embodiment of the present invention may use a non-square transform block and a non-square sub-transform block as a transform block, as well as a non-square coding block.
When one or a plurality of transform blocks are used for a current coding block of a square type, the transform block constituting the current coding block may include a square transform block and a non-square transform block. The transform block may transform the residual signal into a frequency region by using a transform matrix.
Referring to
In this manner, when a transform block for a square coding block is constructed, an initial transform block may be constructed by a non-square transform block as well as a square transform block. Although two or four non-square transform blocks have been described above, the size and the number of the non-square transform blocks in the present invention are not limited thereto. In addition, when the current coding block performs intra-prediction, the transform block configuration of the current coding block may be determined differently according to the direction of the intra-prediction mode. For example, when the current coding block uses the intra-picture prediction mode of the vertical direction, the current transform block is enabled to generate the prediction signal by using the non-square transform block that is horizontally divided as the transform block for the current coding block, and the decoded reference samples at the top.
According to one embodiment referring to
Referring to
Referring to
Referring to
Further, referring to
The transform block constituting the current coding block may be divided into sub-transform blocks of a smaller size. The sub-transform blocks may generate transform coefficients by performing independent transform processes, respectively and may have various shapes and sizes. In addition, the dividing method may be determined differently based on the size and shape of transform block of the upper level before being divided into the sub-transform blocks, and may have a shape that is independently different from the shape of the transform block of the upper level.
Referring to
Referring to
Referring to
Referring to
Referring to
In general, when the current block performs intra-prediction, a transform block is decoded by using a raster scan method, and reference samples used for generating a prediction signal according to the direction of the intra-prediction mode are determined.
Thereafter, since the third transform block TU2 generating the prediction signal uses the pixels located on the left side of the third transform block TU2 as reference samples, it does not use the pixels of the decoded first transform block TU0 and the second transform block TU2. Consequently, the third reference sample region 113 used for prediction may be composed of non-available reference samples. The fourth transform block TU3 constitutes the fourth reference sample region 114 for the fourth transform block TU3, by using some pixels of the third transform block TU2. Therefore, it may be seen that the fourth reference sample region 114 consists of some pixels of the third transform block TU2, i.e., the available reference samples, which are decoded samples.
In this manner, when a prediction signal is generated from a transform block in accordance with a conventional coding order, there may occur cases where a prediction signal is generated by using non-available reference samples according to the direction of the intra-prediction mode. Therefore, the coding method of the video signal according to the embodiment of the present invention may increase the coding efficiency by variably determining the coding order of the transform blocks according to the direction of the intra-picture prediction mode of the current coding block.
If the transform blocks are coded without considering the intra-picture prediction mode of the current block, the neighbor blocks which have not been decoded may be used when generating the prediction signal of each transform block. In this case, since the reference samples used for generating the prediction signal may be unavailable samples, the available sample values in the vicinity may use the copied unavailable samples and thereby, the encoding efficiency may be deteriorated. Accordingly, the present invention proposes a method for variably determining a coding order of a transform block by considering which mode region the intra-picture prediction mode of the current block corresponding to the transform blocks belongs to.
In order to variably determine the coding order of the transform blocks according to the intra-prediction mode, first of all, the intra-picture prediction mode may be first classified according to the prediction direction.
Referring to
Referring to
Further, the non-square transform blocks in the vertical and horizontal directions may be coded in order from left to right and from bottom to top. Referring to
In addition, the non-square transform blocks in the vertical and horizontal directions may be coded in order from right to left, and from top to bottom. Referring to
In this manner, when variably determining the coding order of the transform block in consideration of the shape of the transformed block, and the mode region separated in consideration of the direction of the intra-picture prediction mode of the current block, each transform block may generate the prediction signal by using the available reference samples of the decoded neighboring blocks. Therefore, the coding efficiency may be improved.
According to an embodiment of the present invention, when the transform blocks have a structure of the type shown in
Referring to
Referring to
If the intra-prediction mode of the current block belongs to the third mode region, since the transform block uses the reference samples belonging to the upper right corner when generating the prediction signal, the step for coding the transform block in the order from the upper right to the lower left may improve the coding efficiency. Referring to
In another embodiment, the coding order of the transform block considering the intra-prediction mode may be determined as shown in Table 2 below.
Referring to
If the intra-prediction mode of the current block belongs to the third mode region, since the transform block uses the reference samples belonging to the upper right when generating the prediction signal, the step for coding the transform block in the order from the upper right to the lower left may improve the coding efficiency. Referring to
The coding order of the transform blocks according to the mode region is not limited to the above example, but the order may be determined as combination of the above examples
In the case of the first mode region, the coding order of the transform blocks may be determined as the order processed from the upper left to the lower right as described with reference to
Referring to
Referring to
Referring to
Referring to
According to an embodiment of the present invention, the method for scanning the transform coefficient group in the intra-prediction may be determined according to the intra-prediction mode. For example, when the intra-prediction mode is the intra-prediction mode indices 6 to 14, which are predictions in the horizontal direction, the transform coefficient group may be scanned by using the vertical scan method, and when the intra-picture prediction mode is the index 22 to 30, which is the prediction in the vertical direction, the horizontal scan method is employed. The up-write diagonal scan method may be used for the residual intra-picture prediction mode.
Until recently, video coding has always considered a square transform block as a transform block. Therefore, as the scan method of the transform coefficient group and the transform coefficient within the transform coefficient group, it has also been designed to be suitable for the square transform block. However, when the non-square transform block is used as the transform block, the coding efficiency may be degraded when the existing scan method for transform coefficient group and the transform coefficient are applied. Therefore, in the following description with reference to
Referring to
Referring to
Referring to
Through this transform process, most of the energy of the residual signal may be collected in the upper left DC region. Therefore, for the efficiency of entropy coding, it may be efficient for the transform coefficients and/or transform coefficient groups in the low frequency region to have indices that represent the scan order of the small value. However, when applying the scan order of a general transform coefficient group as shown in
Therefore, a method for scanning a transform scan coefficient according to an embodiment of the present invention may include a step for partitioning a transform block into a transform region, which is an upper region including a plurality of transform scan coefficients; and a step for scanning transform scan coefficients for each of the divided transform regions.
Referring to
The transform region information may partition the transform block into at least one or more regions, and each transform region may include a plurality of transform coefficient groups. It goes without saying that the transform coefficient group includes a plurality of transform coefficients. In addition, the transform region information may be information received from the encoder. For example, the transformation region information may be obtained from at least one of a sequence parameter set(SPS) and a slice header, and the present invention is not limited thereto. The present invention does not limit a type and a syntax level related to the information. However, there are no problems if it may be information received from the encoder.
According to an embodiment of the present invention, the transform region information may be obtained in a predetermined manner in the decoding apparatus. For example, the transform region information may be obtained by calculating horizontal length and the vertical length of the transform region based on the horizontal length and the vertical length of the transform block, and determining the size and number of the transform region. Alternatively, the transform region information may also determine the size and the number of the transform region by dividing the smaller length of the horizontal and vertical lengths of the transform block by the block size of the transform coefficient group. The horizontal and vertical lengths, the shape, and the number of the transform region indicated by such a transform region information may be determined according to the method determined by the decoding apparatus and are not limited to the examples described above.
Then, the transform coefficient group scan unit 250 may scan a plurality of transform coefficient groups in at least one or more transform regions divided based on the transform region information. The transform coefficient group scan unit 250 may include a first transform region scan unit 251 and a second transform region scan unit 252 to scan the transform coefficient groups of the divided transform regions. The transform region scan unit is not limited to the first transform region scan unit 251 and the second transform region scan unit 252, and the transform block may be included in correspondence with the number of the divided transform regions.
First of all, the first transform region scan unit 251 may scan a plurality of transform coefficient groups included in the first transform region among a plurality of transform regions divided based on the transform region information(S20). Thereafter, the second transform region scan unit 252 may scan a plurality of transform coefficient groups included in the second transform region(S30). If three or more transform region scan units are included, the transform coefficient groups included in the transform region may be sequentially scanned.
According to an embodiment of the present invention, the first transform region scan unit 251 may include the transform coefficient groups in the low frequency region as compared with the second transform region scan unit 252.
As described above, according to the scan method of the present invention, the scan order is determined such that the transform coefficient groups in the low frequency region may be scanned before the transform coefficient groups in the high frequency region. As a result, the disadvantage which the transform coefficient group in the high frequency region is coded and transmitted first, and the transform coefficient groups in the low frequency region have a large scan order index may be solved.
Also, according to an embodiment of the present invention, it may be determined whether the transform block is a non-square block before obtaining transform region information. The transform coefficient group corresponding to the high frequency region is scanned first before the transform coefficient group corresponding to the low frequency region, which may cause frequent occurrence of the reduced coding efficiency if the transform block is a non-square block. Therefore, before obtaining the transform region information, it may be determined first whether the current transform block is a non-square block or not.
According to an embodiment of the present invention, various methods may be employed to determine if the transform block is a non-square block or not. For example, it is possible to determine whether the transform block is a non-square block or not by comparing the horizontal length and the vertical length of the transform block. Alternatively, information on the size and shape of the transform block may be received from the encoding apparatus, or may be determined based on at least one of the segmentation information, direction information, and may be determined based on one or more information of division information, direction information, α, β and pixel information of the transform block already obtained in the decoding apparatus.
Further, it may be determined based on the transform block type information indicating the type of the transform block. The transform block type information may be received from the encoding apparatus, but may be calculated based on one or more information of division information, direction information, pixel information, the horizontal and vertical length information of the transform block in the decoding apparatus. When the transform block is determined to be a non-square block in this manner, the transform coefficient group included in the transform region may be scanned for each transform region of the transform block according to the method described above with reference to
Referring to
Such transform region information may be calculated in an upper parameter or a previous decoding process and may simply be calculated from the number obtained by dividing the smaller one of the horizontal and vertical lengths of the non-square transform block by the size of the transform coefficient block. However, the method for obtaining the transform region information in the present invention is not limited thereto.
Referring to
Referring to
According to an embodiment of the present invention, the transform block 270 may sequentially scan the transform coefficient groups included in each transform region for each transform region. As shown in
Referring to
According to an embodiment of the present invention, the transform block 280 may sequentially scan the transform coefficient groups included in each transform region for each transform region. For example, as shown in
According to the method comprising the step for dividing the transform block into at least one or more transform regions including a plurality of transform coefficient groups; and the step for scanning the transform region for each transform region, the transform coefficient group of the low frequency region is first scanned before the transform coefficient group of the high frequency, and the scanned group is transmitted. Thus, the coding efficiency is increased.
Referring to
In connection with the motion information of the spatial neighboring block, a piece of motion information may be searched while scanning in the order of A0→A1→scaled A0→scaled A1 for the neighboring blocks located on the left side of the current block. Then, a piece of motion information is searched while scanning in the order of B0→B1→B2 for neighboring blocks located on the upper side of the current block.
According to an embodiment of the present invention, if the A0 and A1 blocks of the current block are scanned, but the reference image to be referred to by the current block is different from the reference image referenced by the motion information of the A0 and A1 blocks, the motion information of the A0 and A1 blocks scaled to match with the reference image to be referred to by the current block may be used.
The motion information of the temporal neighboring block is scanned in the order of T0 and T1. Likewise, in this case, the motion vector of the temporal neighboring block may be used by scaling the vector as the image to be referred to by the current block.
According to an embodiment of the present invention, Advanced Motion Vector Prediction(AMVP) may use two prediction motion vectors. First of all, the motion information of the spatial neighboring block is scanned and input to the advanced motion vector prediction list(AMVP list). If the list is not filled up in this process, the motion information of the temporal neighboring block may be scanned to fill the list. If the same motion information is input to the AMVP list at the time of scanning the motion information of the neighboring block, the duplicated motion information is deleted. If the motion vector information of the temporal and spatial neighboring blocks is completed through the above process and the AMVP list is not be filled up, the AMVP list may be completed by filling (0,0) in the unfilled list.
Referring to
According to an embodiment of the present invention, the selected prediction motion vector having the highest coding efficiency may be selected among the motion vector prediction candidates included in the AMVP list. The selected prediction motion vector may be encoded in the form of index information indicating the prediction motion vector and may be transmitted along with the differential motion vector.
Referring to
When the reference picture 320a in the first direction and the reference picture 330a in the second direction are the same for the current block 310, the motion vectors for the respective directions are likely to be similar. Referring again to
Therefore, in order to construct the predicted motion vector list of the second direction, the motion vectors of neighboring blocks of the current block 310 having a relatively low degree of correlation with the motion vector MVML for the second direction are used. Therefore, the coding efficiency of the motion vector MVML may be reduced. However, the prediction motion vector list according to the general method constitutes a list independently for each direction, and MVDM0=(2, 0), and MVDL1=(2, 1) which are the differential motion vectors indicating a difference value between a prediction motion vector selected in the list and a motion vector in each direction are acquired and then, they may be transmitted to the decoding apparatus. Referring to
Even if the reference picture 320b in the first direction and the reference picture 330b in the second direction are not the same for the current block 310, since the current block 310 refers to the above-described reference pictures, it is impossible to exclude the possibility that the motion vectors for each direction become similar, depending on the distance and the degree of correlation of the reference pictures. However, as described above, according to the general method for constructing a prediction motion vector list, the prediction motion vector list for each direction is constructed independently.
The motion vector MVL0 for the first direction and the motion vector MVL1 for the second direction are (−5, −8) and (4, 10), respectively, as shown in
In this manner, when constructing the AMVP list by the general method, and when the motion information of the neighboring blocks of the current block in constructing the AMVP for the second direction is used, if the reference picture in the second direction has the degree of relatively high correlation with respect to the reference picture in the first direction as compared with the current picture, the coding efficiency of the motion vector may be lowered.
Therefore, the present invention proposes a method and apparatus for constructing the AMVP list according to an embodiment of the present invention, which uses a motion vector for a first direction and construct the AMVP list of the second direction when a current block performs bidirectional prediction.
Referring to
Thereafter, the second direction prediction motion vector list determining unit 730 may set the predicted motion vector list(AMVP_L1) in the second direction(S50). At least one or more candidates of the predicted motion vector candidates of the second direction constituting the predicted motion vector list of the second direction may be set using the motion vector(MVL0) for the first direction. According to an embodiment of the present invention, the predicted motion vector candidate of the second direction which is set using the motion vector for the first direction, may be set by copying the motion vector for the first direction as it is. Further, the motion vector for the first direction may be modified and set by using various methods such as scaling. Also, the predicted motion vector candidate of the second direction may be included in the predicted motion vector list(AMVP_L1) of the second direction.
Since the reference pictures used for the bidirectional prediction of the current block are likely to have a high correlation with each other, there is a high possibility that the motion vector(MVL0) for the first direction and the motion vector(MVL1) for the second direction obtained in both directions are similar. Therefore, when obtaining at least one or more predicted motion vector candidates of the second direction by using the motion vector(MVL0) for the first direction, it becomes possible to encode the differential motion vector(MVDL1) for the second direction, which is smaller as compared with the conventional method, and to transmit the encoded differential motion vector.
Further, the second direction prediction motion vector list determining unit 730 simultaneously obtains at least one or more predicted motion vector candidates of second direction by using the motion vectors of the temporal neighboring blocks and the spatial neighboring blocks of the current block. Therefore, the predicted motion vector list (AMVP_L1) of the second direction may be constructed together with the predicted motion vector candidates of the second direction obtained by using the motion vector for the first direction. In the present invention, the number and acquisition order of predicted motion vector candidates of the second direction which are set by using the motion vector for the first direction, and the predicted motion vector candidates of the second direction which are set in a general manner; and the index assignment method for the predicted motion vector candidates is not limited
Referring to
Referring to
The first predicted motion vector candidate may have the highest correlation degree with the motion vector of the current block among the predicted motion vector candidates. Accordingly, the coding efficiency may be improved by allocating the first predicted motion vector candidate to the index having the smallest code word in constructing the first predicted motion vector list. According to an embodiment of the present invention, if the number of the first prediction motion vector candidates is more than two, the first prediction motion vector candidate may increase the coding efficiency by allocating indices in the order of having small code words.
Regardless of an order, the second prediction motion vector candidate determining unit 732 may set at least one or more predicted motion vector candidates constituting the predicted motion vector list of the second direction by using the spatially and temporally neighboring blocks of the current block(S42), independently from the first prediction motion vector candidate determining unit 731. The at least one or more predicted motion vector candidates may be referred to as a second predicted motion vector candidate. The second predicted motion vector candidate is obtained by a method for obtaining a general prediction motion vector described with reference to
As described above, in the method and apparatus for constructing a prediction motion vector list according to an embodiment of the present invention, when the current block performs bidirectional inter-picture prediction, the coding efficiency may be improved by obtaining at least one or more candidates of the predicted motion vector candidates of the second direction based on a motion vector for the first direction.
Referring to
Referring to
As described above, since the motion vector for the first direction and the motion vector for the second direction are highly correlated, the method of constructing the prediction motion vector list according to the present invention for setting the first predicted motion vector of the second direction by using the motion vector for the first direction may encode a differential motion vector MVD that is smaller as compared with the conventional method, and transmit the encoded vector.
Referring to
In this way, the motion vector(MVL0) for the first direction and the motion vector(MVL1) for the second direction have a very high correlation degree. Therefore, a method of constructing the prediction motion vector list of the present invention for scaling a motion vector for a first direction based on POC(Scaled_MVL0), and for setting a first prediction motion vector(MVL1) of a second direction may encode the differential motion vector(MVDL1), which is relatively smaller than that of the conventional method, and may transmit the encoded vector. As a result, the coding efficiency may be improved. According to an embodiment of the present invention, in order to improve coding efficiency, the first predicted motion vector candidate may have the shortest code word among the indices constituting the predicted motion vector list of the second direction. However, the present invention is not limited to thereof. The present invention discloses a method of scaling a motion vector for a first direction based on POC as a first prediction motion vector candidate of the second direction, but the method of scaling is not limited to thereof.
Thereafter, it is determined whether the picture information(POCref_L0) of the reference picture for the first direction and the picture information(POCref_L1) of the reference picture for the second direction used in bidirectional prediction of the current block are same or not(S60). For example, it may be determined whether or not the first and second reference pictures are identical based on picture information such as POC.
If the picture information of the reference picture for the first direction and the picture information of the reference picture for the second direction are same(Yes in S60), the motion vector(MVL0) for the first direction may be set as the first predicted motion vector candidate(MVP_L1_0) constituting the predicted motion vector list(AMVP_L1) of the second direction(S70). The first predicted motion vector candidate may be at least one or more predicted motion vector candidates. In addition, at least one or more residual predicted motion vector candidates(MVP_L1_N) constituting the predicted motion vector list of the second direction may be set according to a general method(S80). An acquisition sequence of the first prediction motion vector candidate of the second direction set by copying a motion vector for the first direction, and a residual prediction motion vector candidate of the second direction obtained by a general method; and the method of allocating an index when constructing a prediction motion vector list of a second direction are not limited.
If the picture information of the reference picture in the first direction and the picture information of the reference picture in the second direction are different(No in S60), a scaled value(Scaled_MVL0) of the motion vector for the first direction may be set as the first predicted motion vector candidate(MVP_L1_0) constituting the predicted motion vector list in the second direction(S90). The first predicted motion vector candidate may be at least one or more predicted motion vector candidates. In addition, at least one or more residual predicted motion vector candidates(MVP_L1_N) constituting the predicted motion vector list of the second direction may be set according to a general method(S95). An acquisition sequence of the first predicted motion vector candidate of the second direction set to a value obtained by scaling a motion vector for the first direction, and the residual predicted motion vector candidates of the second direction obtained in a general manner; and the method of allocating an index when constructing a prediction motion vector list of a second direction are not limited.
The AMVP list constructed according to the above method uses a motion vector for a first direction having a high degree of correlation in an inter-picture prediction when constructing a prediction motion vector list in a second direction. Thus, a method for constructing a prediction motion vector list in which coding efficiency of inter-picture prediction is improved a method of constructing a vector list may be provided. In the bi-directional prediction, as a result of considering one of the whether or not the picture information of the reference picture for the first direction and the picture information of the reference picture for the second direction are same or not, and the distance between the reference pictures and the current picture are to be considered, the coding efficiency may be increased by setting at least one or more predicted motion vector candidates constituting the prediction motion vector list of the second direction.
It will be apparent to those skilled in the art that the present invention described above is not limited to the above-described embodiment and the accompanying drawings, and various replacements, modifications, and variations may be made in the present invention without departing from the spirit or scope of the invention as defined in the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
10-2016-0066015 | May 2016 | KR | national |
10-2016-0075723 | Jun 2016 | KR | national |
10-2016-0075787 | Jun 2016 | KR | national |
10-2017-0035361 | Mar 2017 | KR | national |
10-2017-0048441 | Apr 2017 | KR | national |
10-2017-0060576 | May 2017 | KR | national |
The present application is a continuation of application Ser. No. 16/305,214, filed on Nov. 28, 2018, which is a U.S. national stage application of International Application No. PCT/KR2017/005497 filed on May 26, 2017, which claims priority under 35 U.S.C. 119(a) to the Korean application numbers 10-2016-0066015 filed on May 28, 2016, 10-2016-0075787 file on Jun. 17, 2016, 10-2016-0075723 filed on Jun. 17, 2016, 10-2017-0035361 filed on Mar. 21, 2017, 10-2017-0048441 filed on Apr. 14, 2017, and 10-2017-0060576 filed on May 16, 2017, which are herein incorporated by reference in its entirety.
Number | Name | Date | Kind |
---|---|---|---|
9350996 | Fang et al. | May 2016 | B2 |
11736712 | Han | Aug 2023 | B2 |
20120027088 | Chien et al. | Feb 2012 | A1 |
20120230417 | Sole Rojals et al. | Sep 2012 | A1 |
20130034161 | Sugio et al. | Feb 2013 | A1 |
20130301705 | Seregin et al. | Nov 2013 | A1 |
20130329807 | Lim et al. | Dec 2013 | A1 |
20140328388 | Kim et al. | Nov 2014 | A1 |
20180070090 | Lee et al. | Mar 2018 | A1 |
20190089961 | Ahn et al. | Mar 2019 | A1 |
20200374529 | Ahn et al. | Nov 2020 | A1 |
Number | Date | Country |
---|---|---|
10-2012-0059334 | Jun 2012 | KR |
10-2012-0082375 | Jul 2012 | KR |
10-2012-0100836 | Sep 2012 | KR |
10-2013-0005233 | Jan 2013 | KR |
10-2013-0069758 | Jun 2013 | KR |
10-2013-0085393 | Jul 2013 | KR |
10-2014-0049098 | Apr 2014 | KR |
10-2014-0057252 | May 2014 | KR |
Entry |
---|
Moon et al., Machine Translation of KR-2012-0059334 A, Cited in IDS by Applicant, 2012. |
International Search Report issued on Dec. 27, 2017 in related International Application No. PCT/KR2017/005497 (5 pages in English). |
Number | Date | Country | |
---|---|---|---|
20230336769 A1 | Oct 2023 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 16305214 | US | |
Child | 18341460 | US |