Program

By selectively using temporal motion vector prediction and omitting unnecessary parameters, the method improves video encoding efficiency and robustness against decoding errors in video encoding methods.

JP2024129104AActive Publication Date: 2024-09-26SUN PATENT TRUST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2024106197
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2012-03-06
Filing Date
2024-07-01
Publication Date
2024-09-26
Estimated Expiration
2033-02-28

AI Technical Summary

Technical Problem

Existing video encoding methods suffer from inefficiencies and errors due to the reliance on temporal motion vector prediction, which can lead to decoding failures when reference picture information is lost during streaming, causing error propagation.

Method used

A method that selectively uses temporal motion vector prediction by encoding a flag indicating its usage, deriving motion vector predictors based on this flag, and omitting unnecessary parameters when prediction is not used, thereby improving encoding efficiency.

Benefits of technology

This approach enhances encoding efficiency by preventing unnecessary parameter encoding and reducing error propagation, ensuring robust decoding even in the presence of lost reference picture information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024129104000001
    Figure 2024129104000001
Patent Text Reader

Abstract

To improve coding efficiency.SOLUTION: A program causes a computer to execute a video image decoding method, the video image decoding method including: decoding a temporal predictive restriction flag indicating whether temporal motion vector prediction is used or not (S211); decoding a first parameter for specifying a prediction direction for calculating a temporal predictive motion vector (S213) when the temporal predictive restriction flag indicates that the temporal motion vector prediction is used (Yes in S212); deriving a plurality of first predictive motion vector candidates including the temporal predictive motion vector on the basis of the prediction direction specified by the first parameter (S214); and deriving a plurality of second predictive motion vector candidates not including the temporal predictive motion vector (S217) when the temporal predictive restriction flag indicates that the temporal motion vector prediction is not used (No in S212).SELECTED DRAWING: Figure 21
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a video encoding method and a video decoding method. [Background technology]

[0002] In video coding, the amount of information is generally compressed by utilizing the spatial and temporal redundancies of the video. Generally, a method for utilizing the spatial redundancy is a conversion to the frequency domain. Also, a method for utilizing the temporal redundancy is an inter-picture prediction (hereinafter, referred to as inter prediction) coding process (see, for example, Non-Patent Document 1). [Prior art documents] [Non-patent literature]

[0003] [Non-Patent Document 1] ITU-T Recommendation H.264 "Advanced video coding for generic audiovisual services", March 2010 Summary of the Invention [Problem to be solved by the invention]

[0004] In such a video encoding method and video decoding method, it is desirable to improve the encoding efficiency.

[0005] Therefore, an object of the present invention is to provide a video encoding method and a video decoding method capable of improving the encoding efficiency. [Means for solving the problem]

[0006] In order to achieve the above object, a program according to one aspect of the present invention is a program that causes a computer to execute a video decoding method for inter-prediction decoding using a motion vector of a current block included in a current picture, the video decoding method including: decoding a temporal prediction restriction flag indicating whether or not temporal motion vector prediction using a temporal prediction motion vector that is a motion vector of a block included in a decoded picture other than the current picture is to be decoded is to be used; if the temporal prediction restriction flag indicates that the temporal motion vector prediction is to be used, decoding a first parameter for specifying a prediction direction for calculating the temporal prediction motion vector; Based on the direction of motion, a plurality of first predictive motion vector candidates including the temporal predictive motion vector are derived, a motion vector used for inter-prediction decoding of the block to be decoded is decoded using one of the plurality of first predictive motion vector candidates, and if the temporal prediction restriction flag indicates that the temporal motion vector prediction is not used, a plurality of second predictive motion vector candidates not including the temporal predictive motion vector are derived, and a motion vector used for inter-prediction decoding of the block to be decoded is decoded using one of the plurality of second predictive motion vector candidates, and if the temporal prediction restriction flag indicates that the temporal motion vector prediction is not used, the first parameter is not decoded.

[0007] Furthermore, these general or specific aspects may be realized by a system, a method, an integrated circuit, a computer program, or a recording medium such as a computer-readable CD-ROM, or may be realized by any combination of a system, a method, an integrated circuit, a computer program, and a recording medium. Effect of the Invention

[0008] The present invention can provide a video encoding method and a video decoding method that can improve encoding efficiency. [Brief description of the drawings]

[0009] [Figure 1]FIG. 1 is an explanatory diagram showing motion vectors in temporal motion vector prediction. [Diagram 2] FIG. 2 is a block diagram of the video encoding device according to the first embodiment. [Diagram 3] FIG. 3 is a diagram showing an outline of a process flow of the video coding method according to the first embodiment. [Figure 4] FIG. 4 is a diagram showing examples of motion vector predictor candidates according to the first embodiment. [Diagram 5] FIG. 5 is a diagram showing an example of a code table when variable-length coding a motion vector predictor index according to the first embodiment. [Figure 6] FIG. 6 is a diagram showing a flow of determining a motion vector predictor candidate according to the first embodiment. [Figure 7] FIG. 7 is a conceptual diagram showing read and write processing for the colPic memory and the global vector storage unit according to the first embodiment. [Figure 8A] FIG. 8A is a diagram showing a detailed process flow of step S11 in FIG. 3 according to the first embodiment. [Figure 8B] FIG. 8B is a diagram showing an example of a B picture referenced by other pictures according to the first embodiment. [Figure 9] FIG. 9 is a diagram showing a detailed process flow of step S17 in FIG. 3 according to the first embodiment. [Figure 10] FIG. 10 is a diagram showing a detailed process flow of steps S13 and S14 in FIG. 3 according to the first embodiment. [Figure 11A] FIG. 11A is a diagram showing an example of a method for deriving a motion vector predictor candidate by using a forward reference motion vector according to Embodiment 1. As shown in FIG. [Figure 11B] FIG. 11B is a diagram showing an example of a method for deriving a motion vector predictor candidate by using a backward reference motion vector according to the first embodiment. [Figure 12A] FIG. 12A is a diagram showing an example of a method for deriving a motion vector predictor candidate by using a backward reference motion vector according to Embodiment 1. As shown in FIG. [Figure 12B]FIG. 12B is a diagram showing an example of a method for deriving a motion vector predictor candidate by using a forward reference motion vector according to Embodiment 1. As shown in FIG. [Figure 13] FIG. 13 is a diagram showing a process flow of the video coding method according to the first embodiment. [Figure 14] FIG. 14 is a diagram showing a process flow of the video coding method according to the first embodiment. [Figure 15] FIG. 15 is a block diagram of a video decoding device according to the second embodiment. [Figure 16] FIG. 16 is a diagram showing an outline of a process flow of the video decoding method according to the second embodiment. [Figure 17] FIG. 17 is a diagram showing an example of the syntax of a bit stream in the video decoding method according to the second embodiment. [Figure 18] FIG. 18 is a diagram showing a process flow of the video decoding method according to the second embodiment. [Figure 19A] FIG. 19A is a diagram illustrating an example of syntax according to the second embodiment. [Figure 19B] FIG. 19B is a diagram illustrating an example of syntax according to the second embodiment. [Figure 20] FIG. 20 is a diagram illustrating an example of syntax according to the second embodiment. [Figure 21] FIG. 21 is a diagram showing a process flow of the video decoding method according to the second embodiment. [Figure 22] FIG. 22 is a block diagram of a video coding device according to a variation of the first embodiment. In FIG. [Figure 23] FIG. 23 is a flowchart showing the operation of the video coding method according to the variation of the first embodiment. [Figure 24] FIG. 24 is a diagram showing an example of an image including a base view and a dependent view according to a modification of the second embodiment. [Diagram 25] FIG. 25 is a block diagram of a video decoding device according to a variation of the second embodiment. In FIG. [Figure 26]FIG. 26 is a diagram showing the overall configuration of a content supply system that realizes a content distribution service. [Figure 27] FIG. 27 is a diagram showing the overall configuration of a digital broadcasting system. [Figure 28] FIG. 28 is a block diagram showing an example of the configuration of a television. [Figure 29] FIG. 29 is a block diagram showing an example of the configuration of an information reproducing / recording unit that reads and writes information from and to a recording medium that is an optical disc. [Diagram 30] FIG. 30 is a diagram showing an example of the structure of a recording medium that is an optical disc. [Figure 31A] FIG. 31A is a diagram showing an example of a mobile phone. [Figure 31B] FIG. 31B is a block diagram showing an example of the configuration of a mobile phone. [Diagram 32] FIG. 32 is a diagram showing a structure of multiplexed data. [Diagram 33] FIG. 33 is a diagram showing a schematic diagram of how each stream is multiplexed in multiplexed data. [Diagram 34] FIG. 34 shows in more detail how a video stream is stored in a PES packet sequence. [Diagram 35] FIG. 35 is a diagram showing the structure of TS packets and source packets in multiplexed data. [Diagram 36] FIG. 36 is a diagram showing the data structure of a PMT. [Figure 37] FIG. 37 is a diagram showing the internal structure of the multiplexed data information. [Figure 38] FIG. 38 shows the internal structure of the stream attribute information. [Figure 39] FIG. 39 illustrates steps for identifying video data. [Diagram 40] FIG. 40 is a block diagram showing an example of the configuration of an integrated circuit that realizes the video coding method and the video decoding method according to each embodiment. [Diagram 41] FIG. 41 is a diagram showing a configuration for switching the drive frequency. [Diagram 42] FIG. 42 is a diagram showing steps of identifying video data and switching the drive frequency. [Diagram 43] FIG. 43 is a diagram showing an example of a lookup table in which video data standards and drive frequencies correspond to each other. [Figure 44A] FIG. 44A is a diagram showing an example of a configuration in which modules of a signal processing unit are shared. [Figure 44B] FIG. 44B is a diagram showing another example of a configuration in which modules of a signal processing unit are shared. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] (Findings on which the present invention is based) The present inventors have found that the following problems occur with the conventional techniques.

[0011] In the inter prediction coding process, when coding a picture, the video coding device uses a coded picture that is before or after the current picture in display order (display time order) as a reference picture. The video coding device then derives a motion vector by motion estimation of the current picture relative to the reference picture, and calculates a difference between predicted image data obtained by performing motion compensation based on the motion vector and image data of the current picture. This removes redundancy in the time direction. Here, in the motion estimation, the video coding device calculates a difference value between a block to be coded in the current picture and a block in the reference picture, and selects a block in the reference picture with the smallest difference value as a reference block. The video coding device then detects a motion vector using the current block to be coded and the reference block.

[0012] In a video coding method called H.264, which has already been standardized, three types of picture types, I-picture, P-picture, and B-picture, are used to compress the amount of information. An I-picture is a picture on which no inter-prediction coding process is performed, that is, only intra-picture prediction (hereinafter referred to as intra-prediction) coding process is performed. A P-picture is a picture on which inter-prediction coding is performed with reference to only one already-coded picture that is located before or after the picture to be coded in display order. A B-picture is a picture on which inter-prediction coding is performed with reference to two already-coded pictures that are located before or after the picture to be coded in display order.

[0013] In addition, in a video coding method called H.264, a motion vector detection mode is used as a coding mode for inter prediction of each coding target block in a B picture, in which a difference value between predicted image data and image data of the coding target block and a motion vector used to generate the predicted image data are coded. In the motion vector detection mode, the video coding device can select, as a prediction direction, either bidirectional prediction in which a predicted image is generated by referring to two already coded pictures located in front or behind the coding target picture, or unidirectional prediction in which a predicted image is generated by referring to one already coded picture located in front or behind the coding target picture.

[0014] In addition, in a video coding method called H.264, a video coding device can select a coding mode called temporal motion vector prediction (temporal predicted motion vector mode or temporal direct mode) when deriving a motion vector in coding a B picture. Also, a predicted motion vector (predicted motion vector candidate) generated by temporal motion vector prediction is called a temporal predicted motion vector.

[0015] An inter-prediction coding method in temporal motion vector prediction will be described with reference to Fig. 1. Fig. 1 is an explanatory diagram showing motion vectors in temporal motion vector prediction, and illustrates a case where block a of picture B2 is coded by temporal motion vector prediction.

[0016] In this case, a motion vector vb of a block b located at the same position as the block a in the picture P3, which is a reference picture behind the picture B2, is used. The motion vector vb is a motion vector used when the block b was coded, and refers to the picture P1. The video coding apparatus then obtains reference blocks from the picture P1, which is a forward reference picture, and the picture P3, which is a backward reference picture, using a motion vector parallel to the motion vector vb, and codes the block a by performing bidirectional prediction. That is, the motion vector used when coding the block a is the motion vector va1 for the picture P1, and the motion vector va2 for the picture P3.

[0017] However, in such a temporal motion vector prediction, when information of a reference picture having information such as a motion vector used in calculating a temporal predicted motion vector is lost due to, for example, packet loss in streaming distribution, the decoded image is degraded because the correct temporal predicted motion vector cannot be calculated. Furthermore, since an error propagates to a picture that refers to the decoded image, the decoding process may stop as a result. For example, when information of the reference picture P3 in FIG. 1 is lost, the temporal predicted motion vector of the picture B2 cannot be calculated. As a result, the picture B2 cannot be decoded correctly, and the decoding process may stop.

[0018] In this embodiment, therefore, a video coding method and a video decoding method capable of effectively preventing the propagation of errors in the decoding process will be described.

[0019] Furthermore, in such a video coding method and video decoding method, it is desirable to improve the coding efficiency.

[0020] In this embodiment, a video encoding method and a video decoding method capable of improving the encoding efficiency will be described.

[0021] A video coding method according to one aspect of the present invention is a video coding method for inter-prediction coding a current block included in a current picture using a motion vector, the video coding method including: a flag coding step of coding a first flag indicating whether or not temporal motion vector prediction using a temporal motion vector prediction vector that is a motion vector of a block included in a coded picture other than the current picture is to be used; a parameter coding step of coding a first parameter for calculating the temporal motion vector prediction when the first flag indicates that the temporal motion vector prediction is to be used; and a first candidate derivation step of deriving a plurality of first motion vector prediction candidates including the temporal motion vector prediction using the first parameter. the first flag indicates that the temporal motion vector prediction is not used, a second candidate derivation step of deriving a plurality of second predictor motion vector candidates not including the temporal predictor motion vector, and a second motion vector encoding step of encoding a motion vector used in the inter predictive coding of the block to be coded, using one of the plurality of second predictor motion vector candidates, wherein the first flag indicates that the temporal motion vector prediction is not used, and the first parameter is not coded.

[0022] According to this, when temporal motion vector prediction is not used, the video coding method does not code the unnecessary first parameter, thereby improving coding efficiency.

[0023] For example, the first parameters may include parameters for identifying the encoded picture.

[0024] For example, the first parameter may include a reference picture index for identifying the previously coded picture among a plurality of pictures indicated in a reference picture list used to code the current picture.

[0025] For example, the first parameter may include a flag indicating which of a plurality of reference picture lists used to code the current picture is to be used to identify the previously coded picture.

[0026] For example, in the first or second candidate derivation step, the plurality of first motion vector predictors or the plurality of second motion vector predictors may include an alternative vector to the temporal motion vector predictor.

[0027] According to this, the video coding method can suppress a decrease in coding efficiency.

[0028] For example, the video encoding method is a method for encoding pictures belonging to a base view and a dependent view included in a multi-view video, and further includes a disparity vector generation step of generating a disparity vector corresponding to the disparity between the base view and the dependent view, and in the first candidate derivation step, when the picture to be encoded belongs to the dependent view and is the first picture in a GOP (Group Of Pictures), the disparity vector may be included as the alternative vector in the multiple first predicted motion vectors.

[0029] According to this, the video coding method can suppress a decrease in coding efficiency.

[0030] For example, the video encoding method is a method for encoding pictures belonging to a base view and a dependent view included in a multi-view video, and further includes a disparity vector generation step for generating a disparity vector corresponding to the disparity between the base view and the dependent view, and in the second candidate derivation step, the disparity vector may be included as the alternative vector in the multiple second predicted motion vectors.

[0031] According to this, the video coding method can suppress a decrease in coding efficiency.

[0032] Further, a video decoding method according to one aspect of the present invention is a video decoding method for performing inter-prediction decoding using a motion vector on a current block included in a current picture to be decoded, the video decoding method including: a flag decoding step of decoding a first flag indicating whether or not temporal motion vector prediction using a temporal motion vector predictor that is a motion vector of a block included in a decoded picture other than the current picture to be decoded is to be used; a parameter decoding step of decoding a first parameter for calculating the temporal motion vector predictor when the first flag indicates that the temporal motion vector prediction is to be used; and a first candidate decoding step of deriving the plurality of first motion vector predictor candidates including the temporal motion vector predictor using the first parameter. the method includes a complement derivation step, a first motion vector decoding step of decoding a motion vector used for inter-prediction decoding of the block to be decoded using one of the plurality of first predictive motion vector candidates, a second candidate derivation step of deriving a plurality of second predictive motion vector candidates not including the temporal predictive motion vector if the first flag indicates that the temporal motion vector prediction is not used, and a second motion vector decoding step of decoding a motion vector used for inter-prediction decoding of the block to be decoded using one of the plurality of second predictive motion vector candidates, and the first parameter is not decoded if the first flag indicates that the temporal motion vector prediction is not used.

