METHOD FOR MANAGING MEMORY, AND DEVICE FOR DECODING VIDEO USING SAME
The present invention relates to a method for managing memory, and to a device for decoding video using same. The method includes the marking of motion information stored in a first buffer in response to a memory management control command (MMCO), and the deleting of the motion information from the first buffer or the moving of the motion information to a second buffer in response to the marked information.
1 . A method of managing a memory storing motion information, the method comprising:
marking motion information stored in a first buffer according to a memory management control operation (MMCO); and
deleting the motion information stored in the first buffer or moving the motion information to a second buffer according to the marked information.
2 . The method of claim 1 , wherein the memory management control operation (MMCO) is for a reference picture having the motion information.
3 . The method of claim 2 , wherein the motion information stored in the first buffer is managed to correspond to deleting or moving the reference picture according to the memory management control operation (MMCO).
4 . The method of claim 1 , wherein the memory management control operation (MMCO) is for the motion information.
5 . The method of claim 4 , wherein the motion information stored in the first buffer is managed separately from deleting or moving the reference picture having the motion information.
6 . The method of claim 4 , wherein among the motion information stored in the first buffer, motion information other than motion information of a reference picture immediately before a current frame is deleted or moved to the second buffer.
7 . The method of claim 4 , wherein among the motion information stored in the first buffer, motion information other than motion information of a reference picture immediately before a current frame and motion information of two reference pictures after the current frame is deleted or moved to the second buffer.
8 . An apparatus of decoding an image by performing motion compensation using motion information, the apparatus comprising:
a first buffer storing motion information; and
a memory managing module marking the motion information stored in the first buffer according to a memory management control operation (MMCO) and deleting the motion information stored in the first buffer or moving the motion information to a second buffer according to the marked information.
9 . The apparatus of claim 8 , wherein the memory managing module manages the motion information stored in the first buffer to correspond to deleting or moving the reference picture according to the memory management control operation (MMCO) for the reference picture having the motion information.
10 . The apparatus of claim 8 , wherein the memory managing module manages the motion information stored in the first buffer separately from deleting or moving the reference picture having the motion information according to the memory management control operation (MMCO) for the motion information.
11 . The apparatus of claim 10 , wherein the memory managing module deletes motion information other than motion information of a reference picture immediately before a current frame among the motion information stored in the first buffer or moves the other motion information to the second buffer.
12 . The apparatus of claim 10 , wherein the memory managing module deletes motion information other than motion information immediately before a current frame and motion information of two reference pictures after the current frame among the motion information stored in the first buffer or moves the other motion information to the second buffer.