A current block included in a current picture included in a coded video stream is decoded by determining a reference picture in the coded video stream, the reference picture being included in one of (i) a first reference picture group of the current block and (ii) a second reference picture group of the current block; selecting a reference motion vector of a reference block in the reference picture such that in situation (A) when the reference block has a first reference motion vector and a second reference motion vector that respectively correspond to the first reference picture group and the second reference picture group, (i) the first reference motion vector is selected when the reference picture is included in the second reference picture group and (ii) the second reference motion vector is selected when the reference picture is included in the first reference picture group, in situation (B) when the reference block has only one reference motion vector, the only reference motion vector is selected, and in situation (C) when the reference block has no reference motion vector, a zero reference motion vector is selected; deriving the motion vector of the current block using the selected one reference motion vector; and decoding the current block using the derived motion vector.
Legal claims defining the scope of protection, as filed with the USPTO.
determining a reference picture in the coded video stream, the reference picture being included in one of (i) a first reference picture group of the current block and (ii) a second reference picture group of the current block; selecting a reference motion vector among from one or more reference motion vectors of a reference block in the reference picture such that in situation (A) when the reference block has a first reference motion vector and a second reference motion vector that respectively correspond to the first reference picture group and the second reference picture group, (i) the first reference motion vector is selected when the reference picture is included in the second reference picture group and (ii) the second reference motion vector is selected when the reference picture is included in the first reference picture group, in situation (B) when the reference block has only one reference motion vector, the only reference motion vector is selected, and in situation (C) when the reference block has no reference motion vector, a zero reference motion vector is selected; deriving the motion vector of the current block using the selected one reference motion vector; and decoding the current block using the derived motion vector. . A decoding method of decoding a current block included in a current picture, the current picture being included in a coded video stream, the decoding method comprising:
claim 1 obtaining a position flag added to the current picture including the current block, wherein, in the selecting, in the case where the reference block has, as the first reference motion vector and the second reference motion vector, a forward reference motion vector directed forward and a backward reference motion vector directed backward, the forward reference motion vector is selected from among the first reference motion vector and the second reference motion vector when the position flag indicates that the reference block is located after the current block, and the backward reference motion vector is selected from among the first reference motion vector and the second reference motion vector when the position flag indicates that the reference block is located before the current block. . The decoding method according to, further comprising:
claim 1 in the situation (A), the first reference motion vector is a forward reference motion vector directed forward and the second reference motion vector is a backward reference motion vector directed backward, the forward reference motion vector is selected when the reference block is located after the current block, and the backward reference motion vector is selected when the reference block is located before the current block. . The decoding method according to, wherein:
a processor; a non-transitory memory having stored thereon executable instructions, which when executed by the processor, cause the processor to perform the following steps: determining a reference picture in the coded video stream, the reference picture being included in one of (i) a first reference picture group of the current block and (ii) a second reference picture group of the current block; selecting a reference motion vector among from one or more reference motion vectors of a reference block in the reference picture such that in situation (A) when the reference block has a first reference motion vector and a second reference motion vector that respectively correspond to the first reference picture group and the second reference picture group, (i) the first reference motion vector is selected when the reference picture is included in the second reference picture group and (ii) the second reference motion vector is selected when the reference picture is included in the first reference picture group, in situation (B) when the reference block has only one reference motion vector, the only reference motion vector is selected, and in situation (C) when the reference block has no reference motion vector, a zero reference motion vector is selected; deriving the motion vector of the current block using the selected one reference motion vector; and decoding the current block using the derived motion vector. . A decoding apparatus for decoding a current block included in a current picture, the current picture being included in a coded video stream, the decoding apparatus comprising:
claim 4 in the situation (A), the first reference motion vector is a forward reference motion vector directed forward and the second reference motion vector is a backward reference motion vector directed backward, the forward reference motion vector is selected when the reference block is located after the current block, and the backward reference motion vector is selected when the reference block is located before the current block. . The decoding apparatus in, wherein:
claim 4 obtaining a position flag added to the current picture including the current block, wherein, in said selecting, in the case where the reference block has, as the first reference motion vector and the second reference motion vector, a forward reference motion vector directed forward and a backward reference motion vector directed backward, the forward reference motion vector is selected from among the first reference motion vector and the second reference motion vector when the position flag indicates that the reference block is located after the current block, and the backward reference motion vector is selected from among the first reference motion vector and the second reference motion vector when the position flag indicates that the reference block is located before the current block. . The decoding apparatus in, wherein the non-transitory memory includes executable instructions, which when executed by the processor, cause the processor to perform the following:
processing circuitry configured to: determine a reference picture in the coded video stream, the reference picture being included in one of (i) a first reference picture group of the current block and (ii) a second reference picture group of the current block; select a reference motion vector among from one or more reference motion vectors of a reference block in the reference picture such that in situation (A) when the reference block has a first reference motion vector and a second reference motion vector that respectively correspond to the first reference picture group and the second reference picture group, (i) the first reference motion vector is selected when the reference picture is included in the second reference picture group and (ii) the second reference motion vector is selected when the reference picture is included in the first reference picture group, in situation (B) when the reference block has only one reference motion vector, the only reference motion vector is selected, and in situation (C) when the reference block has no reference motion vector, a zero reference motion vector is selected; derive the motion vector of the current block using the selected one reference motion vector; and decoding circuitry configured to decode the current block using the derived motion vector. . A decoding apparatus for decoding a current block included in a current picture, the current picture being included in a coded video stream, the decoding method comprising:
claim 7 in the situation (A), the first reference motion vector is a forward reference motion vector directed forward and the second reference motion vector is a backward reference motion vector directed backward, the forward reference motion vector is selected when the reference block is located after the current block, and the backward reference motion vector is selected when the reference block is located before the current block. . The decoding apparatus in, wherein:
claim 7 obtaining a position flag added to the current picture including the current block, wherein, in said selecting, in the case where the reference block has, as the first reference motion vector and the second reference motion vector, a forward reference motion vector directed forward and a backward reference motion vector directed backward, the forward reference motion vector is selected from among the first reference motion vector and the second reference motion vector when the position flag indicates that the reference block is located after the current block, and the backward reference motion vector is selected from among the first reference motion vector and the second reference motion vector when the position flag indicates that the reference block is located before the current block. . The decoding apparatus in, wherein the non-transitory memory includes executable instructions, which when executed by the processor, cause the processor to perform the following:
decoding a first block from among the plurality of blocks, the first block being included in a first picture from among the plurality of pictures; decoding a second block from among the plurality of blocks, the second block being included in a second picture from among the plurality of pictures; and decoding a third block from among the plurality of blocks, the third block being included in a third picture from among the plurality of pictures, determining a first reference picture in the coded video stream, the first reference picture being included in one of (i) a first reference picture group of the first block and (ii) a second reference picture group of the first block; determining that (i) a reference block in the first reference picture has a first reference motion vector and a second reference motion vector that respectively correspond to the first reference picture group of the first block and the second reference picture group of the first block and (ii) a position flag indicates that the first reference picture is included in the first reference picture group of the first block; selecting the second reference motion vector in response to determining that (i) the reference block in the first reference picture has the first reference motion vector and the second reference motion vector that respectively correspond to the first reference picture group of the first block and the second reference picture group of the first block and (ii) the position flag indicates that the first reference picture is included in the first reference picture group; deriving a motion vector of the first block using the selected second reference motion vector; and decoding the first block using the derived motion vector of the first block, wherein the decoding the second block includes: determining a second reference picture in the coded video stream; the second reference picture being included in one of (i) a first reference picture group of the second block and (ii) a second reference picture group of the second block; determining a reference block in the second reference picture has only one reference motion vector; selecting the only one reference motion vector in the second reference picture in response to determining that the reference block in the second reference picture has the only one reference motion vector; deriving a motion vector of the second block using the selected only one reference motion vector; and decoding the second block using the derived motion vector of the second block; wherein the decoding the first block includes: and determining a third reference picture in the coded video stream; the third reference picture being included in one of (i) a first reference picture group of the third block and (ii) a second reference picture group of the third block; determining that a reference block in the third reference picture has no reference motion vector; selecting a zero reference motion vector in response to determining that the reference block in the third reference picture has no reference motion vector; deriving a motion vector of the third block using the selected zero reference motion vector; and decoding the third block using the derived motion vector of the third block. wherein the decoding the third block includes: 10. A non-transitory computer-readable recording medium having stored thereon a bitstream including a coded video stream and executable instructions, which cause a computer to perform a decoding method of decoding a plurality of blocks included in a plurality of pictures, the plurality of pictures being included in the coded video stream, the decoding method comprising:
decoding a first block from among the plurality of blocks, the first block being included in a first picture from among the plurality of pictures, decoding a second block from among the plurality of blocks, the second block being included in a second picture from among the plurality of pictures; and decoding a third block from among the plurality of blocks, the third block being included in a third picture from among the plurality of pictures; determining a first reference picture in the coded video stream, the first reference picture being included in one of (i) a first reference picture group of the first block and (ii) a second reference picture group of the first block; determining that (i) a reference block in the first reference picture has a first reference motion vector and a second reference motion vector that respectively correspond to the first reference picture group of the first block and the second reference picture group of the first block and (ii) a position flag indicates that the first reference picture is included in the first reference picture group of the first block; selecting the second reference motion vector in response to determining that (i) the reference block in the first reference picture has the first reference motion vector and the second reference motion vector that respectively correspond to the first reference picture group of the first block and the second reference picture group of the first block and (ii) the position flag indicates that the first reference picture is included in the first reference picture group; deriving a motion vector of the first block using the selected second reference motion vector; and decoding the first block using the derived motion vector of the first block, wherein the decoding the second block includes: determining a second reference picture in the coded video stream, the second reference picture being included in one of (i) a first reference picture group of the second block and (ii) a second reference picture group of the second block; determining a reference block in the second reference picture has only one reference motion vector; selecting the only one reference motion vector in the second reference picture in response to determining that the reference block in the second reference picture has the only one reference motion vector; deriving a motion vector of the second block using the selected only one reference motion vector; and decoding the second block using the derived motion vector of the second block, wherein the decoding the first block includes: and determining a third reference picture in the coded video stream, the third reference picture being included in one of (i) a first reference picture group of the third block and (ii) a second reference picture group of the third block; determining that a reference block in the third reference picture has no reference motion vector; selecting a zero reference motion vector in response to determining that the reference block in the third reference picture has no reference motion vector; deriving a motion vector of the third block using the selected zero reference motion vector; and decoding the third block using the derived motion vector of the third block. wherein the decoding the third block includes: 11. A decoding method of decoding a plurality of blocks included in a plurality of pictures, the plurality of pictures being included in a coded video stream, the decoding method comprising:
claim 11 the first reference motion vector is a backward reference motion vector directed backward, and the second reference motion vector is a forward reference motion vector directed forward, and the position flag indicates that the reference block in the first reference picture is located before the first block. 12. The decoding method according to, wherein:
claim 11 the first reference motion vector is a forward reference motion vector directed forward, and the second reference motion vector is a backward reference motion vector directed backward, and the position flag indicates that the reference block in the first reference picture is located after the first block. 13. The decoding method according to, wherein:
a processor; decoding a first block from among the plurality of blocks, the first block being included in a first picture from among the plurality of pictures; decoding a second block from among the plurality of blocks, the second block being included in a second picture from among the plurality of pictures; and decoding a third block from among the plurality of blocks, the third block being included in a third picture from among the plurality of pictures, a non-transitory memory having stored thereon executable instructions, which when executed by the processor, cause the processor to perform the following steps: determining a first reference picture in the coded video stream, the first reference picture being included in one of (i) a first reference picture group of the first block and (ii) a second reference picture group of the first block; determining that (i) a reference block in the first reference picture has a first reference motion vector and a second reference motion vector that respectively correspond to the first reference picture group of the first block and the second reference picture group of the first block and (ii) a position flag indicates that the first reference picture is included in the first reference picture group of the first block; selecting the second reference motion vector in response to determining that (i) the reference block in the first reference picture has the first reference motion vector and the second reference motion vector that respectively correspond to the first reference picture group of the first block and the second reference picture group of the first block and (ii) the position flag indicates that the first reference picture is included in the first reference picture group; deriving a motion vector of the first block using the selected second reference motion vector; and decoding the first block using the derived motion vector of the first block, wherein the decoding the second block includes: determining a second reference picture in the coded video stream, the second reference picture being included in one of (i) a first reference picture group of the second block and (ii) a second reference picture group of the second block; determining a reference block in the second reference picture has only one reference motion vector; selecting the only one reference motion vector in the second reference picture in response to determining that the reference block in the second reference picture has the only one reference motion vector; deriving a motion vector of the second block using the selected only one reference motion vector; and decoding the second block using the derived motion vector of the second block, wherein the decoding the first block includes: and determining a third reference picture in the coded video stream; the third reference picture being included in one of (i) a first reference picture group of the third block and (ii) a second reference picture group of the third block; determining that a reference block in the third reference picture has no reference motion vector; selecting a zero reference motion vector in response to determining that the reference block in the third reference picture has no reference motion vector; deriving a motion vector of the third block using the selected zero reference motion vector; and decoding the third block using the derived motion vector of the third block. wherein the decoding the third block includes: 14. A decoding apparatus for decoding a plurality of blocks included in a plurality of pictures, the plurality of pictures being included in a coded video stream, the decoding apparatus comprising:
claim 14 the first reference motion vector is a forward reference motion vector directed forward, and the second reference motion vector is a backward reference motion vector directed backward, and the position flag indicates that the reference block in the first reference picture is located after the first block. 15. The decoding apparatus in, wherein:
claim 14 the first reference motion vector is a backward reference motion vector directed backward, and the second reference motion vector is a forward reference motion vector directed forward, and the position flag indicates that the reference block in the first reference picture is located before the first block. 16. The decoding apparatus in, wherein:
processing circuitry; and decode a first block from among the plurality of blocks, the first block being included in a first picture from among the plurality of pictures; decode a second block from among the plurality of blocks, the second block being included in a second picture from among the plurality of pictures; and decode a third block from among the plurality of blocks, the third block being included in a third picture from among the plurality of pictures; decoding circuitry configured to: determine a first reference picture in the coded video stream, the first reference picture being included in one of (i) a first reference picture group of the first block and (ii) a second reference picture group of the first block; determine that (i) a reference block in the first reference picture has a first reference motion vector and a second reference motion vector that respectively correspond to the first reference picture group of the first block and the second reference picture group of the first block and (ii) a position flag indicates that the first reference picture is included in the first reference picture group of the first block; select the second reference motion vector in response to determining that (i) the reference block in the first reference picture has the first reference motion vector and the second reference motion vector that respectively correspond to the first reference picture group of the first block and the second reference picture group of the first block and (ii) the position flag indicates that the first reference picture is included in the first reference picture group; and derive a motion vector of the first block using the selected second reference motion vector, wherein the processing circuitry is configured to: wherein the decoding circuitry decodes the first block using the derived motion vector of the first block, determine a second reference picture in the coded video stream, the second reference picture being included in one of (i) a first reference picture group of the second block and (ii) a second reference picture group of the second block; determine a reference block in the second reference picture has only one reference motion vector; select the only one reference motion vector in the second reference picture in response to determining that the reference block in the second reference picture has the only one reference motion vector; and derive a motion vector of the second block using the selected only one reference motion vector, wherein the processing circuitry is configured to: wherein the decoding circuitry decodes the second block using the derived motion vector of the second block, determine a third reference picture in the coded video stream, the third reference picture being included in one of (i) a first reference picture group of the third block and (ii) a second reference picture group of the third block; determine that a reference block in the third reference picture has no reference motion vector; select a zero reference motion vector in response to determining that the reference block in the third reference picture has no reference motion vector; and derive a motion vector of the third block using the selected zero reference motion vector, and wherein the processing circuitry is configured to: wherein the decoding circuitry decodes the third block using the derived motion vector of the third block. 17. A decoding apparatus for decoding a plurality of blocks included in a plurality of pictures, the plurality of pictures being included in a coded video stream, the decoding apparatus comprising:
claim 17 the first reference motion vector is a forward reference motion vector directed forward, and the second reference motion vector is a backward reference motion vector directed backward, and the position flag indicates that the reference block in the first reference picture is located after the first block. 18. The decoding apparatus in, wherein:
claim 17 the first reference motion vector is a backward reference motion vector directed backward, and the second reference motion vector is a forward reference motion vector directed forward, and the position flag indicates that the reference block in the first reference picture is located before the first block. 19. The decoding apparatus in, wherein:
obtaining the bitstream from the non-transitory computer-readable recording medium; decoding a first block from among the plurality of blocks; the first block being included in a first picture from among the plurality of pictures; decoding a second block from among the plurality of blocks; the second block being included in a second picture from among the plurality of pictures; and decoding a third block from among the plurality of blocks; the third block being included in a third picture from among the plurality of pictures, determining a first reference picture in the coded video stream, the first reference picture being included in one of (i) a first reference picture group of the first block and (ii) a second reference picture group of the first block; determining that (i) a reference block in the first reference picture has a first reference motion vector and a second reference motion vector that respectively correspond to the first reference picture group of the first block and the second reference picture group of the first block and (ii) a position flag indicates that the first reference picture is included in the first reference picture group of the first block; selecting the second reference motion vector in response to determining that (i) the reference block in the first reference picture has the first reference motion vector and the second reference motion vector that respectively correspond to the first reference picture group of the first block and the second reference picture group of the first block and (ii) the position flag indicates that the first reference picture is included in the first reference picture group; deriving a motion vector of the first block using the selected second reference motion vector; and decoding the first block using the derived motion vector of the first block, wherein the decoding the first block includes: determining a second reference picture in the coded video stream, the second reference picture being included in one of (i) a first reference picture group of the second block and (ii) a second reference picture group of the second block; determining a reference block in the second reference picture has only one reference motion vector; selecting the only one reference motion vector in the second reference picture in response to determining that the reference block in the second reference picture has the only one reference motion vector; deriving a motion vector of the second block using the selected only one reference motion vector; and decoding the second block using the derived motion vector of the second block; wherein the decoding the second block includes: and determining a third reference picture in the coded video stream; the third reference picture being included in one of (i) a first reference picture group of the third block and (ii) a second reference picture group of the third block; determining that a reference block in the third reference picture has no reference motion vector; selecting a zero reference motion vector in response to determining that the reference block in the third reference picture has no reference motion vector; deriving a motion vector of the third block using the selected zero reference motion vector; and decoding the third block using the derived motion vector of the third block. wherein the decoding the third block includes: 20. A decoding method of decoding a plurality of blocks included in a plurality of pictures, the plurality of pictures being included in a coded video stream included in a bitstream stored on a non-transitory computer-readable recording medium; the decoding method comprising:
Complete technical specification and implementation details from the patent document.
This application is a continuation of U.S. application Ser. No. 14/957,886, filed Dec. 3, 2015, which is a continuation of U.S. application Ser. No. 13/814,564, filed Feb. 6, 2013 (now U.S. Pat. No. 9,300,961), which is a US National Stage of PCT/JP2011/006517, filed Nov. 22, 2011, and claims the benefit of U.S. Provisional Application No. 61/416,822, filed Nov. 24, 2010, the entire contents of each of which are incorporated herein by reference.More than one reissue application has been filed for the reissue of U.S. Pat. No. 10,218,997. The reissue applications are (i) Application Ser. No. 18/396,192, filed Dec. 26, 2023 (which is an application for reissue of U.S. Pat. No. 10,218,997) and (ii) the present application (which is continuation reissue of Application Ser. No. 18/396,192). This application is a continuation reissue of Application Ser. No. 18/396,192, filed Dec. 26, 2023, which is an application for reissue of U.S. Pat. No. 10,218,997, which issued on Feb. 26, 2019 from Application Ser. No. 15/581,870, filed Dec. 22, 2017, which is a continuation of Application Ser. No. 14/957,886, which is a continuation of Application Ser. No. 13/814,564, filed Feb. 6, 2013, which is the National Stage of International Application No. PCT/JP2011/006517, filed Nov. 22, 2011, which claims the benefit of U.S. Provisional Application No. 61/416,822, filed Nov. 24, 2010.
The present invention relates to a method of calculating a motion vector, a picture coding method and a picture decoding method which use the motion vector, and so on.
In coding processing of moving pictures, a quantity of information is generally reduced using redundancy of the moving pictures in spatial and temporal directions. Here, a general method using the redundancy in the spatial direction is represented by the transformation into frequency domain while a general method using the redundancy in the temporal direction is represented by inter-picture prediction (hereinafter referred to as inter prediction). In a coding process using the inter prediction (an inter prediction coding process), when coding a certain picture, a coded picture located before or after the current picture to be coded in display time order is used as a reference picture. Subsequently, a motion vector of the current picture with respect to the reference picture is estimated, and a difference is calculated between image data of the current picture and prediction picture data resulting from motion compensation based on the motion vector, to remove the redundancy in the temporal direction.
In the moving picture coding scheme called H. 264, which has already been standardized, three types of pictures: I-picture, P-picture, and B-picture, are used to reduce the quantity of information. The I-picture is a picture on which no inter prediction coding process is performed, that is, on which a coding process using intra-picture prediction (hereinafter referred to as intra prediction) is performed. The P-picture is a picture on which the inter prediction coding process is performed with reference to one coded picture located before or after the current picture in display time order. The B-picture is a picture on which the inter prediction coding process is performed with reference to two coded pictures located before or after the current picture in display time order.
1 FIG. Furthermore, in the moving picture coding scheme called H. 264, a coding mode which is referred to as temporal direct can be selected to derive a motion vector in coding the B-picture (see Non Patent Literature 1, for example). The inter prediction coding process in temporal direct is described with reference to.
1 FIG. illustrates an inter prediction coding process in temporal direct and a method of calculating a motion vector.
1 FIG. 2 3 2 1 1 3 1 3 As shown in, a block (to be processed) Ba of a picture (to be coded) Bis coded in the inter prediction coding process in temporal direct. In this case, a motion vector “a” is used which has been used to code a block Bb, co-located with the block Ba, in a picture Pserving as a reference picture located after the picture B. The motion vector “a” is a motion vector which has been used to code the block Bb and refers to a picture (a reference picture) P. Here, two motion vectors “b” and “c” parallel to the motion vector “a” are calculated for the block Ba. Specifically, a block, indicated by the motion vector “b”, included in the reference picture Plocated before the block Ba in display time order and a block, indicated by the motion vector “c”, included in the reference picture Plocated after the block Ba in display time order are obtained, and using bi-directional prediction with reference to the obtained blocks, the block Ba is coded. It is to be noted that the motion vector to be used in coding the block Ba is the motion vector “b” directed forward to indicate the reference picture Pand the motion vector “c” directed backward to indicate the reference picture P.
[NPL 1]
ITU-T H.264 03/2010
However, in the conventional temporal direct, the motion vector to be used in the temporal direct, that is, the motion vector to be used in calculating a motion vector of a current block to be processed, is a motion vector of a reference picture (specifically, a reference block) located after the current block in display time order and limited to a motion vector directed forward in display time order.
Such a limitation of the motion vector to be used in the temporal direct causes problems of making it difficult to calculate the motion vector most suitable for the current block, which leads to a decreased compression rate.
Thus, the present invention has an object to solve the above problems, and the object is to provide a motion vector calculation method, a picture coding method, a picture decoding method, and so on, which derive the motion vector most suitable for the current block and attain a higher compression rate.
In order to achieve the above object, a motion vector calculation method according to an aspect of the present invention is a motion vector calculation method of calculating a motion vector of a current block to be processed that is included in a moving picture, the motion vector calculation method comprising: a selection step of selecting one of at least one reference motion vector of a reference block; and a calculation step of calculating the motion vector of the current block using the one reference motion vector selected in the selection step, wherein, in the selection step, when the reference block has two reference motion vectors, one of the two reference motion vectors is selected based on whether the reference block is located before or after the current block in display time order, and when the reference block has only one reference motion vector, the one reference motion vector is selected.
With this, one of two reference motion vectors is selected based on whether the reference block is located before or after the current block in display time order. For example, the reference block is a co-located block, and the current block is a block to be coded or a block to be decoded. Furthermore, the reference motion vector is a motion vector used to code or decode the reference block. Thus, in the motion vector calculation method according to an aspect of the present invention, even when the reference block has two reference motion vectors, a suitable reference motion vector can be selected according to a position of the reference block, and, for example, scaling the selected reference motion vector allows calculation or derivation of the most suitable motion vector for the current block. As a result, the compression rate of the current block can increase.
Furthermore, it may be that in the selection step, in the case where the reference block has, as the two reference motion vectors, a forward reference motion vector directed forward and a backward reference motion vector directed backward, the forward reference motion vector is selected from among the two reference motion vectors when the reference block is located after the current block, and the backward reference motion vector is selected from among the two reference motion vectors when the reference block is located before the current block.
With this, a suitable reference motion vector can be reliably selected.
In order to achieve the above object, a motion vector calculation method according to another aspect of the present invention is a motion vector calculation method of calculating a motion vector of a current block to be processed that is included in a moving picture, the motion vector calculation method comprising: a selection step of selecting one of at least one reference motion vector of a reference block; and a calculation step of calculating the motion vector of the current block using the one reference motion vector selected in the selection step, wherein, in the selection step, when the reference block has two reference motion vectors, one of the two reference motion vectors is selected based on a temporal distance between the reference block and a picture indicated by each of the two reference motion vectors, and when the reference block has only one reference motion vector, the one reference motion vector is selected.
With this, one of the two reference motion vectors is selected based on temporal distances between the reference block and the respective pictures indicated by the two reference motion vectors. Thus, in the motion vector calculation method according to another aspect of the present invention, even when the reference block has two reference motion vectors, a suitable reference motion vector can be selected according to a temporal distance between pictures, and, for example, scaling the selected reference motion vector allows calculation or derivation of the most suitable motion vector for the current block. As a result, the compression rate of the current block can increase.
In order to achieve the above object, a motion vector calculation method according to another aspect of the present invention is a motion vector calculation method of calculating a motion vector of a current block to be processed that is included in a moving picture, the motion vector calculation method comprising: a selection step of selecting one of at least one reference motion vector of a reference block; and a calculation step of calculating the motion vector of the current block using the one reference motion vector selected in the selection step, wherein, in the selection step, when the reference block has two reference motion vectors, one of the two reference motion vectors is selected based on a magnitude of each of the two reference motion vectors, and when the reference block has only one reference motion vector, the one reference motion vector is selected.
With this, one of the two reference motion vectors is selected based on respective magnitudes of the two reference motion vectors. Thus, in the motion vector calculation method according to another aspect of the present invention, even when the reference block has two reference motion vectors, a suitable reference motion vector can be selected according to magnitudes of the two reference motion vectors, and, for example, scaling the selected reference motion vector allows calculation or derivation of the most suitable motion vector for the current block. As a result, the compression rate of the current block can increase.
Furthermore, in order to achieve the above object, a picture coding method according to an aspect of the present invention is a picture coding method of coding a moving picture, comprising: the selection step and the calculation step in the motion vector calculation method according to one of the above aspects of the present invention; and a coding step of coding the current block using the motion vector calculated in the calculation step.
With this, even when the reference block has two reference motion vectors, the current block can be coded using the most suitable motion vector calculated for the current block, which allows an increase in the compression rate.
Furthermore, the picture coding method may comprise: a determination step of determining, as the reference block, one of a block located before the current block in display time order and a block located after the current block in display time order; a generation step of generating a position flag indicating whether the reference block determined in the determination step is located before or after the current block; and an addition step of adding the position flag generated in the generation step, to a picture including the current block coded in the coding step.
With this, since a picture including the current coded block has a position flag, the picture decoding apparatus which has obtained this picture is capable of easily determining, based on the position flag, whether the reference block is located before or after the current block. Thus, even when the reference block has two reference motion vectors, the picture decoding apparatus is capable of easily selecting a suitable reference motion vector, and, for example, by scaling the selected reference motion vector, the picture decoding apparatus is capable of calculating or deriving the most suitable motion vector for the current block to be coded (or to be decoded). As a result, it is possible to appropriately decode the current block coded at the high compression rate.
Furthermore, it may be that in the selection step, in the case where the reference block has, as the two reference motion vectors, a forward reference motion vector directed forward and a backward reference motion vector directed backward, the forward reference motion vector is selected from among the two reference motion vectors when the position flag indicates that the reference block is located after the current block, and the backward reference motion vector is selected from among the two reference motion vectors when the position flag indicates that the reference block is located before the current block.
With this, a suitable reference motion vector can be reliably selected according to the position flag.
Furthermore, it may be that the coding step includes: a comparison step of comparing coding efficiency of the current block according to the motion vector calculated in the calculation step and coding efficiency of the current block according to a motion vector resulting from motion estimation for the current block; a motion vector selection step of selecting, based on a result of the comparison in the comparison step, a motion vector having high coding efficiency from among the motion vector calculated in the calculation step and the motion vector resulting from motion estimation; and a block coding step of coding the current block according to the motion vector selected in the motion vector selection step.
With this, out of the motion vector calculated in temporal direct for the current block and the motion vector resulting from motion estimation for the current block, a motion vector having higher coding efficiency is selected, and according to the selected motion vector, the current block is coded, which allows a further increase in the compression rate or the coding efficiency.
Furthermore, in order to achieve the above object, a picture decoding method according to an aspect of the present invention is a picture decoding method of decoding a coded moving picture, comprising: the selection step and the calculation step in the motion vector calculation method according to one of the above aspects of the present invention; and a decoding step of decoding the coded current block included in the coded moving picture, using the motion vector calculated in the calculation step.
With this, even when the reference block has two reference motion vectors, the current block can be decoded using the most suitable motion vector calculated for the current block, which allows appropriate decoding of the current block coded at a high compression rate.
Furthermore, it may be that the picture decoding method further comprises an obtaining step of obtaining a position flag added to a picture including the current block, wherein, in the selection step, in the case where the reference block has, as the two reference motion vectors, a forward reference motion vector directed forward and a backward reference motion vector directed backward, the forward reference motion vector is selected from among the two reference motion vectors when the position flag indicates that the reference block is located after the current block, and the backward reference motion vector is selected from among the two reference motion vectors when the position flag indicates that the reference block is located before the current block.
With this, since a picture including the current block has a position flag, it is possible to easily determine, based on the position flag, whether the reference block is located before or after the current block. Thus, even when the reference block has two reference motion vectors, a suitable reference motion vector can be easily selected according to the position flag, and, for example, by scaling the selected reference motion vector, it is possible to calculate or derive the most suitable motion vector for the current block to be coded (or to be decoded). As a result, it is possible to appropriately decode the current block coded at the high compression rate.
It is to be noted that the present invention can be implemented not only as the above motion vector calculation method, picture coding method, and picture decoding method, but also as a device and an integrated circuit which operate according to those methods, a program which causes a computer to operate according to those methods, and a recording medium or the like in which the program is stored.
According to the present invention, the use of new criteria for selecting the motion vector to be used in the temporal direct allows not only derivation of the motion vector most suitable for the current block, but also an increase in the compression rate.
Embodiments of the present invention are described below with reference to the drawings.
2 FIG. is a block diagram showing a structure of a picture coding apparatus using a picture coding method according to Embodiment 1 of the present invention.
100 101 106 102 103 104 105 107 108 109 110 111 112 113 114 115 2 FIG. A picture coding apparatusaccording to this embodiment includes, as shown in, a subtractor, an adder, an orthogonal transform unit, a quantization unit, an inverse quantization unit, an inverse orthogonal transform unit, a block memory, a frame memory, an intra prediction unit, an inter prediction unit, an inter prediction control unit, a picture type determination unit, a temporal direct vector calculation unit, a co-located reference direction determination unit, and a variable-length coding unit.
101 109 110 The subtractorgenerates prediction error picture data by subtracting, from an input picture sequence that is moving pictures, prediction picture data generated by the intra prediction unitor the inter prediction unit.
102 The orthogonal transform unittransforms an area of the prediction error picture data from image domain into frequency domain.
103 The quantization unitperforms a quantization process on a coefficient sequence that is the prediction error picture data transformed into frequency domain.
104 103 The inverse quantization unitperforms an inverse quantization process on the coefficient sequence treated with the quantization process of the quantization unit.
105 The inverse orthogonal transform unittransforms, from frequency domain into image domain, the area of the coefficient sequence treated with the inverse quantization process.
106 105 The addergenerates a reconstructed picture data by adding, to the prediction picture data, the prediction error picture data that is the coefficient sequence transformed by the inverse orthogonal transform unitinto image domain.
107 108 The block memorystores the reconstructed picture data in units of blocks, and the frame memorystores the reconstructed picture data in units of frames.
112 The picture type determination unitdetermines which one of the picture types: I-picture, B-picture, and P-picture, is used to code a picture included in the input picture sequence, and generates picture type information indicating the determined picture type.
109 107 The intra prediction unitperforms intra prediction for the current block (to be processed) using the reconstructed picture data stored in units of blocks in the block memory, and thereby generates prediction picture data.
110 108 The inter prediction unitperforms inter prediction for the current block using the reconstructed picture data stored in units of frames in the frame memory, and thereby generates prediction picture data.
114 114 The co-located reference direction determination unitdetermines which one of a block included in a picture located before the current picture or block (to be processed) in display time order (hereinafter referred to as a forward reference block) and a block included in a picture located after the current picture or block (to be processed) in display time order (hereinafter referred to as a backward reference block) will be a co-located block. The co-located block will be a reference block to which the current block refers. The co-located reference direction determination unitthen generates a co-located reference direction flag (a position flag) for each picture to add the co-located reference direction flag (the position flag) to the current picture. Here, the co-located block indicates a block which is included in a picture different from a picture including the current block and whose position in the picture is the same as that of the current block. It is to be noted that, as long as the co-located block is a block included in a picture different from the picture including the current block, the position, in the picture, of the co-located block may be different from the position of the current block.
113 113 113 In the case where the co-located block is a forward reference block having two or more motion vectors, the temporal direct vector calculation unitderives a motion vector of the current block in temporal direct using one of the motion vectors which is directed backward in display time order (hereinafter referred to as a backward reference motion vector). On the other hand, in the case where the co-located block is a backward reference block having two or more motion vectors, the temporal direct vector calculation unitderives a motion vector of the current block in temporal direct using one of the motion vectors which is directed forward in display time order (hereinafter referred to as a forward reference motion vector). It is to be noted that the forward reference motion vector and the backward reference motion vector of the co-located block are collectively referred to as a reference motion vector below. In addition, the temporal direct vector calculation unitis configured as a motion vector calculation apparatus.
113 113 113 113 113 Furthermore, in the case where the co-located block has only one reference motion vector, the temporal direct vector calculation unitderives a motion vector of the current block in temporal direct using the one reference motion vector of in the co-located block. For example, the temporal direct vector calculation unitdetermines whether or not the one reference motion vector is a forward reference motion vector, and when the one reference motion vector is a forward reference motion vector, the temporal direct vector calculation unitderives a motion vector of the current block in temporal direct using the forward reference motion vector. On the other hand, when the one reference motion vector is not a forward reference motion vector, the temporal direct vector calculation unitderives a motion vector of the current block in temporal direct using a backward reference motion vector. Furthermore, when the co-located block has no reference motion vectors, the temporal direct vector calculation unitstops the derivation of a motion vector in temporal direct, or derives a motion vector of the current block assuming that the reference motion vector is 0.
111 111 111 The inter prediction control unitdetermines a motion vector to be used in inter prediction. Specifically, for the current block, the inter prediction control unitcompares the motion vector resulting from motion estimation and the motion vector derived in temporal direct, to determine a motion vector having higher accuracy as the motion vector to be used in inter prediction. In addition, the inter prediction control unitgenerates, for each block, an inter prediction mode flag indicating whether the motion vector is to be derived by motion estimation or in temporal direct, and adds the generated inter prediction mode flag to the current block.
115 The variable-length coding unitgenerates a bit stream that is coded moving pictures, by performing a variable-length coding process on the coefficient sequence treated with the quantization process, the inter prediction mode flag, the picture type information, and the co-located reference direction flag.
3 FIG. shows an outline of a process flow of the picture coding method according to this embodiment of the present invention.
113 110 110 113 113 113 113 The temporal direct vector calculation unitselects one of the reference motion vectors of the co-located block and calculates a motion vector of the current block (to be processed), using the selected one of the reference motion vectors (Step S). It is to be noted that Stepcorresponds to the motion vector calculation method according to an implementation of the present invention. Specifically, when the co-located block has two reference motion vectors, the temporal direct vector calculation unitselects one of the two reference motion vectors based on whether the co-located block is located, in display time order, before the current block (to be processed) (that is, the co-located block is the forward reference block) or after the current block (to be processed) (that is, the co-located block is the backward reference block), and when the co-located block has only one reference motion vector, the temporal direct vector calculation unitselects the one reference motion vector. For example, in the case where the co-located block is the forward reference block having two or more reference motion vectors, the temporal direct vector calculation unitderives a motion vector of the current block in temporal direct using the backward reference motion vector. On the other hand, in the case where the co-located block is the backward reference block having two or more reference motion vectors, the temporal direct vector calculation unitderives a motion vector of the current block in temporal direct using the forward reference motion vector. It is to be noted that the motion vector derived in temporal direct is referred to as a temporal direct vector.
114 114 Here, the co-located block can be determined as follows. That is, the co-located reference direction determination unitdetermines which one of the forward reference block and the backward reference block will be the co-located block, when the motion vector of the current block is derived in temporal direct. Furthermore, for example, the co-located reference direction determination unitmay generate, for each picture, the co-located reference direction flag indicating whether the co-located block is the forward reference block or the backward reference block, and add the generated co-located reference direction flag to the picture. It is to be noted that the addition of the co-located reference direction flag is not limited to the addition in units of pictures and may be addition in units of slices included in the pictures.
100 113 120 110 113 120 111 110 111 Next, the picture coding apparatuscodes the current block (to be processed) using the motion vector calculated by the temporal direct vector calculation unit(Step S). Specifically, the inter prediction unitgenerates prediction picture data using the motion vector calculated by the temporal direct vector calculation unit(Step S). For example, the inter prediction control unitcompares the motion vector resulting from motion estimation and the motion vector derived in temporal direct, to select the motion vector having higher accuracy. Furthermore, using the selected motion vector, the inter prediction unitperforms inter prediction for the current block and thereby generates prediction picture data. Here, the inter prediction control unitdetermines, as an inter prediction mode, whether to derive a motion vector by motion estimation or in temporal direct, to generate, for each block, an inter prediction mode flag indicating that inter prediction mode, and adds the generated inter prediction mode flag to the current block. It is to be noted that the motion vector resulting from motion estimation is referred to as a motion estimation result vector. Using the prediction picture data generated as above, the current block (to be processed) is coded.
4 FIG. 111 shows a determination flow of the inter prediction control unitin the inter prediction mode.
111 131 111 132 The inter prediction control unitcalculates SADinter that is information on a difference between the original picture (the current block) and the prediction picture data generated using the motion vector resulting from motion estimation (Step S). Here, a sum of absolute difference (SAD) represents a sum of absolute values of differences in respective pixels between the original picture and the prediction picture data. Furthermore, SADinter represents SAD between the original picture and the prediction picture data generated using the motion vector resulted from motion estimation. The inter prediction control unitcalculates SADdirect that is information on a difference between the original picture and the prediction picture data generated using the motion vector derived in temporal direct (Step S). Here, SADdirect represents SAD between the original picture and the prediction picture data generated using the motion vector derived in temporal direct.
111 133 133 111 134 133 111 135 Next, the inter prediction control unitcompares SADinter and SADdirect (Step S). Here, when SADinter is smaller, that is, the motion estimation result vector has higher accuracy (Yes in Step S), the inter prediction control unitdetermines the use of a motion estimation mode as the inter prediction mode (Step S). On the other hand, when SADdirect is smaller, that is, the temporal direct vector has higher accuracy (No in Step S), the inter prediction control unitdetermines the use of a temporal direct mode as the inter prediction mode (Step S).
111 At the end, the inter prediction control unitgenerates, for each block, the inter prediction mode flag indicating the determined inter prediction mode, and adds the generated inter prediction mode flag to the current block.
Although whether to use the temporal direct mode is determined using SAD in this embodiment, it is possible to use, for example, SSD that is a sum of square differences in respective pixels between the original picture and the prediction picture data.
5 FIG. 3 FIG. 5 FIG. 5 FIG. 110 shows a detailed process flow in Step Sof. The following describes about. It is to be noted thatshows an example of the motion vector calculation unit according to the present invention.
113 0 1 121 121 121 113 122 122 113 0 123 122 113 1 124 First, the temporal direct vector calculation unitdetermines whether the co-located block has two or more reference motion vectors, that is, has at least the forward reference motion vector (mvL) and the backward reference motion vector (mvL) (Step S). When it is determined in Step Sthat the co-located block has two or more reference motion vectors (Yes in Step S), the temporal direct vector calculation unitdetermines whether or not the co-located block is located after the current block, that is, whether or not the co-located block is the backward reference block (Step S). When the co-located block is the backward reference block (Yes in Step S), the temporal direct vector calculation unitderives a motion vector of the current block in temporal direct using the forward reference motion vector mvLof the co-located block (Step S). On the other hand, when the co-located block is the forward reference block (No in Step S), the temporal direct vector calculation unitderives a motion vector of the current block in temporal direct using the backward reference motion vector mvLof the co-located block (Step S).
121 0 1 121 113 0 125 125 0 125 113 0 126 125 0 125 113 1 127 Furthermore, when it is determined in Step Sthat the co-located block has only one of the forward reference motion vector mvLand the backward reference motion vector mvL(No in Step S), the temporal direct vector calculation unitdetermines whether or not the co-located block has the forward reference motion vector mvL(Step S). When it is determined in Step Sthat the co-located block has the forward reference motion vector mvL(Yes in Step S), the temporal direct vector calculation unitderives a motion vector of the current block in temporal direct using the forward reference motion vector mvLof the co-located block (Step S). On the other hand, when it is determined in Step Sthat the co-located block has no forward reference motion vector mvL(No in Step S), the temporal direct vector calculation unitdetermines whether or not the co-located block has the backward reference motion vector mvL(Step S).
127 1 113 1 128 127 1 127 113 113 129 Here, when it is determined in Step Sthat the co-located block has the backward reference motion vector mvL, the temporal direct vector calculation unitderives a motion vector of the current block in temporal direct using the backward reference motion vector mvLof the co-located block (Step S). On the other hand, when it is determined in Step Sthat the co-located block has no backward reference motion vector mvL(No in Step S), the temporal direct vector calculation unitstops the derivation of a motion vector of the current block in temporal direct. Alternatively, the temporal direct vector calculation unitderives a motion vector of the current block in temporal direct assuming that the reference motion vector of the co-located block is 0 (Step S).
5 FIG. 125 0 127 1 0 1 113 113 113 113 121 122 125 127 In the process flow of, it is determined in Swhether or not the co-located block has the forward reference motion vector mvL, and it is determined in Step Swhether or not the co-located block has the backward reference motion vector mvL, but the present invention is not limited to this flow. For example, whether or not the co-located block has the forward reference motion vector mvLmay be determined after determination on whether or not the co-located block has the backward reference motion vector mvL. Furthermore, as described above, (i) when the co-located block has two reference motion vectors, the temporal direct vector calculation unitselects one of the two reference motion vectors which is to be used in temporal direct, according to the position of the co-located block, (ii) when the co-located block has only one reference motion vector, the temporal direct vector calculation unitselects the one reference motion vector as the motion vector to be used in temporal direct, and (iii) when the co-located block has no reference motion vector, the temporal direct vector calculation unitstops the derivation of a motion vector in temporal direct. Thus, it is sufficient that, according to each of the above cases, the temporal direct vector calculation unitperforms a process which corresponds to the case, and the determinations (such as Steps S, S, S, and S) on which of the cases applies to the status of the co-located block may be performed in any order.
Next, a method of deriving a motion vector in temporal direct is described in detail.
6 FIG. 0 1 0 113 shows an example of a method of deriving a motion vector (a temporal direct vector) in temporal direct according to this embodiment. The co-located block is the backward reference block and has the forward reference motion vector mvLand the backward reference motion vector mvL. In this case, using the forward reference motion vector mvL, the temporal direct vector calculation unitderives a motion vector (TMV) of the current block by the following calculation expression (Expression 1):TMV=mvL0×(B2−B0)/(B4−B−0) (Expression 1)
2 0 2 0 4 0 4 0 Here, (B−B) represents information on a time difference in display time between a picture Band a picture B, and (B−B) represents information on a time difference in display time between a picture Band the picture B.
7 FIG. 1 1 113 shows another example of the method of deriving a motion vector (a temporal direct vector) in temporal direct according to this embodiment. The co-located block is the backward reference block and has only the backward reference motion vector mvL. In this case, using the backward reference motion vector mvL, the temporal direct vector calculation unitderives a motion vector (TMV) of the current block by the following calculation expression (Expression 2):TMV=mvL1×(B2−B0)/(B4−B8) (Expression 2)
8 FIG. 0 1 1 113 shows another example of the method of deriving a motion vector (a temporal direct vector) in temporal direct according to this embodiment. The co-located block is the forward reference block and has the forward reference motion vector mvLand the backward reference motion vector mvL. In this case, using the backward reference motion vector mvL, the temporal direct vector calculation unitderives a motion vector (TMV) of the current block by the following calculation expression (Expression 3):TMV=mvL1×(B6−B8)/(B4−B8) (Expression 3)
9 FIG. 0 0 113 shows another example of the method of deriving a motion vector (a temporal direct vector) in temporal direct according to this embodiment. The co-located block is the forward reference block and has only the forward reference motion vector mvL. In this case, using the forward reference motion vector mvL, the temporal direct vector calculation unitderives a motion vector (TMV) of the current block by the following calculation expression (Expression 4):TMV=mvL0×(B6−B8)/(B4−B0) (Expression 4)
Thus, according to this embodiment, when the co-located block has two or more reference motion vectors, the motion vector most suitable for the current block can be derived, which allows an increase in the compression rate. Especially, when the co-located block is the forward reference block, the use of the backward reference motion vector allows a reduction in the prediction error. In this case, the backward reference motion vector is a motion vector directed from a picture including the co-located block to a picture including the current block. Accordingly, the motion vector derived from the backward reference motion vector has a higher probability of approximating the most suitable motion vector, which reduces the prediction error. On the other hand, the forward reference motion vector is a motion vector in a direction opposite to the direction from the picture including the co-located block to the picture including the current block. Accordingly, the motion vector derived from the forward reference motion vector has a lower probability of approximating the most suitable motion vector, which increases the prediction error. Likewise, also in the case where the co-located block is the backward reference block, the motion vector derived from the forward reference motion vector has a higher probability of approximating the most suitable motion vector, with the result that the use of the forward reference motion vector allows a reduction in the prediction error.
110 3 FIG. In this embodiment, when the co-located block has two or more reference motion vectors, it is determined to use, in temporal direct, a reference motion vector which refers to a picture temporally close to the picture including the co-located block, that is, a reference motion vector having a short temporal distance to the picture including the co-located block. In this regard, this embodiment is different in structure from other embodiments. Here, the temporal distance is determined according to the number of pictures in display time order between the picture including the co-located block and the reference motion picture to which the co-located block refers. Specifically, this embodiment is different from Embodiment 1 in the process in Step Sin the process flow shown in.
10 FIG. 10 FIG. shows a detailed process flow of calculation of a temporal direct vector according to this embodiment. The following describes about.
113 0 1 121 121 121 113 0 1 122 113 0 1 122 0 122 113 0 123 122 1 122 113 1 124 First, the temporal direct vector calculation unitdetermines whether the co-located block has two or more reference motion vectors, that is, has at least the forward reference motion vector mvLand the backward reference motion vector mvL(Step S). When it is determined in Step Sthat the co-located block has two or more reference motion vectors (Yes in Step S), the temporal direct vector calculation unitdetermines whether or not a reference picture to which the forward reference motion vector mvLrefers is temporally closer to the picture including the co-located block (the co-located picture) than a reference picture to which the backward reference motion vector mvLrefers is (Step Sa). In short, the temporal direct vector calculation unitdetermines which one of the forward reference motion vector mvLand the backward reference motion vector mvLhas a shorter temporal distance. When it is determined in Step Sa that the reference picture to which the forward reference motion vector mvLrefers is temporally closer to the picture including the co-located block (Yes in Step Sa), the temporal direct vector calculation unitderives a motion vector of the current block in temporal direct using the forward reference motion vector mvLof the co-located block (Step S). On the other hand, when it is determined in Step Sa that the reference picture to which the backward reference motion vector mvLrefers is temporally closer to the picture including the co-located block (No in Step Sa), the temporal direct vector calculation unitderives a motion vector of the current block in temporal direct using the backward reference motion vector mvLof the co-located block (Step S).
121 0 1 121 113 125 125 125 113 0 126 125 0 125 113 1 127 Furthermore, when it is determined in Step Sthat the co-located block has only one of the forward reference motion vector mvLand the backward reference motion vector mvL(No in Step S), the temporal direct vector calculation unitdetermines whether or not the co-located block has the forward reference motion vector (Step S). When it is determined in Step Sthat the co-located block has the forward reference motion vector (Yes in Step S), the temporal direct vector calculation unitderives a motion vector of the current block in temporal direct using the forward reference motion vector mvLof the co-located block (Step S). On the other hand, when it is determined in Step Sthat the co-located block has no forward reference motion vector mvL(No in Step S), the temporal direct vector calculation unitdetermines whether or not the co-located block has the backward reference motion vector mvL(Step S).
127 1 127 113 1 128 127 1 127 113 113 129 Here, when it is determined in Step Sthat the co-located block has the backward reference motion vector mvL(Yes in Step S), the temporal direct vector calculation unitderives a motion vector of the current block in temporal direct using the backward reference motion vector mvLof the co-located block (Step S). On the other hand, when it is determined in Step Sthat the co-located block has no backward reference motion vector mvL(No in Step S), the temporal direct vector calculation unitstops the derivation of a motion vector of the current block in temporal direct. Alternatively, the temporal direct vector calculation unitderives a motion vector of the current block in temporal direct assuming that the reference motion vector of the co-located block is 0 (Step S). That is, the motion vector of the current block is 0.
Next, a method of deriving a motion vector in temporal direct according to this embodiment is described in detail.
11 FIG. 0 1 0 1 0 113 shows an example of the method of deriving a motion vector (a temporal direct vector) in temporal direct according to this embodiment. The co-located block has the forward reference motion vector mvLand the backward reference motion vector mvL. The reference picture to which the forward reference motion vector mvLrefers is temporally closer to the picture including the co-located block than the reference picture to which the backward reference motion vector mvLrefers is. In this case, using the forward reference motion vector mvL, the temporal direct vector calculation unitderives a motion vector (TMV) of the current block by the following calculation expression (Expression 5):TMV=mvL0×(B2−B0)/(B4−B0) (Expression 5)
12 FIG. 0 1 1 0 1 113 shows another example of the method of deriving a motion vector (a temporal direct vector) in temporal direct according to this embodiment. The co-located block has the forward reference motion vector mvLand the backward reference motion vector mvL. The reference picture to which the backward reference motion vector mvLrefers is temporally closer to the picture including the co-located block than the reference picture to which the forward reference motion vector mvLrefers is. In this case, using the backward reference motion vector mvL, the temporal direct vector calculation unitderives a motion vector (TMV) of the current block by the following calculation expression (Expression 6):TMV=mvL1×(B2−B0)/(B4−B8) (Expression 6)
Thus, according to this embodiment, when the co-located block has two or more reference motion vectors, the motion vector most suitable for the current block can be derived, which allows an increase in the compression rate. Specifically, by using the reference motion vector which refers to a picture temporally close to the picture including the co-located block, the motion vector derived from that reference motion vector has a higher probability of approximating the most suitable motion vector, which allows a reduction in the prediction error.
122 122 122 122 122 5 FIG. 10 FIG. 10 FIG. 5 FIG. It is to be noted that this embodiment can be combined with other embodiments. For example, Step Sshown inaccording to Embodiment 1 may be combined with Stepa shown inaccording to this embodiment. In this case, Stepa shown inaccording to this embodiment is given priority over Step Sshown inaccording to Embodiment 1. Specifically, first, a temporal distance between two or more reference motion vectors is determined to select a motion vector having a short temporal distance. Here, when the two or more reference motion vectors have an equal temporal distance, a reference motion vector is selected based on whether the co-located block is the forward reference block or the backward reference block. Since the impact on the motion vector is larger in Stepa according to this embodiment, prioritizing the temporal distance of the reference motion vector allows a selection of a more suitable reference motion vector.
110 3 FIG. In this embodiment, when the co-located block has two or more reference motion vectors, it is determined to use, in temporal direct, a reference motion vector having a smaller magnitude. In this regard, this embodiment is different in structure from other embodiments. Here, the magnitude of the motion vector means the absolute value of the motion vector. Specifically, this embodiment is different from Embodiment 1 in the process in Step Sin the process flow shown in.
13 FIG. 13 FIG. shows a detailed process flow of calculation of a temporal direct vector according to this embodiment. The following describes about.
113 0 1 121 121 121 113 0 1 122 122 0 122 113 0 123 122 1 122 113 1 124 First, the temporal direct vector calculation unitdetermines whether or not the co-located block has two or more reference motion vectors, that is, has at least the forward reference motion vector mvLand the backward reference motion vector mvL(Step S). When it is determined in Step Sthat the co-located block has two or more reference motion vectors (Yes in Step S), the temporal direct vector calculation unitdetermines whether or not the magnitude of the forward reference motion vector mvLis smaller than the magnitude of the backward reference motion vector mvL(Step Sb). When it is determined in Step Sb that the magnitude of the forward reference motion vector mvLis smaller (Yes in Step Sb), the temporal direct vector calculation unitderives a motion vector of the current block in temporal direct using the forward reference motion vector mvLof the co-located block (Step S). On the other hand, when it is determined in Step Sb that the magnitude of the backward reference motion vector mvLis smaller (No in Step Sb), the temporal direct vector calculation unitderives a motion vector of the current block in temporal direct using the backward reference motion vector mvLof the co-located block (Step S).
121 0 1 121 113 125 125 125 113 0 126 125 0 125 113 1 127 Furthermore, when it is determined in Step Sthat the co-located block has only one of the forward reference motion vector mvLand the backward reference motion vector mvL(No in Step S), the temporal direct vector calculation unitdetermines whether or not the co-located block has the forward reference motion vector (Step S). When it is determined in Step Sthat the co-located block has the forward reference motion vector (Yes in Step S), the temporal direct vector calculation unitderives a motion vector of the current block in temporal direct using the forward reference motion vector mvLof the co-located block (Step S). On the other hand, when it is determined in Step Sthat the co-located block has no forward reference motion vector mvL(No in Step S), the temporal direct vector calculation unitdetermines whether or not the co-located block has the backward reference motion vector mvL(Step S).
127 1 127 113 1 128 127 1 127 113 113 129 Here, when it is determined in Step Sthat the co-located block has the backward reference motion vector mvL(Yes in Step S), the temporal direct vector calculation unitderives a motion vector of the current block in temporal direct using the backward reference motion vector mvLof the co-located block (Step S). On the other hand, when it is determined in Step Sthat the co-located block has no backward reference motion vector mvL(No in Step S), the temporal direct vector calculation unitstops the derivation of a motion vector of the current block in temporal direct. Alternatively, the temporal direct vector calculation unitderives a motion vector of the current block in temporal direct assuming that the reference motion vector of the co-located block is 0 (Step S). That is, the motion vector of the current block is 0.
Thus, according to this embodiment, when the co-located block has two or more reference motion vectors, the motion vector most suitable for the current block can be derived, which allows an increase in the compression rate.
122 122 122 122 122 5 FIG. 13 FIG. 13 FIG. 5 FIG. It is to be noted that this embodiment can be combined with other embodiments. For example, Step Sshown inaccording to Embodiment 1 may be combined with Stepb shown inaccording to this embodiment. In this case, Stepb shown inaccording to this embodiment is given priority over Step Sshown inaccording to Embodiment 1. Specifically, first, the magnitudes of two or more reference motion vectors are determined to select a motion vector having a small magnitude. Here, when the two or more reference motion vectors have an equal magnitude, a reference motion vector is selected based on whether the co-located block is the forward reference block or the backward reference block. Since the impact on the motion vector is larger in Stepb according to this embodiment, prioritizing the magnitude of the reference motion vector allows a selection of a more suitable reference motion vector.
In this embodiment, in the case where the co-located block indicated by the co-locate reference direction flag has no reference motion vector and the motion vector of the current block cannot be derived in temporal direct, that is, in the case where the motion vector is 0, the co-located block is changed, and a motion vector of the current block is calculated to perform inter prediction.
110 114 114 114 114 3 FIG. First, in Step Sof, the co-located reference direction determination unitdetermines which one of the forward reference block and the backward reference block will be the co-located block. When it is determined that the forward reference block will be the co-located block, the co-located reference direction determination unitsets a co-located backward reference priority flag (the co-located reference direction flag) at 0. On the other hand, when it is determined that the backward reference block will be the co-located block, the co-located reference direction determination unitsets the co-located backward reference priority flag at 1. Here, the co-located reference direction determination unitgenerates the co-located backward reference priority flag for each picture and then adds the generated co-located backward reference priority flag to the picture to be coded.
113 Since the co-located backward reference priority flag is generated in units of pictures, there may be a case where the co-located block corresponding to a certain block included in the current picture has neither the forward reference motion vector nor the backward reference motion vector. In this case, the temporal direct vector calculation unitchanges the co-located block to derive a more suitable motion vector.
14 FIG. 3 FIG. 14 FIG. 110 120 shows a detailed process flow in Steps Sand Sofaccording to this embodiment. The following describes about.
113 141 141 113 142 113 142 143 143 113 144 The temporal direct vector calculation unitdetermines whether or not the co-located backward reference priority flag is 1, that is, whether or not the backward reference block is to be prioritized (Step S). When the co-located backward reference priority flag is 1 (Yes in Step S), the temporal direct vector calculation unitattempts to derive a motion vector of the current block in temporal direct using the co-located block which is the backward reference block (Step S). The temporal direct vector calculation unitdetermines whether or not the motion vector of the current block has been derived in Step S, that is, whether or not the motion vector is 0 (Step S). When the motion vector has not been derived (Yes in Step S), the temporal direct vector calculation unitderives a motion vector of the current block in temporal direct using the co-located block which is the forward reference block (Step S).
141 113 146 113 146 147 147 113 148 On the other hand, when the co-located backward reference priority flag is 0 (No in Step S), the temporal direct vector calculation unitattempts to derive a motion vector of the current block in temporal direct using the co-located block which is the forward reference block (Step S). The temporal direct vector calculation unitdetermines whether or not the motion vector of the current block has been derived in Step S, that is, whether or not the motion vector is 0 (Step S). When the motion vector has not been derived (Yes in Step S), the temporal direct vector calculation unitderives a motion vector of the current block in temporal direct using the co-located block which is the backward reference block (Step).
111 111 110 145 111 At the end, the inter prediction control unitcompares the motion vector resulting from motion estimation and the motion vector derived in temporal direct, to determine a motion vector having higher accuracy as the motion vector of the current block. In other words, the inter prediction control unitdetermines the inter prediction mode. Furthermore, the inter prediction unitperforms inter prediction using the determined motion vector and thereby generates the prediction picture data (Step S). At this time, the inter prediction control unitgenerates, for each block, the inter prediction mode flag indicating the inter prediction mode, and adds the generated inter prediction mode flag to the current block.
Thus, according to this embodiment, in the case where the co-located block indicated by the co-located backward reference priority flag has no reference motion vector, a block in other picture is determined as the co-located block so that a motion vector can be derived. For example, in the case where the backward reference block is the co-located block and the co-located block has no reference motion vector, the forward reference block is determined as the co-located block so that a motion vector can be derived. This allows derivation of a motion vector having higher accuracy.
129 144 148 129 129 144 148 5 FIG. 14 FIG. 14 FIG. 10 FIG. 13 FIG. 14 FIG. 14 FIG. It is to be noted that this embodiment can be combined with other embodiments. For example, Step Sofaccording to Embodiment 1 is replaced by a step of determining whether or not the co-located block is the backward reference block. Specifically, in the case where the co-located block is the backward reference block, the process in Step Sofaccording to this embodiment is performed, while, in the case where the co-located block is the forward reference block, the process in Step Sofaccording to this embodiment is performed. This allows derivation of a more suitable motion vector. Likewise, Step Sofaccording to Embodiment 2 and Step Sofaccording to Embodiment 3 may be replaced by a step of determining whether or not the co-located block is the backward reference block. Specifically, in the case where the co-located block is the backward reference block, the process in Step Sofaccording to this embodiment is performed, while, in the case where the co-located block is the forward reference block, the process in Step Sofaccording to this embodiment is performed. This allows derivation of a more suitable motion vector.
In addition, when a newly selected co-located block has two or more reference motion vectors, a motion vector is derived in the method described in Embodiments 1, 2, and 3. This allows derivation of a motion vector having higher accuracy.
15 FIG. is a block diagram showing a structure of a picture decoding apparatus using a picture decoding method according to Embodiment 5 of the present invention.
In this embodiment, a block included in a picture located, in display time order, before a current picture or block to be decoded (to be processed) is referred to as a forward reference block. In this embodiment, a block included in a picture located, in display time order, after the current picture or block to be decoded (to be processed) is referred to as a backward reference block.
200 215 204 205 207 208 209 210 211 213 206 15 FIG. A picture decoding apparatusaccording to this embodiment includes, as shown in, a variable-length decoding unit, an inverse quantization unit, an inverse orthogonal transform unit, a block memory, a frame memory, an intra prediction unit, an inter prediction unit, an inter prediction control unit, a temporal direct vector calculation unit, and an adder.
215 The variable-length decoding unitperforms a variable-length decoding process on an input bit stream to generate picture type information, inter prediction mode flag, co-located reference direction flag, and bit streams treated with the variable-length decoding process (coefficient sequences treated with the quantization process).
204 205 The inverse quantization unitperforms an inverse quantization process on the bit streams treated with the variable-length decoding process. The inverse orthogonal transform unittransforms, from frequency domain into image domain, the bit streams treated with the inverse quantization process, and thereby generates prediction error picture data.
206 209 210 The adderadds the prediction error picture data to the prediction picture data generated by the intra prediction unitor the inter prediction unit, and thereby generates a decoded picture sequence that is reconstructed picture data.
207 208 The block memorystores the reconstructed picture data in units of blocks, and the frame memorystores the reconstructed picture data in units of frames.
209 207 210 208 The intra prediction unitperforms intra prediction using the reconstructed picture data stored in units of blocks in the block memory, and thereby generates prediction error picture data for the current block (to be processed). The inter prediction unitperforms inter prediction using the reconstructed picture data stored in units of frames in the frame memory, and thereby generates prediction error picture data for the current block.
211 211 210 The inter prediction control unitcontrols the method of deriving a motion vector in the inter prediction, according to the inter prediction mode flag. In the case where the inter prediction mode flag indicates that a motion vector is to be derived in temporal direct (the temporal direct mode), the inter prediction control unitinstructs the inter prediction unitto perform, using a motion vector (temporal direct vector) derived in temporal direct, inter prediction according to that motion vector.
213 213 213 213 In the case of deriving a motion vector in temporal direct, the temporal direct vector calculation unitdetermines a co-located block using the co-located reference direction flag and derives a motion vector in temporal direct. The temporal direct vector calculation unitdetermines the backward reference block as the co-located block when the co-located reference direction flag indicates that the co-located block is the backward reference block. On the other hand, when the co-located reference direction flag indicates that the co-located block is the forward reference block, the temporal direct vector calculation unitdetermines the forward reference block as the co-located block. In the case where the co-located block has two or more reference motion vectors, the temporal direct vector calculation unitselects a reference motion vector to be used in temporal direct, based on whether the co-located block is the forward reference block or the backward reference block.
213 213 213 213 213 For example, in the case where the co-located block is the backward reference block, the temporal direct vector calculation unituses the forward reference motion vector among the two or more reference motion vectors of the co-located block. On the other hand, in the case where the co-located block is the forward reference block, the temporal direct vector calculation unituses the backward reference motion vector among the two or more reference motion vectors of the co-located block. In the case where the co-located block has only one of the forward reference motion vector and the backward reference motion vector, the temporal direct vector calculation unitfirst searches for the forward reference motion vector, and when the co-located block has the forward reference motion vector, the temporal direct vector calculation unitderives a motion vector of the current block in temporal direct using the forward reference motion vector. On the other hand, when the co-located block has no forward reference motion vector, the temporal direct vector calculation unitderives a motion vector of the current block in temporal direct using the backward reference motion vector.
16 FIG. shows an outline of a process flow of the picture decoding method according to this embodiment.
213 210 210 213 213 213 213 213 213 220 The temporal direct vector calculation unitselects one of the reference motion vectors of the co-located block and calculates a motion vector of the current block (to be processed), using the selected one of the reference motion vectors (Step S). It is to be noted that Stepcorresponds to the motion vector calculation method according to an implementation of the present invention. Specifically, when the co-located block has two reference motion vectors, the temporal direct vector calculation unitselects one of the two reference motion vectors based on whether the co-located block is located, in display time order, before the current block (to be processed) (that is, the co-located block is the forward reference block) or after the current block (to be processed) (that is, the co-located block is the backward reference block), and when the co-located block has only one reference motion vector, the temporal direct vector calculation unitselects the one reference motion vector. For example, when the co-located block has two or more reference motion vectors, the temporal direct vector calculation unitdetermines based on the co-located reference direction flag which one of the reference motion vectors is to be used. When the co-located reference direction flag indicates the backward reference block as the co-located block, that is, when the co-located block is the backward reference block, the temporal direct vector calculation unitdetermines to use the forward reference motion vector among the two or more reference motion vectors. On the other hand, when the co-located reference direction flag indicates the forward reference block as the co-located block, that is, when the co-located block is the forward reference block, the temporal direct vector calculation unitdetermines to use the backward reference motion vector among the two or more reference motion vectors. Subsequently, the temporal direct vector calculation unitderives the motion vector of the current block in temporal direct using the determined reference motion vector (the forward reference motion vector or the backward reference motion vector) (Step S).
215 213 Here, the co-located block can be determined as follows. That is, the variable-length decoding unitdecodes the co-located reference direction flag in units of picture. At this time, the temporal direct vector calculation unitdetermines based on the co-located reference direction flag whether the forward reference block will be the co-located block or the backward reference block will be the co-located block.
200 213 220 210 213 211 210 210 Next, the picture decoding apparatusdecodes the current coded block (to be processed) included in the coded moving picture, using the motion vector calculated by the temporal direct vector calculation unit(Step S). Specifically, the inter prediction unitgenerates prediction picture data, using the motion vector calculated by the temporal direct vector calculation unit. For example, in the case where the inter prediction mode flag decoded in units of blocks indicates decoding in temporal direct (the temporal direct mode), the inter prediction control unitmay instruct the inter prediction unitto perform inter prediction in temporal direct. As a result, the inter prediction unitperforms the inter prediction for the current block using the motion vector derived in temporal direct, and thereby generates prediction picture data. Using the prediction picture data thus generated, the current block is decoded.
In this embodiment, when the reference block (the forward reference block or the backward reference block) has two or more reference motion vectors, it is determined based on the co-located reference direction flag which one of the reference motion vectors is to be used. However, the present invention is not limited to the determination based on the co-located reference direction flag. For example, when the co-located block has two or more reference motion vectors, it may be that a temporal distance of each of the reference motion vectors is calculated, and a reference motion vector having a short temporal distance is selected. Here, the temporal distance is calculated based on the number of pictures in display time between the reference picture including the reference block and the picture to which the reference picture refers. Furthermore, it may be that, first, the temporal distances of the two or more reference motion vectors are calculated, and when those temporal distances are different, the reference motion vector having a short temporal distance is selected, and when those temporal distances are equal, a reference motion vector is selected based on the co-located reference direction flag. Since the impact of the temporal distance is larger than the impact of the position of the reference block in deriving a suitable motion vector of the current block, determination by prioritizing the temporal distance allows derivation of a more suitable motion vector.
Furthermore, it may be that, for example, when the co-located block has two or more reference motion vectors, the magnitudes of the reference motion vectors are calculated and a reference motion vector having a small magnitude is selected. Here, the magnitude of the reference motion vector means the absolute value of the motion vector. Furthermore, it may be that, first, the magnitudes of the two or more reference motion vectors are calculated, and when those magnitudes are different, the reference motion vector having a small magnitude is selected, and when those magnitudes are equal, a reference motion vector is selected based on the co-located reference direction flag. Since the impact of the magnitude of the reference motion vector is larger than the impact of the position of the reference block in deriving a suitable motion vector of the current block, determination by prioritizing the magnitude of the reference motion vector allows derivation of a more suitable motion vector.
Furthermore, when the co-located block has no reference motion vector, it is also possible to derive a more suitable motion vector for the current block by determining a block of a new reference picture as the co-located block. For example, when the reference picture including the co-located block is located after the current picture in display order, the co-located block included in the reference picture located before the current picture in display order is selected. When the reference picture including the co-located block is located before the current picture in display order, the co-located block included in the reference picture located after the current picture in display order is selected. As above, when the co-located block has no reference motion vector, selecting, as the co-located block, a block included in a new reference picture, makes it possible to derive a motion vector having higher accuracy for the current block. When the newly selected co-located block has two or more reference motion vectors, it becomes possible to derive a motion vector having higher accuracy by selecting a reference motion vector based on whether the co-located block is the forward reference block or the backward reference block, or based on the temporal distance of the reference motion vector of the co-located block, or the magnitude of the reference motion vector of the co-located block, as described above.
Thus, according to this embodiment, when the co-located block has two or more reference motion vectors, the motion vector most suitable for the current block can be selected, which allows a bit stream compressed at high efficiency to be appropriately decoded.
The processing described in each of Embodiments can be simply implemented in an independent computer system, by recording, in a recording medium, a program for implementing the configurations of the moving picture coding method (the picture coding method) and the moving picture decoding method (the picture decoding method) described in each of Embodiments. The recording media may be any recording media as long as the program can be recorded, such as a magnetic disk, an optical disk, a magnetic optical disk, an IC card, and a semiconductor memory.
Hereinafter, the applications to the moving picture coding method (the picture coding method) and the moving picture decoding method (the picture decoding method) described in each of Embodiments and systems using them will be described. This system is characterized by including a picture coding and decoding apparatus composed of the picture coding apparatus using the picture coding method and the picture decoding apparatus using the picture decoding method. The other structure of the system can be appropriately changed depending on situations.
17 FIG. 100 106 107 108 109 110 illustrates an overall configuration of a content providing system exfor implementing content distribution services. The area for providing communication services is divided into cells of desired size, and base stations ex, ex, ex, ex, and exwhich are fixed wireless stations are placed in each of the cells.
100 111 112 113 114 115 101 102 104 106 110 The content providing system exis connected to devices, such as a computer ex, a personal digital assistant (PDA) ex, a camera ex, a cellular phone exand a game machine ex, via the Internet ex, an Internet service provider ex, a telephone network ex, as well as the base stations exto ex, respectively.
100 104 106 110 17 FIG. However, the configuration of the content providing system exis not limited to the configuration shown in, and a combination in which any of the elements are connected is acceptable. In addition, each device may be directly connected to the telephone network ex, rather than via the base stations exto exwhich are the fixed wireless stations. Furthermore, the devices may be interconnected to each other via a short distance wireless communication and others.
113 116 114 114 The camera ex, such as a digital video camera, is capable of capturing video. A camera ex, such as a digital video camera, is capable of capturing both still images and video. Furthermore, the cellular phone exmay be the one that meets any of the standards such as Global System for Mobile Communications (GSM), Code Division Multiple Access (CDMA), Wideband-Code Division Multiple Access (W-CDMA), Long Term Evolution (LTE), and High Speed Packet Access (HSPA). Alternatively, the cellular phone exmay be a Personal Handyphone System (PHS).
100 103 113 104 109 113 103 103 111 112 113 114 115 In the content providing system ex, a streaming server exis connected to the camera exand others via the telephone network exand the base station ex, which enables distribution of images of a live show and others. In such a distribution, a content (for example, video of a music live show) captured by the user using the camera exis coded as described above in each of Embodiments (that is, the system functions as the picture coding apparatus according to an implementation of the present invention), and the coded content is transmitted to the streaming server ex. On the other hand, the streaming server excarries out stream distribution of the transmitted content data to the clients upon their requests. The clients include the computer ex, the PDA ex, the camera ex, the cellular phone ex, and the game machine exthat are capable of decoding the above-mentioned coded data. Each of the devices that have received the distributed data decodes and reproduces the coded data (that is, the system functions as the picture decoding apparatus according to the implementation of the present invention).
113 103 113 103 103 103 113 116 103 111 116 111 103 The captured data may be coded by the camera exor the streaming server exthat transmits the data, or the coding processes may be shared between the camera exand the streaming server ex. Similarly, the distributed data may be decoded by the clients or the streaming server ex, or the decoding processes may be shared between the clients and the streaming server ex. Furthermore, the data of the still images and video captured by not only the camera exbut also the camera exmay be transmitted to the streaming server exthrough the computer ex. The coding processes may be performed by the camera ex, the computer ex, or the streaming server ex, or shared among them.
500 111 500 111 114 500 114 Furthermore, the coding and decoding processes may be performed by an LSI exgenerally included in each of the computer exand the devices. The LSI exmay be configured of a single chip or a plurality of chips. Software for coding and decoding video may be integrated into some type of a recording medium (such as a CD-ROM, a flexible disk, and a hard disk) that is readable by the computer exand others, and the coding and decoding processes may be performed using the software. Furthermore, when the cellular phone exis equipped with a camera, the image data obtained by the camera may be transmitted. The video data is data coded by the LSI exincluded in the cellular phone ex.
103 Furthermore, the streaming server exmay be composed of servers and computers, and may decentralize data and process the decentralized data, record, or distribute data.
100 100 As described above, the clients may receive and reproduce the coded data in the content providing system ex. In other words, the clients can receive and decode information transmitted by the user, and reproduce the decoded data in real time in the content providing system ex, so that the user who does not have any particular right and equipment can implement personal broadcasting.
100 200 201 202 202 204 300 217 18 FIG. Aside from the example of the content providing system ex, at least one of the moving picture coding apparatus (the picture coding apparatus) and the moving picture decoding apparatus (the picture decoding apparatus) described in each of Embodiments may be implemented in a digital broadcasting system exillustrated in. More specifically, a broadcast station excommunicates or transmits, via radio waves to a broadcast satellite ex, multiplexed data obtained by multiplexing audio data and others onto video data. The video data is data coded by the moving picture coding method described in each of Embodiments (that is, the video data is data coded by the picture coding apparatus according to an implementation of the present invention). Upon receipt of the multiplexed data, the broadcast satellite extransmits radio waves for broadcasting. Then, a home-use antenna exwith a satellite broadcast reception function receives the radio waves. Next, a device such as a television (receiver) exand a set top box (STB) exdecodes the received multiplexed data, and reproduces the decoded data (that is, the system functions as the picture decoding apparatus according to an implementation of the present invention).
218 215 215 218 219 215 217 203 204 219 300 300 Furthermore, a reader/recorder ex(i) reads and decodes the multiplexed data recorded on a recording media ex, such as a DVD and a BD, or (ii) codes video signals in the recording medium ex, and in some cases, writes data obtained by multiplexing an audio signal on the coded data. The reader/recorder excan include the moving picture decoding apparatus or the moving picture coding apparatus as shown in each of Embodiments. In this case, the reproduced video signals are displayed on the monitor ex, and can be reproduced by another device or system using the recording medium exon which the multiplexed data is recorded. It is also possible to implement the moving picture decoding apparatus in the set top box exconnected to the cable exfor a cable television or to the antenna exfor satellite and/or terrestrial broadcasting, so as to display the video signals on the monitor exof the television ex. The moving picture decoding apparatus may be implemented not in the set top box but in the television ex.
19 FIG. 300 300 301 204 203 302 303 306 illustrates the television (receiver) exthat uses the moving picture coding method and the moving picture decoding method described in each of Embodiments. The television exincludes: a tuner exthat obtains or provides multiplexed data obtained by multiplexing audio data onto video data, through the antenna exor the cable ex, etc. that receives a broadcast; a modulation/demodulation unit exthat demodulates the received multiplexed data or modulates data into multiplexed data to be supplied outside; and a multiplexing/demultiplexing unit exthat demultiplexes the modulated multiplexed data into video data and audio data, or multiplexes video data and audio data coded by a signal processing unit exinto data.
300 306 304 305 309 307 308 300 317 312 300 310 300 311 312 317 313 218 314 216 315 316 216 300 The television exfurther includes: a signal processing unit exincluding an audio signal processing unit exand a video signal processing unit ex(functioning as the picture coding apparatus or the picture decoding apparatus according to an implementation of the present invention) that decode audio data and video data and code audio data and video data, respectively; and an output unit exincluding a speaker exthat provides the decoded audio signal, and a display unit exthat displays the decoded video signal, such as a display. Furthermore, the television exincludes an interface unit exincluding an operation input unit exthat receives an input of a user operation. Furthermore, the television exincludes a control unit exthat controls overall each constituent element of the television ex, and a power supply circuit unit exthat supplies power to each of the elements. Other than the operation input unit ex, the interface unit exmay include: a bridge exthat is connected to an external device, such as the reader/recorder ex; a slot unit exfor enabling attachment of the recording medium ex, such as an SD card; a driver exto be connected to an external recording medium, such as a hard disk; and a modem exto be connected to a telephone network. Here, the recording medium excan electrically record information using a non-volatile/volatile semiconductor memory element for storage. The constituent elements of the television exare connected to each other through a synchronous bus.
300 204 300 220 303 302 310 304 305 First, the configuration in which the television exdecodes multiplexed data obtained from outside through the antenna exand others and reproduces the decoded data will be described. In the television ex, upon a user operation through a remote controller exand others, the multiplexing/demultiplexing unit exdemultiplexes the multiplexed data demodulated by the modulation/demodulation unit ex, under control of the control unit exincluding a CPU. Furthermore, the audio signal processing unit exdecodes the demultiplexed audio data, and the video signal processing unit exdecodes the demultiplexed video data, using the decoding method described in each of
300 309 309 318 319 300 215 216 300 300 220 304 305 310 303 303 320 321 318 319 320 321 300 302 303 Embodiments, in the television ex. The output unit exprovides the decoded video signal and audio signal outside, respectively. When the output unit exprovides the video signal and the audio signal, the signals may be temporarily stored in buffers exand ex, and others so that the signals are reproduced in synchronization with each other. Furthermore, the television exmay read multiplexed data not through a broadcast and others but from the recording media exand ex, such as a magnetic disk, an optical disk, and a SD card. Next, a configuration in which the television excodes an audio signal and a video signal, and transmits the data outside or writes the data on a recording medium will be described. In the television ex, upon a user operation through the remote controller exand others, the audio signal processing unit excodes an audio signal, and the video signal processing unit excodes a video signal, under control of the control unit exusing the coding method described in each of Embodiments. The multiplexing/demultiplexing unit exmultiplexes the coded video signal and audio signal, and provides the resulting signal outside. When the multiplexing/demultiplexing unit exmultiplexes the video signal and the audio signal, the signals may be temporarily stored in the buffers exand ex, and others so that the signals are reproduced in synchronization with each other. Here, the buffers ex, ex, ex, and exmay be plural as illustrated, or at least one buffer may be shared in the television ex. Furthermore, although not illustrate, data may be stored in a buffer so that the system overflow and underflow may be avoided between the modulation/demodulation unit exand the multiplexing/demultiplexing unit ex, for example.
300 300 Furthermore, the television exmay include a configuration for receiving an AV input from a microphone or a camera other than the configuration for obtaining audio and video data from a broadcast or a recording medium, and may code the obtained data. Although the television excan code, multiplex, and provide outside data in the description, it may be capable of only receiving, decoding, and providing outside data but not the coding, multiplexing, and providing outside data.
218 300 218 300 218 Furthermore, when the reader/recorder exreads or writes multiplexed data from or on a recording medium, one of the television exand the reader/recorder exmay decode or code the multiplexed data, and the television exand the reader/recorder exmay share the decoding or coding.
20 FIG. 400 400 401 402 403 404 405 406 407 401 215 215 402 401 403 401 215 404 215 215 405 215 406 401 405 407 400 407 404 402 403 406 401 407 As an example,illustrates a configuration of an information reproducing/recording unit exwhen data is read or written from or on an optical disk. The information reproducing/recording unit exincludes constituent elements ex, ex, ex, ex, ex, ex, and exto be described hereinafter. The optical head exirradiates a laser spot in a recording surface of the recording medium exthat is an optical disk to write information, and detects reflected light from the recording surface of the recording medium exto read the information. The modulation recording unit exelectrically drives a semiconductor laser included in the optical head ex, and modulates the laser light according to recorded data. The reproduction demodulating unit examplifies a reproduction signal obtained by electrically detecting the reflected light from the recording surface using a photo detector included in the optical head ex, and demodulates the reproduction signal by separating a signal component recorded on the recording medium exto reproduce the necessary information. The buffer extemporarily holds the information to be recorded on the recording medium exand the information reproduced from the recording medium ex. The disk motor exrotates the recording medium ex. The servo control unit exmoves the optical head exto a predetermined information track while controlling the rotation drive of the disk motor exso as to follow the laser spot. The system control unit excontrols overall the information reproducing/recording unit ex. The reading and writing processes can be implemented by the system control unit exusing various information stored in the buffer exand generating and adding new information as necessary, and by the modulation recording unit ex, the reproduction demodulating unit ex, and the servo control unit exthat record and reproduce information through the optical head exwhile being operated in a coordinated manner. The system control unit exincludes, for example, a microprocessor, and executes processing by causing a computer to execute a program for read and write.
401 Although the optical head exirradiates a laser spot in the description, it may perform high-density recording using near field light.
21 FIG. 215 215 230 231 230 215 233 232 234 233 232 234 233 400 233 215 illustrates the recording medium exthat is the optical disk. On the recording surface of the recording medium ex, guide grooves are spirally formed, and an information track exrecords, in advance, address information indicating an absolute position on the disk according to change in a shape of the guide grooves. The address information includes information for determining positions of recording blocks exthat are a unit for recording data. Reproducing the information track exand reading the address information in an apparatus that records and reproduces data can lead to determination of the positions of the recording blocks. Furthermore, the recording medium exincludes a data recording area ex, an inner circumference area ex, and an outer circumference area ex. The data recording area exis an area for use in recording the user data. The inner circumference area exand the outer circumference area exthat are inside and outside of the data recording area ex, respectively are for specific use except for recording the user data. The information reproducing/recording unitreads and writes coded audio, coded video data, or multiplexed data obtained by multiplexing the coded audio and video data, from and on the data recording area exof the recording medium ex.
Although an optical disk having a layer, such as a DVD and a BD is described as an example in the description, the optical disk is not limited to such, and may be an optical disk having a multilayer structure and capable of being recorded on a part other than the surface. Furthermore, the optical disk may have a structure for multidimensional recording/reproduction, such as recording of information using light of colors with different wavelengths in the same portion of the optical disk and for recording information having different layers from various angles.
210 205 202 211 210 200 211 111 114 19 FIG. Furthermore, a car exhaving an antenna excan receive data from the satellite exand others, and reproduce video on a display device such as a car navigation system exset in the car ex, in the digital broadcasting system ex. Here, a configuration of the car navigation system exwill be a configuration, for example, including a GPS receiving unit from the configuration illustrated in. The same will be true for the configuration of the computer ex, the cellular phone ex, and others.
22 FIG.A 114 114 350 110 365 358 365 350 114 366 357 356 367 364 367 illustrates the cellular phone exthat uses the moving picture coding method and the moving picture decoding method described in Embodiments. The cellular phone exincludes: an antenna exfor transmitting and receiving radio waves through the base station ex; a camera unit excapable of capturing moving and still images; and a display unit exsuch as a liquid crystal display for displaying the data such as decoded video captured by the camera unit exor received by the antenna ex. The cellular phone exfurther includes: a main body unit including an operation key unit ex; an audio output unit exsuch as a speaker for output of audio; an audio input unit exsuch as a microphone for input of audio; a memory unit exfor storing captured video or still pictures, recorded audio, coded or decoded data of the received video, the still pictures, e-mails, or others; and a slot unit exthat is an interface unit for a recording medium that stores data in the same manner as the memory unit ex.
114 114 360 358 366 370 361 362 355 363 359 352 353 354 364 367 22 FIG.B Next, an example of a configuration of the cellular phone exwill be described with reference to. In the cellular phone ex, a main control unit exdesigned to control overall each unit of the main body including the display unit exas well as the operation key unit exis connected mutually, via a synchronous bus ex, to a power supply circuit unit ex, an operation input control unit ex, a video signal processing unit ex, a camera interface unit ex, a liquid crystal display (LCD) control unit ex, a modulation/demodulation unit ex, a multiplexing/demultiplexing unit ex, an audio signal processing unit ex, the slot unit ex, and the memory unit ex.
361 114 When a call-end key or a power key is turned ON by a user's operation, the power supply circuit unit exsupplies the respective units with power from a battery pack so as to activate the cell phone ex.
114 354 356 360 352 351 350 114 351 350 352 354 357 In the cellular phone ex, the audio signal processing unit exconverts the audio signals collected by the audio input unit exin voice conversation mode into digital audio signals under the control of the main control unit exincluding a CPU, ROM, and RAM. Then, the modulation/demodulation unit experforms spread spectrum processing on the digital audio signals, and the transmitting and receiving unit experforms digital-to-analog conversion and frequency conversion on the data, so as to transmit the resulting data via the antenna ex. Also, in the cellular phone ex, the transmitting and receiving unit examplifies the data received by the antenna exin voice conversation mode and performs frequency conversion and the analog-to-digital conversion on the data. Then, the modulation/demodulation unit experforms inverse spread spectrum processing on the data, and the audio signal processing unit exconverts it into analog audio signals, so as to output them via the audio output unit ex.
366 360 362 360 352 351 110 350 358 Furthermore, when an e-mail in data communication mode is transmitted, text data of the e-mail inputted by operating the operation key unit exand others of the main body is sent out to the main control unit exvia the operation input control unit ex. The main control unit excauses the modulation/demodulation unit exto perform spread spectrum processing on the text data, and the transmitting and receiving unit experforms the digital-to-analog conversion and the frequency conversion on the resulting data to transmit the data to the base station exvia the antenna ex. When an e-mail is received, processing that is approximately inverse to the processing for transmitting an e-mail is performed on the received data, and the resulting data is provided to the display unit ex.
355 365 355 353 365 354 356 353 When video, still images, or video and audio in data communication mode is or are transmitted, the video signal processing unit excompresses and codes video signals supplied from the camera unit exusing the moving picture coding method shown in each of Embodiments (that is, the video signal processing unit exfunctions as the picture coding apparatus according to an implementation of the present invention), and transmits the coded video data to the multiplexing/demultiplexing unit ex. In contrast, during when the camera unit excaptures video, still images, and others, the audio signal processing unit excodes audio signals collected by the audio input unit ex, and transmits the coded audio data to the multiplexing/demultiplexing unit ex.
353 355 354 352 351 350 The multiplexing/demultiplexing unit exmultiplexes the coded video data supplied from the video signal processing unit exand the coded audio data supplied from the audio signal processing unit ex, using a predetermined method. Then, the modulation/demodulation unit (the modulation/demodulation circuit unit) experforms spread spectrum processing on the multiplexed data, and the transmitting and receiving unit experforms digital-to-analog conversion and frequency conversion on the data so as to transmit the resulting data via the antenna ex.
350 353 355 354 370 355 355 358 359 354 357 When receiving data of a video file which is linked to a Web page and others in data communication mode or when receiving an e-mail with video and/or audio attached, in order to decode the multiplexed data received via the antenna ex, the multiplexing/demultiplexing unit exdemultiplexes the multiplexed data into a video data bit stream and an audio data bit stream, and supplies the video signal processing unit exwith the coded video data and the audio signal processing unit exwith the coded audio data, through the synchronous bus ex. The video signal processing unit exdecodes the video signal using a moving picture decoding method corresponding to the coding method shown in each of Embodiments (that is, the video signal processing unit exfunctions as the picture decoding apparatus according to an aspect of the present invention), and then the display unit exdisplays, for instance, the video and still images included in the video file linked to the Web page via the LCD control unit ex. Furthermore, the audio signal processing unit exdecodes the audio signal, and the audio output unit exprovides the audio.
300 114 Furthermore, similarly to the television ex, a terminal such as the cellular phone exprobably have 3 types of implementation configurations including not only (i) a transmitting and receiving terminal including both a coding apparatus and a decoding apparatus, but also (ii) a transmitting terminal including only a coding apparatus and (iii) a receiving terminal including only a decoding apparatus.
200 Although the digital broadcasting system exreceives and transmits the multiplexed data obtained by multiplexing audio data onto video data in the description, the multiplexed data may be data obtained by multiplexing not audio data but character data related to video onto video data, and may be not multiplexed data but video data itself.
As such, the moving picture coding method and the moving picture decoding method in each of Embodiments can be used in any of the devices and systems described. Thus, the advantages described in each of Embodiments can be obtained.
Furthermore, the present invention is not limited to Embodiments, and various modifications and revisions are possible without departing from the scope of the present invention.
Video data can be generated by switching, as necessary, between (i) the moving picture coding method or the moving picture coding apparatus shown in each of Embodiments and (ii) a moving picture coding method or a moving picture coding apparatus in conformity with a different standard, such as MPEG-2, MPEG4-AVC, and VC-1.
Here, when a plurality of video data that conforms to the different standards is generated and is then decoded, the decoding methods need to be selected to conform to the different standards. However, since to which standard each of the plurality of the video data to be decoded conforms cannot be detected, there is a problem that an appropriate decoding method cannot be selected.
In order to solve the problem, multiplexed data obtained by multiplexing audio data and others onto video data has a structure including identification information indicating to which standard the video data conforms. The specific structure of the multiplexed data including the video data generated in the moving picture coding method and by the moving picture coding apparatus shown in each of Embodiments will be hereinafter described. The multiplexed data is a digital stream in the MPEG2-Transport Stream format.
23 FIG. 23 FIG. illustrates a structure of the multiplexed data. As illustrated in, the multiplexed data can be obtained by multiplexing at least one of a video stream, an audio stream, a presentation graphics stream (PG), and an interactive graphics stream. The video stream represents primary video and secondary video of a movie, the audio stream (IG) represents a primary audio part and a secondary audio part to be mixed with the primary audio part, and the presentation graphics stream represents subtitles of the movie. Here, the primary video is normal video to be displayed on a screen, and the secondary video is video to be displayed on a smaller window in the primary video. Furthermore, the interactive graphics stream represents an interactive screen to be generated by arranging the GUI components on a screen. The video stream is coded in the moving picture coding method or by the moving picture coding apparatus shown in each of Embodiments, or in a moving picture coding method or by a moving picture coding apparatus in conformity with a conventional standard, such as MPEG-2, MPEG4-AVC, and VC-1. The audio stream is coded in accordance with a standard, such as Dolby-AC-3, Dolby Digital Plus, MLP, DTS, DTS-HD, and linear PCM.
Each stream included in the multiplexed data is identified by PID. For example, 0x1011 is allocated to the video stream to be used for video of a movie, 0x1100 to 0x111F are allocated to the audio streams, 0x1200 to 0x121F are allocated to the presentation graphics streams, 0x1B00 to 0x141F are allocated to the interactive graphics streams, 0x1B00 to 0x1B1F are allocated to the video streams to be used for secondary video of the movie, and 0x1A00 to 0x1A1F are allocated to the audio streams to be used for the secondary video to be mixed with the primary audio.
24 FIG. 235 238 236 239 237 240 241 244 242 245 243 246 247 schematically illustrates how data is multiplexed. First, a video stream excomposed of video frames and an audio stream excomposed of audio frames are transformed into a stream of PES packets exand a stream of PES packets ex, and further into TS packets exand TS packets ex, respectively. Similarly, data of a presentation graphics stream exand data of an interactive graphics stream exare transformed into a stream of PES packets exand a stream of PES packets ex, and further into TS packets exand TS packets ex, respectively. These TS packets are multiplexed into a stream to obtain multiplexed data ex.
25 FIG. 25 FIG. 25 FIG. 1 2 3 4 illustrates how a video stream is stored in a stream of PES packets in more detail. The first bar inshows a video frame stream in a video stream. The second bar shows the stream of PES packets. As indicated by arrows denoted as yy, yy, yy, and yyin, the video stream is divided into pictures as I-pictures, B-pictures, and P-pictures each of which is a video presentation unit, and the pictures are stored in a payload of each of the PES packets. Each of the PES packets has a PES header, and the PES header stores a Presentation Time-Stamp (PTS) indicating a display time of the picture, and a Decoding Time-Stamp (DTS) indicating a decoding time of the picture.
26 FIG. 26 FIG. illustrates a format of TS packets to be finally written on the multiplexed data. Each of the TS packets is a 188-byte fixed length packet including a 4-byte TS header having information, such as a PID for identifying a stream and a 184-byte TS payload for storing data. The PES packets are divided, and stored in the TS payloads, respectively. When a BD ROM is used, each of the TS packets is given a 4-byte TP_Extra_Header, thus resulting in 192-byte source packets. The source packets are written on the multiplexed data. The TP_Extra_Header stores information such as an Arrival_Time_Stamp (ATS). The ATS shows a transfer start time at which each of the TS packets is to be transferred to a PID filter. The source packets are arranged in the multiplexed data as shown at the bottom of. The numbers incrementing from the head of the multiplexed data are called source packet numbers (SPNs).
Each of the TS packets included in the multiplexed data includes not only streams of audio, video, subtitles and others, but also a Program Association Table (PAT), a Program Map Table (PMT), and a Program Clock Reference (PCR). The
PAT shows what a PID in a PMT used in the multiplexed data indicates, and a PID of the PAT itself is registered as zero. The PMT stores PIDs of the streams of video, audio, subtitles and others included in the multiplexed data, and attribute information of the streams corresponding to the PIDs. The PMT also has various descriptors relating to the multiplexed data. The descriptors have information such as copy control information showing whether copying of the multiplexed data is permitted or not. The PCR stores STC time information corresponding to an ATS showing when the PCR packet is transferred to a decoder, in order to achieve synchronization between an Arrival Time Clock (ATC) that is a time axis of ATSs, and an System Time Clock (STC) that is a time axis of PTSs and DTSs.
27 FIG. illustrates the data structure of the PMT in detail. A PMT header is disposed at the top of the PMT. The PMT header describes the length of data included in the PMT and others. A plurality of descriptors relating to the multiplexed data is disposed after the PMT header. Information such as the copy control information is described in the descriptors. After the descriptors, a plurality of pieces of stream information relating to the streams included in the multiplexed data is disposed. Each piece of stream information includes stream descriptors each describing information, such as a stream type for identifying a compression codec of a stream, a stream PID, and stream attribute information (such as a frame rate or an aspect ratio). The stream descriptors are equal in number to the number of streams in the multiplexed data.
When the multiplexed data is recorded on a recording medium and others, it is recorded together with multiplexed data information files.
28 FIG. Each of the multiplexed data information files is management information of the multiplexed data as shown in. The multiplexed data information files are in one to one correspondence with the multiplexed data, and each of the files includes multiplexed data information, stream attribute information, and an entry map.
28 FIG. As illustrated in, the multiplexed data includes a system rate, a reproduction start time, and a reproduction end time. The system rate indicates the maximum transfer rate at which a system target decoder to be described later transfers the multiplexed data to a PID filter. The intervals of the ATSs included in the multiplexed data are set to not higher than a system rate. The reproduction start time indicates a PTS in a video frame at the head of the multiplexed data. An interval of one frame is added to a PTS in a video frame at the end of the multiplexed data, and the PTS is set to the reproduction end time.
29 FIG. As shown in, a piece of attribute information is registered in the stream attribute information, for each PID of each stream included in the multiplexed data. Each piece of attribute information has different information depending on whether the corresponding stream is a video stream, an audio stream, a presentation graphics stream, or an interactive graphics stream. Each piece of video stream attribute information carries information including what kind of compression codec is used for compressing the video stream, and the resolution, aspect ratio and frame rate of the pieces of picture data that is included in the video stream. Each piece of audio stream attribute information carries information including what kind of compression codec is used for compressing the audio stream, how many channels are included in the audio stream, which language the audio stream supports, and how high the sampling frequency is. The video stream attribute information and the audio stream attribute information are used for initialization of a decoder before the player plays back the information.
In Embodiment 7, the multiplexed data to be used is of a stream type included in the PMT. Furthermore, when the multiplexed data is recorded on a recording medium, the video stream attribute information included in the multiplexed data information is used. More specifically, the moving picture coding method or the moving picture coding apparatus described in each of Embodiments includes a step or a unit for allocating unique information indicating video data generated by the moving picture coding method or the moving picture coding apparatus in each of Embodiments, to the stream type included in the PMT or the video stream attribute information. With the configuration, the video data generated by the moving picture coding method or the moving picture coding apparatus described in each of Embodiments can be distinguished from video data that conforms to another standard.
30 FIG. 100 101 102 103 Furthermore,illustrates steps of the moving picture decoding method according to Embodiment 7. In Step exS, the stream type included in the PMT or the video stream attribute information is obtained from the multiplexed data. Next, in Step exS, it is determined whether or not the stream type or the video stream attribute information indicates that the multiplexed data is generated by the moving picture coding method or the moving picture coding apparatus in each of Embodiments. When it is determined that the stream type or the video stream attribute information indicates that the multiplexed data is generated by the moving picture coding method or the moving picture coding apparatus in each of Embodiments, in Step exS, decoding is performed by the moving picture decoding method in each of Embodiments. Furthermore, when the stream type or the video stream attribute information indicates conformance to the conventional standards, such as MPEG-2, MPEG4-AVC, and VC-1, in Step exS, decoding is performed by a moving picture decoding method in conformity with the conventional standards.
As such, allocating a new unique value to the stream type or the video stream attribute information enables determination whether or not the moving picture decoding method or the moving picture decoding apparatus that is described in each of Embodiments can perform decoding. Even when multiplexed data that conforms to a different standard, an appropriate decoding method or apparatus can be selected. Thus, it becomes possible to decode information without any error. Furthermore, the moving picture coding method or apparatus, or the moving picture decoding method or apparatus in Embodiment 7 can be used in the devices and systems described above.
31 FIG. 500 500 501 502 503 504 505 506 507 508 509 510 505 505 Each of the moving picture coding method, the moving picture coding apparatus, the moving picture decoding method, and the moving picture decoding apparatus in each of Embodiments is typically achieved in the form of an integrated circuit or a Large Scale Integrated (LSI) circuit. As an example of the LSI,illustrates a configuration of the LSI exthat is made into one chip. The LSI exincludes elements ex, ex, ex, ex, ex, ex, ex, ex, and exto be described below, and the elements are connected to each other through a bus ex. The power supply circuit unit exis activated by supplying each of the elements with power when the power supply circuit unit exis turned on.
500 117 113 509 501 502 503 504 512 511 501 507 507 507 506 107 215 508 For example, when coding is performed, the LSI exreceives an AV signal from a microphone ex, a camera ex, and others through an AV IO exunder control of a control unit exincluding a CPU ex, a memory controller ex, a stream controller ex, and a driving frequency control unit ex. The received AV signal is temporarily stored in an external memory ex, such as an SDRAM. Under control of the control unit ex, the stored data is segmented into data portions according to the processing amount and speed to be transmitted to a signal processing unit ex. Then, the signal processing unit excodes an audio signal and/or a video signal. Here, the coding of the video signal is the coding described in each of Embodiments. Furthermore, the signal processing unit exsometimes multiplexes the coded audio data and the coded video data, and a stream IO exprovides the multiplexed data outside. The provided multiplexed data is transmitted to the base station ex, or written on the recording media ex. When data sets are multiplexed, the data should be temporarily stored in the buffer exso that the data sets are synchronized with each other.
511 500 500 508 500 Although the memory exis an element outside the LSI ex, it may be included in the LSI ex. The buffer exis not limited to one buffer, but may be composed of buffers. Furthermore, the LSI exmay be made into one chip or a plurality of chips.
510 502 503 504 512 510 507 507 502 507 501 507 502 507 Furthermore, although the control unit exincludes the CPU ex, the memory controller ex, the stream controller ex, the driving frequency control unit ex, the configuration of the control unit exis not limited to such. For example, the signal processing unit exmay further include a CPU. Inclusion of another CPU in the signal processing unit excan improve the processing speed. Furthermore, as another example, the CPU exmay serve as or be a part of the signal processing unit ex, and, for example, may include an audio signal processing unit. In such a case, the control unit exincludes the signal processing unit exor the CPU exincluding a part of the signal processing unit ex.
The name used here is LSI, but it may also be called IC, system LSI, super LSI, or ultra LSI depending on the degree of integration.
Moreover, ways to achieve integration are not limited to the LSI, and a special circuit or a general purpose processor and so forth can also achieve the integration. Field Programmable Gate Array (FPGA) that can be programmed after manufacturing LSIs or a reconfigurable processor that allows re-configuration of the connection or configuration of an LSI can be used for the same purpose.
In the future, with advancement in semiconductor technology, a brand-new technology may replace LSI. The functional blocks can be integrated using such a technology. The possibility is that the present invention is applied to biotechnology.
500 502 When video data generated in the moving picture coding method or by the moving picture coding apparatus described in each of Embodiments is decoded, compared to when video data that conforms to a conventional standard, such as MPEG-2, MPEG4-AVC, and VC-1 is decoded, the processing amount probably increases. Thus, the LSI exneeds to be set to a driving frequency higher than that of the CPU exto be used when video data in conformity with the conventional standard is decoded. However, when the driving frequency is set higher, there is a problem that the power consumption increases.
300 500 800 803 803 801 803 803 802 32 FIG. In order to solve the problem, the moving picture decoding apparatus, such as the television exand the LSI exis configured to determine to which standard the video data conforms, and switch between the driving frequencies according to the determined standard.illustrates a configuration exin Embodiment 9. A driving frequency switching unit exsets a driving frequency to a higher driving frequency when video data is generated by the moving picture coding method or the moving picture coding apparatus described in each of Embodiments. Then, the driving frequency switching unit exinstructs a decoding processing unit exthat executes the moving picture decoding method described in each of Embodiments to decode the video data. When the video data conforms to the conventional standard, the driving frequency switching unit exsets a driving frequency to a lower driving frequency than that of the video data generated by the moving picture coding method or the moving picture coding apparatus described in each of Embodiments. Then, the driving frequency switching unit exinstructs the decoding processing unit exthat conforms to the conventional standard to decode the video data.
803 502 512 801 802 507 502 512 502 507 502 502 508 502 31 FIG. 29 FIG. 34 FIG. More specifically, the driving frequency switching unit exincludes the CPU exand the driving frequency control unit exin. Here, each of the decoding processing unit exthat executes the moving picture decoding method described in each of Embodiments and the decoding processing unit exthat conforms to the conventional standard corresponds to the signal processing unit exin. The CPU exdetermines to which standard the video data conforms. Then, the driving frequency control unit exdetermines a driving frequency based on a signal from the CPU ex. Furthermore, the signal processing unit exdecodes the video data based on the signal from the CPU ex. For example, the identification information described in Embodiment 7 is probably used for identifying the video data. The identification information is not limited to the one described in Embodiment 7 but may be any information as long as the information indicates to which standard the video data conforms. For example, when which standard video data conforms to can be determined based on an external signal for determining that the video data is used for a television or a disk, etc., the determination may be made based on such an external signal. Furthermore, the CPU exselects a driving frequency based on, for example, a look-up table in which the standards of the video data are associated with the driving frequencies as shown in. The driving frequency can be selected by storing the look-up table in the buffer exand in an internal memory of an LSI, and with reference to the look-up table by the CPU ex.
33 FIG. 200 507 201 502 202 502 512 512 203 502 512 512 illustrates steps for executing a method in Embodiment 9. First, in Step exS, the signal processing unit exobtains identification information from the multiplexed data. Next, in Step exS, the CPU exdetermines whether or not the video data is generated by the coding method and the coding apparatus described in each of Embodiments, based on the identification information. When the video data is generated by the coding method and the coding apparatus described in each of Embodiments, in Step exS, the CPU extransmits a signal for setting the driving frequency to a higher driving frequency to the driving frequency control unit ex. Then, the driving frequency control unit exsets the driving frequency to the higher driving frequency. On the other hand, when the identification information indicates that the video data conforms to the conventional standard, such as MPEG-2, MPEG4-AVC, and VC-1, in Step exS, the CPU extransmits a signal for setting the driving frequency to a lower driving frequency to the driving frequency control unit ex. Then, the driving frequency control unit exsets the driving frequency to the lower driving frequency than that in the case where the video data is generated by the moving picture coding method and the moving picture coding apparatus described in each of Embodiment.
500 500 500 500 Furthermore, along with the switching of the driving frequencies, the power conservation effect can be improved by changing the voltage to be applied to the LSI exor an apparatus including the LSI ex. For example, when the driving frequency is set lower, the voltage to be applied to the LSI exor the apparatus including the LSI exis probably set to a voltage lower than that in the case where the driving frequency is set higher.
Furthermore, when the processing amount for decoding is larger, the driving frequency may be set higher, and when the processing amount for decoding is smaller, the driving frequency may be set lower as the method for setting the driving frequency. Thus, the setting method is not limited to the ones described above. For example, when the processing amount for decoding video data in conformity with MPEG-AVC is larger than the processing amount for decoding video data generated by the moving picture coding method and the moving picture coding apparatus described in each of Embodiments, the driving frequency is probably set in reverse order to the setting described above.
500 500 500 500 502 502 502 502 502 Furthermore, the method for setting the driving frequency is not limited to the method for setting the driving frequency lower. For example, when the identification information indicates that the video data is generated by the moving picture coding method and the moving picture coding apparatus described in each of Embodiments, the voltage to be applied to the LSI exor the apparatus including the LSI exis probably set higher. When the identification information indicates that the video data conforms to the conventional standard, such as MPEG-2, MPEG4-AVC, and VC-1, the voltage to be applied to the LSI exor the apparatus including the LSI exis probably set lower. As another example, when the identification information indicates that the video data is generated by the moving picture coding method and the moving picture coding apparatus described in each of Embodiments, the driving of the CPU exdoes not probably have to be suspended. When the identification information indicates that the video data conforms to the conventional standard, such as MPEG-2, MPEG4-AVC, and VC-1, the driving of the CPU exis probably suspended at a given time because the CPU exhas extra processing capacity. Even when the identification information indicates that the video data is generated by the moving picture coding method and the moving picture coding apparatus described in each of Embodiments, in the case where the CPU exhas extra processing capacity, the driving of the CPU exis probably suspended at a given time. In such a case, the suspending time is probably set shorter than that in the case where when the identification information indicates that the video data conforms to the conventional standard, such as MPEG-2, MPEG4-AVC, and VC-1.
500 500 Accordingly, the power conservation effect can be improved by switching between the driving frequencies in accordance with the standard to which the video data conforms. Furthermore, when the LSI exor the apparatus including the LSI exis driven using a battery, the battery life can be extended with the power conservation effect.
507 500 500 507 There are cases where a plurality of video data that conforms to different standards, is provided to the devices and systems, such as a television and a mobile phone. In order to enable decoding the plurality of video data that conforms to the different standards, the signal processing unit exof the LSI exneeds to conform to the different standards. However, the problems of increase in the scale of the circuit of the LSI exand increase in the cost arise with the individual use of the signal processing units exthat conform to the respective standards.
900 902 901 901 35 FIG.A In order to solve the problem, what is conceived is a configuration in which the decoding processing unit for implementing the moving picture decoding method described in each of Embodiments and the decoding processing unit that conforms to the conventional standard, such as MPEG-2, MPEG4-AVC, and VC-1 are partly shared. Exinshows an example of the configuration. For example, the moving picture decoding method described in each of Embodiments and the moving picture decoding method that conforms to MPEG4-AVC have, partly in common, the details of processing, such as entropy coding, inverse quantization, deblocking filtering, and motion compensated prediction. The details of processing to be shared probably include use of a decoding processing unit exthat conforms to MPEG4-AVC. In contrast, a dedicated decoding processing unit exis probably used for other processing that does not conform to MPEG4-AVC and is unique to the present invention. Since the present invention is characterized by a transformation unit in particular, for example, the dedicated decoding processing unit exis used for inverse transform. Otherwise, the decoding processing unit is probably shared for one of the entropy coding, deblocking filtering, and motion compensated prediction, or all of the processing. The decoding processing unit for implementing the moving picture decoding method described in each of Embodiments may be shared for the processing to be shared, and a dedicated decoding processing unit may be used for processing unique to that of MPEG4-AVC.
1000 1001 1002 1003 1001 1002 500 35 FIG.B Furthermore, exinshows another example in that processing is partly shared. This example uses a configuration including a dedicated decoding processing unit exthat supports the processing unique to the present invention, a dedicated decoding processing unit exthat supports the processing unique to another conventional standard, and a decoding processing unit exthat supports processing to be shared between the moving picture decoding method in the present invention and the conventional moving picture decoding method. Here, the dedicated decoding processing units exand exare not necessarily specialized for the processing of the present invention and the processing of the conventional standard, respectively, and may be the ones capable of implementing general processing. Furthermore, the configuration of Embodiment 10 can be implemented by the LSI ex.
As such, reducing the scale of the circuit of an LSI and reducing the cost are possible by sharing the decoding processing unit for the processing to be shared between the moving picture decoding method in the present invention and the moving picture decoding method in conformity with the conventional standard.
The motion vector calculation method, the picture coding method, and the picture decoding method according to the present invention produce an effect of attaining a higher compression rate and are applicable to, for example, video cameras, cellular phones with functions of capturing and reproducing video, personal computers, or recoding/playback devices.
100 Picture coding apparatus
101 Substractor
102 Orthogonal transform unit
103 Quantization unit
104 Inverse quantization unit
105 Inverse orthogonal transform unit
106 Adder
107 Block memory
108 Frame memory
109 Intra prediction unit
110 Inter prediction unit
111 Inter prediction control unit
112 Picture type determination unit
113 Temporal direct vector calculation unit
114 Co-located reference direction determination unit
115 Variable-length coding unit
200 Picture decoding apparatus
204 Inverse quantization unit
205 Inverse orthogonal transform unit
206 Adder
207 Block memory
208 Frame memory
209 Intra prediction unit
210 Inter prediction unit
211 Inter prediction control unit
213 Temporal direct vector calculation unit
215 Variable-length decoding unit
Cooperative Patent Classification codes for this invention. Click any code to explore related patents in that topic.
September 16, 2025
September 1, 2026
Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.