[0033] According to this, when temporal motion vector prediction is not used, the video decoding method does not decode the unnecessary first parameter, thereby improving coding efficiency.

[0034] For example, the first parameters may include parameters for identifying the decoded picture.

[0035] For example, the first parameter may include a reference picture index for identifying the already-decoded picture among a plurality of pictures indicated in a reference picture list used to decode the current picture.

[0036] For example, the first parameter may include a flag indicating which of a plurality of reference picture lists used to decode the current picture is to be used to identify the previously coded picture.

[0037] For example, in the first or second candidate derivation step, the plurality of first motion vector predictors or the plurality of second motion vector predictors may include an alternative vector to the temporal motion vector predictor.

[0038] According to this, the video decoding method can suppress a decrease in coding efficiency.

[0039] For example, the video decoding method is a method for decoding pictures belonging to a base view and a dependent view included in a multi-view video, and further includes a disparity vector generation step for generating a disparity vector corresponding to the disparity between the base view and the dependent view, and in the first candidate derivation step, when the picture to be decoded belongs to the dependent view and is the first picture in a GOP (Group Of Pictures), the disparity vector may be included as the alternative vector in the multiple first predicted motion vectors.

[0040] According to this, the video decoding method can suppress a decrease in coding efficiency.

[0041] For example, the video decoding method is a method for decoding pictures belonging to each of a base view and a dependent view included in a multi-view video, and further includes a disparity vector generation step for generating a disparity vector corresponding to the disparity between the base view and the dependent view, and in the second candidate derivation step, the disparity vector may be included as the alternative vector in the multiple second predicted motion vectors.

[0042] According to this, the video decoding method can suppress a decrease in coding efficiency.

[0043] Further, a video encoding device according to one aspect of the present invention is a video encoding device including a control circuit and a storage device electrically connected to the control circuit, and configured to perform inter-prediction encoding using a motion vector of a current block included in a current picture to be encoded, wherein the control circuit includes a flag encoding step of encoding a first flag indicating whether or not temporal motion vector prediction using a temporal predicted motion vector that is a motion vector of a block included in a coded picture other than the current picture to be encoded is to be used, a parameter encoding step of encoding a first parameter for calculating the temporal predicted motion vector when the first flag indicates that the temporal motion vector prediction is to be used, and a parameter encoding step of encoding a plurality of first predictive vectors including the temporal predicted motion vector using the first parameter. The method includes: a first candidate derivation step of deriving a predicted motion vector candidate; a first motion vector encoding step of encoding a motion vector used for inter-prediction encoding of the block to be encoded using one of the plurality of first predicted motion vector candidates; a second candidate derivation step of deriving a plurality of second predicted motion vector candidates not including the temporal predicted motion vector if the first flag indicates that the temporal motion vector prediction is not used; and a second motion vector encoding step of encoding a motion vector used for inter-prediction encoding of the block to be encoded using one of the plurality of second predicted motion vector candidates, and the method does not encode the first parameter if the first flag indicates that the temporal motion vector prediction is not used.

[0044] According to this, when the video encoding device does not use temporal motion vector prediction, the video encoding device does not decode the unnecessary first parameter, thereby enabling the video encoding device to improve encoding efficiency.

[0045] Also, a video decoding device according to one aspect of the present invention includes a control circuit and a storage device electrically connected to the control circuit, and performs inter-prediction decoding using a motion vector on a current block included in a current picture to be decoded, the control circuit including: a flag decoding step of decoding a first flag indicating whether or not temporal motion vector prediction using a temporal predicted motion vector that is a motion vector of a block included in a decoded picture other than the current picture to be decoded is to be used; a parameter decoding step of decoding a first parameter for calculating the temporal predicted motion vector when the first flag indicates that the temporal motion vector prediction is to be used; and a parameter decoding step of decoding a first parameter for calculating the temporal predicted motion vector using the first parameter. The method executes a first candidate derivation step of deriving a predicted motion vector candidate, a first motion vector decoding step of decoding a motion vector used for inter-prediction decoding of the block to be decoded using one of the plurality of first predicted motion vector candidates, a second candidate derivation step of deriving a plurality of second predicted motion vector candidates not including the temporal predicted motion vector if the first flag indicates that the temporal motion vector prediction is not used, and a second motion vector decoding step of decoding a motion vector used for inter-prediction decoding of the block to be decoded using one of the plurality of second predicted motion vector candidates, and does not decode the first parameter if the first flag indicates that the temporal motion vector prediction is not used.

[0046] According to this, when the video decoding device does not use temporal motion vector prediction, the video decoding device does not decode the unnecessary first parameter, thereby enabling the video decoding device to improve coding efficiency.

[0047] A video encoding / decoding device according to an aspect of the present invention includes the video encoding device and the video decoding device.

[0048] Furthermore, these general or specific aspects may be realized by a system, a method, an integrated circuit, a computer program, or a recording medium such as a computer-readable CD-ROM, or may be realized by any combination of a system, a method, an integrated circuit, a computer program, and a recording medium.

[0049] Hereinafter, an embodiment of the present invention will be described with reference to the drawings.

[0050] Note that the embodiments described below each show a specific example of the present invention. The numerical values, shapes, materials, components, the arrangement and connection of the components, steps, and the order of steps shown in the following embodiments are merely examples and are not intended to limit the present invention. Furthermore, among the components in the following embodiments, components that are not described in an independent claim showing a superordinate concept are described as optional components.

[0051] (Embodiment 1) FIG. 2 is a block diagram showing a configuration of a video coding device using the video coding method according to the first embodiment.

[0052] As shown in FIG. 2, the video encoding device 100 includes a subtraction unit 101, an orthogonal transformation unit 102, a quantization unit 103, an inverse quantization unit 104, an inverse orthogonal transformation unit 105, an addition unit 106, a block memory 107, a frame memory 108, an intra prediction unit 109, an inter prediction unit 110, a switch 111, an inter prediction control unit 112, a picture type determination unit 113, a temporal predicted motion vector calculation unit 114, a colPic memory 115, an overall vector storage unit 116, a co-located information determination unit 117, and a variable length encoding unit 118.

[0053] The subtraction unit 101 acquires an input image sequence including a block to be coded from outside the device, acquires a prediction block from the switch 111, generates a residual block by subtracting the prediction block from the block to be coded, and outputs the generated residual block to the orthogonal transformation unit 102.

[0054] The orthogonal transform unit 102 generates transform coefficients by transforming the residual block obtained from the subtraction unit 101 from the image domain to the frequency domain, and outputs the generated transform coefficients to the quantization unit 103. The quantization unit 103 quantizes the transform coefficients obtained from the quantization unit 103 to generate quantized coefficients, and outputs the generated quantized coefficients to the inverse quantization unit 104 and the variable length coding unit 118.

[0055] The inverse quantization unit 104 restores the transform coefficients by inverse quantizing the quantized coefficients obtained from the quantization unit 103, and outputs the restored transform coefficients to the inverse orthogonal transformation unit 105. The inverse orthogonal transformation unit 105 restores the residual block by transforming the restored transform coefficients obtained from the inverse quantization unit 104 from the frequency domain to the image domain, and outputs the restored residual block to the addition unit 106.

[0056] The adder 106 reconstructs the current block to be coded by adding the reconstructed residual block obtained from the inverse orthogonal transformer 105 and the predicted block obtained from the switch 111, and outputs the reconstructed current block to the block memory 107 and the frame memory 108. The block memory 107 stores the reconstructed input image sequence in units of blocks. The frame memory 108 stores the reconstructed input image sequence in units of frames.

[0057] The picture type determination unit 113 determines whether the input image sequence is to be coded using an I-picture, a B-picture, or a P-picture, and generates picture type information indicating the determined picture type. The picture type determination unit 113 then outputs the generated picture type information to the switch 111, the inter prediction control unit 112, the co-located information determination unit 117, and the variable length coding unit 118.

[0058] The intra prediction unit 109 generates a prediction block by performing intra prediction on the block to be coded using the sequence of input images restored in block units stored in the block memory 107, and outputs the generated prediction block to the switch 111. The inter prediction unit 110 generates a prediction block by performing inter prediction on the block to be coded using the sequence of input images restored in frame units stored in the frame memory 108 and a motion vector derived by motion detection, and outputs the generated prediction block to the switch 111.

[0059] The switch 111 outputs the predicted block generated by the intra prediction unit 109 or the predicted block generated by the inter prediction unit 110 to the subtraction unit 101 and the addition unit 106. For example, the switch 111 outputs the predicted block having the smaller coding cost of the two predicted blocks.

[0060] The co-located information determination unit 117 determines whether or not to prohibit the use of the co-located block. Then, the co-located information determination unit 117 generates a co-located use prohibition flag indicating the determination result for each picture, and outputs the generated co-located use prohibition flag to the temporal predicted motion vector calculation unit 114 and the variable length coding unit 118. This co-located use prohibition flag is included in a bit stream (typically, a picture header or a slice header). Note that in this embodiment, the use of the co-located block is prohibited using the co-located use prohibition flag to prohibit the calculation of a temporal predicted motion vector using information on the co-located block, and the co-located block is not added to a predicted motion vector candidate, but this is not necessarily limited to this. For example, a flag (enable_temporal_mvp_flag) or the like indicating whether or not to permit a temporal predicted motion vector using information on the co-located block may be directly prepared, and this flag may be included in a bit stream (typically, a picture header or a slice header).

[0061] Moreover, the co-located information determination unit 117 determines, as the co-located block, either a block included in a picture located ahead of the coding target picture in display order (hereinafter referred to as a forward reference block) or a block included in a picture located behind the coding target picture (hereinafter referred to as a backward reference block). In other words, the forward reference block is a block included in a reference picture identified by the reference picture list L0. Moreover, the backward reference block is a block included in a reference picture identified by the reference picture list L1. Note that, in the present embodiment, an example is shown in which the reference picture list L0 includes a forward reference block and the reference picture list L1 includes a backward reference block, but this is not necessarily the case. For example, as in the case in which the reference picture list L0 includes a forward reference block and the reference picture list L1 includes a forward reference block, both reference picture lists may include reference blocks in the same direction, or two reference picture lists may include reference blocks in the opposite direction.

[0062] Then, the co-located information determination unit 117 generates a co-located reference direction flag (collocated_from_l0_flag) indicating the determination result for each picture, and outputs the generated co-located reference direction flag to the temporal motion vector predictor calculation unit 114 and the variable length coding unit 118. This co-located reference direction flag is included in a bit stream (typically, a picture header or a slice header). For example, when the value of collocated_from_l0_flag is 1, a co-located block is calculated from the reference picture list L0, and when the value of collocated_from_0_flag is 0, a co-located block is calculated from the reference picture list L1. Note that, when a value indicating "prohibited" is set in the co-located use prohibition flag (for example, when the value of enable_temporal_mvp_flag is 0), the co-located reference direction flag (collocated_from_l0_flag) may be omitted. A detailed method will be described later.

[0063] Here, the co-located block is a block in a picture different from the coding target picture including the coding target block, and the position in the picture is the same as that of the coding target block. For example, among a plurality of pictures included in a reference picture list determined according to the value of the co-located reference direction flag, a picture whose reference picture index value is the value of the co-located reference picture index (collocated_ref_idx) is used as the co-located picture. Then, a block in the co-located picture that is in the same position as the coding target block is used as the co-located block.

[0064] Here, the co-located reference picture index (collocated_ref_idx) is an index value that specifies a co-located picture from among multiple pictures included in a reference picture list determined according to the value of the co-located reference direction flag. The collocated_ref_idx is included in a bitstream (typically, a picture header or a slice header).

[0065] For example, when the co-located information determination unit 117 designates a picture corresponding to the reference picture index 0 of the reference picture list L1 as a co-located picture, the co-located reference direction flag (collocated_from_l0_flag) is set to a value of 0, and the co-located reference picture index collocated_ref_idx is set to a value of 0. Note that, when a value indicating "prohibition" is set in the co-located use prohibition flag (for example, when the value of enable_temporal_mvp_flag is 0), the co-located information determination unit 117 may omit the co-located reference picture index (collocated_ref_idx). A detailed method will be described later. Note that the positions of the coding target block and the co-located block in each picture may not strictly match. For example, the co-located information determination unit 117 may set a block around (adjacent to) a block at the same position of the coding target block in a picture different from the coding target picture as the co-located block.

[0066] The temporal predicted motion vector calculation unit 114 derives predicted motion vector candidates, which are candidates for predicted motion vectors, using colPic information such as the motion vectors of the co-located blocks stored in the colPic memory 115, or the overall motion vector of the colPic picture stored in the overall vector storage unit, depending on the value of the co-located use prohibition flag obtained from the co-located information determination unit 117.

[0067] Specifically, when the co-located prohibition flag is on (prohibited), the temporal motion vector predictor calculation unit 114 adds the global motion vector (alternative vector) read from the global vector storage unit 116 to the motion vector predictor candidate. On the other hand, when the co-located prohibition flag is off (permitted), the temporal motion vector predictor calculation unit 114 adds the temporal motion vector predictor calculated using colPic information read from the colPic memory 115 to the motion vector predictor candidate.

[0068] Moreover, the temporal motion vector predictor calculation unit 114 assigns the value of the motion vector predictor index to the motion vector predictor added as a candidate. Then, the temporal motion vector predictor calculation unit 114 outputs the motion vector predictor added as a candidate and the motion vector predictor index to the inter prediction control unit 112. On the other hand, if the co-located block does not have a motion vector, the temporal motion vector predictor calculation unit 114 stops deriving a motion vector by temporal motion vector prediction, or derives a vector with a motion amount of 0 as a motion vector predictor candidate. Furthermore, the temporal motion vector predictor calculation unit 114 outputs the entire motion vector to the variable length coding unit 118.

[0069] The inter prediction control unit 112 determines to encode the motion vector using a motion vector predictor candidate having the smallest error with respect to the motion vector derived by motion estimation from among a plurality of motion vector predictor candidates. Here, the error indicates, for example, a difference value between the motion vector predictor candidate and the motion vector derived by motion estimation.

[0070] Furthermore, the inter prediction control unit 112 specifies a predicted motion vector index corresponding to the determined predicted motion vector for each block. Then, the inter prediction control unit 112 outputs the predicted motion vector index and a difference value between the motion vector and the predicted motion vector to the variable length coding unit 118. Furthermore, the inter prediction control unit 112 transfers colPic information including the motion vector of the current block to be coded to the colPic memory 115. Furthermore, the inter prediction control unit 112 transfers the motion vector of the coding block to the global vector storage unit 116.

[0071] The colPic memory 115 stores colPic information including the motion vector of the block to be coded, for use as a predicted motion vector when coding the next picture. The global vector storage unit 116 calculates a global motion vector from the motion vectors of multiple blocks to be coded included in the picture, and stores the global motion vector for use as a predicted motion vector when coding the next picture.

[0072] The variable length coding unit 118 generates a bitstream by variable length coding the quantization coefficients obtained from the quantization unit 103, the predicted motion vector index and the difference value between the motion vector and the predicted motion vector obtained from the inter prediction control unit 112, the picture type information obtained from the picture type determination unit 113, the co-located use prohibition flag (or enable_temporal_mvp_flag), the co-located reference direction flag (collocated_from_l0_flag), and the co-located reference picture index (collocated_ref_idx) obtained from the co-located information determination unit 117, and the overall motion vector obtained from the temporal predicted motion vector calculation unit 114.

[0073] FIG. 3 is a diagram showing an outline of a process flow of the video coding method according to the first embodiment.

[0074] When deriving a predicted motion vector candidate by temporal motion vector prediction, the co-located information determination unit 117 determines co-located information including a co-located use prohibition flag, a co-located reference direction flag, and a co-located reference picture index, etc., in a manner described below (S11).

[0075] Next, the temporal motion vector predictor calculation unit 114 determines whether the co-located use prohibition flag is on (prohibited) (or the value of enable_temporal_mvp_flag is 0) (S12). If the determination result is true (Yes in S12), the temporal motion vector predictor calculation unit 114 reads the global motion vector from the global vector storage unit 116 and attaches the read global motion vector to header information such as a picture header (S13).

[0076] Next, the temporal motion vector predictor calculation unit 114 adds the global motion vector to the motion vector predictor candidate as an alternative vector for the temporal motion vector predictor (S14). In addition, the temporal motion vector predictor calculation unit 114 assigns a value of the motion vector predictor index to the motion vector predictor added to the candidates.

[0077] On the other hand, if the co-located use prohibition flag is off (No in S12) (or the value of enable_temporal_mvp_flag is 1), the temporal motion vector predictor calculation unit 114 reads colPic information including the reference motion vector of the co-located block from the colPic memory according to the co-located information, calculates a temporal motion vector predictor using the reference motion vector of the co-located block, and adds the calculated temporal motion vector predictor to the motion vector predictor candidate (S17). In addition, the temporal motion vector predictor calculation unit 114 assigns a value of the motion vector predictor index to the motion vector predictor added to the candidate.

