Method and apparatus for video signal coding using current picture reference flag
A method for processing a vide signal, according to the present invention comprises generating a reference picture list based on a current picture reference flag for a current picture, obtaining motion information about a current block in the current picture, restoring the current block using the motion information of the current block and the reference picture list relating to the current picture, and applying a deblocking filter to the stored current block.
1. A method of decoding a video signal, the method comprising: generating a reference picture list based on a current picture reference flag for a current picture; obtaining motion information about a current block in the current picture, the motion information including at least one of a motion vector and a reference picture index; restoring the current block using the motion information of the current block and the reference picture list relating to the current picture; and applying a deblocking filter to the restored current block, wherein the current picture reference flag indicates whether or not a current picture reference mode is applied for the current picture, the current picture reference mode refers to a method of predicting or restoring the current block by referring to a pre-reconstructed block in the current picture, wherein, in the reference picture list, temporal reference pictures are arranged in an order of a first short-term reference picture having a smaller POC (Picture Order Count) value than the POC value of the current picture, a second short-term reference picture having a larger POC value than the POC value of the current picture, and a long-term reference picture, and wherein the current picture is added to the reference picture list at last position after the long-term reference picture when the current picture reference flag indicates that the current picture reference mode is applied for the current picture.
2. The method of claim 1 , wherein the motion information for the current block is derived based on whether the current block uses the current picture reference mode.
3. The method of claim 1 , wherein the motion information for the current block includes the reference picture index, and whether the current picture reference mode is applied for the current block within the current picture is determined based on the reference picture index of the current block.
4. The method of claim 3 , if the value of the reference picture index of the current block is equal to a maximum value among the indexes assigned to the reference picture list, the current picture reference mode is applied for the current block.
5. An apparatus of decoding a video signal, the apparatus comprising:
an entropy decoding unit configured to obtain a current picture reference flag for a current picture and motion information about a current block in the current picture;
a prediction unit configured to generate a reference picture list based on the current picture reference flag for a current picture, and restore the current block using the motion information of the current block and the reference picture list relating to the current picture; and
an in-loop filtering unit configured to apply a deblocking filter to the stored current block,
wherein the current picture reference flag indicates whether or not a current picture reference mode is applied for the current picture, the current picture reference mode refers to a method of predicting or restoring the current block by referring to a pre-reconstructed block in the current picture,
wherein the motion information includes at least one of a motion vector and a reference picture index,
wherein, in the reference picture list, temporal reference pictures are arranged in an order of a first short-term reference picture having a smaller POC (Picture Order Count) value than the POC value of the current picture, a second short-term reference picture having a larger POC value than the POC value of the current picture, and a long-term reference picture, and
wherein the current picture is added to the reference picture list at last position after the long-term reference picture when the current picture reference flag indicates that the current picture reference mode is applied for the current picture.
6. The apparatus of claim 5 , wherein the prediction unit is configured to derive the motion information for the current block, based on whether the current block uses the current picture reference mode.
7. A method of encoding a video signal, the method comprising:
generating a reference picture list based on a current picture reference flag for a current picture;
obtaining motion information about a current block in the current picture, the motion information including at least one of a motion vector and a reference picture index;
restoring the current block using the motion information of the current block and the reference picture list relating to the current picture and
applying a deblocking filter to the restored current block,
wherein the current picture reference flag indicates whether or not a current picture reference mode is applied for the current picture, the current picture reference mode refers to a method of predicting or restoring the current block by referring to a pre-reconstructed block in the current picture,
wherein, in the reference picture list, temporal reference pictures are arranged in an order of a first short-term reference picture having a smaller POC (Picture Order Count) value than the POC value of the current picture, a second short-term reference picture having a larger POC value than the POC value of the current picture, and a long-term reference picture, and
wherein the current picture is added to the reference picture list at last position after the long-term reference picture when the current picture reference flag indicates that the current picture reference mode is applied for the current picture.
8. The method of claim 7 , wherein the motion information for the current block is derived based on whether the current block uses the current picture reference mode.
9. An apparatus of encoding a video signal, the apparatus comprising:
a prediction unit configured to generate a reference picture list based on a current picture reference flag for a current picture, obtain motion information about a current block in the current picture, and restore the current block using the motion information of the current block and the reference picture list relating to the current picture;
an in-loop filtering unit configured to apply a deblocking filter to the restored current block, and
an entropy encoding unit configured to generate an encoded bitstream including the current picture reference flag and the motion information about the current block in the current picture,
wherein the current picture reference flag indicates whether or not a current picture reference mode is applied for the current picture, the current picture reference mode refers to a method of predicting or restoring the current block by referring to a pre-reconstructed block in the current picture,
wherein the motion information includes at least one of a motion vector and a reference picture index,
wherein, in the reference picture list, temporal reference pictures are arranged in an order of a first short-term reference picture having a smaller POC (Picture Order Count) value than the POC value of the current picture, a second short-term reference picture having a larger POC value than the POC value of the current picture, and a long-term reference picture, and
wherein the current picture is added to the reference picture list at last position after the long-term reference picture when the current picture reference flag indicates that the current picture reference mode is applied for the current picture.