1. Field of the Invention
The present invention is related to a method and device for decoding a video, and more particularly to a method and device for decoding a scalable video signal utilizing an inter-layer prediction scheme.
2. Description of the Prior Art
A state-of-the-art scalable hierarchical coding standard, called scalable video coding (SVC), can allow the information to be encoded hierarchically in order and decoded at different resolution and/or quality levels. The spatially scalable hierarchical encoding/decoding method can encode/decode a first part of data called base layer relating to low resolution images, and encode/decode at least another data part called enhancement layer relating to high resolution images from this base layer. The coding information regarding the enhancement layer can be possibly derived from coding information associated with the base layer by an inter-layer prediction method. In the inter-layer prediction method, each macroblock of a high resolution image may temporally be predicted according to three inter-layer prediction modes. However, DRAM access penalty may be an issue in the typical inter-layer prediction method.
The present invention is directed to a method and device for decoding a scalable video signal utilizing an inter-layer prediction wherein the required information for inter-layer prediction in SVC decoding will be pre-fetched ahead when reconstructing the enhancement layer, so that the execution time and cache miss rate can be improved.
A method for decoding a scalable video signal utilizing an inter-layer prediction, wherein the scalable video signal includes a base layer and at least an enhancement layer associated with the base layer, each of the base layer and enhancement layer including at least two consecutive macroblocks, the method includes: decoding the base layer; reconstructing the current macroblock of the enhancement layer by fetching a first reference data associated with the current macroblock from a cache memory; pre-fetching a second reference data related to the next marcoblock of the base layer; and storing the second reference data in the cache memory.
A device for decoding a scalable video signal utilizing an inter-layer prediction includes: a cache memory; and a decoding unit coupled to the cache memory, executing a decoding method for the scalable video signal, wherein the scalable video signal includes a base layer and at least an enhancement layer associated with the base layer, each of the base layer and the enhancement layer including at least two consecutive macroblocks, includes the steps of: decoding the base layer; reconstructing the current macroblock of the enhancement layer by fetching a first reference data associated with the current macroblock from the cache memory; pre-fetching a second reference data related to the next marcoblock from the base layer; and storing the second reference data in the cache memory.
The objective, technologies, features and advantages of the present invention will become more apparent from the following description in conjunction with the accompanying drawings, wherein certain embodiments of the present invention are set forth by way of illustration and examples.
The detailed explanation of the present invention is described as follows. The described preferred embodiments are presented for purposes of illustrations and description, and are not intended to limit the scope of the present invention.
According to an embodiment in reference to
Continued from the above description, in the embodiment, the enhancement layer EL is decoded by an inter-layer motion prediction and/or an inter-layer residual prediction. Besides, the first/second reference data include a residual data and/or a motion vector data. In one embodiment, when the enhancement layer EL is decoded by an inter-layer motion prediction, all the motion vector data within a predetermined MB block size are pre-fetched from the base layer BL, wherein the predetermined MB block size can be but not limited to 8×8. In another embodiment, when the enhancement layer is decoded by an inter-layer residual prediction, the residual data are calculated by applying a bilinear interpolation algorithm on data within a predetermined MB block size, 8×8 for example, from the base layer before being pre-fetched from the base layer BL.
According to an embodiment in reference to
With the proposed method and device as mentioned above, the miss rate of cache memory can be improved for the scalable video coding (SVC) application.
To summarize the foregoing descriptions, the method and device for a scalable video signal utilizing an inter-layer prediction arranges the required information for inter-layer prediction in SVC decoding to be pre-fetched ahead when reconstructing the enhancement layer, so that the execution time and cache miss rate can be reduced. Furthermore, the unnecessary misses in cache memory and the number of DRAM access caused by cache data replacement can also be reduced.
While the invention is susceptible to various modifications and alternative forms, a specific example thereof has been shown in the drawings and is herein described in detail. It should be understood, however, that the invention is not to be limited to the particular form disclosed, but to the contrary, the invention is to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the appended claims.