[0078] Generally, when the value of the predicted motion vector index is small, the amount of information required is small.On the other hand, when the value of the predicted motion vector index is large, the amount of information required is large.Therefore, when the predicted motion vector is assigned with a small predicted motion vector index, the coding efficiency is increased.

[0079] Next, the inter prediction unit 110 performs inter prediction using the motion vector derived by the motion estimation to generate a prediction block of the current block to be coded. Then, the subtraction unit 101, the orthogonal transformation unit 102, the quantization unit 103, and the variable length coding unit 118 code the current block to be coded using the prediction block generated by the inter prediction unit 110.

[0080] Furthermore, the inter prediction control unit 112 encodes a motion vector using a motion vector predictor candidate that is a motion vector predictor candidate with the smallest error from the motion vector among multiple motion vector predictor candidates. For example, the inter prediction control unit 112 calculates a difference value between each of the multiple motion vector predictor candidates and a motion vector derived by motion estimation as an error, and determines the motion vector predictor candidate with the smallest error among the calculated errors as the motion vector predictor used when encoding the motion vector.

[0081] Then, the inter prediction control unit 112 outputs the predicted motion vector index corresponding to the selected predicted motion vector and error information between the motion vector and the predicted motion vector to the variable length coding unit 118. The variable length coding unit 118 performs variable length coding on the predicted motion vector index and error information acquired from the inter prediction control unit 112, and includes the variable length coded predicted motion vector index and error information in a bitstream (S15).

[0082] Next, the inter prediction control unit 112 stores colPic information including the motion vector used in the inter prediction in the colPic memory 115. The colPic memory 115 stores the motion vector of the reference picture, the reference picture index value, the prediction direction, and the like in order to calculate the temporal prediction motion vector of the current block to be coded. In addition, the inter prediction control unit 112 stores the motion vector used in the inter prediction in the global vector storage unit 116 (S16).

[0083] FIG. 4 shows examples of candidate predicted motion vectors. Motion vector A (MV_A) is the motion vector of adjacent block A located to the left of the current block to be coded. Motion vector B (MV_B) is the motion vector of adjacent block B located above the current block to be coded. Motion vector C (MV_C) is the motion vector of adjacent block C located to the upper right of the current block to be coded. Median (MV_A, MV_B, MV_C) indicates the median value of motion vectors A, B, and C. Here, the median value is derived using, for example, the following formulas 1 to 3.

[0084]

number

number

number

[0085] The value of the motion vector predictor index is 0 for Median (MV_A, MV_B, MV_C), 1 for motion vector A, 2 for motion vector B, 3 for motion vector C, and 4 for the temporal motion vector predictor (or alternative vector). Note that the method of assigning motion vector predictor indexes is not limited to this example.

[0086] Fig. 5 shows an example of a code table used when variable-length coding the motion vector predictor index. In the example of Fig. 5, codes with shorter code lengths are assigned in ascending order of the value of the motion vector predictor index. In this way, a small motion vector predictor index is assigned to a motion vector predictor candidate that is likely to have good prediction accuracy, thereby improving coding efficiency.

[0087] Fig. 6 is a diagram showing a flow of determining a motion vector predictor candidate in the inter prediction control unit 112. According to the flow shown in Fig. 6, the inter prediction control unit 112 determines a motion vector predictor candidate having the smallest error with a motion vector derived by motion estimation as a motion vector predictor to be used when encoding a motion vector. Then, error information between the motion vector and the motion vector predictor and a motion vector predictor index indicating the determined motion vector predictor are variable-length coded and included in a bitstream.

[0088] Specifically, first, the inter prediction control unit 112 initializes a motion vector predictor candidate index mvp_idx and a minimum motion vector error (S21). Next, the inter prediction control unit 112 compares the motion vector predictor candidate index mvp_idx with the number of motion vector predictor candidates (the number of records in the table shown in FIG. 4) (S22).

[0089] If mvp_idx<the number of motion vector predictor candidates (Yes in S22), the inter prediction control unit 112 calculates a motion vector error (error information) of the motion vector predictor candidate identified by the current mvp_idx value among the multiple motion vector predictor candidates (S23). For example, the inter prediction control unit 112 calculates the motion vector error by subtracting the motion vector predictor candidate with the motion vector predictor index=0 in FIG. 4 from the motion vector used in encoding the current block to be encoded.

[0090] Next, the inter prediction control unit 112 compares the motion vector error calculated in step S23 with the minimum motion vector error (S24). If the motion vector error<minimum motion vector error (Yes in S24), the inter prediction control unit 112 sets (overwrites) the motion vector error calculated in step S23 to the minimum motion vector error, and sets (overwrites) the current mvp_idx to the predicted motion vector index (S25). On the other hand, if the motion vector error≧minimum motion vector error (No in S24), step S25 is skipped.

[0091] Then, the inter prediction control unit 112 increments mvp_idx by 1 (S26) and repeatedly executes the above processes (steps S22 to S26) the number of times corresponding to the number of motion vector predictor candidates. Then, when mvp_idx=the number of motion vector predictor candidates (No in S22), the inter prediction control unit 112 outputs the values ​​set in the minimum motion vector error and motion vector predictor index to the variable length coding unit 118, and ends the process in FIG. 6 (S27).

[0092] Fig. 7 is a conceptual diagram showing a process of reading and writing to the colPic memory 115 and the global vector storage unit 116 shown in Fig. 2. In Fig. 7, a motion vector mvCol1 in a prediction direction 1 and a motion vector mvCol2 in a prediction direction 2 of a co-located block included in a co-located picture colPic are stored in the colPic memory 115 and the global vector storage unit 116.

[0093] Here, when the block to be coded is coded, colPic information including the motion vector stored in the colPic memory 115, or the global motion vector in the global vector storage unit 116 is read out in accordance with the co-located use prohibition flag and added to the predicted motion vector candidates.

[0094] The predicted motion vector candidate is used for encoding the motion vector of the encoding target block. In the first embodiment, an example is described in which the prediction direction 1 is forward reference and the prediction direction 2 is backward reference, but the prediction direction 1 may be backward reference and the prediction direction 2 may be forward reference, or both the prediction direction 1 and the prediction direction 2 may be forward reference or backward reference. In addition, an example is shown in which the prediction direction 1 is prediction using the reference picture list L0 and the prediction direction 2 is prediction using the reference picture list L1.

[0095] The global vector storage unit 116 stores a global motion vector calculated from the motion vectors of a plurality of coding target blocks constituting a coding target picture. For example, the global motion vector is an average value of the motion vectors for each prediction direction at the time of inter prediction coding of the entire coding target picture. Note that, in the first embodiment, an example is shown in which the average value of the motion vectors of a plurality of coding target blocks constituting a coding target picture is used as the global vector, but this is not necessarily limited to this.

[0096] For example, the global motion vector may be an intermediate value or a weighted average value of motion vectors of a plurality of blocks to be coded that constitute a current picture when the blocks are inter-predictively coded. Alternatively, the global motion vector may be a motion vector that appears most frequently among the motion vectors of a plurality of blocks to be coded that constitute a current picture when the blocks are inter-predictively coded. Alternatively, the global motion vector may be a motion vector that refers to the closest picture in display order among the motion vectors of a plurality of blocks to be coded that constitute a current picture when the blocks are inter-predictively coded.

[0097] Fig. 8A is a diagram showing a detailed processing flow of step S11 in Fig. 3. Fig. 8A will be described below.

[0098] First, the co-located information determination unit 117 determines whether or not to perform temporal motion vector prediction using the co-located block for the picture to be coded (S31). Then, the co-located information determination unit 117 generates a co-located use prohibition flag (or enable_temporal_mvp_flag) for each picture, which indicates whether or not the use of the co-located block is permitted (temporal motion vector prediction), and outputs the generated co-located use prohibition flag to the variable-length coding unit 118.

[0099] For example, in order to suppress the propagation of decoding errors due to temporal motion vector prediction during streaming distribution, etc., it is possible to turn on the co-located use prohibition flag at a certain interval. As an example of how to achieve this, a method is possible in which a counter is prepared to count the number of encoded pictures to be encoded, and if the number of encoded pictures is smaller than a certain threshold, the co-located use prohibition flag is set to off, and if the number of encoded pictures becomes equal to or greater than the threshold, the co-located use prohibition flag is set to on and the counter is reset to 0.

[0100] Also, for example, a method of suppressing the propagation of decoding errors may be considered, in which the co-located use prohibition flag is set to ON for pictures that can be referenced (e.g., P pictures and B pictures referenced from other pictures) and the co-located use prohibition flag is set to OFF for non-reference pictures that cannot be referenced (e.g., B pictures not referenced from other pictures). In this way, by setting the co-located use prohibition flag to ON for pictures referenced from other pictures, it is possible to effectively suppress the propagation of decoding errors.

[0101] Next, the co-located information determination unit 117 determines whether the co-located block is a forward reference block or a backward reference block (S32). For example, the co-located information determination unit 117 selects, as the co-located block, one of the co-located blocks (forward reference blocks) included in the forward reference picture and the co-located blocks (backward reference blocks) included in the backward reference picture, which is included in the picture closer to the coding target picture in display order. Then, the co-located information determination unit 117 generates a co-located reference direction flag indicating whether the co-located block is a forward reference block or a backward reference block, and a co-located reference picture index for specifying the co-located picture for each picture (or slice), and outputs the generated co-located reference direction flag and co-located reference picture index to the variable length coding unit 118.

[0102] Fig. 8B shows an example of a B-picture referenced by other pictures. In the example of Fig. 8B, a reference structure having multiple layers is defined. The first picture of the stream is set to an I-picture, and pictures other than the first I-picture are set to B-pictures. Furthermore, a picture belonging to a layer at a higher level among multiple layers refers to a picture belonging to a layer at the same level or a picture belonging to a layer at a lower level than that layer.

[0103] For example, in FIG. 8B, picture B1 belonging to layer 3 references picture I0 belonging to layer 0 and picture Br2 belonging to layer 2. Also, picture Bf8 belonging to layer 0, which has the lowest level, references picture I0 belonging to the same layer. Here, pictures belonging to layer 0, which has the lowest level, reference only pictures that are ahead in display order. In such a reference structure, it may be considered to turn on the co-located use prohibition flag for pictures belonging to layer 0, which are likely to be referenced by other pictures.

[0104] Fig. 9 is a detailed process flow of step S17 in Fig. 3. Fig. 9 will be described below.

[0105] First, the temporal motion vector predictor calculation unit 114 reads colPic information including a reference motion vector of a prediction direction 1 and a reference motion vector of a prediction direction 2 from the colPic memory 115 (S41). Next, the temporal motion vector predictor calculation unit 114 determines whether the co-located block included in the colPic information has two or more motion vectors (S42). That is, the temporal motion vector predictor calculation unit 114 determines whether the co-located block has a forward reference motion vector (mvL0) and a backward reference motion vector (mvL1).

[0106] When it is determined that the co-located block has two or more motion vectors (Yes in S42), the temporal motion vector predictor calculation unit 114 determines whether the co-located block is a backward reference block (S43). That is, the temporal motion vector predictor calculation unit 114 determines whether the picture including the co-located block is located after the current picture in display order.

[0107] Next, when it is determined that the co-located block is a backward reference block (Yes in S43), the temporal motion vector predictor calculation unit 114 derives a temporal motion vector predictor by temporal motion vector prediction using the forward reference motion vector of the co-located block (motion vector mvL0 for the reference picture in the reference picture list L0) (S44). Then, the temporal motion vector predictor calculation unit 114 adds the temporal motion vector predictor calculated in step S44 to the motion vector predictor candidates (S45).

[0108] On the other hand, if it is determined that the co-located block is a forward reference block (No in S43), the temporal predicted motion vector calculation unit 114 derives a temporal predicted motion vector by temporal motion vector prediction using the backward reference motion vector of the co-located block (motion vector mvL1 for the reference picture in the reference picture list L1) (S46), and adds the derived temporal predicted motion vector to the predicted motion vector candidates (S45).

[0109] On the other hand, when it is determined that the co-located block has only one of the forward reference motion vector and the backward reference motion vector (No in S42), the temporal motion vector predictor calculation unit 114 determines whether the co-located block has a forward reference motion vector (S47). When it is determined that the co-located block has a forward reference motion vector (Yes in S47), the temporal motion vector predictor calculation unit 114 derives a temporal motion vector predictor of the block to be coded using the forward reference motion vector of the co-located block (S48), and adds the derived temporal motion vector predictor to the motion vector predictor candidates (S45).

[0110] On the other hand, if it is determined that the co-located block does not have a forward reference motion vector (No in S47), the temporal motion vector predictor calculation unit 114 determines whether the co-located block has a backward reference motion vector (S49). If it is determined that the co-located block has a backward reference motion vector (Yes in S49), the temporal motion vector predictor calculation unit 114 uses the backward reference motion vector to derive a temporal motion vector predictor of the block to be coded (S50), and adds the derived temporal motion vector predictor to the motion vector predictor candidates (S45).

[0111] On the other hand, when it is determined that the co-located block does not have a backward reference motion vector (No in S49), the temporal motion vector predictor calculation unit 114 does not add the temporal motion vector predictor to the motion vector predictor candidates, and ends the process in Fig. 9 (S51). Alternatively, instead of the process of step S51, the temporal motion vector predictor calculation unit 114 may add a motion vector with a motion amount of 0 as the temporal motion vector predictor of the co-located block to the motion vector predictor candidates.

[0112] In the process flow of Fig. 9, the temporal motion vector predictor calculation unit 114 determines whether the co-located block has a forward reference motion vector in step S47, and determines whether the co-located block has a backward reference motion vector in step S49, but is not limited to this flow. For example, the temporal motion vector predictor calculation unit 114 may first determine whether the co-located block has a backward reference motion vector, and then determine whether the co-located block has a forward reference motion vector.

[0113] Fig. 10 is a detailed process flow of steps S13 and S14 in Fig. 3. Fig. 10 will be described below.

[0114] First, the temporal motion vector predictor calculation unit 114 reads at least one of the global motion vector information including the global motion vector of the prediction direction 1 and the global motion vector of the prediction direction 2 from the global vector storage unit 116 (S61). Next, the temporal motion vector predictor calculation unit 114 determines whether the global motion vector information has two or more motion vectors (S62). That is, the temporal motion vector predictor calculation unit 114 determines whether the forward reference motion vector (mvL0) and the backward reference motion vector (mvL1) are included in the global motion vector information.

[0115] When it is determined that the global motion vector information has two or more motion vectors (Yes in S62), the temporal motion vector predictor calculation unit 114 determines whether the co-located reference direction is a backward reference block (S63). When it is determined that the co-located reference direction is a backward reference block (Yes in S63), the temporal motion vector predictor calculation unit 114 selects a forward reference motion vector included in the global motion vector information (S64).

[0116] Then, the temporal motion vector predictor calculation unit 114 adds the selected global motion vector to header information such as a picture header (outputs it to the variable length coding unit 118), and adds it to the motion vector predictor candidates of the block to be coded (S65). Note that the temporal motion vector predictor calculation unit 114 adds information specifying the reference picture referred to by the selected global motion vector (more specifically, referred to by the multiple motion vectors used to calculate the global motion vector), to the header information. This information is used in the scaling process described later with reference to Figures 11A to 12B.

[0117] On the other hand, when it is determined that the co-located reference direction is a forward reference block (No in S63), the temporal motion vector predictor calculation unit 114 selects a backward reference motion vector included in the global motion vector information (S66). Then, the temporal motion vector predictor calculation unit 114 adds the selected global motion vector to header information such as a picture header, and adds it to the motion vector predictor candidates of the block to be coded (S65).

[0118] In addition, when it is determined that the overall motion vector information has only one of a forward reference motion vector and a backward reference motion vector (No in S62), the temporal predicted motion vector calculation unit 114 determines whether the overall motion vector information has a forward reference motion vector (S67).

[0119] When it is determined that the global motion vector information has a forward reference motion vector (Yes in S67), the temporal motion vector predictor calculation unit 114 selects the forward reference motion vector included in the global motion vector information (S68). Then, the temporal motion vector predictor calculation unit 114 adds the selected global motion vector to header information such as a picture header, and adds it to the motion vector predictor candidates of the block to be coded (S65).

[0120] On the other hand, when it is determined that the global motion vector information does not have a forward reference motion vector (No in S67), the temporal motion vector predictor calculation unit 114 determines whether or not the global motion vector information has a backward reference motion vector (S69). When it is determined that the global motion vector information has a backward reference motion vector (Yes in S69), the temporal motion vector predictor calculation unit 114 selects a backward reference motion vector included in the global motion vector information (S70). Then, the temporal motion vector predictor calculation unit 114 adds the selected global motion vector to header information such as a picture header, and adds it to the predicted motion vector candidates of the block to be coded (S65).

[0121] On the other hand, when it is determined that the global motion vector information does not have a backward reference motion vector (No in S69), the temporal motion vector predictor calculation unit 114 does not add the temporal motion vector predictor to the motion vector predictor candidates, or sets the global motion vector to 0 (S71). Then, the temporal motion vector predictor calculation unit 114 adds the set global motion vector to header information such as a picture header, and adds it to the motion vector predictor candidates of the block to be coded (S65).

