Embodiments described herein relate generally to a moving image encoding device and a moving image encoding method.
According to the H.264 specification as a moving picture coding scheme, reference is allowed for a plurality of reference pictures by introducing a decoded picture buffer (DPB). Introduction of the DPB contributes to improvement of coding efficiency in H.264. The DPB has a constraint in the number of reference pictures due to a size limitation. However, the DPB can reference a temporally distant picture as well as a temporally close picture for a decoded picture by using a decoded picture marking process and the like.
In the moving picture coding scheme such as H.264, an I-picture, a P-picture, and a B-picture are employed. Typically, the amount of the created codes is smaller in the order to the I-picture, the P-picture, and the B-picture. Therefore, as the number of B-pictures increases, a stream code amount decreases, and coding efficiency is improved.
In MPEG-2 as a moving picture coding scheme, as the number of B-pictures increases, a temporal distance to the picture referenced by the B-picture becomes distant. For this reason, in MPEG-2, it is difficult to predict the B-picture, and coding efficiency is aggravated. In this regard, in H.264, by introducing a reference B-picture, that is, a picture where reference is allowed from a B-picture to a B-picture, coding efficiency is improved.
A reference relationship between B-pictures may have a hierarchical structure in which reference is allowed only from an upper layer to a lower layer. As a result, a picture belonging to a certain layer can be appropriately decoded if a picture in the lower layer has been decoded. This hierarchy may be employed in high-rate reproduction.
The H.264 specifications in the ARIB standards define restrictions of a GOP (Group of Pictures) structure as follows for enabling random access reproduction, high-speed reproduction and others in broadcasting, distribution and others. An unreference B picture and a reference B picture are decoded immediately after an I picture or a P picture to be displayed immediately after it. It is assumed that the I picture or the P picture is in the same GOP as the unreference B picture or the reference B picture. The unreference B picture refers to only (a) a frame or a field pair of the I picture or the P picture immediately preceding or following it in the display order, or (b) a frame or a field pair of the reference B picture that immediately precedes or follows it in the display order and is closer than the I picture or the P picture immediately preceding or following it in the display order. The reference B picture refers to only (a) a frame or a field pair of the I picture or the P picture immediately preceding or following it in the display order, or (b) a field of the reference B picture forming the same frame. A reference relationship between the B pictures based on constraints of the above GOP structure can take a hierarchical structure that allows only the reference from an upper layer to a lower layer. This necessarily enables the decoding of the picture in a certain layer provided that a picture at a lower layer is already decoded. The fast reproduction can use this.
However, reference from an unreference B picture to a reference B picture is impossible under the constraints of the present GOP structure.
A general architecture that implements the various features of the embodiments will now be described with reference to the drawings. The drawings and the associated descriptions are provided to illustrate the embodiments and not to limit the scope of the invention.
Various embodiments will be described hereinafter with reference to the accompanying drawings.
In general, according to one embodiment, a moving picture coding apparatus and a moving picture coding method capable of further improving coding efficiency, the moving picture coding apparatus comprises a controller. The controller performs control such that coded data are created using an inter-prediction structure in which the maximum number of consecutive B-pictures in a GOP is set to “N”, and the number of layers in a reference relationship between the B-pictures is set to “L”.
Hereinafter, an embodiment will be described in detail with reference to the drawings.
The controller 101 controls operations of various elements in the moving image encoding device 10.
The subtracter 102 externally receives an input image signal 200, and also receives a predicted image signal 250 from the predicted image generator 110 which will be described later. The subtracter 102 obtains a prediction error signal 210 by subtracting the predicted image signal 250 from the input image signal 200. The subtracter 102 outputs the prediction error signal 210 to the orthogonal transformer 103.
The orthogonal transformer 103 executes, e.g., discrete cosine transformation to obtain orthogonal transformation coefficient information 220 by orthogonally transforming the prediction error signal 210. The orthogonal transformer 103 outputs the orthogonal transformation coefficient information 220 to a quantizer 303.
The quantizer 104 quantizes the orthogonal transformation coefficient information 220 to obtain quantized orthogonal transformation coefficient information (quantized data) 230. The quantizer 104 outputs the quantized orthogonal transformation coefficient information 230 to the inverse quantizer 105 and the entropy encoder 111.
The inverse quantizer 105 and the inverse orthogonal transformer 106 locally decode the quantized orthogonal transformation coefficient information 230. The inverse orthogonal transformer 106 outputs the locally decoded quantized orthogonal transformation coefficient information 230 to the adder 107.
The adder 107 obtains a locally decoded image signal 240 by adding the predicted image signal 250 to the locally decoded quantized orthogonal transformation coefficient information 230. The adder 107 outputs the locally decoded image signal 240 to the loop filter 108. The locally decoded image signal 240 is supplied through a loop filter 306 to a frame memory 308.
The frame memory 109 supplies the locally decoded image signal 240 stored therein to the predicted image generator 110.
The predicted image generator 110 obtains the predicted image signal 250 based on the locally decoded image signal 240. The predicted image generator 110 outputs the predicted image signal 250 to a subtracter 102 and an adder 107.
The entropy encoder 111 obtains the encoded bit string 260 by encoding the quantized orthogonal transformation coefficient information 230. The entropy encoder 111 externally outputs the encoded bit string 260.
The moving image encoding device 10 generates the I picture, the P picture and the B picture, and generates the GOP formed of a plurality of pictures comprising at least one I picture as the encoded bit string 260. The encoding of only the picture in question generates the I picture. The encoding with the unidirectional prediction generates the P picture. The encoding with the bidirectional prediction generates the B. There are two kinds of B pictures, i.e., the B picture (reference B picture) which another picture can refer to and the B picture (unreference B picture) which another picture cannot refer to.
Next, constraints on the inter-prediction structure defined in the present embodiment will be described. The controller 101 performs control such that the coded bit string 260 is created based on at least one of constraints of the inter-prediction structure described below in the paragraphs (1) to (7). In the following description, it is assumed that the I-picture or the P-picture is a picture within the same GOP as that of the non-reference B-picture or the reference B-picture.
(1) The GOP structure allowing the reference from the reference B picture to the reference B picture. This GOP structure enables the reference from the reference B picture in one GOP to another reference B picture in the same GOP. The reference from the unreference B picture to the reference B picture is enabled as can be done in the prior art (H.264 specifications of the ARIB standards).
(2) The GOP structure allowing the reference from the B picture to the I or P picture preceding it in the display order. This GOP structure enables the reference in the GOP from the first B picture to the I or P picture preceding the first B picture in the display order. The B picture can refer to the I or P picture preceding it in the display order except for the conventionally allowed I or P picture immediately preceding it in the display order.
(3) The GOP structure disabling reference from the B picture to the B picture remoter in the display order than the immediately preceding P picture. This GOP structure disables the reference in the GOP from the first B picture to the second B picture remoter in the display order than the I picture or the P picture immediately preceding the first B picture.
(4) The GOP structure disabling reference from the B picture to the P picture remoter in the display order than the immediately following P picture. This GOP structure disables the reference in the GOP from the first B picture to another I picture or another P picture remoter in the display order than the I picture or the P picture immediately following the first B picture. In other words, among the I pictures or the P pictures following the first B picture in the display order in the GOP, this GOP structure performs the reference to only the I picture or the P picture immediately following the first B picture in the display order from the first B picture.
(5) The GOP structure performing reference from the B picture to only the reference B picture located closer than the I picture or the P picture immediately preceding or following the B picture in the display order. In other words, for the reference B pictures in the GOP, this GOP structure enables the reference in the GOP from the first B picture to the reference B picture closer in the display order than the I picture or the P picture immediately preceding or following the first B picture.
(6) The maximum number of consecutive B-pictures is set to “N.” Here, “N” is set to “21−1,” where “L” denotes the number of layers in a reference relationship between the B-pictures. That is, in this inter-prediction structure, a relationship “N=2L−1” is satisfied, where “N” denotes the maximum number of the consecutive B-pictures within a single GOP, and “L” denotes the number of layers in the reference relationship between the B-pictures. For example, “L” is set to an integer equal to or greater than 3. If “L” is set to “3,” “N” becomes “7.”
(7) A difference (frame delay) between a decoding timing for a head picture (I-picture or a random access point (RAP) picture) in a decoding order within a GOP and a display timing for a first picture in a display order within the GOP is set to “M” frame intervals or smaller, where “M” is equal to “L.” For example, “M” may be set to “3.” In this example of the inter-prediction structure, a difference between a decoding timing for a head picture in a decoding order within a GOP and a display timing for a head picture in a display order within the GOP is set to “3” frame intervals or smaller. In this inter-prediction structure, a first picture in a display order within a GOP can starts to be displayed with a delay of “M” frame intervals at maximum if the decoding starts from the head of the GOP.
As shown in
The decoder decodes the respective pictures based on an example of the GOP structure shown in
According to the present embodiment, based on the constraints (1) to (7), the coded bit string 260 can have an inter-prediction structure in which there are three or more layers between B-pictures, and a distance to the reference picture of each B-picture in bilateral prediction is symmetric. For this reason, the moving picture coding apparatus 10 can create a coded bit string 260 having an inter-prediction structure capable of maintaining or improving coding efficiency without increasing the number of I-pictures or P-pictures per unit time even when the frame rate of the input image signal increases. Furthermore, the moving picture coding apparatus 10 can create a coded bit string 260 having an inter-prediction structure capable of causing a decoder to decode the coded bit string 260 with a high reproduction rate, which is 2n times a typical reproduction rate, and easily changing a reproduction rate. Moreover, the moving picture coding apparatus 10 can create a coded bit string 260 having an inter-prediction structure capable of causing a decoder to suppress a frame delay in screen display as much as possible.
While certain embodiments have been described, these embodiments have been presented by way of example only, and are not intended to limit the scope of the inventions. Indeed, the novel embodiments described herein may be embodied in a variety of other forms; furthermore, various omissions, substitutions and changes in the form of the embodiments described herein may be made without departing from the spirit of the inventions. The accompanying claims and their equivalents are intended to cover such forms or modifications as would fall within the scope and spirit of the inventions.
Number | Date | Country | Kind |
---|---|---|---|
2013-017841 | Jan 2013 | JP | national |
This application is a Continuation Application of PCT Application No. PCT/JP2013/058163, filed Mar. 21, 2013 and based upon and claiming the benefit of priority from Japanese Patent Application No. 2013-017841, filed Jan. 31, 2013, the entire contents of all of which are incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/JP2013/058163 | Mar 2013 | US |
Child | 14018125 | US |