[0122] In the process flow of Fig. 10, the temporal motion vector predictor calculation unit 114 determines whether the global motion vector has a forward reference motion vector in step S67, and determines whether the global motion vector has a backward reference motion vector in step S69, but the process is not limited to this flow. For example, the temporal motion vector predictor calculation unit 114 may first determine whether the global motion vector has a backward reference motion vector, and then determine whether the global motion vector has a forward reference motion vector.

[0123] Also, in step S63 to step S66 of FIG. 10, an example has been described in which the temporal motion vector predictor calculation unit 114 determines which of the global motion vectors mvL0 and mvL1 to select by the co-located reference direction flag, but the present invention is not limited thereto. For example, the temporal motion vector predictor calculation unit 114 may select the global motion vector mvL0 as a candidate for the motion vector predictor of the reference picture list L0, and may select the global motion vector mvL1 as a candidate for the motion vector predictor of the reference picture list L1. This makes it unnecessary to add the co-located reference direction flag to the header when the global motion vector is used, thereby further improving the coding efficiency.

[0124] Next, the scaling method when adding the temporal motion vector predictor to the motion vector predictor candidate will be described in detail.Note that, the scaling method when adding the global motion vector to the motion vector predictor candidate is common except that the global motion vector is used as input instead of the motion vector of the co-located block, so the description will be omitted.

[0125] Fig. 11A shows a method of deriving a predicted motion vector candidate (temporal predicted motion vector) by using forward reference motion vector when co-located block is a backward reference block and has forward reference motion vector and backward reference motion vector.Specifically, using forward reference motion vector, derive a predicted motion vector candidate (TemporalMV) by the following formula 4.

[0126] TemporalMV=mvL0×(B2-B0) / (B4-B0) (Formula 4)

[0127] Here, (B2-B0) indicates the time difference information of the display time between pictures B2 and B0. Similarly, (B4-B0) indicates the time difference information of the display time between pictures B4 and B0.

[0128] 11B shows a method of deriving a motion vector predictor candidate (temporal motion vector predictor) by temporal motion vector prediction using a backward reference motion vector. Specifically, a motion vector predictor candidate is derived by the following Equation 5 using the backward reference motion vector.

[0129] TemporalMV=mvL1×(B2-B0) / (B4-B8) (Equation 5)

[0130] Fig. 12A shows a method of deriving a predicted motion vector candidate (temporal predicted motion vector) by using backward reference motion vector prediction when co-located block is a forward reference block and has a forward reference motion vector and a backward reference motion vector.Specifically, using backward reference motion vector, a predicted motion vector candidate is derived by the following formula 6.

[0131] TemporalMV=mvL1×(B6-B8) / (B4-B8) (Equation 6)

[0132] 12B shows a method of deriving a motion vector predictor candidate (temporal motion vector predictor) by temporal motion vector prediction using a forward reference motion vector. A motion vector predictor candidate is derived by the following Equation 7 using a backward reference motion vector.

[0133] TemporalMV=mvL0×(B6-B8) / (B4-B0) (Equation 7)

[0134] In this manner, in the first embodiment, the video coding device 100 turns off temporal motion vector prediction using a motion vector for each coding unit of a reference picture at a certain interval, and instead adds an overall motion vector of the reference picture to the header information, and codes the motion vector of the coding target picture using the scaled overall vector. This makes it possible to prevent the propagation of decoding errors while suppressing a decrease in coding efficiency.

[0135] More specifically, when the co-located use prohibition flag is on, the video encoding device 100 adds the global vector read from the global vector storage unit 116 to the motion vector predictor candidate of the encoding target block, and attaches it to header information such as a picture header. This allows the video decoding device to decode the bit stream without a decoding error even if a reference picture is lost during decoding. In this way, error propagation is suppressed.

[0136] Furthermore, when the co-located use prohibition flag is off, the video encoding device 100 can select the optimal predicted motion vector for the encoding target block according to the co-located reference direction flag, thereby improving compression efficiency. In particular, when the co-located block is a forward reference block, the video encoding device 100 can reduce a prediction error by using a backward reference motion vector. The backward reference motion vector is a motion vector that points from a picture including the co-located block to a reference picture in the direction of the picture including the encoding target block, and is highly likely to be close to the optimal motion vector. Therefore, the prediction error is reduced.

[0137] On the other hand, the forward reference motion vector is a motion vector in the opposite direction from the picture including the co-located block to the picture including the coding target block, and the probability of the forward reference motion vector being close to the optimal motion vector is low. Therefore, the prediction error is large. Similarly, when the co-located block is the backward reference block, the forward reference motion vector is highly likely to be close to the optimal motion vector. Therefore, the prediction error is small.

[0138] In this embodiment 1, when a co-located block has two or more motion vectors, the video encoding device 100 switches the motion vector of the co-located block used to calculate the temporal prediction motion vector of the block to be encoded depending on whether the co-located block is a backward reference block or a forward reference block, but this is not limited to this.

[0139] For example, the video encoding device 100 may calculate a temporal prediction motion vector using a motion vector that refers to a reference picture that is temporally close to the picture that includes the co-located block (a motion vector with a short temporal distance). Here, the temporal distance is determined according to the number of pictures between the picture that includes the co-located block and the reference picture that the co-located block refers to, for example, in display order.

[0140] In addition, in the first embodiment, when the co-located block has two or more motion vectors, the video coding device 100 switches the motion vector of the co-located block used to calculate the temporal prediction motion vector of the coding target block depending on whether the co-located block is a backward reference block or a forward reference block, but is not limited to this. For example, the video coding device 100 may calculate the temporal prediction motion vector using the motion vector with the smaller magnitude among the two motion vectors of the co-located block. Here, the magnitude of the motion vector means the absolute value of the motion vector, etc.

[0141] In addition, in the first embodiment, when the co-located use prohibition flag is on, the video encoding device 100 adds the global vector read from the global vector storage unit 116 to the motion vector predictor candidate as an alternative vector of the temporal motion vector predictor, but is not limited to this. For example, the video encoding device 100 may always add a motion vector with a value of 0 as the global motion vector to the motion vector predictor candidate (i.e., add a motion vector with a motion amount of 0 to the motion vector predictor candidate as an alternative vector). In this case, the video encoding device 100 may not attach the global motion vector to header information or the like. Furthermore, when the co-located use prohibition flag is on, the video encoding device 100 may always not add the temporal motion vector predictor to the motion vector predictor candidate. By not adding the temporal motion vector predictor to the motion vector predictor candidate, it is possible to improve the coding efficiency.

[0142] In addition, in the first embodiment, the video coding device 100 adds the co-located use prohibition flag to all pictures, but may add the flag only to specific pictures. For example, the video coding device 100 adds the co-located use prohibition flag only to pictures referenced by other pictures (P pictures, B pictures referenced by other pictures, pictures belonging to the lowest level layer in a reference structure having multiple layers), and does not add the co-located use prohibition flag to pictures not referenced by other pictures. In this way, the video coding device 100 can suppress the propagation of decoding errors while improving the coding efficiency by adding the co-located use prohibition flag only to specific pictures.

[0143] In the first embodiment, the video encoding device 100 adds a co-located use prohibition flag to each picture, but the co-located use prohibition flag may be added to each slice composed of multiple blocks. By adding a co-located use prohibition flag to each slice, it is possible to improve the prediction accuracy of the global vector.

[0144] In addition, in the first embodiment, the video encoding device 100 adds the co-located use prohibition flag to all pictures, but may determine not to add the temporal prediction motion vector to the motion vector predictor candidate based on the picture type without adding the co-located use prohibition flag. For example, the video encoding device 100 may add the entire vector to the motion vector predictor candidate without adding the temporal prediction motion vector to the motion vector predictor candidate in a picture referenced by other pictures (P picture, B picture referenced by other pictures, picture belonging to the lowest level layer in a reference structure having multiple layers). In this way, by determining whether or not to add the temporal prediction motion vector to the motion vector predictor candidate based on the picture type, the co-located use prohibition flag can be omitted, and therefore it is possible to improve the coding efficiency.

[0145] Furthermore, when the video encoding device 100 does not include a temporal motion vector predictor in the motion vector predictor candidates, it is possible to improve encoding efficiency by not including an unnecessary flag in the bit stream. A specific example will be described with reference to Fig. 13. Fig. 13 is a detailed flow of S11 in Fig. 3, and is a diagram showing a modified example of the flow for determining co-located information.

[0146] First, the video encoding device 100 determines the value of the co-located use prohibition flag in the same manner as in Fig. 8A, and encodes the co-located use prohibition flag indicating the determined value (S101). Note that, here, an example will be described in which a flag (enable_temporal_mvp_flag) indicating whether or not to permit a temporal motion vector predictor using information on a co-located block is used as the co-located use prohibition flag.

[0147] Next, the video encoding device 100 determines whether enable_teporal_mvp_flag is 1 (S102). If enable_teporal_mvp_flag is 1 (Yes in S102), the video encoding device 100 determines the values ​​of the co-located reference direction flag and the co-located reference picture index in the same manner as in S32 of Fig. 8A, and encodes them (S103 and S104).

[0148] On the other hand, when enable_teporal_mvp_flag is 0 (No in S102), the video encoding device 100 does not encode the co-located reference direction flag and the co-located reference picture index. In this way, when the temporal motion vector predictor is not included in the motion vector predictor candidates (when enable_teporal_mvp_flag is 0), the video encoding device 100 does not add the unnecessary co-located reference direction flag and the co-located reference picture index to the bitstream. This allows the video encoding device 100 to improve encoding efficiency.

[0149] As described above, the video coding apparatus 100 according to this embodiment performs the video coding process shown in FIG.

[0150] The video encoding device 100 performs inter-prediction encoding of a current block included in a current picture using a motion vector.

[0151] First, the video encoding device 100 generates a first flag (co-located use prohibition flag) indicating whether or not temporal motion vector prediction using a temporal predicted motion vector, which is a motion vector of a block included in a coded picture other than the coding target picture, is used (whether or not temporal motion vector prediction is permitted or prohibited), and encodes the generated first flag (S111). In addition, the video encoding device 100 adds the encoded first flag to a bitstream.

[0152] Next, the video encoding device 100 determines whether the first flag indicates that temporal motion vector prediction is used (permitted) (S112).

[0153] If the first flag indicates that temporal motion vector prediction is used (enabled) (Yes in S112), the video encoding device 100 generates a first parameter for calculating a temporal motion vector predictor, and encodes the generated first parameter (S113). Then, the video encoding device 100 adds the encoded first parameter to a bitstream.

[0154] Specifically, the first parameter includes a parameter for identifying a coded picture (co-located picture) that is a reference target of the motion vector. More specifically, the first parameter includes a reference picture index (collocated_ref_idx) for identifying the coded picture (co-located picture) among a plurality of pictures indicated in a reference picture list used for coding the current picture. The first parameter also includes a flag (collocated_from_l0_flag) indicating which reference picture list is to be used to identify the coded picture (co-located picture) among a plurality of reference picture lists used for coding the current picture.

[0155] Here, each reference picture list indicates multiple reference pictures (coded pictures). In addition, in each reference picture list, the multiple reference pictures are indicated by reference picture indexes. The video coding device 100 selects a reference picture list indicated by the flag (collocated_from_l0_flag) from the multiple reference picture lists, and identifies a picture having the reference picture index (collocated_ref_idx) from the multiple reference pictures included in the selected reference picture list as the coded picture (co-located picture).

[0156] Next, the video encoding device 100 generates a temporal motion vector predictor using the first parameters, and derives a plurality of first motion vector predictor candidates including the generated temporal motion vector predictor (S114).

[0157] Next, the video encoding device 100 uses one of the multiple first motion vector predictor candidates to encode a motion vector used in inter-prediction encoding of the encoding target block (S115). Specifically, the video encoding device 100 selects a first motion vector predictor candidate that has the smallest difference from the motion vector used in inter-prediction encoding of the encoding target block among the multiple first motion vector predictor candidates, and encodes the motion vector using the selected first motion vector predictor candidate. More specifically, the video encoding device 100 encodes the difference between the selected first motion vector predictor candidate and the motion vector.

[0158] Furthermore, the video coding device 100 codes the current block by inter coding using the motion vector, and then adds the coded motion vector (difference) and the current block to a bit stream.

[0159] On the other hand, if the first flag indicates that temporal motion vector prediction is not used (prohibited) (No in S112), the video encoding device 100 does not encode the first parameter (S116). That is, the video encoding device 100 does not generate the first flag. Furthermore, the video encoding device 100 does not add the first flag to the bitstream.

[0160] Furthermore, the video encoding device 100 derives a plurality of second motion vector predictor candidates that do not include a temporal motion vector predictor (S117).

[0161] Next, the video encoding device 100 encodes a motion vector used in inter-prediction encoding of the encoding target block by using one of the second motion vector predictor candidates (S118). Note that a specific example of this process is similar to the process in the above step S115 in which the first motion vector predictor candidates are replaced with the second motion vector predictor candidates.

[0162] It should be noted that step S111 above is executed by a flag coding unit included in the video coding device 100. Steps S113 and S116 are executed by a parameter coding unit included in the video coding device 100. Steps S114 and S117 are executed by a candidate derivation unit included in the video coding device 100. Steps S115 and S118 are executed by a motion vector coding unit included in the video coding device 100.

[0163] Here, the function of the flag coding unit is realized by, for example, the co-located information determination unit 117 and the variable length coding unit 118 shown in Fig. 2. Also, the function of the parameter coding unit is realized by the co-located information determination unit 117 and the variable length coding unit 118 shown in Fig. 2. The function of the candidate derivation unit is realized by the inter prediction control unit 112 and the temporal predicted motion vector calculation unit 114 shown in Fig. 2. The function of the motion vector coding unit is realized by the subtraction unit 101, the inter prediction unit 110, the inter prediction control unit 112, the variable length coding unit 118, etc. shown in Fig. 2.

[0164] Furthermore, the first flag (co-located use prohibition flag) and the first parameters (collocated_from_l0_flag and collocated_ref_idx) are generated and coded for each picture or slice. That is, the first flag and the first parameters are included in the picture header or slice header of the bit stream. Note that the first flag and the first parameters may be generated for different units (pictures or slices). For example, the first flag may be generated for each picture, and the first parameters may be generated for each slice.

[0165] Furthermore, at least one of the first flag and the first parameter may be generated and coded for each set of pictures, that is, at least one of the first flag and the first parameter may be included in a PPS (Picture Parameter Set) or an SPS (Sequence Parameter Set) of the bitstream.

[0166] Furthermore, the first flag may be included hierarchically in a plurality of units among the units of a slice, a picture, and a plurality of pictures (sequences). For example, the video coding device 100 generates, for each picture, a first flag indicating whether or not temporal motion vector prediction is used in the picture. Furthermore, when the first flag indicates that temporal motion vector prediction is used, the video coding device 100 further generates, for each slice included in the picture, a second flag indicating whether or not temporal motion vector prediction is used in the slice. On the other hand, when the first flag indicates that temporal motion vector prediction cannot be used, the video coding device 100 does not generate a second flag for each slice. Note that the video coding device 100 may generate a second flag for each slice included in the picture only when the first flag indicates that temporal motion vector prediction is not used. Furthermore, the video coding device 100 may generate the first flag for each plurality of pictures, and generate the second flag for each picture or each slice.

[0167] (Embodiment 2) In this embodiment, a video decoding device 200 that decodes a bitstream generated by the video encoding device 100 will be described.

[0168] FIG. 15 is a block diagram showing a configuration of a video decoding device 200 that uses a video decoding method according to the second embodiment.

[0169] In the second embodiment, a block included in a picture (a reference picture specified by the reference picture list L0) located before the current picture in display order is called a forward reference block, and a block included in a picture (a reference picture specified by the reference picture list L1) located after the current picture in display order is called a backward reference block.

[0170] As shown in FIG. 15, the video decoding device 200 includes a variable length decoding unit 201, an inverse quantization unit 202, an inverse orthogonal transformation unit 203, an addition unit 204, a block memory 205, a frame memory 206, an intra prediction unit 207, an inter prediction unit 208, a switch 209, an inter prediction control unit 210, a temporal prediction motion vector calculation unit 211, and a colPic memory 212.

[0171] The variable length decoding unit 201 obtains picture type information, a predicted motion vector index, a co-located use prohibition flag (or enable_temporal_mvp_flag), a co-located reference direction flag (collocated_from_l0_flag), a co-located reference picture index (collocated_ref_idx), a global motion vector, and a quantization coefficient by variable length decoding the input bit stream. The variable length decoding unit 201 outputs the picture type information to the switch 209 and the inter prediction control unit 210, outputs the predicted motion vector index to the inter prediction control unit 210, outputs the co-located use prohibition flag (or enable_temporal_mvp_flag), the co-located reference direction flag (collocated_from_l0_flag), the co-located reference picture index (collocated_ref_idx), and the global motion vector to the temporal predicted motion vector calculation unit 211, and outputs the quantization coefficient to the inverse quantization unit 202.

[0172] The inverse quantization unit 202 restores transform coefficients by inverse quantizing the quantized coefficients acquired from the variable length decoding unit 201, and outputs the restored transform coefficients to the inverse orthogonal transformation unit 203. The inverse orthogonal transformation unit 203 restores a residual block by transforming the restored transform coefficients acquired from the inverse quantization unit 202 from the frequency domain to the image domain, and outputs the restored residual block to the addition unit 204.

[0173] The adder 204 reconstructs a decoded block by adding the reconstructed residual block obtained from the inverse orthogonal transform unit 203 and the predicted block obtained from the switch 209. Then, the adder 204 outputs a decoded image sequence including this reconstructed decoded block to outside the device, and also stores the decoded image sequence in the block memory 205 and the frame memory 206.

[0174] The block memory 205 stores the decoded image sequence obtained from the adder 204 in units of blocks. The frame memory 206 stores the decoded image sequence obtained from the adder 204 in units of frames.

[0175] The intra prediction unit 207 generates a predicted block of a block to be decoded by performing intra prediction using a sequence of decoded images in block units stored in the block memory 205, and outputs the generated predicted block to the switch 209. The inter prediction unit 208 generates a predicted block of a block to be decoded by performing inter prediction using a sequence of decoded images in frame units stored in the frame memory 206, and outputs the generated predicted block to the switch 209. The switch 209 outputs the predicted block generated by the intra prediction unit 207 or the predicted block generated by the inter prediction unit 208 to the adder 204.

[0176] When the co-located use prohibition flag acquired from the variable length decoding unit 201 is off, the temporal motion vector predictor calculation unit 211 derives a motion vector predictor candidate (temporal motion vector predictor) for temporal motion vector prediction using colPic information such as the motion vector of the co-located block stored in the colPic memory 212. On the other hand, when the co-located use prohibition flag is on, the temporal motion vector predictor calculation unit 211 adds the entire motion vector acquired from the variable length decoding unit 201 to the motion vector predictor candidate.

[0177] Furthermore, the temporal motion vector predictor calculation unit 211 assigns a motion vector predictor index to the motion vector predictor added to the candidates. Then, the temporal motion vector predictor calculation unit 211 outputs the motion vector predictor and the motion vector predictor index to the inter prediction control unit 210.

[0178] In addition, if the co-located block does not have a motion vector, the temporal predicted motion vector calculation unit 211 may stop deriving a motion vector by temporal motion vector prediction, or may add a motion vector with a motion amount of 0 to the predicted motion vector candidates.

[0179] The inter prediction control unit 210 identifies a predicted motion vector corresponding to the predicted motion vector index acquired from the variable length decoding unit 201 from among a plurality of predicted motion vector candidates. The inter prediction control unit 210 then calculates a motion vector to be used during inter prediction by adding error information between the motion vector and the predicted motion vector to the identified predicted motion vector. The inter prediction control unit 210 also stores colPic information including the motion vector of the block to be decoded, etc., in the colPic memory 212.

[0180] FIG. 16 shows an outline of a process flow of the video decoding method according to the second embodiment.

[0181] First, the variable length decoding unit 201 decodes the co-located use prohibition flag on a picture-by-picture basis (S81). Next, the variable length decoding unit 201 determines whether the co-located use prohibition flag is off or not (S82). If the co-located use prohibition flag is off (Yes in S82), the variable length decoding unit 201 decodes the co-located reference direction flag and the co-located reference picture index (collocated_ref_idx) on a picture-by-picture basis (S83). Then, the variable length decoding unit 201 outputs the decoded co-located use prohibition flag, the co-located reference direction flag, and the co-located reference picture index to the temporal predictive motion vector calculation unit 211.

[0182] Next, in a manner similar to that of Figure 9, the temporal predictor motion vector calculation unit 211 reads colPic information including the reference motion vector of the co-located block from the colPic memory 212 according to the co-located information, generates a temporal predictor motion vector using the reference motion vector of the co-located block, and adds the generated temporal predictor motion vector to the predictor motion vector candidates (S84).

[0183] On the other hand, if the co-located use prohibition flag is on (No in S82), the temporal predicted motion vector calculation unit 211 obtains the overall motion vector stored in header information such as a picture header from the variable length decoding unit 201, and adds the obtained overall motion vector to the predicted motion vector candidates (S87).

[0184] Next, the inter prediction control unit 210 selects a predicted motion vector corresponding to the decoded predicted motion vector index from among a plurality of predicted motion vector candidates (S85). The inter prediction control unit 210 also derives a motion vector by adding prediction error information to the selected predicted motion vector, and outputs the derived motion vector to the inter prediction unit 208. The inter prediction unit 208 then generates a predicted block of the current block by inter prediction using the derived motion vector.

[0185] Next, the inter prediction control unit 210 saves colPic information including the motion vector used in the inter prediction in the colPic memory 212 (S86). The colPic memory 212 stores the motion vector of the reference picture, the reference picture index value, the prediction direction, and the like in order to calculate the temporal prediction motion vector of the block to be decoded.

[0186] In addition, when a reference block has two or more reference motion vectors, the method of selecting a reference motion vector for calculating a temporal predicted motion vector is not limited to the method based on the co-located block reference direction flag. For example, the video decoding device 200 may calculate the temporal distance of the reference motion vector and use a reference motion vector with a short temporal distance. Here, the temporal distance is calculated based on the number of pictures between a reference picture including the reference block and a picture referenced by the reference picture in display time. Also, for example, the video decoding device 200 may calculate the magnitude of the reference motion vector and use a motion vector derived using a reference motion vector with a small magnitude as a temporal predicted motion vector.

[0187] Fig. 17 is an example of the syntax of a bitstream in the video decoding method according to embodiment 2. In Fig. 17, forbid_collocated_flag represents a co-located use prohibition flag, tmv_x represents a horizontal component of the global motion vector, tmv_y represents a vertical component of the global motion vector, and collocated_from_l0_flag represents a co-located reference direction flag.

[0188] As shown in FIG. 17, when the co-located use prohibition flag (forbid_collocated_flag) is 1, the global motion vector (tmv_x, tmv_y) is attached to the bitstream and added to the motion vector predictor candidates.

[0189] In addition, when the co-located use prohibition flag (forbid_collocated_flag) is 0, the co-located reference direction flag (collocated_from_l0_flag) is attached to the bit stream. Then, the co-located block is determined according to the co-located reference direction flag, and the temporal prediction motion vector is calculated using the reference motion vector of the co-located block. Note that, here, when collocated_from_l0_flag is 1, it indicates that the co-located block is a forward reference block, and when it is 0, it indicates that the co-located block is a backward reference block, but is not necessarily limited to this.

[0190] In the second embodiment, the video decoding device 200 uses the global motion vector decoded from the header information or the like when the co-located use prohibition flag is on, but may always add a global motion vector with a value of 0 to the motion vector predictor candidate in accordance with the encoding method. In this case, since the global motion vector is not attached to the header information or the like, the decoding process is omitted. In addition, the video decoding device 200 may always not add the temporal motion vector predictor to the motion vector predictor candidate when the co-located use prohibition flag is on.

[0191] In this way, in the first and second embodiments, the video coding device 100 turns off temporal motion vector prediction using the motion vector for each unit of coding processing of the reference picture at a certain interval, and instead adds the entire motion vector of the reference picture to the header information. Then, the video coding device 100 uses this to code the motion vector of the picture to be coded, thereby generating a bitstream that prevents the propagation of decoding errors while suppressing a decrease in coding efficiency. Moreover, the video decoding device 200 can appropriately decode the bitstream generated in this way.

[0192] More specifically, when the co-located use prohibition flag is on, the video encoding device 100 adds the global vector read from the global vector storage unit 116 to the motion vector predictor candidates of the encoding target block, and attaches it to header information such as a picture header. This allows the video decoding device 200 to decode the bitstream without decoding errors even if a reference picture is lost during decoding. In this way, the video decoding device 200 can appropriately decode a bitstream in which error propagation is suppressed.

[0193] In addition, when the co-located use prohibition flag is off, the video decoding device 200 becomes able to appropriately decode a bitstream in which the optimal predicted motion vector for the current block to be coded is selected according to the co-located reference direction flag.

[0194] In the first and second embodiments, the video encoding device 100 uses the global vector read from the global vector storage unit 116 when the co-located use prohibition flag is on, but may always add a global motion vector with a value of 0 to the motion vector predictor candidates. Also, the video encoding device 100 may always avoid adding a temporal motion vector predictor to the motion vector predictor candidates when the co-located use prohibition flag is on. With this configuration, it is possible to reduce the decoding process in the video decoding device 200.

[0195] In addition, in the second embodiment, the video decoding device 200 decodes the co-located use prohibition flags of all pictures, but may decode only the co-located use prohibition flags of a specific picture. For example, the video decoding device 200 decodes only the co-located use prohibition flags of pictures referenced by other pictures (P pictures, B pictures referenced by other pictures, pictures belonging to the lowest layer in a reference structure having multiple layers), and does not decode the co-located use prohibition flags of pictures not referenced by other pictures. In this way, by decoding only the co-located use prohibition flags of a specific picture, it is possible to reduce the decoding process and suppress the decoding error propagation.

[0196] In the second embodiment, the video decoding device 200 decodes the co-located use prohibition flag for each picture, but may decode the co-located use prohibition flag for each slice composed of multiple blocks. By decoding the co-located use prohibition flag for each slice, it is possible to improve the prediction accuracy of the global vector.

[0197] In addition, in the second embodiment, the video decoding device 200 decodes the co-located use prohibition flags of all pictures, but may not add a temporal prediction motion vector to a motion vector predictor candidate based on the picture type. For example, the video decoding device 200 may add a global motion vector to a motion vector predictor candidate without adding a temporal prediction motion vector to a picture referenced by other pictures (P picture, B picture referenced by other pictures, picture belonging to the lowest level layer in a reference structure having multiple layers). In this way, by determining whether to add a temporal prediction motion vector or a global motion vector to a motion vector predictor candidate based on the picture type, it is possible to improve coding efficiency while reducing the decoding process.

[0198] Furthermore, when the temporal motion vector predictor is not included in the motion vector predictor candidates, the video encoding device 100 does not include an unnecessary flag in the bit stream, thereby generating a bit stream with improved encoding efficiency. Furthermore, the video decoding device 200 can appropriately decode this bit stream. A specific example will be described with reference to Fig. 18. Fig. 18 is a diagram showing a modified example of a flow for decoding co-located information.

[0199] First, the video decoding device 200 decodes the co-located use prohibition flag (S201). Note that, here, an example will be described in which a flag (enable_temporal_mvp_flag) indicating whether or not to permit a temporal motion vector predictor using information on a co-located block is decoded.

[0200] Next, the video decoding apparatus 200 determines whether or not enable_teporal_mvp_flag is 1 (S202). If enable_teporal_mvp_flag is 1 (Yes in S202), the video decoding apparatus 200 decodes the co-located reference direction flag and the co-located reference picture index (S203 and S204).

[0201] On the other hand, when enable_teporal_mvp_flag is 0 (No in S202), the video decoding device 200 does not decode the co-located reference direction flag and the co-located reference picture index. In this way, when the temporal predictor motion vector is not included in the predictor motion vector candidates (when enable_teporal_mvp_flag is 0), the video encoding device 100 can generate a bitstream with improved encoding efficiency by not adding the unnecessary co-located reference direction flag and the co-located reference picture index to the bitstream. Furthermore, the video decoding device 200 can appropriately decode this bitstream.

[0202] Figures 19A and 19B are figures showing an example syntax when a co-located use prohibition flag (enable_temporal_mvp_flag) indicating whether or not a temporal prediction motion vector using information of a co-located block is allowed is added to a PPS (Picture Parameter Set), and a co-located reference direction flag (collocated_from_l0_flag) and a co-located reference picture index (collocated_ref_idx) are added to a slice header.

[0203] When the value of the co-located use prohibition flag is 1, calculation of a temporal motion vector predictor is permitted using co-located information. When the value of the co-located use prohibition flag is 0, calculation of a temporal motion vector predictor is prohibited using co-located information.

[0204] When the value of the co-located reference direction flag is 1, a co-located picture is selected from the reference picture list of the prediction direction 1. When the value of the co-located reference direction flag is 0, a co-located picture is selected from the reference picture list of the prediction direction 1.

[0205] Of the multiple pictures included in the reference picture list determined according to the value of collocated_from_l0_flag, a picture whose reference picture index is collocated_ref_idx is selected as the co-located picture.

[0206] Figure 20 also shows an example syntax when a co-located use prohibition flag (enable_temporal_mvp_flag), a co-located reference direction flag (collocated_from_l0_flag), and a co-located reference picture index (collocated_ref_idx), which indicate whether or not a temporal prediction motion vector using information about a co-located block is allowed, are all added to the slice header.

[0207] As shown in Figures 19B and 20, when the value of enable_temporal_mvp_flag is 0, collocated_from_l0_flag and collocated_ref_idx are not added to the bitstream.

[0208] As described above, the video decoding device 200 according to this embodiment performs the video decoding process shown in FIG.

[0209] The video decoding device 200 performs inter-prediction decoding on a current block included in a current picture, using a motion vector.

[0210] First, the video decoding device 200 decodes a first flag (co-located use prohibition flag) indicating whether or not temporal motion vector prediction using a temporal predicted motion vector, which is a motion vector of a block included in a decoded picture other than the current picture, is used (whether or not temporal motion vector prediction is permitted or prohibited) (S211). That is, the video decoding device 200 obtains the coded first flag from the bit stream, and obtains the first flag by decoding the coded first flag.

[0211] Next, the video decoding device 200 determines whether or not the first flag indicates that temporal motion vector prediction is used (enabled) (S212).

[0212] When the first flag indicates that the temporal motion vector prediction is used (permitted) (Yes in S212), the video decoding device 200 decodes a first parameter for calculating a temporal motion vector predictor (S213). Specifically, the video decoding device 200 obtains the first parameter by obtaining the coded first parameter from the bit stream and decoding the obtained coded first parameter. The first parameter includes a parameter for identifying a decoded picture (co-located picture) that is a reference target of the motion vector. More specifically, the first parameter includes a reference picture index (collocated_ref_idx) for identifying the decoded picture (co-located picture) among a plurality of pictures indicated in a reference picture list used to decode the current picture. In addition, the first parameter includes a flag (collocated_from_l0_flag) indicating which reference picture list is to be used to identify the decoded picture (co-located picture) among a plurality of reference picture lists used to decode the current picture.

[0213] Next, the video decoding device 200 determines a temporal motion vector predictor using the first parameter, and derives a plurality of first motion vector predictor candidates including the determined temporal motion vector predictor (S214).

[0214] Next, the video decoding device 200 decodes a motion vector used in inter-prediction decoding of the current block by using one of the first motion vector predictor candidates (S215). Specifically, the video decoding device 200 acquires an encoded motion vector (difference value) from a bit stream. Then, the video decoding device 200 generates a motion vector difference value by decoding the encoded motion vector (difference value). Next, a motion vector is generated by using one of the first motion vector predictor candidates and the motion vector difference value.

[0215] Furthermore, the video decoding device 200 decodes the current block by inter-decoding using the motion vector. Specifically, the video decoding device 200 acquires the coded current block (difference value) from the bit stream. Then, the video decoding device 200 generates the difference value of the current block by decoding the coded current block (difference value). Next, the video decoding device 200 reconstructs the current block using the motion vector and the difference value of the current block.

[0216] On the other hand, if the first flag indicates that temporal motion vector prediction is not used (prohibited) (No in S212), the video decoding device 200 does not decode the first parameter (S216). That is, the video decoding device 200 does not obtain the first parameter from the bitstream.

[0217] Next, the video decoding device 200 derives a plurality of second motion vector predictor candidates that do not include a temporal motion vector predictor (S217).

[0218] Next, the video decoding device 200 uses one of the second motion vector predictor candidates to inter-decode the current block included in the current picture (S218). Note that a specific example of this process is similar to the process in the above step S215 in which the first motion vector predictor candidates are replaced with the second motion vector predictor candidates.

[0219] It should be noted that step S211 above is executed by a flag decoding unit included in the video decoding device 200. Furthermore, steps S213 and S216 are executed by a parameter decoding unit included in the video decoding device 200. Steps S214 and S217 are executed by a candidate derivation unit included in the video decoding device 200. Steps S215 and S218 are executed by a motion vector decoding unit included in the video decoding device 200.

[0220] Here, the function of the flag decoding unit is realized by, for example, the variable length decoding unit 201 shown in Fig. 15, etc. Also, the function of the parameter decoding unit is realized by the variable length decoding unit 201 shown in Fig. 15, etc. The function of the candidate derivation unit is realized by the inter prediction control unit 210 and the temporal predictor motion vector calculation unit 211 shown in Fig. 15. The function of the motion vector decoding unit is realized by the variable length decoding unit 201, inter prediction unit 208, inter prediction control unit 210, etc. shown in Fig. 15.

[0221] (Modification) Next, a video coding device 300 according to a modification of the first embodiment will be described with reference to Fig. 22. Fig. 22 is a block diagram of a video coding device 300 according to a modification of the first embodiment. Note that a detailed description of commonalities with the first embodiment will be omitted, and differences will be mainly described.

[0222] As shown in Fig. 22, the video encoding device 300 includes a first encoding unit 310 that generates a base bitstream by encoding a base view, and a second encoding unit 320 that generates a dependent bitstream by encoding a dependent view. Note that Fig. 22 shows an example in which the video encoding device 300 outputs the base bitstream and the dependent bitstream as independent streams, but the present invention is not limited to this, and the video encoding device 300 may output a single bitstream in which the base bitstream and the dependent bitstream are combined.

[0223] The basic configuration of the first encoding unit 310 and the second encoding unit 320 is the same as that of the video encoding device 100 shown in Fig. 2. However, the second encoding unit 320 has a function of referring to the frame memory 108 of the first encoding unit 310, in addition to the functions of the video encoding device 100.

[0224] Next, a video coding method according to a modification of the first embodiment will be described with reference to Figures 23 and 24. Figure 23 is a flowchart showing the operation of the video coding method according to the modification of the first embodiment. Figure 24 is a diagram showing examples of pictures belonging to a base view and a dependent view.

[0225] The basic view is a set of multiple pictures I, as shown in FIG. 11 , P 12 , P 13 , P 14 , I 15 , P 16 , P 17 In addition, the first picture I of a GOP (Group Of Pictures) among the pictures belonging to the basic view is included. 11 , I 15 is an I-picture, and the other pictures P 12 , P 13 , P 14 , P 16 , P 17 is a P picture. Note that the base view is coded and decoded by referring to only pictures belonging to the base view (that is, by intra-prediction coding or inter-prediction coding).

[0226] Also, the dependent view may be a set of multiple pictures P 21 , P 22 , P 23 , P 24 , P 25 , P 26 , P 27 In addition, all pictures P 21 , P 22 , P 23 , P 24 , P 25 , P 26 , P 27 is a P picture. Note that the dependent view is coded and decoded by referring to a picture that belongs to the base view and corresponds to the picture to be processed, in addition to pictures that belong to the dependent view (i.e., inter-view predictive coding).

[0227] Also, the base view and the dependent view are images of an object viewed from different viewpoints. That is, the corresponding pictures (pictures with the same time stamp) of the base view and the dependent view have horizontal disparity. The second encoding unit 320 can encode each picture belonging to the dependent view by using an image corresponding to the picture to be processed belonging to the base view as a reference picture. Hereinafter, the operation of the temporal motion vector predictor calculation unit 114 of the second encoding unit 320 will be described with reference to FIG. 23.

[0228] First, the temporal motion vector predictor calculation unit 114 determines whether or not a temporal motion vector predictor can be acquired when encoding a current block (S91). If the temporal motion vector predictor cannot be acquired (Yes in S91), the temporal motion vector predictor calculation unit 114 includes a disparity vector, which will be described later, in a motion vector predictor candidate (S92). On the other hand, if the temporal motion vector predictor can be acquired (No in S91), the temporal motion vector predictor calculation unit 114 includes the temporal motion vector predictor in a motion vector predictor candidate (S93).

[0229] Here, the case where the temporal motion vector predictor cannot be obtained is, for example, when the coding target block is a picture P 21 , P 25 The first picture of a GOP is P 21 , P 25 cannot refer to any picture that precedes it in display order. That is, if the coding order and display order are the same, then picture P 21 , P 25 can only refer to the corresponding picture I of the base view. 11 , I 15 Only.

[0230] However, Picture I 11 , I 15Since the image is an I-picture, there is no motion vector information. In this case, the temporal motion vector predictor calculation unit 114 includes the disparity vector stored in the global vector storage unit 116 in the motion vector predictor candidate as an alternative vector for the temporal motion vector predictor, and includes the disparity vector in the header information of the dependent bitstream.

[0231] Here, the disparity vector is a vector corresponding to the disparity between the base view and the dependent view. Specifically, the inter prediction control unit 112 of the second encoding unit 320 outputs a motion vector when each block constituting the encoding target picture of the dependent view is subjected to inter-view prediction encoding (i.e., a motion vector when encoding using the corresponding picture of the base view as a reference picture) to the global vector storage unit 116. Then, the global vector storage unit 116 stores the average value, median value, mode value, etc. of the motion vectors acquired from the inter prediction control unit 112 in units of pictures as a disparity vector.

[0232] In step S92 of FIG. 23, the temporal prediction motion vector calculation unit 114 calculates the picture P 25 As the disparity vector of picture P 25 The first picture P of the GOP immediately preceding the GOP to which 21 The disparity vector calculated by (picture I 11 Alternatively, the disparity vector using the immediately preceding coded picture P 24 The disparity vector calculated by (picture P 14 A disparity vector with respect to the reference picture may be selected.

[0233] In addition, in step S91 of Fig. 23, a specific example of a case where a temporal motion vector predictor cannot be acquired is not limited to the above example, and may be a case where a co-located use prohibition flag of a picture to be coded is on. The co-located use prohibition flag is the same as that in the first embodiment, and therefore will not be described again.

[0234] In this way, the present invention can also be applied to the case of encoding base views and dependent views constituting a multi-view video. That is, by switching whether to include a temporal prediction motion vector or a disparity vector, which is an alternative vector for the temporal prediction motion vector, in the prediction motion vector candidate when encoding a picture to be encoded that belongs to a dependent view, it is possible to prevent the propagation of a decoding error while suppressing a decrease in encoding efficiency.

[0235] Next, a video decoding device 400 according to a variation of the second embodiment will be described with reference to Fig. 25. Fig. 25 is a block diagram of the video decoding device 400 according to the variation of the second embodiment. Note that a detailed description of commonalities with the second embodiment will be omitted, and differences will be mainly described.

[0236] As shown in Fig. 25, the video decoding device 400 includes a first decoding unit 410 that generates a base view by decoding a base bitstream, and a second decoding unit 420 that generates a dependent view by decoding a dependent bitstream. Note that Fig. 25 shows an example in which an independent base bitstream and a dependent bitstream are separately input to the video decoding device 400, but the present invention is not limited to this. A single bitstream combining the base bitstream and the dependent bitstream may be input, and may be divided into the base bitstream and the dependent bitstream inside the video decoding device 400.

[0237] The basic configuration of the first decoding unit 410 and the second decoding unit 420 is the same as that of the video decoding device 200 shown in Fig. 15. However, the second decoding unit 420 has a function of referring to the frame memory 206 of the first decoding unit 410, etc., in addition to the functions of the video decoding device 200. That is, the video decoding device 400 decodes the base bitstream and dependent bitstream coded by the video coding device 300.

[0238] The second decoding unit 420 of the video decoding device 400 can switch between including the temporal motion vector predictor stored in the colPic memory 212 and including the disparity vector included in the header information of the dependent bitstream as one of the motion vector predictor candidates of the block to be decoded. Note that the operation of the temporal motion vector predictor calculation unit 211 included in the second decoding unit 420 is the same as the process of FIG. 23.

[0239] Although the video encoding device and the video decoding device according to the embodiment have been described above, the present invention is not limited to these embodiments.

[0240] Furthermore, each processing unit included in the video encoding device and video decoding device according to the above-mentioned embodiments is typically realized as an LSI, which is an integrated circuit. These may be individually implemented as single chips, or some or all of them may be included in a single chip.

[0241] The integrated circuit is not limited to an LSI, but may be realized by a dedicated circuit or a general-purpose processor. A field programmable gate array (FPGA) that can be programmed after the LSI is manufactured, or a reconfigurable processor that can reconfigure the connections and settings of the circuit cells inside the LSI may also be used.

[0242] In each of the above embodiments, each component may be configured with dedicated hardware, or may be realized by executing a software program suitable for each component. Each component may be realized by a program execution unit such as a CPU or a processor reading and executing a software program recorded on a recording medium such as a hard disk or a semiconductor memory.

[0243] In other words, the video encoding device and the video decoding device include a control circuitry and a storage electrically connected to the control circuitry (accessible from the control device). The control circuitry includes at least one of dedicated hardware and a program execution unit. In addition, when the control circuitry includes a program execution unit, the storage unit stores a software program executed by the program execution unit.

[0244] Furthermore, the present invention may be the above-mentioned software program, or a non-transitory computer-readable recording medium on which the above-mentioned program is recorded. Needless to say, the above-mentioned program can be distributed via a transmission medium such as the Internet.

[0245] Furthermore, all the numbers used above are merely examples for the purpose of specifically explaining the present invention, and the present invention is not limited to the numbers exemplified.

[0246] In addition, the division of functional blocks in the block diagram is an example, and multiple functional blocks may be realized as one functional block, one functional block may be divided into multiple blocks, or some functions may be transferred to another functional block. Furthermore, the functions of multiple functional blocks having similar functions may be processed in parallel or in a time-sharing manner by a single piece of hardware or software.

[0247] The order in which the steps included in the above video encoding method or video decoding method are executed is merely an example for specifically explaining the present invention, and the steps may be executed in an order other than the above. Also, some of the steps may be executed simultaneously (in parallel) with other steps.

[0248] Although the video encoding device and video decoding device according to one or more aspects of the present invention have been described based on the embodiments, the present invention is not limited to these embodiments. As long as they do not deviate from the spirit of the present invention, various modifications conceived by those skilled in the art to the present embodiments and configurations constructed by combining components of different embodiments may also be included within the scope of one or more aspects of the present invention.

[0249] (Embodiment 3) By recording a program for implementing the configuration of the video coding method (image coding method) or video decoding method (image decoding method) shown in each of the above embodiments on a storage medium, it becomes possible to easily implement the processes shown in each of the above embodiments on an independent computer system. The storage medium may be a magnetic disk, an optical disk, a magneto-optical disk, an IC card, a semiconductor memory, or any other medium capable of recording a program.

[0250] Further, here, application examples of the video coding method (image coding method) and video decoding method (image decoding method) shown in each of the above embodiments and a system using the same will be described. The system is characterized by having an image coding / decoding device consisting of an image coding device using the image coding method and an image decoding device using the image decoding method. Other components of the system can be appropriately changed depending on the case.

[0251] 26 is a diagram showing the overall configuration of a content supply system ex100 that realizes a content distribution service. The area where communication services are provided is divided into cells of a desired size, and base stations ex106, ex107, ex108, ex109, and ex110, which are fixed wireless stations, are installed in each cell.

[0252] This content supply system ex100 is connected to the Internet ex101 via an Internet service provider ex102, a telephone network ex104, and base stations ex106 to ex110, and devices such as a computer ex111, a PDA (Personal Digital Assistant) ex112, a camera ex113, a mobile phone ex114, and a game console ex115.

[0253] However, the content supply system ex100 is not limited to the configuration shown in Fig. 26, and any combination of elements may be connected. Also, each device may be directly connected to the telephone network ex104 without going through the base stations ex106 to ex110, which are fixed wireless stations. Also, each device may be directly connected to each other via short-distance wireless or the like.

[0254] The camera ex113 is a device capable of shooting moving images, such as a digital video camera, and the camera ex116 is a device capable of shooting still images and moving images, such as a digital camera. The mobile phone ex114 may be any of the following: a GSM (registered trademark) (Global System for Mobile Communications) type, a CDMA (Code Division Multiple Access) type, a W-CDMA (Wideband-Code Division Multiple Access) type, a LTE (Long Term Evolution) type, a HSPA (High Speed ​​Packet Access) mobile phone, or a PHS (Personal Handyphone System).

[0255] In the content supply system ex100, a camera ex113 and the like are connected to a streaming server ex103 through a base station ex109 and a telephone network ex104, thereby enabling live distribution and the like. In live distribution, a user performs encoding processing on content (e.g., a video of a live music performance, etc.) shot by the camera ex113 as described in each of the above embodiments (i.e., functions as an image encoding device according to an aspect of the present invention) and transmits the content to the streaming server ex103. Meanwhile, the streaming server ex103 streams the transmitted content data to a client that has made a request. Examples of the clients include a computer ex111, a PDA ex112, a camera ex113, a mobile phone ex114, a game machine ex115, and the like that are capable of decoding the encoded data. Each device that receives the distributed data decodes the received data and plays it back (i.e., functions as an image decoding device according to an aspect of the present invention).

[0256] The encoding process of the captured data may be performed by the camera ex113, or by the streaming server ex103 which performs the data transmission process, or the two may share the same role. Similarly, the decoding process of the distributed data may be performed by the client, or by the streaming server ex103, or the two may share the same role. Furthermore, still images and / or video data captured by the camera ex116, not limited to the camera ex113, may be transmitted to the streaming server ex103 via the computer ex111. In this case, the encoding process may be performed by the camera ex116, the computer ex111, or the streaming server ex103, or the two may share the same role.

[0257] Moreover, these encoding and decoding processes are generally processed in an LSIex500 possessed by the computer ex111 or each device. The LSIex500 may be a single chip or may be configured with multiple chips. Note that software for encoding and decoding moving images may be embedded in some kind of recording medium (CD-ROM, flexible disk, hard disk, etc.) that can be read by the computer ex111, etc., and the encoding and decoding processes may be performed using that software. Furthermore, if the mobile phone ex114 has a camera, video data captured by the camera may be transmitted. In this case, the video data is data that has been encoded and processed by the LSIex500 possessed by the mobile phone ex114.

[0258] Furthermore, the streaming server ex103 may be a plurality of servers or a plurality of computers that process, record, and distribute data in a distributed manner.

[0259] In this way, the content supply system ex100 allows the client to receive and play back encoded data. In this way, the content supply system ex100 allows the client to receive, decode, and play back information sent by a user in real time, so that even users without special rights or equipment can realize personal broadcasting.

[0260] In addition, as shown in FIG. 27, the content supply system ex100 is not limited to the example, and at least one of the video coding device (image coding device) or video decoding device (image decoding device) of each of the above-mentioned embodiments can be incorporated into a digital broadcasting system ex200. Specifically, in a broadcasting station ex201, multiplexed data in which music data and the like are multiplexed with video data is transmitted to a satellite ex202 or through radio waves. This video data is data coded by the video coding method described in each of the above-mentioned embodiments (i.e., data coded by an image coding device according to one aspect of the present invention). The broadcasting satellite ex202 receives this data and transmits radio waves for broadcasting, which are received by a home antenna ex204 capable of receiving satellite broadcasts. The received multiplexed data is decoded and played by a device such as a television (receiver) ex300 or a set-top box (STB) ex217 (i.e., functions as an image decoding device according to one aspect of the present invention).

[0261] The video decoding device or video encoding device shown in each of the above embodiments can also be implemented in a reader / recorder ex218 that reads and decodes multiplexed data recorded on a recording medium ex215 such as a DVD or BD, or encodes a video signal on the recording medium ex215, and may further multiplex the video signal with a music signal and write it in some cases. In this case, the reproduced video signal is displayed on a monitor ex219, and the video signal can be reproduced in another device or system by the recording medium ex215 on which the multiplexed data is recorded. Also, a video decoding device may be implemented in a set-top box ex217 connected to a cable ex203 for cable television or an antenna ex204 for satellite / terrestrial broadcasting, and this may be displayed on a monitor ex219 of the television. In this case, the video decoding device may be incorporated in the television, not in the set-top box.

[0262] 28 is a diagram showing a television (receiver) ex300 using the video decoding method and video encoding method described in each of the above embodiments. The television ex300 includes a tuner ex301 that acquires or outputs multiplexed data in which audio data is multiplexed onto video data via an antenna ex204 that receives the broadcasts or a cable ex203, a modulation / demodulation unit ex302 that demodulates the received multiplexed data or modulates the received multiplexed data to be transmitted externally, and a multiplexing / separation unit ex303 that separates the demodulated multiplexed data into video data and audio data or multiplexes the video data and audio data encoded by a signal processing unit ex306.

[0263] The television ex300 also has a signal processing unit ex306 having an audio signal processing unit ex304 and a video signal processing unit ex305 (functioning as an image encoding device or an image decoding device according to an embodiment of the present invention) that decode the audio data and the video data, respectively, or encode the respective information, and an output unit ex309 having a speaker ex307 that outputs the decoded audio signal, and a display unit ex308 such as a display that displays the decoded video signal. The television ex300 also has an interface unit ex317 having an operation input unit ex312 that accepts input of user operations, etc. The television ex300 also has a control unit ex310 that comprehensively controls each unit, and a power supply circuit unit ex311 that supplies power to each unit. The interface unit ex317 may have, in addition to the operation input unit ex312, a bridge ex313 connected to an external device such as a reader / recorder ex218, a slot unit ex314 for enabling a recording medium ex216 such as an SD card to be mounted, a driver ex315 for connecting to an external recording medium such as a hard disk, a modem ex316 for connecting to a telephone network, etc. The recording medium ex216 is a medium that allows information to be electrically recorded by a non-volatile / volatile semiconductor memory element that stores the information. The various units of the television ex300 are connected to each other via a synchronous bus.

[0264] First, a configuration in which the television ex300 decodes and plays back multiplexed data acquired from the outside via the antenna ex204 or the like will be described. The television ex300 receives user operations from a remote controller ex220 or the like, and based on the control of a control unit ex310 having a CPU or the like, separates the multiplexed data demodulated by the modulation / demodulation unit ex302 in the multiplexing / separation unit ex303. Furthermore, the television ex300 decodes the separated audio data in the audio signal processing unit ex304, and decodes the separated video data in the video signal processing unit ex305 using the decoding method described in each of the above embodiments. The decoded audio signal and video signal are output to the outside from the output unit ex309, respectively. When outputting, it is preferable to temporarily store these signals in buffers ex318, ex319, etc. so that the audio signal and the video signal are played back in synchronization. The television ex300 may also read out the multiplexed data not from broadcasting or the like, but from recording media ex215, ex216 such as magnetic / optical disks and SD cards. Next, a configuration in which the television ex300 encodes an audio signal and a video signal and transmits them to the outside or writes them to a recording medium or the like will be described. The television ex300 receives user operations from the remote controller ex220 or the like, and, based on the control of the control unit ex310, encodes the audio signal in the audio signal processing unit ex304 and encodes the video signal in the video signal processing unit ex305 using the encoding method described in each of the above embodiments. The encoded audio signal and video signal are multiplexed in the multiplexing / demultiplexing unit ex303 and output to the outside. When multiplexing, it is preferable to temporarily store these signals in buffers ex320, ex321, etc. so that the audio signal and the video signal are synchronized. Note that the buffers ex318, ex319, ex320, and ex321 may be provided in multiple units as shown in the figure, or one or more buffers may be shared. Furthermore, other than those shown in the figure, data may be stored in a buffer as a buffer to avoid system overflow and underflow, for example, between the modulation / demodulation unit ex302 and the multiplexing / demultiplexing unit ex303.

[0265] Furthermore, in addition to acquiring audio data and video data from broadcasts, recording media, etc., the television ex300 may be configured to accept AV input from a microphone or camera and perform encoding processing on the data acquired from them. Note that while the television ex300 has been described here as being configured to be capable of the above-mentioned encoding processing, multiplexing, and external output, it may be configured not to be able to perform these processes and only be capable of the above-mentioned reception, decoding processing, and external output.

[0266] In addition, when the reader / recorder ex218 reads or writes multiplexed data from a recording medium, the above-mentioned decoding or encoding process may be performed by either the television ex300 or the reader / recorder ex218, or the television ex300 and the reader / recorder ex218 may share the same role.

[0267] As an example, the configuration of the information reproducing / recording unit ex400 when reading or writing data from an optical disk is shown in FIG. 29. The information reproducing / recording unit ex400 includes elements ex401, ex402, ex403, ex404, ex405, ex406, and ex407, which will be described below. The optical head ex401 writes information by irradiating a laser spot onto the recording surface of the recording medium ex215, which is an optical disk, and reads information by detecting reflected light from the recording surface of the recording medium ex215. The modulation recording unit ex402 electrically drives a semiconductor laser built into the optical head ex401 and modulates the laser light according to the recording data. The reproduction demodulation unit ex403 amplifies a reproduction signal obtained by electrically detecting reflected light from the recording surface by a photodetector built into the optical head ex401, separates and demodulates the signal components recorded on the recording medium ex215, and reproduces the necessary information. The buffer ex404 temporarily holds information to be recorded on the recording medium ex215 and information reproduced from the recording medium ex215. The disk motor ex405 rotates the recording medium ex215. The servo control unit ex406 controls the rotational drive of the disk motor ex405 while moving the optical head ex401 to a predetermined information track, and performs a laser spot tracking process. The system control unit ex407 controls the entire information reproduction / recording unit ex400. The above read and write processes are realized by the system control unit ex407 using various information held in the buffer ex404, generating and adding new information as necessary, and recording and reproducing information through the optical head ex401 while cooperating with the modulation recording unit ex402, the reproduction demodulation unit ex403, and the servo control unit ex406. The system control unit ex407 is composed of, for example, a microprocessor, and performs these processes by executing a read and write program.

[0268] In the above, the optical head ex401 has been described as irradiating a laser spot, but it may be configured to perform higher density recording using near-field light.

[0269] FIG. 30 shows a schematic diagram of a recording medium ex215, which is an optical disk. A guide groove (groove) is formed in a spiral shape on the recording surface of the recording medium ex215, and address information indicating an absolute position on the disk is recorded in advance on the information track ex230 by changing the shape of the groove. This address information includes information for identifying the position of a recording block ex231, which is a unit for recording data, and a recording block can be identified by reproducing the information track ex230 and reading the address information in a recording and reproducing device. The recording medium ex215 also includes a data recording area ex233, an inner peripheral area ex232, and an outer peripheral area ex234. The area used for recording user data is the data recording area ex233, and the inner peripheral area ex232 and the outer peripheral area ex234, which are located on the inner or outer periphery of the data recording area ex233, are used for specific purposes other than recording user data. The information reproducing / recording unit ex400 reads and writes encoded audio data, video data, or multiplexed data obtained by multiplexing these data, to the data recording area ex233 of such recording medium ex215.

[0270] In the above, the description has been given taking as examples optical discs such as single-layer DVDs and BDs, but the present invention is not limited to these and may be an optical disc with a multi-layer structure that allows recording on other surfaces as well. Also, the present invention may be an optical disc with a structure that allows multi-dimensional recording / playback, such as recording information on the same location on the disc using light of various different wavelengths or recording different layers of information from various angles.

[0271] In the digital broadcasting system ex200, a car ex210 having an antenna ex205 can receive data from a satellite ex202 or the like, and can play video on a display device such as a car navigation system ex211 of the car ex210. Note that the car navigation system ex211 may have a configuration in which a GPS receiver is added to the configuration shown in Fig. 28, and the same can be said for a computer ex111, a mobile phone ex114, and the like.

[0272] 31A is a diagram showing a mobile phone ex114 using the video decoding method and the video encoding method described in the above embodiment. The mobile phone ex114 includes an antenna ex350 for transmitting and receiving radio waves to and from the base station ex110, a camera unit ex365 capable of taking videos and still images, and a display unit ex358 such as a liquid crystal display for displaying data obtained by decrypting the video captured by the camera unit ex365 and the video received by the antenna ex350. The mobile phone ex114 further includes a main body unit having an operation key unit ex366, an audio output unit ex357 such as a speaker for outputting audio, an audio input unit ex356 such as a microphone for inputting audio, a memory unit ex367 for storing the captured video, still images, recorded audio, or the encoded or decoded data of the received video, still images, mail, etc., or a slot unit ex364 which is an interface unit with a recording medium for similarly storing data.

[0273] Furthermore, a configuration example of the mobile phone ex114 will be described with reference to Fig. 31B. In the mobile phone ex114, a power circuit unit ex361, an operation input control unit ex362, a video signal processing unit ex355, a camera interface unit ex363, an LCD (Liquid Crystal Display) control unit ex359, a modulation / demodulation unit ex352, a multiplexing / demultiplexing unit ex353, an audio signal processing unit ex354, a slot unit ex364, and a memory unit ex367 are connected to each other via a bus ex370, in relation to a main control unit ex360 that comprehensively controls each unit of a main body unit having a display unit ex358 and an operation key unit ex366.

[0274] When the end call and power key is turned on by the user's operation, the power supply circuit unit ex361 starts up the mobile phone ex114 into an operable state by supplying power to each unit from the battery pack.

[0275] Based on the control of a main control unit ex360 having a CPU, ROM, RAM, etc., the mobile phone ex114 converts a voice signal collected by a voice input unit ex356 in a voice call mode into a digital voice signal in a voice signal processing unit ex354, performs spectrum spreading processing on this in a modulation / demodulation unit ex352, performs digital-to-analog conversion processing and frequency conversion processing on this in a transmission / reception unit ex351, and transmits it via an antenna ex350. Also, the mobile phone ex114 amplifies reception data received via the antenna ex350 in a voice call mode, performs frequency conversion processing and analog-to-digital conversion processing on this, performs spectrum despreading processing on this in the modulation / demodulation unit ex352, converts it into an analog voice signal in the voice signal processing unit ex354, and outputs this from a voice output unit ex357.

[0276] Furthermore, when sending an e-mail in the data communication mode, the text data of the e-mail input by operating the operation key unit ex366 of the main unit is sent to the main control unit ex360 via the operation input control unit ex362. The main control unit ex360 performs spectrum spreading processing on the text data in the modulation / demodulation unit ex352, performs digital-to-analog conversion processing and frequency conversion processing in the transmission / reception unit ex351, and then transmits the data to the base station ex110 via the antenna ex350. When receiving an e-mail, the received data is processed in roughly the reverse manner, and is output to the display unit ex358.

[0277] When transmitting video, still images, or video and audio in the data communication mode, the video signal processing unit ex355 compresses and encodes the video signal supplied from the camera unit ex365 using the video encoding method described in each of the above embodiments (i.e., functions as an image encoding device according to one aspect of the present invention), and sends the encoded video data to the multiplexing / separation unit ex353. Also, the audio signal processing unit ex354 encodes an audio signal collected by the audio input unit ex356 while the camera unit ex365 is capturing video, still images, etc., and sends the encoded audio data to the multiplexing / separation unit ex353.

[0278] The multiplexing / separation unit ex353 multiplexes the encoded video data supplied from the video signal processing unit ex355 and the encoded audio data supplied from the audio signal processing unit ex354 in a predetermined manner, and the resulting multiplexed data is subjected to spectrum spreading processing in a modulation / demodulation unit (modulation / demodulation circuit unit) ex352, and then transmitted via an antenna ex350 after undergoing digital-to-analog conversion processing and frequency conversion processing in a transmission / reception unit ex351.

[0279] When receiving data of a video file linked to a homepage or the like in the 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 ex350, the multiplexing / separation unit ex353 separates the multiplexed data into a bit stream of video data and a bit stream of audio data, and supplies the encoded video data to the video signal processing unit ex355 via the synchronous bus ex370, and supplies the encoded audio data to the audio signal processing unit ex354. The video signal processing unit ex355 decodes the video signal by decoding using a video decoding method corresponding to the video encoding method shown in each of the above embodiments (i.e., functions as an image decoding device according to one aspect of the present invention), and displays, for example, video and still images included in the video file linked to the homepage on the display unit ex358 via the LCD control unit ex359. The audio signal processing unit ex354 also decodes the audio signal, and audio is output from the audio output unit ex357.

[0280] Also, like the television ex300, the terminals such as the mobile phone ex114 may be implemented in three different ways: a transmitting terminal having only an encoder, a transmitting terminal having only a decoder, and a receiving terminal having only a decoder, in addition to a transmitting terminal having both an encoder and a decoder. Furthermore, in the digital broadcasting system ex200, multiplexed data in which music data and the like are multiplexed with video data is received and transmitted, but the data may be multiplexed with text data related to the video in addition to the audio data, or may be video data itself instead of multiplexed data.

[0281] In this way, it is possible to use the video encoding method or video decoding method shown in each of the above embodiments in any of the above-mentioned devices and systems, and by doing so, it is possible to obtain the effects described in each of the above embodiments.

[0282] Furthermore, the present invention is not limited to the above-described embodiment, and various modifications and alterations are possible without departing from the scope of the present invention.

[0283] (Embodiment 4) It is also possible to generate video data by switching as necessary between the video coding method or device shown in each of the above embodiments and a video coding method or device conforming to a different standard, such as MPEG-2, MPEG4-AVC, or VC-1.

[0284] Here, when multiple pieces of video data conforming to different standards are generated, it is necessary to select a decoding method corresponding to each standard when decoding. However, since it is not possible to identify which standard the video data to be decoded conforms to, a problem arises in that it is not possible to select an appropriate decoding method.

[0285] To solve this problem, multiplexed data, which is video data multiplexed with audio data, contains identification information indicating which standard the video data complies with. A specific configuration of multiplexed data including video data generated by the video coding method or device shown in each of the above embodiments will be described below. The multiplexed data is a digital stream in the MPEG-2 transport stream format.

[0286] FIG. 32 is a diagram showing the structure of multiplexed data. As shown in FIG. 32, the multiplexed data is obtained by multiplexing one or more of a video stream, an audio stream, a presentation graphics stream (PG), and an interactive graphics stream. The video stream indicates the main video and the sub-video of a movie, the audio stream (IG) indicates the main audio part of the movie and the sub-audio mixed with the main audio, and the presentation graphics stream indicates the subtitles of the movie. Here, the main video indicates a normal video displayed on a screen, and the sub-video indicates a video displayed on a small screen in the main video. The interactive graphics stream indicates an interactive screen created by arranging GUI components on a screen. The video stream is encoded by the moving image encoding method or device shown in each of the above embodiments, or a moving image encoding method or device conforming to conventional standards such as MPEG-2, MPEG4-AVC, and VC-1. The audio stream is encoded by a method such as Dolby AC-3, Dolby Digital Plus, MLP, DTS, DTS-HD, or Linear PCM.

[0287] Each stream included in the multiplexed data is identified by a PID. For example, 0x1011 is assigned to the video stream used for the movie image, 0x1100 to 0x111F to the audio stream, 0x1200 to 0x121F to the presentation graphics stream, 0x1400 to 0x141F to the interactive graphics stream, 0x1B00 to 0x1B1F to the video stream used for the movie secondary video, and 0x1A00 to 0x1A1F to the audio stream used for the secondary audio to be mixed with the main audio.

[0288] 33 is a diagram showing a schematic diagram of how multiplexed data is multiplexed. First, a video stream ex235 consisting of a plurality of video frames and an audio stream ex238 consisting of a plurality of audio frames are converted into PES packet sequences ex236 and ex239, respectively, and then converted into TS packets ex237 and ex240. Similarly, data of a presentation graphics stream ex241 and interactive graphics ex244 are converted into PES packet sequences ex242 and ex245, respectively, and then further converted into TS packets ex243 and ex246. The multiplexed data ex247 is constructed by multiplexing these TS packets into one stream.

[0289] Fig. 34 shows in more detail how a video stream is stored in a PES packet sequence. The first row in Fig. 34 shows a video frame sequence of a video stream. The second row shows a PES packet sequence. As indicated by arrows yy1, yy2, yy3, and yy4 in Fig. 34, I-pictures, B-pictures, and P-pictures, which are multiple Video Presentation Units in a video stream, are divided into individual pictures and stored in the payload of a PES packet. Each PES packet has a PES header, and the PES header stores a Presentation Time-Stamp (PTS) that is the display time of the picture and a Decoding Time-Stamp (DTS) that is the decoding time of the picture.

[0290] Fig. 35 shows the format of the TS packet that is finally written to the multiplexed data. The TS packet is a fixed-length packet of 188 bytes consisting of a 4-byte TS header having information such as a PID that identifies the stream and a 184-byte TS payload that stores the data, and the above PES packet is divided and stored in the TS payload. In the case of BD-ROM, a 4-byte TP_Extra_Header is added to the TS packet, forming a 192-byte source packet that is written to the multiplexed data. Information such as ATS (Arrival_Time_Stamp) is written in the TP_Extra_Header. The ATS indicates the start time of transfer of the TS packet to the PID filter of the decoder. In the multiplexed data, source packets are lined up as shown in the lower part of Fig. 35, and the number that increments from the beginning of the multiplexed data is called SPN (Source Packet Number).

[0291] In addition to the various streams such as video, audio, and subtitles, the TS packets contained in the multiplexed data also contain a PAT (Program Association Table), PMT (Program Map Table), and PCR (Program Clock Reference). The PAT indicates the PID of the PMT used in the multiplexed data, and the PID of the PAT itself is registered as 0. The PMT has the PID of each stream such as video, audio, and subtitles contained in the multiplexed data, as well as attribute information of the stream corresponding to each PID, and also has various descriptors related to the multiplexed data. The descriptors include copy control information that indicates whether copying of the multiplexed data is permitted or not. The PCR has information on the STC time corresponding to the ATS at which the PCR packet is transferred to the decoder, in order to synchronize the ATC (Arrival Time Clock), which is the time axis of the ATS, with the STC (System Time Clock), which is the time axis of the PTS and DTS.

[0292] FIG. 36 is a diagram explaining the data structure of a PMT in detail. At the beginning of a PMT, a PMT header is placed, which describes the length of the data contained in the PMT, etc. After that, multiple descriptors related to the multiplexed data are placed. The above-mentioned copy control information, etc. are written as descriptors. After the descriptors, multiple pieces of stream information related to each stream included in the multiplexed data are placed. The stream information is made up of stream descriptors that describe the stream type to identify the compression codec of the stream, the stream PID, and stream attribute information (frame rate, aspect ratio, etc.). There are as many stream descriptors as there are streams in the multiplexed data.

[0293] When recording on a recording medium, the multiplexed data is recorded together with a multiplexed data information file.

[0294] The multiplexed data information file is management information for multiplexed data as shown in FIG. 37, has one-to-one correspondence with the multiplexed data, and is made up of multiplexed data information, stream attribute information, and an entry map.

[0295] As shown in Fig. 37, the multiplexed data information consists of a system rate, a playback start time, and a playback end time. The system rate indicates the maximum transfer rate of the multiplexed data to the PID filter of the system target decoder, which will be described later. The interval of the ATS contained in the multiplexed data is set to be equal to or less than the system rate. The playback start time is the PTS of the first video frame of the multiplexed data, and the playback end time is set to the PTS of the last video frame of the multiplexed data plus the playback interval of one frame.

[0296] As shown in Fig. 38, the stream attribute information is registered for each PID for each stream included in the multiplexed data. The attribute information has different information for each video stream, audio stream, presentation graphics stream, and interactive graphics stream. The video stream attribute information has information such as what compression codec was used to compress the video stream, the resolution of each picture data constituting the video stream, the aspect ratio, and the frame rate. The audio stream attribute information has information such as what compression codec was used to compress the audio stream, the number of channels included in the audio stream, which language it corresponds to, and the sampling frequency. This information is used for initializing the decoder before the player starts playing.

[0297] In this embodiment, the stream type included in the PMT of the multiplexed data is used. Also, when multiplexed data is recorded on the recording medium, video stream attribute information included in the multiplexed data information is used. Specifically, in the video coding method or device shown in each of the above embodiments, a step or means is provided for setting unique information indicating that the video data is generated by the video coding method or device shown in each of the above embodiments to the stream type included in the PMT or the video stream attribute information. This configuration makes it possible to distinguish between video data generated by the video coding method or device shown in each of the above embodiments and video data that complies with other standards.

[0298] FIG. 39 shows steps of the video decoding method according to the present embodiment. In step exS100, the stream type included in the PMT or the video stream attribute information included in the multiplexed data information is obtained from the multiplexed data. Next, in step exS101, it is determined whether the stream type or the video stream attribute information indicates that the multiplexed data is generated by the video coding method or device shown in each of the above embodiments. If it is determined that the stream type or the video stream attribute information is generated by the video coding method or device shown in each of the above embodiments, in step exS102, a reference picture or a motion vector is selected from the candidates by the video decoding method shown in each of the above embodiments, and decoding is performed. In addition, if the stream type or the video stream attribute information indicates that it complies with conventional standards such as MPEG-2, MPEG4-AVC, and VC-1, in step exS103, decoding is performed by the video decoding method that complies with the conventional standard. For example, if the attribute information indicates that the block complies with the MPEG4-AVC standard, decoding is performed using a motion vector calculated from the motion vectors of spatially or temporally adjacent blocks, rather than selecting from multiple candidates.

[0299] In this way, by setting a new unique value in the stream type or video stream attribute information, it is possible to determine whether the video decoding method or device shown in each of the above embodiments is capable of decoding the data when decoding. Therefore, even when multiplexed data conforming to a different standard is input, an appropriate decoding method or device can be selected, making it possible to decode the data without causing an error. In addition, the video encoding method or device, or the video decoding method or device shown in the present embodiment can be used in any of the above-mentioned devices and systems.

[0300] (Embodiment 5) The video encoding method and device, and video decoding method and device shown in each of the above embodiments are typically realized by an LSI, which is an integrated circuit. As an example, FIG. 40 shows the configuration of a single-chip LSIex500. The LSIex500 includes elements ex501, ex502, ex503, ex504, ex505, ex506, ex507, ex508, and ex509, which will be described below, and each element is connected via a bus ex510. When the power supply is on, the power supply circuit unit ex505 supplies power to each unit to start them up in an operable state.

[0301] For example, when performing encoding processing, the LSIex500 inputs AV signals from the microphone ex117, the camera ex113, etc. through the AV I / Oex509 based on the control of a control unit ex501 having a CPUex502, a memory controller ex503, a stream controller ex504, a drive frequency control unit ex512, etc. The input AV signals are temporarily stored in an external memory ex511 such as an SDRAM. Based on the control of the control unit ex501, the stored data is divided into a plurality of times as appropriate according to the processing amount and processing speed, and sent to the signal processing unit ex507, where the audio signal is encoded and / or the video signal is encoded. Here, the encoding processing of the video signal is the encoding processing described in each of the above embodiments. The signal processing unit ex507 further performs processing such as multiplexing the encoded audio data and the encoded video data as the case may be, and outputs the data to the outside from the stream I / Oex506. This output multiplexed data is transmitted to the base station ex107, or written to a recording medium ex215. When multiplexing, it is advisable to temporarily store the data in a buffer ex508 to ensure synchronization.

[0302] In the above, the memory ex511 is described as an external configuration of the LSIex500, but it may be included inside the LSIex500. The buffer ex508 is not limited to one, and may include multiple buffers. Furthermore, the LSIex500 may be formed as a single chip or multiple chips.

[0303] In the above, the control unit ex501 has a CPU ex502, a memory controller ex503, a stream controller ex504, a drive frequency control unit ex512, etc., but the configuration of the control unit ex501 is not limited to this configuration. For example, the signal processing unit ex507 may further include a CPU. By providing a CPU inside the signal processing unit ex507, it is possible to further improve the processing speed. As another example, the CPU ex502 may include the signal processing unit ex507, or a part of the signal processing unit ex507, such as an audio signal processing unit. In such a case, the control unit ex501 is configured to include the CPU ex502 having the signal processing unit ex507 or a part thereof.

[0304] Although we refer to it as LSI here, it may also be called IC, system LSI, super LSI, or ultra LSI depending on the level of integration.

[0305] Furthermore, the method of integration is not limited to LSI, and may be realized by a dedicated circuit or a general-purpose processor. After LSI manufacture, a programmable FPGA (Field Programmable Gate Array) or a reconfigurable processor that allows reconfiguration of the connections and settings of circuit cells inside the LSI may be used. Typically, such a programmable logic device can execute the video encoding method or video decoding method shown in each of the above embodiments by loading or reading from a memory or the like a program that constitutes software or firmware.

[0306] Furthermore, if a new integrated circuit technology that can replace LSI appears due to the progress of semiconductor technology or a derivative technology, it may be possible to integrate the functional blocks using that technology. The application of biotechnology is also a possibility.

[0307] (Embodiment 6) When decoding video data generated by the video encoding method or device shown in each of the above embodiments, the amount of processing is expected to increase compared to when decoding video data conforming to conventional standards such as MPEG-2, MPEG4-AVC, and VC-1. Therefore, in the LSIex500, it is necessary to set a driving frequency higher than the driving frequency of the CPUex502 when decoding video data conforming to conventional standards. However, when the driving frequency is increased, a problem occurs in that power consumption increases.

[0308] In order to solve this problem, a video decoding device such as a television ex300 or an LSI ex500 is configured to identify which standard the video data complies with and switch the driving frequency according to the standard. FIG. 41 shows a configuration ex800 in this embodiment. If the video data is generated by the video encoding method or device shown in each of the above embodiments, the driving frequency switching unit ex803 sets the driving frequency high. Then, it instructs the decoding processing unit ex801 that executes the video decoding method shown in each of the above embodiments to decode the video data. On the other hand, if the video data is video data that complies with a conventional standard, it sets the driving frequency low compared to when the video data is generated by the video encoding method or device shown in each of the above embodiments. Then, it instructs the decoding processing unit ex802 that complies with the conventional standard to decode the video data.

[0309] More specifically, the drive frequency switching unit ex803 is composed of the CPU ex502 and the drive frequency control unit ex512 in FIG. 40. The decoding processing unit ex801 that executes the video decoding method shown in each of the above embodiments and the decoding processing unit ex802 that complies with the conventional standard correspond to the signal processing unit ex507 in FIG. 40. The CPU ex502 identifies which standard the video data complies with. Then, based on the signal from the CPU ex502, the drive frequency control unit ex512 sets the drive frequency. Also, based on the signal from the CPU ex502, the signal processing unit ex507 decodes the video data. Here, for example, the identification information described in the fourth embodiment can be used to identify the video data. The identification information is not limited to that described in the fourth embodiment, and may be any information that can identify which standard the video data complies with. For example, if it is possible to identify which standard the video data complies with based on an external signal that identifies whether the video data is used for a television or a disc, the identification may be based on such an external signal. Also, the selection of the drive frequency in the CPUex502 may be based on a lookup table that associates the video data standard with the drive frequency, as shown in Fig. 43. The lookup table is stored in the bufferex508 or the internal memory of the LSI, and the CPUex502 can select the drive frequency by referring to this lookup table.

[0310] FIG. 42 shows steps for carrying out the method of the present embodiment. First, in step exS200, the signal processing unit ex507 acquires identification information from the multiplexed data. Next, in step exS201, the CPU ex502 identifies whether the video data is generated by the encoding method or device shown in each of the above embodiments based on the identification information. If the video data is generated by the encoding method or device shown in each of the above embodiments, in step exS202, the CPU ex502 sends a signal to set the driving frequency to a high frequency to the driving frequency control unit ex512. Then, the driving frequency is set to a high frequency in the driving frequency control unit ex512. On the other hand, if the video data indicates that it is video data that complies with conventional standards such as MPEG-2, MPEG4-AVC, and VC-1, in step exS203, the CPU ex502 sends a signal to set the driving frequency to a low frequency to the driving frequency control unit ex512. Then, in the driving frequency control unit ex512, the driving frequency is set to a low frequency compared to when the video data is generated by the encoding method or device shown in each of the above embodiments.

[0311] Furthermore, by changing the voltage applied to the LSIex500 or a device including the LSIex500 in conjunction with switching the drive frequency, it is possible to further improve the power saving effect. For example, when the drive frequency is set to a low value, it is conceivable to set the voltage applied to the LSIex500 or a device including the LSIex500 to a lower value compared to when the drive frequency is set to a high value.

[0312] In addition, the method of setting the drive frequency is not limited to the above-mentioned setting method, and may be such that the drive frequency is set high when the amount of processing required for decoding is large, and the drive frequency is set low when the amount of processing required for decoding is small. For example, when the amount of processing required for decoding video data conforming to the MPEG4-AVC standard is larger than the amount of processing required for decoding video data generated by the video encoding method or device shown in each of the above-mentioned embodiments, the drive frequency may be set in the opposite manner to the above-mentioned setting method.

[0313] Furthermore, the method of setting the drive frequency is not limited to the configuration of lowering the drive frequency. For example, when the identification information indicates that the video data is generated by the video encoding method or device shown in each of the above embodiments, the voltage to be applied to the LSIex500 or the device including the LSIex500 is set high, and when the identification information indicates that the video data is compliant with conventional standards such as MPEG-2, MPEG4-AVC, VC-1, the voltage to be applied to the LSIex500 or the device including the LSIex500 is set low. As another example, when the identification information indicates that the video data is generated by the video encoding method or device shown in each of the above embodiments, the drive of the CPUex502 is not stopped, and when the identification information indicates that the video data is compliant with conventional standards such as MPEG-2, MPEG4-AVC, VC-1, the drive of the CPUex502 is temporarily stopped because there is a margin for processing. Even when the identification information indicates that the video data is generated by the video encoding method or device shown in each of the above embodiments, the drive of the CPUex502 is temporarily stopped if there is a margin for processing. In this case, it is conceivable to set the stop time shorter than when the video data indicates that it is video data conforming to conventional standards such as MPEG-2, MPEG4-AVC, and VC-1.

[0314] In this way, by switching the drive frequency according to the standard to which the video data conforms, it is possible to achieve power saving. Also, when the LSIex500 or a device including the LSIex500 is driven by a battery, the power saving can extend the battery life.

[0315] (Embodiment 7) In the above-mentioned devices and systems, such as televisions and mobile phones, multiple video data conforming to different standards may be input. In order to be able to decode multiple video data conforming to different standards, the signal processing unit ex507 of the LSIex500 must support multiple standards. However, if a signal processing unit ex507 corresponding to each standard is used individually, the circuit size of the LSIex500 will increase, and the cost will also increase.

[0316] In order to solve this problem, a configuration is adopted in which a decoding processing unit for executing the video decoding method shown in each of the above embodiments is partially shared with a decoding processing unit conforming to conventional standards such as MPEG-2, MPEG4-AVC, and VC-1. An example of this configuration is shown in ex900 of FIG. 44A. For example, the video decoding method shown in each of the above embodiments and the video decoding method conforming to the MPEG4-AVC standard share some of the processing contents in processes such as entropy coding, inverse quantization, deblocking filter, and motion compensation. For the common processing contents, a decoding processing unit ex902 conforming to the MPEG4-AVC standard is shared, and for other processing contents specific to one aspect of the present invention that do not conform to the MPEG4-AVC standard, a dedicated decoding processing unit ex901 is used. In particular, since one aspect of the present invention is characterized by inter prediction, for example, a dedicated decoding processing unit ex901 is used for inter prediction, and for any or all of the other processing such as entropy decoding, inverse quantization, deblocking filter, and motion compensation, a decoding processing unit is shared. Regarding sharing of the decoding processing unit, for common processing content, a decoding processing unit for executing the video decoding method shown in each of the above embodiments may be shared, and for processing content specific to the MPEG4-AVC standard, a dedicated decoding processing unit may be used.

[0317] Another example of partially sharing the process is shown in ex1000 in FIG. 44B. In this example, a dedicated decoding processing unit ex1001 corresponding to the process content specific to one aspect of the present invention, a dedicated decoding processing unit ex1002 corresponding to the process content specific to another conventional standard, and a shared decoding processing unit ex1003 corresponding to the process content common to the video decoding method according to one aspect of the present invention and the video decoding method of another conventional standard are used. Here, the dedicated decoding processing units ex1001 and ex1002 are not necessarily specialized for the process content specific to one aspect of the present invention or another conventional standard, and may be capable of executing other general-purpose processes. The configuration of this embodiment can also be implemented in LSIex500.

[0318] In this way, by sharing a decoding processing unit for processing content common to a video decoding method according to one embodiment of the present invention and a video decoding method according to a conventional standard, it is possible to reduce the circuit size of the LSI and reduce costs. [Industrial Applicability]

[0319] The present invention can be used in a video encoding device and a video decoding device, for example, in information display devices and imaging devices such as televisions, digital video recorders, car navigation systems, mobile phones, digital still cameras, and digital video cameras. [Explanation of symbols]

[0320] 100, 300 Video encoding device 101 Subtraction section 102 Orthogonal transformation section 103 Quantization section 104, 202 Inverse quantization section 105, 203 Inverse orthogonal transform unit 106, 204 Addition section 107, 205 Block Memory 108, 206 Frame Memory 109, 207 Intra prediction section 110, 208 Inter prediction section 111, 209 Switch 112, 210 Inter prediction control unit 113 Picture type determination unit 114, 211 Temporal prediction motion vector calculation unit 115, 212 colPic memory 116 Whole Vector Storage Unit 117 Co-located Information Decision Unit 118 Variable-length coding section 200, 400 Video Decoding Device 201 Variable length decoding unit 310 First Encoding Unit 320 Second Encoding Section 410 First Decoding Unit 420 Second Decoding Unit

Claims

1. A program for causing a computer to execute a video decoding method for performing inter-prediction decoding using a motion vector on a current block included in a current picture, the program comprising: The video decoding method includes: Decoding a temporal prediction restriction flag indicating whether or not a temporal motion vector prediction using a temporal predicted motion vector, which is a motion vector of a block included in a decoded picture other than the current picture to be decoded, is used; If the temporal prediction restriction flag indicates that the temporal motion vector prediction is used, Decoding a first parameter for identifying a prediction direction to calculate the temporal motion vector predictor; deriving a plurality of first motion vector predictor candidates including the temporal motion vector predictor based on a prediction direction specified by the first parameter; Decoding a motion vector used in inter prediction decoding of the current block by using one of the plurality of first motion vector predictor candidates; If the temporal prediction restriction flag indicates that the temporal motion vector prediction is not used, deriving a plurality of second motion vector predictor candidates not including the temporal motion vector predictor; Decoding a motion vector used in inter prediction decoding of the current block by using one of the plurality of second motion vector predictor candidates; if the temporal prediction restriction flag indicates that the temporal motion vector prediction is not used, then not decoding the first parameter. program.

2. A program for causing a computer to execute a video coding method for performing inter-prediction coding using a motion vector on a current block included in a current picture, the program comprising: The video encoding method includes: encoding a temporal prediction restriction flag indicating whether or not a temporal motion vector prediction using a temporal predicted motion vector, which is a motion vector of a block included in a coded picture other than the coding target picture, is used; If the temporal prediction restriction flag indicates that the temporal motion vector prediction is used, Encoding a first parameter for specifying a prediction direction for calculating the temporal motion vector predictor; deriving a plurality of first motion vector predictor candidates including the temporal motion vector predictor based on a prediction direction specified by the first parameter; encoding a motion vector used in inter prediction coding of the current block by using one of the plurality of first motion vector predictor candidates; If the temporal prediction restriction flag indicates that the temporal motion vector prediction is not used, deriving a plurality of second motion vector predictor candidates not including the temporal motion vector predictor; encoding a motion vector used in inter prediction coding of the current block by using one of the plurality of second motion vector predictor candidates; if the temporal prediction restriction flag indicates that the temporal motion vector prediction is not used, then not encoding the first parameter; program.