Video encoding device

The video encoding method improves encoding efficiency by using a flag to manage time-predicted motion vectors, reducing errors and inefficiencies in decoding, particularly in multi-view videos.

JP7960903B2Active Publication Date: 2026-12-04SUN PATENT TRUST
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2025089350
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2012-03-06
Filing Date
2025-05-29
Publication Date
2026-12-04
Estimated Expiration
2033-02-28

AI Technical Summary

Technical Problem

Existing video encoding methods face inefficiencies and errors in motion vector prediction due to reliance on time-predicted motion vectors, which can be lost during streaming, leading to decoding failures and reduced encoding efficiency.

Method used

A video encoding method that includes a flag to indicate the use of time-predicted motion vectors, encoding a parameter for calculating these vectors when used, and deriving alternative motion vector candidates when they are not used, thereby improving encoding efficiency by avoiding unnecessary parameter encoding.

Benefits of technology

This approach enhances encoding efficiency by preventing errors in decoding processes and reducing the need for unnecessary parameter encoding, especially in multi-view videos.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007960903000004
    Figure 0007960903000004
  • Figure 0007960903000005
    Figure 0007960903000005
  • Figure 0007960903000006
    Figure 0007960903000006
Patent Text Reader

Abstract

To improve coding efficiency.SOLUTION: A video decoding apparatus is configured to: decode a temporal prediction regulation flag indicating whether or not temporal motion vector prediction is used (S211); when the temporal prediction regulation flag indicates that the temporal motion vector prediction is used (Yes in S212), decode a first parameter for specifying a prediction direction for calculating a temporal predictive motion vector (S213); derive, based on the prediction direction specified by the first parameter, a plurality of first predictive motion vector candidates including the temporal predictive motion vector (S214); and derive, when the temporal prediction regulation flag indicates that the temporal motion vector prediction is not used (No in S212), a plurality of second predictive motion vector candidates not including the temporal predictive motion vector (S217).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 encoding, information is generally compressed by utilizing the spatial and temporal redundancy inherent in video. Generally, spatial redundancy is utilized through conversion to the frequency domain. Temporal redundancy is utilized through inter-picture prediction (hereinafter referred to as inter-prediction) encoding (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 [Overview of the project] [Problems that the invention aims to solve]

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

[0005] Therefore, the present invention aims to provide a video encoding method and a video decoding method that can improve encoding efficiency. [Means for solving the problem]

[0006] To achieve the above objective, one aspect of the present invention relates to Video encoding device teeth, A video encoding device that performs interpredictive encoding of blocks to be encoded in a picture to be encoded using motion vectors, comprising a control circuit and a storage device electrically connected to the control circuit, wherein the control circuit encodes a time prediction restriction flag indicating whether or not time motion vector prediction is used, which uses time prediction motion vectors that are motion vectors of blocks in an encoded picture different from the picture to be encoded, and if the time prediction restriction flag indicates that time motion vector prediction is used, encodes a first parameter for specifying the prediction direction in order to calculate the time prediction motion vector, and derives a plurality of first prediction motion vector candidates including the time prediction motion vector based on the prediction direction specified by the first parameter If the time prediction limit flag indicates that time motion vector prediction is not used, then a plurality of second prediction motion vector candidates that do not include the time motion vector are derived. If the time prediction limit flag indicates that time motion vector prediction is not used, then the first parameter is not encoded, and the plurality of first prediction motion vector candidates or the plurality of second prediction motion vector candidates include an alternative vector to replace the time motion vector. .

[0007] These general or specific aspects may be implemented as a system, method, integrated circuit, computer program, or a recording medium such as a computer-readable CD-ROM, or may be implemented as any combination of a system, method, integrated circuit, computer program, and recording medium.

Advantageous Effects of Invention

[0008] The present invention can provide a moving image encoding method and a moving image decoding method that can improve encoding efficiency.

Description of Drawings

[0009] [Figure 1] FIG. 1 is an explanatory diagram showing motion vectors in temporal motion vector prediction. [Figure 2] FIG. 2 is a block diagram of a moving image encoding device according to Embodiment 1. [Figure 3] FIG. 3 is a diagram illustrating an outline of a processing flow of a moving image encoding method according to Embodiment 1. [Figure 4] FIG. 4 is a diagram illustrating an example of predicted motion vector candidates according to Embodiment 1. [Figure 5] FIG. 5 is a diagram illustrating an example of a code table when variable-length coding is performed on a predicted motion vector index according to Embodiment 1. [Figure 6] FIG. 6 is a diagram illustrating a flow of determining predicted motion vector candidates according to Embodiment 1. [Figure 7] FIG. 7 is a conceptual diagram illustrating read / write processing on a colPic memory and an overall vector storage unit according to Embodiment 1. [Figure 8A] FIG. 8A is a diagram illustrating a detailed processing flow of step S11 in FIG. 3 according to Embodiment 1. [Figure 8B] FIG. 8B is a diagram illustrating an example of a B picture referenced from another picture according to Embodiment 1. [Figure 9] FIG. 9 is a diagram illustrating a detailed processing flow of step S17 in FIG. 3 according to Embodiment 1. [Figure 10]Figure 10 is a diagram showing the detailed processing flow of steps S13 and S14 in Figure 3 according to Embodiment 1. [Figure 11A] Figure 11A shows an example of a method for deriving a candidate predicted motion vector using a forward reference motion vector according to Embodiment 1. [Figure 11B] Figure 11B shows an example of a method for deriving a candidate predicted motion vector using a back-reference motion vector according to Embodiment 1. [Figure 12A] Figure 12A shows an example of a method for deriving a candidate predicted motion vector using a back-reference motion vector according to Embodiment 1. [Figure 12B] Figure 12B shows an example of a method for deriving a predicted motion vector candidate using a forward reference motion vector according to Embodiment 1. [Figure 13] Figure 13 is a diagram showing the processing flow of the video encoding method according to Embodiment 1. [Figure 14] Figure 14 is a diagram showing the processing flow of the video encoding method according to Embodiment 1. [Figure 15] Figure 15 is a block diagram of a video decoding device according to Embodiment 2. [Figure 16] Figure 16 is a diagram showing an overview of the processing flow of the video decoding method according to Embodiment 2. [Figure 17] Figure 17 shows an example of the bitstream syntax in the video decoding method according to Embodiment 2. [Figure 18] Figure 18 is a diagram showing the processing flow of the video decoding method according to Embodiment 2. [Figure 19A] Figure 19A shows an example of syntax according to Embodiment 2. [Figure 19B] Figure 19B shows an example of syntax according to Embodiment 2. [Figure 20] Figure 20 shows an example of syntax according to Embodiment 2. [Figure 21] Figure 21 is a diagram showing the processing flow of the video decoding method according to Embodiment 2. [Figure 22] Figure 22 is a block diagram of a video encoding device according to a modified example of Embodiment 1. [Figure 23] Figure 23 is a flowchart showing the operation of the video encoding method according to a modified example of Embodiment 1. [Figure 24] Figure 24 shows an example of an image including a basic view and a dependent view, relating to a modified example of Embodiment 2. [Figure 25] Figure 25 is a block diagram of a video decoding device according to a modified example of Embodiment 2. [Figure 26] Figure 26 is an overall diagram of the content supply system that realizes the content distribution service. [Figure 27] Figure 27 is an overall diagram of the digital broadcasting system. [Figure 28] Figure 28 is a block diagram showing an example of a television configuration. [Figure 29] Figure 29 is a block diagram showing an example configuration of an information playback / recording unit that reads and writes information to a recording medium, which is an optical disc. [Figure 30] Figure 30 shows an example of the structure of a recording medium, which is an optical disc. [Figure 31A] Figure 31A shows an example of a mobile phone. [Figure 31B] Figure 31B is a block diagram showing an example of a mobile phone configuration. [Figure 32] Figure 32 shows the structure of the multiplexed data. [Figure 33] Figure 33 schematically shows how each stream is multiplexed in the multiplexed data. [Figure 34] Figure 34 shows in more detail how the video stream is stored in the PES packet sequence. [Figure 35] Figure 35 shows the structure of TS packets and source packets in multiplexed data. [Figure 36] Figure 36 shows the data structure of PMT. [Figure 37] Figure 37 shows the internal structure of the multiplexed data information. [Figure 38] Figure 38 shows the internal structure of stream attribute information. [Figure 39] Figure 39 shows the steps for identifying video data. [Figure 40] Figure 40 is a block diagram showing an example of the configuration of an integrated circuit that implements the video encoding method and video decoding method of each embodiment. [Figure 41] Figure 41 shows a configuration for switching the drive frequency. [Figure 42] Figure 42 shows the steps for identifying video data and switching the drive frequency. [Figure 43] Figure 43 shows an example of a lookup table that associates video data specifications with drive frequencies. [Figure 44A] Figure 44A shows an example of a configuration in which the signal processing module is shared. [Figure 44B] Figure 44B shows another example of a configuration in which the signal processing module is shared. [Modes for carrying out the invention]

[0010] (Knowledge that formed the basis of this invention) The inventors of the present invention have found that the following problems arise with respect to the prior art.

[0011] In interpredictive coding, when encoding a picture, the video encoding device uses a pre-encoded picture that is either before or after the picture to be encoded in display order (display time order) as a reference picture. The video encoding device then derives a motion vector by detecting the motion of the picture to be encoded relative to the reference picture, and calculates the difference between the predicted image data obtained by motion compensation based on the motion vector and the image data of the picture to be encoded. This eliminates temporal redundancy. Here, in motion detection, the video encoding device calculates the difference between the block to be encoded in the picture to be encoded and the block in the reference picture, and selects the block in the reference picture with the smallest difference as the reference block. The video encoding device then detects the motion vector using the block to be encoded and the reference block.

[0012] In the already standardized video encoding scheme called H.264, three types of picture—I-pictures, P-pictures, and B-pictures—are used to compress the amount of information. An I-picture is a picture in which inter-predictive encoding is not performed; that is, only intra-predictive encoding is performed. A P-picture is a picture in which inter-predictive encoding is performed by referencing only one already encoded picture that is either before or after the picture to be encoded in the display order. A B-picture is a picture in which inter-predictive encoding is performed by referencing two already encoded pictures that are either before or after the picture to be encoded in the display order.

[0013] Furthermore, in the H.264 video encoding scheme, a motion vector detection mode is used as the encoding mode for interpretation of each target block in a B-picture. This mode encodes the difference between the predicted image data and the image data of the target block, as well as the motion vector used to generate the predicted image data. In motion vector detection mode, the video encoding device can select either bidirectional prediction, which generates a predicted image by referencing two already encoded pictures located in front of or behind the target picture, or unidirectional prediction, which generates a predicted image by referencing one already encoded picture located in front of or behind the target picture.

[0014] Furthermore, in the H.264 video encoding scheme, the video encoding device can select an encoding mode called time-motion vector prediction (time-predicted motion vector mode, or time-direct mode) when deriving motion vectors in the encoding of B-pictures. The predicted motion vector (predicted motion vector candidate) generated by time-motion vector prediction is called the time-predicted motion vector.

[0015] The interprediction coding method in time motion vector prediction will be explained using Figure 1. Figure 1 is an explanatory diagram showing motion vectors in time motion vector prediction, and shows the case where block a of picture B2 is coded using time motion vector prediction.

[0016] In this case, the motion vector vb of block b, which is in the same position as block a in picture P3, a reference picture located behind picture B2, is used. Motion vector vb is the motion vector used when block b was encoded and refers to picture P1. The video encoding device then uses motion vectors parallel to motion vector vb to obtain reference blocks from picture P1, a forward reference picture, and picture P3, a backward reference picture, and encodes block a by performing two-directional prediction. That is, the motion vectors used when encoding block a are motion vector va1 for picture P1 and motion vector va2 for picture P3.

[0017] However, in this type of time-motion vector prediction, if the reference picture containing information such as motion vectors used in calculating the time-predicted motion vector is lost, for example due to packet loss during streaming, it becomes impossible to calculate the correct time-predicted motion vector, resulting in degradation of the decoded image. Furthermore, the error propagates to the picture referencing the decoded image, which may result in the decoded process stopping. For example, if the information of reference picture P3 in Figure 1 is lost, it becomes impossible to calculate the time-predicted motion vector of picture B2. As a result, picture B2 may not be decoded correctly, and the decoded process may stop.

[0018] Therefore, this embodiment describes a video encoding method and a video decoding method that can effectively prevent the propagation of errors in the decoding process.

[0019] Furthermore, in such video encoding and decoding methods, it is desirable to improve the encoding efficiency.

[0020] Therefore, this embodiment describes a video encoding method and a video decoding method that can improve encoding efficiency.

[0021] A video encoding method according to one aspect of the present invention is a video encoding method that performs interpredictive encoding of a block to be encoded in a picture to be encoded using motion vectors, comprising: a flag encoding step of encoding a first flag indicating whether or not time motion vector prediction is used, which uses a time-predicted motion vector that is the motion vector of a block contained in an encoded picture different from the picture to be encoded; a parameter encoding step of encoding a first parameter for calculating the time-predicted motion vector if the first flag indicates that the time-predicted motion vector prediction is used; and a first candidate deriving a plurality of first predictive motion vector candidates including the time-predicted motion vector using the first parameter. The method includes an output step, a first motion vector coding step of coding a motion vector used for inter-predictive coding of the target block 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 that do not include the time predicted motion vector if the first flag indicates that the time motion vector prediction is not used, and a second motion vector coding step of coding a motion vector used for inter-predictive coding of the target block using one of the plurality of second predicted motion vector candidates, wherein the first parameter is not coded if the first flag indicates that the time motion vector prediction is not used.

[0022] According to this, the video encoding method does not encode the first parameter, which is unnecessary when time-motion vector prediction is not used. This allows the video encoding method to improve encoding efficiency.

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

[0024] For example, the first parameter may include a reference picture index for identifying the encoded picture from among a plurality of pictures shown in a reference picture list used to encode the picture to be encoded.

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

[0026] For example, in the first or second candidate derivation step, the plurality of first predicted motion vectors or the plurality of second predicted motion vectors may include alternative vectors that replace the time predicted motion vector.

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

[0028] For example, the video encoding method is a method for encoding pictures belonging to a basic view and a dependent view, respectively, 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 basic view and the dependent view, wherein in the first candidate derivation step, if the picture to be encoded belongs to the dependent view and is the leading picture of a GOP (Group Of Pictures), the disparity vector may be included as an alternative vector in the plurality of first predicted motion vectors.

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

[0030] For example, the video encoding method is a method for encoding pictures belonging to a basic view and a dependent view, respectively, 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 basic view and the dependent view, and in the second candidate derivation step, the disparity vector may be included as an alternative vector in the plurality of second predicted motion vectors.

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

[0032] Furthermore, a video decoding method according to one aspect of the present invention is a video decoding method that performs interpredictive decoding of blocks to be decoded in a picture to be decoded using motion vectors, comprising: a flag decoding step of decoding a first flag indicating whether or not time motion vector prediction is used, which uses time-predicted motion vectors that are motion vectors of blocks in a decoded picture different from the picture to be decoded; a parameter decoding step of decoding a first parameter for calculating the time-predicted motion vector if the first flag indicates that the time-predicted motion vector prediction is used; and a first candidate deriving a plurality of first predictive motion vector candidates including the time-predicted motion vector using the first parameter. The process includes an auxiliary derivation step, a first motion vector decoding step of decoding a motion vector used for inter-predictive decoding of the target block 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 that do not include the time predicted motion vector if the first flag indicates that the time motion vector prediction is not used, and a second motion vector decoding step of decoding a motion vector used for inter-predictive decoding of the target block using one of the plurality of second predicted motion vector candidates, wherein the first parameter is not decoded if the first flag indicates that the time motion vector prediction is not used.

[0033] According to this, the video decoding method does not decode the first parameter, which is unnecessary when time motion vector prediction is not used. This allows the video decoding method to improve its encoding efficiency.

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

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

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

[0037] For example, in the first or second candidate derivation step, the plurality of first predicted motion vectors or the plurality of second predicted motion vectors may include alternative vectors that replace the time predicted motion vector.

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

[0039] For example, the video decoding method is a method for decoding pictures belonging to a basic view and a dependent view, respectively, 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 basic view and the dependent view, and in the first candidate derivation step, if the picture to be decoded belongs to the dependent view and is the leading picture of the GOP (Group Of Pictures), the disparity vector may be included as an alternative vector in the plurality of first predicted motion vectors.

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

[0041] For example, the video decoding method is a method for decoding pictures belonging to a basic view and a dependent view, respectively, 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 basic view and the dependent view, and in the second candidate derivation step, the disparity vector may be included as an alternative vector in the plurality of second predicted motion vectors.

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

[0043] Furthermore, a motion image encoding device according to one aspect of the present invention comprises a control circuit and a storage device electrically connected to the control circuit, and is a motion image encoding device that performs interpredictive encoding of blocks to be encoded in a picture to be encoded using motion vectors, wherein the control circuit includes a flag encoding step of encoding a first flag indicating whether or not time motion vector prediction is used, which uses time-predicted motion vectors that are motion vectors of blocks included in an encoded picture different from the picture to be encoded; a parameter encoding step of encoding a first parameter for calculating the time-predicted motion vector when the first flag indicates that the time-predicted motion vector is used; and a plurality of first parameters including the time-predicted motion vector using the first parameter. The process involves a first candidate derivation step of deriving a candidate for predicted motion vector, a first motion vector coding step of coding a motion vector used for inter-predictive coding of the target block using one of the plurality of first predicted motion vector candidates, and, if the first flag indicates that time motion vector prediction is not used, a second candidate derivation step of deriving a plurality of second predicted motion vector candidates that do not include the time predicted motion vector, and a second motion vector coding step of coding a motion vector used for inter-predictive coding of the target block using one of the plurality of second predicted motion vector candidates, and if the first flag indicates that time motion vector prediction is not used, the first parameter is not coded.

[0044] According to this, the video encoding device does not decode the first parameter, which is unnecessary, when time-motion vector prediction is not used. This allows the video encoding device to improve its encoding efficiency.

[0045] Furthermore, a motion image decoding device according to one aspect of the present invention comprises a control circuit and a storage device electrically connected to the control circuit, and is a motion image decoding device that performs interpredictive decoding of blocks to be decoded included in a picture to be decoded using motion vectors, wherein the control circuit performs a flag decoding step of decoding a first flag indicating whether or not time motion vector prediction is used, which uses time-predicted motion vectors that are motion vectors of blocks included in a decoded picture different from the picture to be decoded, and a parameter decoding step of decoding a first parameter for calculating the time-predicted motion vector when the first flag indicates that the time-predicted motion vector prediction is used, and using the first parameter, the plurality of first... The process involves a first candidate derivation step of deriving a candidate predicted motion vector, a first motion vector decoding step of decoding a motion vector used for inter-predictive decoding of the target block using one of the plurality of first predicted motion vector candidates, and, if the first flag indicates that the time motion vector prediction is not used, a second candidate derivation step of deriving a plurality of second predicted motion vector candidates that do not include the time predicted motion vector, and a second motion vector decoding step of decoding a motion vector used for inter-predictive decoding of the target block using one of the plurality of second predicted motion vector candidates, and if the first flag indicates that the time motion vector prediction is not used, the first parameter is not decoded.

[0046] According to this, the video decoding device does not decode the first parameter, which is unnecessary, when time-motion vector prediction is not used. This allows the video decoding device to improve its encoding efficiency.

[0047] Furthermore, a video encoding and decoding device according to one aspect of the present invention comprises the video encoding device and the video decoding device.

[0048] These general or specific embodiments may be implemented as a system, method, integrated circuit, computer program, or recording medium such as a computer-readable CD-ROM, or as any combination of a system, method, integrated circuit, computer program, and recording medium.

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

[0050] The embodiments described below are all specific examples of the present invention. The numerical values, shapes, materials, components, arrangement and connection configurations of the components, steps, and the order of steps shown in the following embodiments are examples only and are not intended to limit the present invention. Furthermore, among the components in the following embodiments, those components that are not described in the independent claim representing the highest-level concept will be described as optional components.

[0051] (Embodiment 1) Figure 2 is a block diagram showing the configuration of a video encoding device using the video encoding method according to Embodiment 1.

[0052] As shown in Figure 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 time prediction motion vector calculation unit 114, a colPic memory 115, a total 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 the blocks to be encoded from outside the device, acquires a prediction block from the switch 111, generates a residual block by subtracting the prediction block from the blocks to be encoded, and outputs the generated residual block to the orthogonal transformation unit 102.

[0054] The orthogonal transformation unit 102 generates transformation coefficients by converting the residual blocks obtained from the subtraction unit 101 from the image domain to the frequency domain, and outputs the generated transformation coefficients to the quantization unit 103. The quantization unit 103 generates quantization coefficients by quantizing the transformation coefficients obtained from the quantization unit 103, and outputs the generated quantization coefficients to the inverse quantization unit 104 and the variable-length coding unit 118.

[0055] The inverse quantization unit 104 restores the conversion coefficients by inverse quantization of the quantization coefficients obtained from the quantization unit 103, and outputs the restored conversion coefficients to the inverse orthogonal transformation unit 105. The inverse orthogonal transformation unit 105 restores the residual block by converting the restored conversion coefficients obtained from the inverse quantization unit 104 from the frequency domain to the image domain, and outputs the restored residual block to the summing unit 106.

[0056] The adder 106 restores the target block for encoding by adding the restored residual block obtained from the inverse orthogonal transform 105 and the predicted block obtained from the switch 111, and outputs the restored target block for encoding to the block memory 107 and the frame memory 108. The block memory 107 stores the restored input image sequence in block units. The frame memory 108 stores the restored input image sequence in frame units.

[0057] The picture type determination unit 113 determines whether to encode the input image sequence using an I-picture, B-picture, or P-picture picture type, 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 encoding unit 118.

[0058] The intra-prediction unit 109 generates predicted blocks by performing intra-prediction on the blocks to be encoded using the restored input image sequences in block units stored in the block memory 107, and outputs the generated predicted blocks to the switch 111. The inter-prediction unit 110 generates predicted blocks by performing inter-prediction on the blocks to be encoded using the restored input image sequences in frame units stored in the frame memory 108 and the motion vectors derived from motion detection, and outputs the generated predicted blocks to the switch 111.

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

[0060] The co-located information determination unit 117 determines whether or not to prohibit the use of co-located blocks. The co-located information determination unit 117 then generates a co-located usage prohibition flag for each picture, indicating the decision result, and outputs the generated co-located usage prohibition flag to the time prediction motion vector calculation unit 114 and the variable-length coding unit 118. This co-located usage prohibition flag is included in the bitstream (typically the picture header or slice header). In this embodiment, the use of co-located blocks is prohibited by using the co-located usage prohibition flag, thereby prohibiting the calculation of time prediction motion vectors using the information of co-located blocks and preventing them from being added to the prediction motion vector candidates. However, this is not necessarily the only way. For example, a flag (enable_temporal_mvp_flag) that directly indicates whether or not to allow time prediction motion vectors using the information of co-located blocks may be prepared and this flag may be included in the bitstream (typically the picture header or slice header).

[0061] Furthermore, the co-located information determination unit 117 determines that the co-located block is either a block contained in a picture located before the picture to be encoded in the display order (hereinafter referred to as a forward reference block) or a block contained in a picture located after the picture to be encoded (hereinafter referred to as a backward reference block). In other words, a forward reference block is a block contained in a reference picture specified in the reference picture list L0. A backward reference block is a block contained in a reference picture specified in the reference picture list L1. In this embodiment, an example is shown in which the reference picture list L0 contains a forward reference block and the reference picture list L1 contains a backward reference block, but this is not necessarily the case. For example, both reference picture lists may contain reference blocks in the same direction, such as when the reference picture list L0 contains a forward reference block and the reference picture list L1 contains a forward reference block, or the two reference picture lists may contain reference blocks in opposite directions.

[0062] The co-located information determination unit 117 then generates a co-located reference direction flag (collocated_from_l0_flag) for each picture, indicating the determination result, and outputs the generated co-located reference direction flag to the time prediction motion vector calculation unit 114 and the variable length coding unit 118. This co-located reference direction flag is included in the bitstream (typically the picture header or slice header). For example, if the value of collocated_from_l0_flag is 1, a co-located block is calculated from the reference picture list L0, and if the value of collocated_from_0_flag is 0, a co-located block is calculated from the reference picture list L1. Note that if the co-located usage prohibition flag is set to a value indicating "prohibited" (for example, if 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, a co-located block is a block within a picture that is different from the picture containing the block to be encoded, and whose position within the picture is the same as the block to be encoded. For example, among the multiple pictures included in the reference picture list determined according to the value of the co-located reference direction flag, the 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, within the co-located picture, the block at the same position as the block to be encoded 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 the reference picture list, which is determined by the value of the co-located reference direction flag. collocated_ref_idx is included in the bitstream (typically in the picture header or slice header).

[0065] For example, when the co-located information determination unit 117 designates a picture corresponding to reference picture index 0 in the reference picture list L1 as a co-located picture, it sets the co-located reference direction flag (collocated_from_l0_flag) to a value of 0 and the co-located reference picture index collocated_ref_idx to a value of 0. However, if the co-located usage prohibition flag is set to a value indicating "prohibited" (for example, if the value of enable_temporal_mvp_flag is 0), the co-located reference picture index (collocated_ref_idx) may be omitted by the co-located information determination unit 117. A detailed method will be described later. Furthermore, the positions of the encoded block and the co-located block within each picture do not have to be exactly the same. For example, the co-located information determination unit 117 may set a block adjacent to the block at the same position in the encoded block within a picture different from the encoded picture as a co-located block.

[0066] The time-predicted motion vector calculation unit 114 derives candidate predicted motion vectors, which are candidates for predicted motion vectors, using colPic information such as the motion vector of a co-located block stored in the colPic memory 115, or the overall motion vector of a colPic picture stored in the overall vector storage unit, according to the value of the co-located usage prohibition flag obtained from the co-located information determination unit 117.

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

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

[0069] The interpretation control unit 112 decides to encode the motion vector using the predicted motion vector with the smallest error compared to the motion vector derived by motion detection, selected from among a plurality of predicted motion vector candidates. Here, the error refers to, for example, the difference between the predicted motion vector candidate and the motion vector derived by motion detection.

[0070] Furthermore, the interpretation control unit 112 identifies a predicted motion vector index corresponding to the determined predicted motion vector for each block. The interpretation control unit 112 then outputs the predicted motion vector index and the difference value between the motion vector and the predicted motion vector to the variable-length coding unit 118. The interpretation control unit 112 also transfers colPic information, including the motion vector of the block to be coded, to the colPic memory 115. The interpretation control unit 112 also transfers the motion vector of the coded block to the overall vector storage unit 116.

[0071] The colPic memory 115 stores colPic information, including the motion vector of the block to be encoded, for use as the predicted motion vector when encoding the next picture. The overall vector storage unit 116 calculates the overall motion vector from the motion vectors of multiple blocks to be encoded included in the picture and stores it for use as the predicted motion vector when encoding 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 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 usage 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 time-predicted motion vector calculation unit 114.

[0073] Figure 3 is a diagram showing an overview of the processing flow of the video encoding method according to Embodiment 1.

[0074] The co-located information determination unit 117 determines co-located information, including a co-located usage prohibition flag, a co-located reference direction flag, and a co-located reference picture index, in a manner described later, when deriving predicted motion vector candidates using time motion vector prediction (S11).

[0075] Next, the time-predicted motion vector calculation unit 114 determines whether the co-located usage prohibition flag is on (prohibited) (or whether the value of enable_temporal_mvp_flag is 0) (S12). If the determination result is true (Yes in S12), the time-predicted motion vector calculation unit 114 reads the overall motion vector from the overall vector storage unit 116 and associates the read overall motion vector with header information such as the picture header (S13).

[0076] Next, the time-predicted motion vector calculation unit 114 adds the overall motion vector to the candidate for the time-predicted motion vector as an alternative vector for the time-predicted motion vector (S14). The time-predicted motion vector calculation unit 114 also assigns a value of the predicted motion vector index to the predicted motion vector added to the candidate.

[0077] On the other hand, if the co-located usage prohibition flag is off (No in S12) (or the value of enable_temporal_mvp_flag is 1), the time prediction motion vector 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 time prediction motion vector using the reference motion vector of the co-located block, and adds the calculated time prediction motion vector to the prediction motion vector candidates (S17). The time prediction motion vector calculation unit 114 also assigns a prediction motion vector index value to the prediction motion vector added to the candidates.

[0078] Generally, a small predicted motion vector index value indicates that less information is needed. Conversely, a large predicted motion vector index value indicates that more information is needed. Therefore, assigning a small predicted motion vector index to a predicted motion vector that is more likely to result in a more accurate motion vector improves coding efficiency.

[0079] Next, the interpretation unit 110 generates a predicted block of the block to be encoded by performing interpretation using the motion vector derived from motion detection. Then, the subtraction unit 101, the orthogonal transformation unit 102, the quantization unit 103, and the variable-length encoding unit 118 encode the block to be encoded using the predicted block generated by the interpretation unit 110.

[0080] Furthermore, the interpretation control unit 112 encodes the motion vector using the predicted motion vector candidate that has the smallest error with the motion vector among a plurality of predicted motion vector candidates. For example, the interpretation control unit 112 calculates the difference between each of the plurality of predicted motion vector candidates and the motion vector derived by motion detection as an error, and determines the predicted motion vector candidate with the smallest error among the calculated errors to be used as the predicted motion vector when encoding the motion vector.

[0081] The inter-prediction control unit 112 then outputs the predicted motion vector index corresponding to the selected predicted motion vector, and the 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 of the predicted motion vector index and error information obtained from the inter-prediction control unit 112, and includes the variable-length coded predicted motion vector index and error information in the bitstream (S15).

[0082] Next, the interpretation control unit 112 stores colPic information, including the motion vectors used for interpretation, in the colPic memory 115. The colPic memory 115 stores the motion vector of the reference picture, the reference picture index value, and the prediction direction, etc., in order to calculate the time-predicted motion vector of the block to be encoded. The interpretation control unit 112 also stores the motion vectors used for interpretation in the overall vector storage unit 116 (S16).

[0083] Figure 4 shows an example of a candidate for predicted motion vector. Motion vector A (MV_A) is the motion vector of adjacent block A, located to the left of the block to be encoded. Motion vector B (MV_B) is the motion vector of adjacent block B, located above the block to be encoded. Motion vector C (MV_C) is the motion vector of adjacent block C, located to the upper right of the block to be encoded. Median(MV_A, MV_B, MV_C) represents the midpoint of motion vectors A, B, and C. Here, the midpoint is derived, for example, using equations 1 to 3 below.

[0084]

number

number

number

[0085] The predicted motion vector index values ​​are as follows: 0 corresponds to Median(MV_A, MV_B, MV_C), 1 corresponds to motion vector A, 2 corresponds to motion vector B, 3 corresponds to motion vector C, and 4 corresponds to the time predicted motion vector (or alternative vector). Note that the assignment of the predicted motion vector index is not limited to this example.

[0086] Figure 5 shows an example of a code table used when variable-length coding of predicted motion vector indices. In the example in Figure 5, codes with shorter code lengths are assigned in order from the smallest predicted motion vector index value. By assigning smaller predicted motion vector indices to predicted motion vector candidates that have a high probability of good prediction accuracy, coding efficiency can be improved.

[0087] Figure 6 shows the flow of determining a candidate predicted motion vector in the interpretation control unit 112. According to the flow shown in Figure 6, the interpretation control unit 112 determines the candidate predicted motion vector with the smallest error with the motion vector derived from motion detection as the predicted motion vector to be used when encoding the motion vector. Then, the error information between the motion vector and the predicted motion vector, and the predicted motion vector index indicating the determined predicted motion vector are encoded in a variable length and included in the bitstream.

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

[0089] If mvp_idx < number of predicted motion vector candidates (Yes in S22), the inter-prediction control unit 112 calculates the motion vector error (error information) of the predicted motion vector candidate identified by the current value of mvp_idx among the multiple predicted motion vector candidates (S23). For example, the inter-prediction control unit 112 calculates the motion vector error by subtracting the predicted motion vector candidate with predicted motion vector index = 0 in Figure 4 from the motion vector used to encode the 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 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 motion vector error ≥ minimum motion vector error (No in S24), step S25 is skipped.

[0091] Then, the interpretation control unit 112 increments mvp_idx by 1 (S26) and repeats each of the above processes (steps S22 to S26) for the number of predicted motion vector candidates. Then, when mvp_idx = number of predicted motion vector candidates (No in S22), the interpretation control unit 112 outputs the values ​​set for the minimum motion vector error and the predicted motion vector index to the variable-length coding unit 118 and terminates the process shown in Figure 6 (S27).

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

[0093] When a block to be encoded is encoded, the colPic information, including motion vectors stored in the colPic memory 115, or the overall motion vectors in the overall vector storage unit 116 are read out according to the co-located usage prohibition flag and added to the predicted motion vector candidates.

[0094] The predicted motion vector candidates are used to encode the motion vector of the block to be encoded. In this embodiment 1, an example is used in which prediction direction 1 is a forward reference and prediction direction 2 is a backward reference, but it is also possible for prediction direction 1 to be a backward reference and prediction direction 2 to be a forward reference, or for both prediction direction 1 and prediction direction 2 to be either forward references or backward references. An example is shown in which prediction direction 1 uses the reference picture list L0 and prediction direction 2 uses the reference picture list L1.

[0095] The overall vector storage unit 116 stores the overall motion vector calculated from the motion vectors of multiple blocks to be encoded that constitute the picture to be encoded. For example, the overall motion vector is the average value for each prediction direction of the motion vector during interpredictive coding of the entire picture to be encoded. In this embodiment 1, an example is shown in which the average value of the motion vectors of multiple blocks to be encoded that constitute the picture to be encoded is used as the overall vector, but this is not necessarily the only example.

[0096] For example, the overall motion vector may be the median or weighted average of the motion vectors during interpredictive coding of multiple blocks constituting the picture to be coded. Alternatively, the overall motion vector may be the motion vector with the highest frequency of occurrence among the motion vectors during interpredictive coding of multiple blocks constituting the picture to be coded. Alternatively, the overall motion vector may be the motion vector that refers to the picture closest in display order among the motion vectors during interpredictive coding of multiple blocks constituting the picture to be coded.

[0097] Figure 8A shows the detailed processing flow of step S11 in Figure 3. Figure 8A will be explained below.

[0098] First, the co-located information determination unit 117 determines whether or not to perform time motion vector prediction using co-located blocks for the picture to be encoded (S31). Then, the co-located information determination unit 117 generates a co-located usage prohibition flag (or enable_temporal_mvp_flag) for each picture, indicating whether or not the use of co-located blocks is permitted (time motion vector prediction), and outputs the generated co-located usage prohibition flag to the variable-length encoding unit 118.

[0099] For example, during streaming, to suppress the propagation of decoding errors caused by time motion vector prediction, it is conceivable to turn on a co-located usage prohibition flag at regular intervals. One way to achieve this is to prepare a counter that counts the number of encoded target pictures, and if the number of encoded pictures is less than a certain threshold, set the co-located usage prohibition flag to off. If the number of encoded pictures exceeds the threshold, set the co-located usage prohibition flag to on and reset the counter to 0.

[0100] Another possible method to suppress the propagation of decoding errors is to set the co-located usage prohibition flag to ON for pictures that may be referenced (e.g., P pictures and B pictures referenced by other pictures), and to turn off the co-located usage prohibition flag for non-referenced pictures that cannot be referenced (e.g., B pictures not referenced by other pictures). In this way, by setting the co-located usage prohibition flag to ON for pictures referenced by other pictures, it becomes possible to effectively suppress the propagation of decoding errors.

[0101] Next, the co-located information determination unit 117 determines whether a forward-referenced block or a backward-referenced block will be the co-located block (S32). For example, the co-located information determination unit 117 selects the co-located block that is closer to the picture to be encoded in terms of display order from among the co-located blocks (forward-referenced blocks) included in the forward-referenced picture and the co-located blocks (backward-referenced blocks) included in the backward-referenced picture as the co-located block. The co-located information determination unit 117 then generates a co-located reference direction flag indicating whether the co-located block is a forward-referenced block or a backward-referenced 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 encoding unit 118.

[0102] Figure 8B shows an example of a B-picture being referenced by other pictures. In the example in Figure 8B, a reference structure with multiple layers is defined. The first picture in the stream is set as an I-picture, and all pictures other than the first I-picture are set as B-pictures. In addition, pictures belonging to higher-level layers refer to pictures belonging to the same-level layer or pictures belonging to lower-level layers.

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

[0104] Figure 9 shows the detailed processing flow of step S17 in Figure 3. Figure 9 will be explained below.

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

[0106] If it is determined that a co-located block has two or more motion vectors (Yes in S42), the time-predicted motion vector calculation unit 114 determines whether the co-located block is a back-reference block (S43). That is, the time-predicted motion vector calculation unit 114 determines whether the picture containing the co-located block is located later in the display order than the picture to be encoded.

[0107] Next, if it is determined that the co-located block is a back-reference block (Yes in S43), the time-predicted motion vector calculation unit 114 uses the forward-reference motion vector of the co-located block (motion vector mvL0 for the reference picture in the reference picture list L0) to derive a time-predicted motion vector by time-prediction (S44). Then, the time-predicted motion vector calculation unit 114 adds the time-predicted motion vector calculated in step S44 to the candidate for predicted motion vector (S45).

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

[0109] On the other hand, if it is determined that a co-located block has only one of either a forward reference motion vector or a backward reference motion vector (No in S42), the time-predicted motion vector calculation unit 114 determines whether or not the co-located block has a forward reference motion vector (S47). If it is determined that the co-located block has a forward reference motion vector (Yes in S47), the time-predicted motion vector calculation unit 114 uses the forward reference motion vector of the co-located block to derive the time-predicted motion vector of the block to be encoded (S48), and adds the derived time-predicted motion vector to the candidate for predicted motion vector (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 time-predicted motion vector calculation unit 114 determines whether or not 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 time-predicted motion vector calculation unit 114 uses the backward reference motion vector to derive a time-predicted motion vector for the block to be encoded (S50), and adds the derived time-predicted motion vector to the candidate for predicted motion vector (S45).

[0111] On the other hand, if it is determined that the co-located block does not have a back-reference motion vector (No in S49), the time-predicted motion vector calculation unit 114 terminates the process shown in Figure 9 (S51) without adding the time-predicted motion vector to the predicted motion vector candidates. Alternatively, instead of the process in step S51, the time-predicted motion vector calculation unit 114 may add a motion vector with a motion amount of 0 as the time-predicted motion vector of the co-located block to the predicted motion vector candidates.

[0112] In the processing flow shown in Figure 9, the time-predicted motion vector calculation unit 114 determines in step S47 whether the co-located block has a forward reference motion vector, and in step S49 whether the co-located block has a backward reference motion vector. However, the flow is not limited to this. For example, the time-predicted motion vector 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] Figure 10 shows the detailed processing flow for steps S13 and S14 in Figure 3. Figure 10 will be explained below.

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

[0115] If the overall motion vector information is determined to have two or more motion vectors (Yes in S62), the time-predicted motion vector calculation unit 114 determines whether the co-located reference direction is a back reference block (S63). If the co-located reference direction is determined to be a back reference block (Yes in S63), the time-predicted motion vector calculation unit 114 selects a forward reference motion vector included in the overall motion vector information (S64).

[0116] The time-predicted motion vector calculation unit 114 then adds the selected overall motion vector to header information such as the picture header (output to the variable-length encoding unit 118) and adds it to the predicted motion vector candidates for the encoding target block (S65). The time-predicted motion vector calculation unit 114 also adds information to the header information that identifies the reference picture referenced by the selected overall motion vector (more specifically, referenced by multiple motion vectors used to calculate the overall motion vector). This information is used in the scaling process described later using Figures 11A to 12B.

[0117] On the other hand, if the co-located reference direction is determined to be a forward reference block (No in S63), the time-predicted motion vector calculation unit 114 selects a backward reference motion vector included in the overall motion vector information (S66). Then, the time-predicted motion vector calculation unit 114 adds the selected overall motion vector to header information such as the picture header, and also adds it to the predicted motion vector candidates for the block to be encoded (S65).

[0118] Furthermore, if it is determined that the overall motion vector information has only one of either the forward reference motion vector or the backward reference motion vector (No in S62), the time prediction motion vector calculation unit 114 determines whether or not the overall motion vector information has the forward reference motion vector (S67).

[0119] If it is determined that the overall motion vector information has a forward reference motion vector (Yes in S67), the time prediction motion vector calculation unit 114 selects a forward reference motion vector included in the overall motion vector information (S68). Then, the time prediction motion vector calculation unit 114 adds the selected overall motion vector to header information such as the picture header, and adds it to the predicted motion vector candidates for the block to be encoded (S65).

[0120] On the other hand, if it is determined that the overall motion vector information does not have a forward reference motion vector (No in S67), the time-predicted motion vector calculation unit 114 determines whether or not the overall motion vector information has a backward reference motion vector (S69). If it is determined that the overall motion vector information has a backward reference motion vector (Yes in S69), the time-predicted motion vector calculation unit 114 selects a backward reference motion vector to be included in the overall motion vector information (S70). Then, the time-predicted motion vector calculation unit 114 adds the selected overall motion vector to header information such as the picture header, and adds it to the predicted motion vector candidates for the block to be encoded (S65).

[0121] On the other hand, if it is determined that the overall motion vector information does not have a backreference motion vector (No in S69), the time-predicted motion vector calculation unit 114 either does not add the time-predicted motion vector to the predicted motion vector candidates, or sets the overall motion vector to 0 (S71). Then, the time-predicted motion vector calculation unit 114 adds the set overall motion vector to header information such as the picture header, and also adds it to the predicted motion vector candidates of the block to be encoded (S65).

[0122] In the processing flow of Figure 10, the time-predicted motion vector calculation unit 114 determines in step S67 whether the overall motion vector has a forward reference motion vector, and in step S69 whether the overall motion vector has a backward reference motion vector, but the flow is not limited to this. For example, the time-predicted motion vector calculation unit 114 may first determine whether the overall motion vector has a backward reference motion vector, and then determine whether the overall motion vector has a forward reference motion vector.

[0123] Furthermore, while steps S63 to S66 in Figure 10 illustrate an example in which the time-predicted motion vector calculation unit 114 determines whether to select the overall motion vector mvL0 or mvL1 based on the co-located reference direction flag, the system is not limited to this. For example, the time-predicted motion vector calculation unit 114 may select the overall motion vector mvL0 as the candidate for the predicted motion vector in the reference picture list L0, and select the overall motion vector mvL1 as the candidate for the predicted motion vector in the reference picture list L1. This eliminates the need to add the co-located reference direction flag to the header when using the overall motion vector, further improving encoding efficiency.

[0124] Next, we will explain in detail the scaling method when adding time-predicted motion vectors to the predicted motion vector candidates. Note that the scaling method when adding global motion vectors to the predicted motion vector candidates is the same, except that the global motion vector is used as input instead of the motion vectors of co-located blocks, so we will omit the explanation.

[0125] Figure 11A shows a method for deriving a candidate predicted motion vector (temporal predicted motion vector) by time motion vector prediction using the forward reference motion vector, when a co-located block is a back reference block and has both a forward reference motion vector and a back reference motion vector. Specifically, the candidate predicted motion vector (TemporalMV) is derived using the forward reference motion vector by the following equation 4.

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

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

[0128] Figure 11B shows a method for deriving candidate predicted motion vectors (time-predicted motion vectors) by predicting time motion vectors using backreference motion vectors. Specifically, candidate predicted motion vectors are derived using the backreference motion vectors by the following equation 5.

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

[0130] Figure 12A shows a method for deriving a candidate predicted motion vector (time-predicted motion vector) by time-motion vector prediction using the back-reference motion vector, when a co-located block is a forward-reference block and has both a forward-reference motion vector and a back-reference motion vector. Specifically, the candidate predicted motion vector is derived using the back-reference motion vector by the following equation 6.

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

[0132] Figure 12B shows a method for deriving a candidate predicted motion vector (time-predicted motion vector) by predicting the time motion vector using a forward-referenced motion vector. Using the backward-referenced motion vector, the candidate predicted motion vector is derived by the following equation 7.

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

[0134] Thus, in this embodiment 1, the video encoding device 100 sets off time motion vector prediction using the motion vector for each encoding unit of the reference picture at regular intervals, and instead adds the overall motion vector of the reference picture to the header information and encodes the motion vector of the picture to be encoded using the scaled overall vector. This makes it possible to prevent the propagation of decoding errors while suppressing a decrease in encoding efficiency.

[0135] More specifically, if the co-located usage prohibition flag is set, the video encoding device 100 adds the overall vector read from the overall vector storage unit 116 to the predicted motion vector candidates of the block to be encoded, and also associates it with header information such as the picture header. As a result, even if the reference picture is lost during decoding, the video decoding device can decode the bitstream without decoding errors. In this way, error propagation is suppressed.

[0136] Furthermore, when the co-located usage prohibition flag is off, the video encoding device 100 can select the optimal predicted motion vector for the block to be encoded 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 the prediction error by using a backward reference motion vector. The backward reference motion vector is a motion vector that points from the picture containing the co-located block to a reference picture in the direction of the picture containing the block to be encoded, and has a high probability of being close to the optimal motion vector. Therefore, the prediction error is reduced.

[0137] On the other hand, the forward-referenced motion vector is the motion vector in the opposite direction from the direction in which the picture containing the co-located block is located, and therefore has a low probability of being close to the optimal motion vector. Thus, the prediction error becomes large. Similarly, when the co-located block is a backward-referenced block, the forward-referenced motion vector has a high probability of being close to the optimal motion vector. Thus, the prediction error becomes small.

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

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

[0140] Furthermore, 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 time-predicted motion vector of the block to be encoded depending on whether the co-located block is a back-reference block or a forward-reference block, but it is not limited to this. For example, the video encoding device 100 may calculate the time-predicted 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] Furthermore, in this embodiment 1, when the co-located usage prohibition flag is on, the video encoding device 100 adds the overall vector read from the overall vector storage unit 116 as a substitute vector for the time-predicted motion vector to the predicted motion vector candidate, 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 overall motion vector to the predicted motion vector candidate (i.e., add a motion vector with a motion amount of 0 as a substitute vector to the predicted motion vector candidate). In this case, the video encoding device 100 does not need to associate the overall motion vector with header information, etc. Also, when the co-located usage prohibition flag is on, the video encoding device 100 may not always add the time-predicted motion vector to the predicted motion vector candidate. By not adding the time-predicted motion vector to the predicted motion vector candidate, it is possible to improve encoding efficiency.

[0142] Furthermore, in this embodiment 1, the video encoding device 100 adds a co-located usage prohibition flag to all pictures, but it may also be added to only specific pictures. For example, the video encoding device 100 may add the co-located usage prohibition flag only to pictures referenced by other pictures (P pictures, B pictures referenced by other pictures, and pictures belonging to the lowest level layer in a reference structure having multiple layers), and not to pictures not referenced by other pictures. In this way, by adding the co-located usage prohibition flag only to specific pictures, the video encoding device 100 can improve encoding efficiency while suppressing the propagation of decoding errors.

[0143] Furthermore, in this embodiment 1, the video encoding device 100 added a co-located usage prohibition flag to each picture, but the co-located usage prohibition flag may also be added to each slice, which is composed of multiple blocks. By adding a co-located usage prohibition flag to each slice, it is possible to improve the prediction accuracy of the overall vector.

[0144] Furthermore, in this embodiment 1, the video encoding device 100 adds a co-located usage prohibition flag to all pictures, but it may also decide not to add the time-predicted motion vector to the predicted motion vector candidate based on the picture type without adding the co-located usage prohibition flag. For example, the video encoding device 100 may add the overall vector to the predicted motion vector candidate instead of the time-predicted motion vector to the predicted motion vector candidate for pictures referenced by other pictures (P pictures, B pictures referenced by other pictures, and pictures belonging to the lowest level layer in a reference structure having multiple layers). In this way, by deciding whether or not to add the time-predicted motion vector to the predicted motion vector candidate based on the picture type, the co-located usage prohibition flag can be omitted, thereby improving encoding efficiency.

[0145] Furthermore, the video encoding device 100 can improve encoding efficiency by not including unnecessary flags in the bitstream when the time-predicted motion vector is not included in the candidate motion vectors. A specific example will be explained using Figure 13. Figure 13 is a detailed flow of S11 in Figure 3, and shows 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 usage prohibition flag in the same manner as in Figure 8A, and encodes the co-located usage prohibition flag indicating the determined value (S101). Here, we will explain an example in which a flag (enable_temporal_mvp_flag) indicating whether or not to allow time-predicted motion vectors using information from co-located blocks is used as the co-located usage prohibition flag.

[0147] Next, the video encoding device 100 determines whether enable_teporal_mvp_flag is 1 or not (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 in Figure 8A, and encodes them respectively (S103 and S104).

[0148] On the other hand, if 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 time-predicted motion vector is not included in the predicted motion vector candidates (when enable_teporal_mvp_flag is 0), the video encoding device 100 does not add the unnecessary co-located reference direction flag and 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 encoding device 100 according to this embodiment performs the video encoding process shown in Figure 14.

[0150] The video encoding device 100 performs interpredictive encoding of the blocks to be encoded included in the picture to be encoded using motion vectors.

[0151] First, the video encoding device 100 generates a first flag (co-located usage prohibition flag) indicating whether or not time-motion vector prediction is used, which uses time-predicted motion vectors that are motion vectors of blocks included in an encoded picture different from the picture to be encoded (whether time-motion vector prediction is permitted or prohibited), and encodes the generated first flag (S111). The video encoding device 100 also adds the encoded first flag to the bitstream.

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

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

[0154] Specifically, this first parameter includes a parameter for identifying the encoded picture (co-located picture) that is the reference target of the motion vector. More specifically, the first parameter includes a reference picture index (collocated_ref_idx) for identifying the above-mentioned encoded picture (co-located picture) from among multiple pictures shown in the reference picture list used to encode the picture to be encoded. The first parameter also includes a flag (collocated_from_l0_flag) indicating which reference picture list to use to identify the above-mentioned encoded picture (co-located picture) from among the multiple reference picture lists used to encode the picture to be encoded.

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

[0156] Next, the video encoding device 100 generates a time-predicted motion vector using the first parameter and derives a plurality of first predictive motion vector candidates including the generated time-predicted motion vector (S114).

[0157] Next, the video encoding device 100 encodes a motion vector used for inter-predictive encoding of the block to be encoded using one of the multiple first predicted motion vector candidates (S115). Specifically, the video encoding device 100 selects the first predicted motion vector candidate from the multiple first predicted motion vector candidates that has the smallest difference from the motion vector used for inter-predictive encoding of the block to be encoded, and encodes the motion vector using the selected first predicted motion vector candidate. More specifically, the video encoding device 100 encodes the difference between the selected first predicted motion vector candidate and the motion vector.

[0158] Furthermore, the video encoding device 100 encodes the target block by intercoding using the motion vector described above. The video encoding device 100 then adds the encoded motion vector (difference) and the encoded target block to the bitstream.

[0159] On the other hand, if the first flag indicates that time motion vector prediction is not used (prohibited) (No in S112), the video encoding device 100 does not encode the first parameter (S116). In other words, 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 predicted motion vector candidates that do not include the time predicted motion vector (S117).

[0161] Next, the video encoding device 100 encodes a motion vector used for interpredictive encoding of the target block using one of the multiple second predicted motion vector candidates (S118). A specific example of this process is the same as the process in step S115 above when the multiple first predicted motion vector candidates are replaced with multiple second predicted motion vector candidates.

[0162] Step S111 is performed by the flag coding unit included in the video encoding device 100. Steps S113 and S116 are performed by the parameter coding unit included in the video encoding device 100. Steps S114 and S117 are performed by the candidate derivation unit included in the video encoding device 100. Steps S115 and S118 are performed by the motion vector coding unit included in the video encoding device 100.

[0163] Here, the functions of the flag coding unit are realized by, for example, the co-located information determination unit 117 and the variable-length coding unit 118 shown in Figure 2. The functions of the parameter coding unit are also realized by the co-located information determination unit 117 and the variable-length coding unit 118 shown in Figure 2. The functions of the candidate derivation unit are realized by the inter-prediction control unit 112 and the time-prediction motion vector calculation unit 114 shown in Figure 2. The functions of the motion vector coding unit are realized by the subtraction unit 101, the inter-prediction unit 110, the inter-prediction control unit 112, and the variable-length coding unit 118 shown in Figure 2.

[0164] Furthermore, the first flag (co-located usage prohibition flag) and the first parameters (collocated_from_l0_flag and collocated_ref_idx) are generated and encoded for each picture or slice. In other words, this first flag and first parameter are included in the picture header or slice header of the bitstream. Note that the first flag and first parameter may be generated for different units (picture or slice). For example, the first flag may be generated per picture, and the first parameter may be generated per slice.

[0165] Furthermore, at least one of the first flag and the first parameter may be generated and encoded for each picture. In other words, at least one of the first flag and the first parameter may be included in the PPS (Picture Parameter Set) or SPS (Sequence Parameter Set) of the bitstream.

[0166] Furthermore, the first flag may be hierarchically included in multiple units, such as slices, pictures, and sequences of multiple pictures. For example, the video encoding device 100 generates a first flag for each picture indicating whether or not time-motion vector prediction is used for that picture. Furthermore, if the first flag indicates that time-motion vector prediction is used, the video encoding device 100 generates a second flag for each slice included in the picture indicating whether or not time-motion vector prediction is used for that slice. On the other hand, if the first flag indicates that time-motion vector prediction cannot be used, the video encoding device 100 does not generate a second flag for each slice. The video encoding device 100 may generate a second flag for each slice included in the picture only if the first flag indicates that time-motion vector prediction is not used. The video encoding device 100 may also generate the first flag for multiple 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 the bitstream generated by the video encoding device 100 will be described.

[0168] Figure 15 is a block diagram showing the configuration of a video decoding device 200 using the video decoding method according to Embodiment 2.

[0169] In this second embodiment, blocks included in a picture located before the picture to be decoded in the display order (a reference picture identified in the reference picture list L0) are called forward reference blocks. Blocks included in a picture located after the picture to be decoded in the display order (a reference picture identified in the reference picture list L1) are called backward reference blocks.

[0170] As shown in Figure 15, the motion image decoding device 200 includes a variable-length decoding unit 201, an inverse quantization unit 202, an inverse orthogonal transformation unit 203, an adder 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 time-predicted motion vector calculation unit 211, and a colPic memory 212.

[0171] The variable-length decoding unit 201 obtains picture type information, predicted motion vector index, co-located usage prohibition flag (or enable_temporal_mvp_flag), co-located reference direction flag (collocated_from_l0_flag), co-located reference picture index (collocated_ref_idx), overall motion vector, and quantization coefficients by decoding the input bitstream in a variable length. 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 usage prohibition flag (or enable_temporal_mvp_flag), co-located reference direction flag (collocated_from_l0_flag), co-located reference picture index (collocated_ref_idx), and overall motion vector to the time-predicted motion vector calculation unit 211, and outputs the quantization coefficients to the inverse quantization unit 202.

[0172] The inverse quantization unit 202 reconstructs the conversion coefficients by inverse quantization of the quantization coefficients obtained from the variable-length decoding unit 201, and outputs the reconstructed conversion coefficients to the inverse orthogonal transformation unit 203. The inverse orthogonal transformation unit 203 reconstructs the residual block by converting the reconstructed conversion coefficients obtained from the inverse quantization unit 202 from the frequency domain to the image domain, and outputs the reconstructed residual block to the summing unit 204.

[0173] The adder 204 restores the decoded block by adding the restored residual block obtained from the inverse orthogonal transform 203 and the predicted block obtained from the switch 209. The adder 204 then outputs the decoded image sequence, including this restored decoded block, to the outside of the device and stores it 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 block units. The frame memory 206 stores the decoded image sequence obtained from the adder 204 in frame units.

[0175] The intra-prediction unit 207 generates predicted blocks for the decoded blocks by performing intra-prediction using the decoded image sequences in block units stored in the block memory 205, and outputs the generated predicted blocks to the switch 209. The inter-prediction unit 208 generates predicted blocks for the decoded blocks by performing inter-prediction using the decoded image sequences in frame units stored in the frame memory 206, and outputs the generated predicted blocks to the switch 209. The switch 209 outputs the predicted blocks generated by the intra-prediction unit 207 or the predicted blocks generated by the inter-prediction unit 208 to the adder 204.

[0176] If the co-located usage prohibition flag obtained from the variable-length decoding unit 201 is off, the time-predicted motion vector calculation unit 211 uses colPic information, such as the motion vector of the co-located block stored in the colPic memory 212, to derive a candidate for the predicted motion vector (time-predicted motion vector) for the time-predicted motion vector. On the other hand, if the co-located usage prohibition flag is on, the time-predicted motion vector calculation unit 211 adds the overall motion vector obtained from the variable-length decoding unit 201 to the candidate for the predicted motion vector.

[0177] Furthermore, the time-predicted motion vector calculation unit 211 assigns a predicted motion vector index to the predicted motion vector added to the candidates. The time-predicted motion vector calculation unit 211 then outputs the predicted motion vector and the predicted motion vector index to the inter-prediction control unit 210.

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

[0179] The interpretation control unit 210 identifies a predicted motion vector from among multiple predicted motion vector candidates that corresponds to the predicted motion vector index obtained from the variable-length decoding unit 201. The interpretation control unit 210 then calculates the motion vector to be used for interpretation by adding error information between the motion vector and the predicted motion vector to the identified predicted motion vector. The interpretation control unit 210 also stores colPic information, including the motion vector of the block to be decoded, in the colPic memory 212.

[0180] Figure 16 shows an overview of the processing flow of the video decoding method according to Embodiment 2.

[0181] First, the variable-length decoding unit 201 decodes the co-located usage prohibition flag on a picture-by-picture basis (S81). Next, the variable-length decoding unit 201 determines whether the co-located usage prohibition flag is off or not (S82). If the co-located usage 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 usage prohibition flag, co-located reference direction flag, and co-located reference picture index to the time prediction motion vector calculation unit 211.

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

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

[0184] Next, the interpretation control unit 210 selects a predicted motion vector from among multiple predicted motion vector candidates that corresponds to the decoded predicted motion vector index (S85). The interpretation 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 interpretation unit 208. The interpretation unit 208 then uses the derived motion vector to generate a predicted block of the decoded block by interpretation.

[0185] Next, the interpretation control unit 210 stores colPic information, including the motion vector used for interpretation, in the colPic memory 212 (S86). The colPic memory 212 stores the motion vector of the reference picture, the reference picture index value, and the prediction direction, etc., in order to calculate the time-predicted motion vector of the block to be decoded.

[0186] Furthermore, when a reference block has two or more reference motion vectors, the method for selecting a reference motion vector to calculate the time-predicted motion vector is not limited to a 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 vectors and use the reference motion vector with the shorter temporal distance. Here, the temporal distance is calculated based on the number of pictures between the reference picture containing the reference block and the picture referenced by the reference picture during the display time. Alternatively, for example, the video decoding device 200 may calculate the magnitude of the reference motion vectors and use the motion vector derived using the reference motion vector with the smaller magnitude as the time-predicted motion vector.

[0187] Figure 17 shows an example of bitstream syntax in the video decoding method according to Embodiment 2. In Figure 17, forbid_collocated_flag represents the co-located usage prohibition flag, tmv_x represents the horizontal component of the overall motion vector, tmv_y represents the vertical component of the overall motion vector, and collocated_from_l0_flag represents the co-located reference direction flag.

[0188] As shown in Figure 17, if the forbid_collocated_flag is set to 1, the total motion vector (tmv_x, tmv_y) is attached to the bitstream and added to the candidate for predicted motion vector.

[0189] Furthermore, if the forbid_collocated_flag flag is 0, the collocated_from_l0_flag flag is attached to the bitstream. Then, the colocated block is determined according to the colocated_from_l0_flag flag, and the time-predicted motion vector is calculated using the reference motion vector of the colocated block. Here, if collocated_from_l0_flag is 1, it indicates that the colocated block is a forward-referenced block, and if it is 0, it indicates that the colocated block is a backward-referenced block, but this is not necessarily the only case.

[0190] In this embodiment 2, when the co-located usage prohibition flag is on, the video decoding device 200 uses the overall motion vector decoded from the header information, etc. However, depending on the encoding method, it is also possible to add an overall motion vector with a value of 0 to the predicted motion vector candidates. In this case, since the overall motion vector is not associated with the header information, etc., its decoding process is omitted. Furthermore, when the co-located usage prohibition flag is on, the video decoding device 200 may choose not to always add the time-predicted motion vector to the predicted motion vector candidates.

[0191] As described above, in embodiments 1 and 2, the video encoding device 100 sets off time motion vector prediction using the motion vector for each encoding unit of the reference picture at regular intervals, and instead adds the overall motion vector of the reference picture to the header information. The video encoding device 100 then uses this to encode the motion vector of the picture to be encoded, thereby generating a bitstream that prevents the propagation of decoding errors while suppressing a decrease in encoding efficiency. Furthermore, the video decoding device 200 can appropriately decode the bitstream generated in this way.

[0192] More specifically, when the co-located usage prohibition flag is on, the video encoding device 100 adds the overall vector read from the overall vector storage unit 116 to the predicted motion vector candidates of the block to be encoded, and also associates it with header information such as the picture header. As a result, even if the reference picture is lost during decoding, the video decoding device 200 can decode the bitstream without decoding errors. In this way, the video decoding device 200 is able to properly decode a bitstream with error propagation suppressed.

[0193] Furthermore, when the co-located usage prohibition flag is off, the video decoding device 200 can appropriately decode a bitstream in which the optimal predicted motion vector for the block to be encoded has been selected according to the co-located reference direction flag.

[0194] In these embodiments 1 and 2, the video encoding device 100 used the overall vector read from the overall vector storage unit 116 when the co-located usage prohibition flag was on, but it may also add an overall motion vector with a value of 0 to the predicted motion vector candidates. Furthermore, the video encoding device 100 may choose not to add the time-predicted motion vector to the predicted motion vector candidates when the co-located usage prohibition flag is on. This configuration makes it possible to reduce the decoding processing in the video decoding device 200.

[0195] Furthermore, in this second embodiment, the video decoding device 200 decodes the co-located usage prohibition flag for all pictures, but it may also decode only the co-located usage prohibition flag for specific pictures. For example, the video decoding device 200 decodes only the co-located usage prohibition flag for pictures referenced by other pictures (P pictures, B pictures referenced by other pictures, and pictures belonging to the lowest level layer in a reference structure having multiple layers), and does not decode the co-located usage prohibition flag for pictures not referenced by other pictures. In this way, by decoding only the co-located usage prohibition flag for specific pictures, it is possible to reduce the decoding process while suppressing the propagation of decoding errors.

[0196] Furthermore, in this second embodiment, the video decoding device 200 decoded the co-located usage prohibition flag for each picture, but the co-located usage prohibition flag may also be decoded for each slice, which is composed of multiple blocks. By decoding the co-located usage prohibition flag for each slice, it is possible to improve the prediction accuracy of the overall vector.

[0197] Furthermore, in this second embodiment, the video decoding device 200 decodes the co-located usage prohibition flag for all pictures, but it does not have to add the time-predicted motion vector to the predicted motion vector candidate based on the picture type. For example, the video decoding device 200 may add the overall motion vector to the predicted motion vector candidate instead of the time-predicted motion vector for pictures referenced by other pictures (P pictures, B pictures referenced by other pictures, and pictures belonging to the lowest level layer in a reference structure having multiple layers). In this way, by determining whether to add the time-predicted motion vector or the overall motion vector to the predicted motion vector candidate based on the picture type, it is possible to reduce the decoding process while improving encoding efficiency.

[0198] Furthermore, the video encoding device 100 can generate a bitstream with improved encoding efficiency by not including unnecessary flags in the bitstream when the time-predicted motion vector is not included in the predicted motion vector candidates. The video decoding device 200 can then appropriately decode this bitstream. A specific example will be explained using Figure 18. Figure 18 shows a modified example of the flow for decoding co-located information.

[0199] First, the video decoding device 200 decodes the co-located usage prohibition flag (S201). Here, we will explain an example where the flag indicating whether or not to allow time-predicted motion vectors using information from co-located blocks (enable_temporal_mvp_flag) is decoded.

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

[0201] On the other hand, if 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, the video encoding device 100 can generate a bitstream with improved encoding efficiency by not adding the unnecessary co-located reference direction flag and co-located reference picture index to the bitstream when the time-predicted motion vector is not included in the predicted motion vector candidates (when enable_teporal_mvp_flag is 0). Furthermore, the video decoding device 200 can appropriately decode this bitstream.

[0202] Figures 19A and 19B show example syntax when a co-located disable flag (enable_temporal_mvp_flag), which indicates whether or not to allow time-predicted motion vectors using information from co-located blocks, is added to the 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 the slice header.

[0203] If the value of the co-located usage prohibition flag is 1, it is permitted to calculate the time-predicted motion vector using co-located information. If the value of the co-located usage prohibition flag is 0, it is prohibited to calculate the time-predicted motion vector using co-located information.

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

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

[0206] Figure 20 also shows an example of the syntax when the co-located block information is used to enable time-predicted motion vectors (enable_temporal_mvp_flag), the co-located reference direction flag (collocated_from_l0_flag), and the co-located reference picture index (collocated_ref_idx) are all added to the slice header.

[0207] As shown in Figures 19B and 20, if 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 Figure 21.

[0209] The video decoding device 200 performs interpredictive decoding of the blocks to be decoded contained in the picture to be decoded using motion vectors.

[0210] First, the video decoding device 200 decodes a first flag (co-located use prohibition flag) that indicates whether or not time motion vector prediction is used, which uses time-predicted motion vectors that are motion vectors of blocks included in a decoded picture different from the picture to be decoded (whether time motion vector prediction is permitted or prohibited) (S211). In other words, the video decoding device 200 obtains the first flag by obtaining the first flag encoded from the bitstream and decoding the encoded first flag.

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

[0212] If the first flag indicates that time motion vector prediction is used (allowed) (Yes in S212), the video decoding device 200 decodes a first parameter for calculating the time-predicted motion vector (S213). Specifically, the video decoding device 200 obtains a first parameter by acquiring a first parameter encoded from the bitstream and decoding the acquired encoded first parameter. This first parameter includes a parameter for identifying the decoded picture (co-located picture) that is the 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) from among multiple pictures indicated in the reference picture list used to decode the picture to be decoded. The first parameter also includes a flag (collocated_from_l0_flag) indicating which reference picture list to use to identify the decoded picture (co-located picture) from among multiple reference picture lists used to decode the picture to be decoded.

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

[0214] Next, the video decoding device 200 uses one of the multiple first predicted motion vector candidates to decode the motion vector used for inter-predictive decoding of the block to be decoded (S215). Specifically, the video decoding device 200 obtains an encoded motion vector (difference value) from the bitstream. Then, the video decoding device 200 generates a difference value of the motion vector by decoding the encoded motion vector (difference value). Next, it generates a motion vector using one of the multiple first predicted motion vector candidates and the difference value of the motion vector.

[0215] Furthermore, the video decoding device 200 decodes the target block by inter-decoding using the motion vector described above. Specifically, the video decoding device 200 obtains the encoded target block (difference value) from the bitstream. Then, the video decoding device 200 generates the difference value of the target block by decoding the encoded target block (difference value). Next, the video decoding device 200 restores the target block using this motion vector and the difference value of the target block.

[0216] On the other hand, if the first flag indicates that time motion vector prediction is not used (prohibited) (No in S212), the video decoding device 200 does not decode the first parameter (S216). In other words, 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 predicted motion vector candidates that do not include the time predicted motion vector (S217).

[0218] Next, the video decoding device 200 inter-decodes the target block included in the target picture using one of the multiple second predicted motion vector candidates (S218). A specific example of this process is the same as the process in step S215 above when the multiple first predicted motion vector candidates are replaced with multiple second predicted motion vector candidates.

[0219] Step S211 is performed by the flag decoding unit included in the video decoding device 200. Steps S213 and S216 are performed by the parameter decoding unit included in the video decoding device 200. Steps S214 and S217 are performed by the candidate derivation unit included in the video decoding device 200. Steps S215 and S218 are performed by the 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 Figure 15. The function of the parameter decoding unit is also realized by the variable-length decoding unit 201 shown in Figure 15. The function of the candidate derivation unit is realized by the inter-prediction control unit 210 and the time-predicted motion vector calculation unit 211 shown in Figure 15. The function of the motion vector decoding unit is realized by the variable-length decoding unit 201, the inter-prediction unit 208, and the inter-prediction control unit 210 shown in Figure 15.

[0221] (modified version) Next, with reference to Figure 22, a modified version of the video encoding device 300 according to Embodiment 1 will be described. Figure 22 is a block diagram of the video encoding device 300 according to a modified version of Embodiment 1. A detailed explanation of the similarities with Embodiment 1 will be omitted, and the explanation will focus on the differences.

[0222] As shown in Figure 22, the video encoding device 300 includes a first encoding unit 310 that generates a basic bitstream by encoding a basic view, and a second encoding unit 320 that generates a dependent bitstream by encoding a dependent view. Although Figure 22 shows an example in which the video encoding device 300 outputs the basic bitstream and the dependent bitstream as separate streams, it is not limited to this, and the video encoding device 300 may output a single bitstream by combining the basic bitstream and the dependent bitstream.

[0223] The basic configurations of the first encoding unit 310 and the second encoding unit 320 are the same as those of the video encoding device 100 shown in Figure 2. However, in addition to the functions of the video encoding device 100, the second encoding unit 320 has the function of referencing the frame memory 108 of the first encoding unit 310, etc.

[0224] Next, a modified version of the video encoding method according to Embodiment 1 will be described with reference to Figures 23 and 24. Figure 23 is a flowchart showing the operation of the modified version of the video encoding method according to Embodiment 1. Figure 24 is a diagram showing examples of pictures belonging to the basic view and dependent views.

[0225] The base view, as shown in FIG. 24, includes a plurality of pictures I 11 , P 12 , P 13 , P 14 , I 15 , P 16 , and P 17 . Among the pictures belonging to the base view, the pictures I 11 and I 15 at the head of a GOP (Group Of Pictures) are I pictures, and the other pictures P 12 , P 13 , P 14 , P 16 , and P 17 are P pictures. Note that the base view is encoded and decoded by referring only to pictures belonging to the base view (i.e., by intra-predictive encoding or inter-predictive encoding).

[0226] Further, the dependent view, as shown in FIG. 24, includes a plurality of pictures P 21 , P 22 , P 23 , P 24 , P 25 , P 26 , and P 27 . All pictures P 21 , P 22 , P 23 , P 24 , P 25 , P 26 , and P 27 belonging to the dependent view are P pictures. Note that the dependent view is encoded and decoded by referring to, in addition to pictures belonging to the dependent view, a picture belonging to the base view and corresponding to a picture to be processed (i.e., by inter-view predictive encoding).

[0227] Furthermore, the base view and the dependent view are images of the subject viewed from different viewpoints. That is, the corresponding pictures (pictures with the same timestamp) in the base view and the dependent view have horizontal parallax. The second encoding unit 320 can encode each picture belonging to the dependent view using the image belonging to the base view, which corresponds to the picture to be processed, as a reference picture. The operation of the time prediction motion vector calculation unit 114 of the second encoding unit 320 will be explained below with reference to Figure 23.

[0228] First, the time-predicted motion vector calculation unit 114 determines whether or not a time-predicted motion vector can be obtained when encoding the block to be encoded (S91). If a time-predicted motion vector cannot be obtained (Yes in S91), the time-predicted motion vector calculation unit 114 includes the disparity vector, which will be described later, as a candidate for predicted motion vector (S92). On the other hand, if a time-predicted motion vector can be obtained (No in S91), the time-predicted motion vector calculation unit 114 includes the time-predicted motion vector as a candidate for predicted motion vector (S93).

[0229] In this case, a situation where a time-predicted motion vector cannot be obtained is, for example, when the block to be encoded is picture P at the beginning of the GOP. 21 , P 25 One example is the picture P at the beginning of the GOP. 21 , P 25 It is not possible to reference pictures that appear before this picture in the display order. That is, if the encoding order and the display order match, picture P 21 , P 25 This can be referenced by the corresponding picture I in the basic view. 11 , I 15 That is all.

[0230] However, Picture I 11 , I 15Since it is an I-picture, motion vector information does not exist. Therefore, in such cases, the time-predicted motion vector calculation unit 114 includes the disparity vector stored in the overall vector storage unit 116 as a substitute vector for the time-predicted motion vector in the candidate for predicted motion vector, and also 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 the motion vector (i.e., the motion vector when encoding using the corresponding picture of the base view as a reference picture) obtained when inter-view predictive encoding is performed on each block constituting the picture to be encoded in the dependent view to the overall vector storage unit 116. The overall vector storage unit 116 then stores the average value, median, or mode of the motion vectors obtained from the inter-prediction control unit 112 on a picture-by-picture basis as the disparity vector.

[0232] In step S92 of Figure 23, the time prediction motion vector calculation unit 114 calculates the picture P of the dependent view. 25 As the parallax vector, picture P 25 The first picture P of the GOP immediately preceding the GOP to which it belongs. 21 The disparity vector calculated by (Picture I 11 You may select a disparity vector (which will be used as the reference picture) or the previously encoded picture P 24 The parallax vector calculated by (Picture P 14 You may also select a reference picture (disparity vector).

[0233] Furthermore, in step S91 of Figure 23, the specific example of a case where the time-predicted motion vector cannot be obtained is not limited to the example above, and may also be the case where the co-located usage prohibition flag for the picture to be encoded is turned on. The co-located usage prohibition flag is the same as described in Embodiment 1, so a further explanation will be omitted.

[0234] Thus, the present invention can also be applied when encoding the basic view and dependent views that constitute a multi-view image. That is, by switching whether to include a time-predicted motion vector or a disparity vector, which is an alternative vector to the time-predicted motion vector, in the candidate predicted motion vector when encoding the picture to be encoded belonging to the dependent view, it becomes possible to prevent the propagation of decoding errors while suppressing a decrease in encoding efficiency.

[0235] Next, with reference to Figure 25, a modified version of the motion image decoding device 400 according to Embodiment 2 will be described. Figure 25 is a block diagram of the motion image decoding device 400 according to a modified version of Embodiment 2. Note that a detailed explanation of the similarities with Embodiment 2 will be omitted, and the explanation will focus on the differences.

[0236] As shown in Figure 25, the video decoding device 400 includes a first decoding unit 410 that generates a basic view by decoding a basic bitstream, and a second decoding unit 420 that generates a dependent view by decoding a dependent bitstream. Although Figure 25 shows an example in which an independent basic bitstream and a dependent bitstream are input separately to the video decoding device 400, it is not limited to this, and a single bitstream formed by combining the basic bitstream and the dependent bitstream may be input and then split into the basic bitstream and the dependent bitstream inside the video decoding device 400.

[0237] The basic configurations of the first decoding unit 410 and the second decoding unit 420 are the same as those of the video decoding device 200 shown in Figure 15. However, the second decoding unit 420 has the function of referencing the frame memory 206 of the first decoding unit 410, in addition to the functions of the video decoding device 200. That is, the video decoding device 400 decodes the basic bitstream and dependent bitstream encoded by the video encoding device 300.

[0238] Then, the second decoding unit 420 of the moving picture decoding apparatus 400 can switch between including, as one of the predicted motion vector candidates of the block to be decoded, the temporal predicted motion vector stored in the colPic memory 212, or including the disparity vector included in the header information of the dependent bitstream. The operation of the temporal predicted motion vector calculation unit 211 included in the second decoding unit 420 is the same as the process in FIG. 23.

[0239] Although the moving picture coding apparatus and the moving picture decoding apparatus according to the embodiments have been described above, the present invention is not limited to these embodiments.

[0240] Moreover, each processing unit included in the moving picture coding apparatus and the moving picture decoding apparatus according to the above embodiments is typically implemented as an LSI which is an integrated circuit. These may be individually formed into one chip, or may be formed into one chip so as to include some or all of the units.

[0241] Furthermore, the integration into circuits is not limited to LSI, and may be implemented using a dedicated circuit or a general-purpose processor. An FPGA (Field Programmable Gate Array) that can be programmed after manufacturing the LSI, or a reconfigurable processor that can reconfigure the connection and settings of circuit cells inside the LSI may be used.

[0242] In each of the above embodiments, each component may be configured with dedicated hardware, or may be implemented by executing a software program suitable for each component. Each component may be implemented 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 video decoding device comprise a control circuitry and a storage device 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. The storage device also stores a software program executed by the program execution unit if the control circuitry includes the program execution unit.

[0244] Furthermore, the present invention may be the software program described above, or a non-temporary computer-readable recording medium on which the program is recorded. It goes without saying that the program can also be distributed via a transmission medium such as the Internet.

[0245] Furthermore, the figures used above are all illustrative examples used to specifically explain the present invention, and the present invention is not limited to these illustrative figures.

[0246] Furthermore, the division of functional blocks in the block diagram is just one example; multiple functional blocks can be implemented as a single functional block, a single functional block can be divided into multiple parts, or some functions can be moved to other functional blocks. In addition, the functions of multiple functional blocks with similar functions can be processed in parallel or time-sharing by a single piece of hardware or software.

[0247] Furthermore, the order in which the steps included in the above-described video encoding method or video decoding method are performed is illustrative for the purpose of specifically illustrating the present invention, and may be performed in a different order. Also, some of the above steps may be performed simultaneously (in parallel) with other steps.

[0248] Although the video encoding device and video decoding device according to one or more embodiments of the present invention have been described above based on embodiments, the present invention is not limited to these embodiments. Without departing from the spirit of the present invention, various modifications that a person skilled in the art can conceive of may be applied to these embodiments, and forms constructed by combining components from different embodiments may also be included within the scope of one or more embodiments of the present invention.

[0249] (Embodiment 3) By recording a program for realizing the configuration of the video encoding method (image encoding method) or video decoding method (image decoding method) shown in each of the above embodiments onto a storage medium, the processes shown in each of the above embodiments can be easily performed on an independent computer system. The storage medium can be anything that can record a program, such as a magnetic disk, optical disk, magneto-optical disk, IC card, or semiconductor memory.

[0250] Furthermore, here we will describe application examples of the video encoding method (image encoding method) and video decoding method (image decoding method) shown in each of the embodiments described above, and a system using them. The system is characterized by having an image encoding and decoding device consisting of an image encoding device using the image encoding method and an image decoding device using the image decoding method. Other configurations in the system can be appropriately modified as needed.

[0251] Figure 26 shows the overall configuration of the content supply system ex100 that realizes the content distribution service. The service area for the communication service is divided into cells of a desired size, and fixed radio stations, base stations ex106, ex107, ex108, ex109, and ex110, are installed in each cell.

[0252] This content supply system ex100 connects various devices such as computers ex111, PDAs (Personal Digital Assistants) ex112, cameras ex113, mobile phones ex114, and game consoles ex115 to the internet ex101, via the internet service provider ex102 and telephone network ex104, and base stations ex106 via ex110.

[0253] However, the content supply system ex100 is not limited to the configuration shown in Figure 26, and any combination of elements may be used for connection. Furthermore, each device may be directly connected to the telephone network ex104 from the base station ex106, which is a fixed radio station, without going through ex110. Also, each device may be directly connected to one another via short-range radio or the like.

[0254] Camera ex113 is a device capable of recording video, such as a digital video camera, and Camera ex116 is a device capable of taking still images and recording video, such as a digital camera. Furthermore, Mobile phone ex114 can be a mobile phone using GSM (Registered Trademark) (Global System for Mobile Communications), CDMA (Code Division Multiple Access), W-CDMA (Wideband-Code Division Multiple Access), LTE (Long Term Evolution), HSPA (High Speed ​​Packet Access), or PHS (Personal Handyphone System), and any of these is acceptable.

[0255] In the content supply system ex100, cameras ex113 and other devices are connected to the streaming server ex103 via the base station ex109 and the telephone network ex104, enabling live streaming and other functions. In live streaming, content captured by the user using the camera ex113 (for example, video of a music concert) is encoded as described in each of the embodiments above (i.e., it functions as an image encoding device according to one aspect of the present invention) and transmitted to the streaming server ex103. Meanwhile, the streaming server ex103 streams the transmitted content data to the requesting client. Clients include computers ex111, PDAs ex112, cameras ex113, mobile phones ex114, game consoles ex115, etc., that are capable of decoding the encoded data. Each device that receives the distributed data decodes and plays back the received data (i.e., it functions as an image decoding device according to one aspect of the present invention).

[0256] The encoding process for the captured data may be performed by the camera ex113, the streaming server ex103 which handles data transmission, or the tasks may be shared between them. Similarly, the decoding process for the transmitted data may be performed by the client, the streaming server ex103, or the tasks may be shared between them. In addition, still images and / or video data captured by camera ex116 may be transmitted to the streaming server ex103 via computer ex111, not limited to camera ex113. In this case, the encoding process may be performed by camera ex116, computer ex111, or streaming server ex103, or the tasks may be shared among them.

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

[0258] Furthermore, the streaming server ex103 may consist of multiple servers or multiple computers that distribute, process, record, and distribute data.

[0259] As described above, the content supply system ex100 allows clients to receive and play back encoded data. In this way, the content supply system ex100 allows clients to receive, decode, and play back information transmitted by users in real time, enabling personal broadcasting even for users who do not possess special rights or equipment.

[0260] Note that the present invention is not limited to the example of the content supply system ex100, and as shown in FIG. 27, at least either the moving picture encoding apparatus (image encoding apparatus) or the moving picture decoding apparatus (image decoding apparatus) of each of the above-described embodiments can be incorporated into a digital broadcasting system ex200. Specifically, in a broadcast station ex201, multiplexed data obtained by multiplexing music data or the like with video data is transmitted via radio waves to a communication or satellite ex202. This video data is data encoded by the moving picture encoding method described in each of the above embodiments (that is, data encoded by the image encoding apparatus according to an aspect of the present invention). Upon receiving this, the broadcast satellite ex202 transmits radio waves for broadcasting, and a home antenna ex204 capable of receiving satellite broadcasts receives these radio waves. A device such as a television (receiver) ex300 or a set-top box (STB) ex217 decodes and reproduces the received multiplexed data (that is, functions as the image decoding apparatus according to an aspect of the present invention).

[0261] Furthermore, the moving picture decoding apparatus or the moving picture encoding apparatus described in each of the above embodiments can 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 in some cases multiplexes it with an audio signal for writing. 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 using the recording medium ex215 on which the multiplexed data is recorded. Alternatively, a moving picture decoding apparatus 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 displayed on the monitor ex219 of a television. At this time, the moving picture decoding apparatus may be incorporated into the television instead of the set-top box.

[0262] Figure 28 shows 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 with video data via an antenna ex204 or cable ex203, etc. that receives the above broadcast; a modulation / demodulation unit ex302 that demodulates the received multiplexed data or modulates it into 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 the signal processing unit ex306.

[0263] Furthermore, the TV ex300 includes a signal processing unit ex306 having an audio signal processing unit ex304 that decodes audio data and video data, respectively, or encodes the information of each, and a video signal processing unit ex305 (which functions as an image encoding device or image decoding device according to one aspect of the present invention), 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 shows the decoded video signal. Furthermore, the TV ex300 has an interface unit ex317 having an operation input unit ex312 that receives user input, etc. Furthermore, the TV ex300 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 include, in addition to the operation input unit ex312, a bridge ex313 for connecting to external devices such as a reader / recorder ex218, a slot unit ex314 for inserting recording media such as an SD card ex216, a driver ex315 for connecting to external recording media such as a hard disk, and a modem ex316 for connecting to a telephone network. The recording media ex216 enables the electrical recording of information using non-volatile / volatile semiconductor memory elements that it stores. The various parts of the television ex300 are connected to each other via a synchronization bus.

[0264] First, we will describe a configuration in which the TV ex300 decodes and plays back multiplexed data acquired from an external source, such as the antenna ex204. The TV ex300 receives user input from a remote controller ex220 or the like, and based on the control of the control unit ex310, which has a CPU, the multiplexed data demodulated by the modulation / demodulation unit ex302 is separated by the multiplexing / separation unit ex303. Furthermore, the TV ex300 decodes the separated audio data with the audio signal processing unit ex304, and decodes the separated video data with 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 advisable to temporarily store these signals in buffers ex318, ex319, etc., so that the audio signal and video signal are played back in sync. In addition, the TV ex300 may read multiplexed data from recording media such as magnetic / optical disks or SD cards ex215, ex216, rather than from broadcasts, etc. Next, a configuration in which the TV ex300 encodes audio and video signals and transmits them externally or writes them to a recording medium will be described. The TV ex300 receives user operations from a remote controller ex220 or the like, and based on the control of the control unit ex310, encodes audio signals in the audio signal processing unit ex304 and encodes video signals in the video signal processing unit ex305 using the encoding method described in each of the embodiments above. The encoded audio and video signals are multiplexed in the multiplexing / decompression unit ex303 and output externally. When multiplexing, it is advisable to temporarily store these signals in buffers ex320, ex321, etc., so that the audio and video signals are synchronized. Note that there may be multiple buffers ex318, ex319, ex320, and ex321 as shown in the figure, or one or more buffers may be shared. Furthermore, in addition to what is shown in the figure, data may also be stored in buffers as a buffer to avoid system overflow and underflow, for example, between the modulation / demodulation unit ex302 and the multiplexing / decompression unit ex303.

[0265] Furthermore, in addition to acquiring audio and video data from broadcasts and recording media, the TV ex300 may also be configured to accept AV inputs from microphones and cameras, and may perform encoding processing on the data acquired from them. While the TV ex300 is described here as having the above-mentioned encoding processing, multiplexing, and external output capabilities, it may also be configured to only perform the above-mentioned reception, decoding, and external output functions, without being able to perform these processes.

[0266] Furthermore, when the reader / recorder ex218 reads or writes multiplexed data from the recording medium, the above 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 task.

[0267] As an example, Figure 29 shows the configuration of the information playback / recording unit ex400 when reading or writing data from an optical disc. The information playback / recording unit ex400 comprises the elements ex401, ex402, ex403, ex404, ex405, ex406, and ex407, which are described below. The optical head ex401 writes information by irradiating the recording surface of the recording medium ex215, which is an optical disc, with a laser spot, and reads the information by detecting the reflected light from the recording surface of the recording medium ex215. The modulation recording unit ex402 electrically drives the semiconductor laser built into the optical head ex401 and modulates the laser light according to the recorded data. The playback / demodulation unit ex403 amplifies the playback signal electrically detected by a photodetector built into the optical head ex401 from the reflected light from the recording surface, separates and demodulates the signal components recorded on the recording medium ex215, and plays back the necessary information. The buffer ex404 temporarily holds information to be recorded on the recording medium ex215 and information played back 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, moves the optical head ex401 to a predetermined information track, and performs laser spot tracking. The system control unit ex407 controls the entire information playback / recording unit ex400. The above reading and writing processes are realized by the system control unit ex407 using various information held in the buffer ex404, generating and adding new information as needed, and performing information recording and playback through the optical head ex401 while coordinating the operation of the modulation recording unit ex402, the playback / demodulation unit ex403, and the servo control unit ex406. The system control unit ex407 is composed of, for example, a microprocessor and executes these processes by running read / write programs.

[0268] In the above explanation, the optical head ex401 was described as emitting a laser spot, but a configuration using near-field light for higher-density recording is also possible.

[0269] Figure 30 shows a schematic diagram of the recording medium ex215, which is an optical disc. Guide grooves are formed in a spiral shape on the recording surface of the recording medium ex215, and address information indicating the absolute position on the disc is recorded in advance on the information track ex230 by changes in the shape of the grooves. This address information includes information for identifying the position of the recording block ex231, which is the unit in which data is recorded, and the recording block can be identified by playing back the information track ex230 and reading the address information in a recording or playback device. The recording medium ex215 also includes a data recording area ex233, an inner circumference area ex232, and an outer circumference area ex234. The data recording area ex233 is the area used to record user data, and the inner circumference area ex232 and outer circumference area ex234, which are located inward or outward from the data recording area ex233, are used for specific purposes other than recording user data. The information playback / 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 the recording medium ex215.

[0270] The above explanation used single-layer optical discs such as DVDs and Blu-ray discs as examples, but it is not limited to these; it may also be a multi-layer optical disc that can record on surfaces other than the surface. Furthermore, it may be an optical disc with a multi-dimensional recording / playback structure, such as recording information using light of various different wavelengths of color in the same location on the disc, or recording different layers of information from various angles.

[0271] Furthermore, in the digital broadcasting system ex200, it is possible to receive data from satellite ex202, etc., using a vehicle ex210 equipped with antenna ex205, and to play video on a display device such as the car navigation system ex211 located in the vehicle ex210. For example, the configuration of the car navigation system ex211 could be one of those shown in Figure 28 with the addition of a GPS receiver, and similar configurations could be considered for the computer ex111, mobile phone ex114, etc.

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

[0273] Furthermore, an example of the configuration of the mobile phone ex114 will be explained using Figure 31B. In the mobile phone ex114, the main control unit ex360 comprehensively controls each part of the main body, which includes the display unit ex358 and the operation key unit ex366. The power supply circuit unit ex361, operation input control unit ex362, video signal processing unit ex355, camera interface unit ex363, LCD (Liquid Crystal Display) control unit ex359, modulation / demodulation unit ex352, multiplexing / decompression unit ex353, audio signal processing unit ex354, slot unit ex364, and memory unit ex367 are all connected to each other via the bus ex370.

[0274] When the user performs an action such as ending a call or turning on the power key, the power supply circuit unit ex361 supplies power from the battery pack to each component, thereby starting up the mobile phone ex114 into an operational state.

[0275] The mobile phone ex114, based on the control of the main control unit ex360 which has a CPU, ROM, RAM, etc., converts the audio signal picked up by the audio input unit ex356 into a digital audio signal in the audio signal processing unit ex354 during voice call mode, performs spread spectrum processing on this 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 it via the antenna ex350. Also, during voice call mode, the mobile phone ex114 amplifies the received data received via the antenna ex350, performs frequency conversion processing and analog-to-digital conversion processing on it, performs despread spectrum processing in the modulation / demodulation unit ex352, converts it into an analog audio signal in the audio signal processing unit ex354, and then outputs it from the audio output unit ex357.

[0276] Furthermore, when sending an email in data communication mode, the text data of the email entered by operating the operation keys ex366 on the main unit is sent to the main control unit ex360 via the operation input control unit ex362. The main control unit ex360 performs spread spectrum processing on the text data in the modulation / demodulation unit ex352, and after digital-to-analog conversion and frequency conversion processing in the transmission / reception unit ex351, it is transmitted to the base station ex110 via the antenna ex350. When receiving an email, the received data is processed in almost the reverse order and output to the display unit ex358.

[0277] When transmitting video, still images, or video and audio in 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 shown in each of the above embodiments (i.e., it 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. The audio signal processing unit ex354 encodes the audio signal picked up 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 / decompression unit ex353 multiplexes encoded video data supplied from the video signal processing unit ex355 and encoded audio data supplied from the audio signal processing unit ex354 in a predetermined manner. The resulting multiplexed data is then subjected to spread spectrum processing in the modulation / demodulation unit (modulation / demodulation circuit unit) ex352, and after digital-to-analog conversion and frequency conversion processing in the transmission / reception unit ex351, it is transmitted via the antenna ex350.

[0279] When receiving video data linked to a homepage or the like in data communication mode, or when receiving an email with attached video and / or audio, the multiplexing / decomposition unit ex353 separates the multiplexed data received via antenna ex350 into a video data bitstream and an audio data bitstream, and supplies the encoded video data to the video signal processing unit ex355 and the encoded audio data to the audio signal processing unit ex354 via the synchronization bus ex370. The video signal processing unit ex355 decodes the video signal by decoding it using a video decoding method corresponding to the video encoding method shown in each of the above embodiments (i.e., it functions as an image decoding device according to one aspect of the present invention), and the video and still images contained in the video file linked to a homepage are displayed on the display unit ex358 via the LCD control unit ex359. The audio signal processing unit ex354 decodes the audio signal, and the audio is output from the audio output unit ex357.

[0280] Furthermore, terminals such as the mobile phone ex114 mentioned above, like the television ex300, can be implemented in three ways: a transceiver-type terminal with both an encoder and a decoder, a transmitting terminal with only an encoder, and a receiving terminal with only a decoder. In addition, while the digital broadcasting system ex200 was described as receiving and transmitting multiplexed data in which music data etc. is multiplexed with video data, it may also be data in which text data related to the video is multiplexed in addition to audio data, or it may be video data itself instead of multiplexed data.

[0281] Thus, the video encoding method or video decoding method shown in each of the above embodiments can be used in any of the above-described devices or systems, and by doing so, the effects described in each of the above embodiments can be obtained.

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

[0283] (Embodiment 4) It is also possible to generate video data by appropriately switching between the video encoding methods or devices shown in each of the above embodiments and video encoding methods or devices compliant with different standards such as MPEG-2, MPEG4-AVC, and VC-1, as needed.

[0284] When multiple video data sets, each conforming to a different standard, are generated, it becomes necessary to select a decoding method corresponding to each standard during the decoding process. However, because it is not possible to identify which standard the video data to be decoded conforms to, a problem arises in that the appropriate decoding method cannot be selected.

[0285] To solve this problem, the multiplexed data, which is created by multiplexing audio data and other data onto video data, is configured to include identification information indicating which standard the video data conforms to. The specific configuration of the multiplexed data, which includes video data generated by the video encoding method or apparatus shown in each of the above embodiments, is described below. The multiplexed data is a digital stream in MPEG-2 transport stream format.

[0286] Figure 32 is a diagram showing the structure of multiplexed data. As shown in Figure 32, multiplexed data is obtained by multiplexing one or more of the following: video stream, audio stream, presentation graphics stream (PG), and interactive graphics stream. The video stream represents the main and secondary video of a film, the audio stream (IG) represents the main audio portion of a film and the secondary audio mixed with the main audio, and the presentation graphics stream represents the subtitles of a film. Here, the main video refers to the normal video displayed on the screen, and the secondary video refers to the video displayed on a smaller screen within the main video. The interactive graphics stream represents an interactive screen created by placing GUI components on the screen. The video stream is encoded by the video encoding method or apparatus shown in each of the embodiments described above, or by a video encoding method or apparatus conforming to conventional standards such as MPEG-2, MPEG4-AVC, and VC-1. The audio stream is encoded using methods 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, the video stream used for movie footage is assigned 0x1011, audio streams are assigned 0x1100 to 0x111F, presentation graphics are assigned 0x1200 to 0x121F, interactive graphics streams are assigned 0x1400 to 0x141F, video streams used for secondary footage in movies are assigned 0x1B00 to 0x1B1F, and audio streams used for secondary audio mixed with the main audio are assigned 0x1A00 to 0x1A1F.

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

[0289] Figure 34 shows in more detail how a video stream is stored in a sequence of PES packets. The first row in Figure 34 shows a sequence of video frames in the video stream. The second row shows a sequence of PES packets. As indicated by the arrows yy1, yy2, yy3, and yy4 in Figure 34, the multiple Video Presentation Units in the video stream, namely I-pictures, B-pictures, and P-pictures, are separated picture by picture and stored in the payload of a PES packet. Each PES packet has a PES header, which contains the Presentation Time-Stamp (PTS), which is the time the picture was displayed, and the Decoding Time-Stamp (DTS), which is the time the picture was decoded.

[0290] Figure 35 shows the format of the TS packet that is ultimately written to the multiplexed data. The TS packet is a fixed-length 188-byte packet consisting of a 4-byte TS header containing information such as the PID that identifies the stream, and a 184-byte TS payload that stores the data. The PES packet is split and stored in the TS payload. In the case of BD-ROM, a 4-byte TP_Extra_Header is attached to the TS packet, forming a 192-byte source packet that is written to the multiplexed data. The TP_Extra_Header contains information such as the ATS (Arrival_Time_Stamp). The ATS indicates the start time of forwarding the TS packet to the decoder's PID filter. As shown in the lower part of Figure 35, the source packets are arranged in the multiplexed data, and the number that increments from the beginning of the multiplexed data is called the SPN (Source Packet Number).

[0291] Furthermore, the TS packets included in the multiplexed data contain not only individual streams such as video, audio, and subtitles, but also 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 PAT itself is registered with a PID of 0. The PMT contains the PIDs of each stream such as video, audio, and subtitles included in the multiplexed data, as well as attribute information of the stream corresponding to each PID, and also contains various descriptors related to the multiplexed data. These descriptors include copy control information that instructs whether to allow or deny copying of the multiplexed data. The PCR contains information about the STC time corresponding to the ATS to which the PCR packet is forwarded 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 / DTS.

[0292] Figure 36 is a diagram illustrating the data structure of a PMT in detail. At the beginning of a PMT is a PMT header that indicates the length of the data contained in the PMT. Following this are multiple descriptors related to the multiplexed data. The copy control information mentioned above is written as a descriptor. After the descriptors are multiple stream information entries for each stream contained in the multiplexed data. The stream information consists of stream descriptors that describe the stream type, stream PID, and stream attribute information (frame rate, aspect ratio, etc.) to identify the compression codec of the stream. There are as many stream descriptors as there are streams in the multiplexed data.

[0293] When recording to a recording medium, the above-mentioned multiplexed data is recorded together with the multiplexed data information file.

[0294] As shown in Figure 37, the multiplexed data information file is management information for the multiplexed data, has a one-to-one correspondence with the multiplexed data, and consists of multiplexed data information, stream attribute information, and an entry map.

[0295] As shown in Figure 37, the multiplexed data information consists of the system rate, playback start time, and 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 included in the multiplexed data is set to be less than or equal to 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 by adding the playback interval of one frame to the PTS of the last video frame of the multiplexed data.

[0296] As shown in Figure 38, attribute information for each stream included in the multiplexed data is registered for each PID. Attribute information differs for video streams, audio streams, presentation graphics streams, and interactive graphics streams. Video stream attribute information includes details such as the compression codec used to compress the video stream, the resolution of each individual picture data constituting the video stream, the aspect ratio, and the frame rate. Audio stream attribute information includes details such as the compression codec used to compress the audio stream, the number of channels included in the audio stream, the languages ​​supported, and the sampling frequency. This information is used for initializing the decoder before playback by the player.

[0297] In this embodiment, the stream type included in the PMT is used from the multiplexed data. Furthermore, if the multiplexed data is recorded on the recording medium, the video stream attribute information included in the multiplexed data information is used. Specifically, in the video encoding method or apparatus shown in each embodiment, a step or means is provided to set unique information indicating that the video data was generated by the video encoding method or apparatus shown in each embodiment, for 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 encoding method or apparatus shown in each embodiment and video data conforming to other standards.

[0298] Furthermore, Figure 39 shows the steps of the video decoding method in this 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 video stream attribute information indicates that the multiplexed data was generated by the video encoding method or device shown in each of the embodiments described above. If it is determined that the stream type or video stream attribute information was generated by the video encoding method or device shown in each of the embodiments described above, in step exS102, a reference picture or motion vector is selected from the candidates and decoding is performed using the video decoding method shown in each of the embodiments described above. If the stream type or video stream attribute information indicates that it conforms to conventional standards such as MPEG-2, MPEG4-AVC, or VC-1, in step exS103, decoding is performed using a video decoding method conforming to the conventional standard. For example, if attribute information indicates compliance with the MPEG4-AVC standard, decoding is performed using a motion vector calculated from the motion vectors of spatially or temporally adjacent surrounding blocks, rather than selecting from multiple candidates.

[0299] In this way, by setting new unique values ​​for the stream type or video stream attribute information, it is possible to determine whether the video can be decoded using the video decoding method or apparatus described in each of the embodiments described above. Therefore, even when multiplexed data conforming to different standards is input, an appropriate decoding method or apparatus can be selected, making it possible to decode without errors. Furthermore, the video encoding method or apparatus, or video decoding method or apparatus, described in this embodiment can be used with any of the devices or systems described above.

[0300] (Embodiment 5) The video encoding method and apparatus, and video decoding method and apparatus described in each of the above embodiments are typically implemented as an integrated circuit (LSI). As an example, Figure 40 shows the configuration of a single-chip LSIex500. The LSIex500 comprises elements ex501, ex502, ex503, ex504, ex505, ex506, ex507, ex508, and ex509, which are described below, and each element is connected via a bus ex510. The power supply circuit ex505 starts up to an operational state by supplying power to each part when the power supply is turned on.

[0301] For example, when performing encoding processing, the LSIex500 receives AV signals from a microphone ex117, camera ex113, etc., via AV I / O ex509, based on the control of the control unit ex501, which has a CPU ex502, memory controller ex503, stream controller ex504, drive frequency control unit ex512, etc. The input AV signals are temporarily stored in an external memory ex511 such as SDRAM. Based on the control of the control unit ex501, the stored data is divided into multiple parts as appropriate depending on the amount of processing and processing speed, and sent to the signal processing unit ex507, where the audio signal encoding and / or video signal encoding are performed. Here, the video signal encoding process is the encoding process described in each of the embodiments above. The signal processing unit ex507 further performs processing such as multiplexing the encoded audio data and encoded video data, and outputs it externally from the stream I / O ex506. This output multiplexed data is transmitted to the base station ex107 or written to the recording medium ex215. When multiplexing, it is recommended to temporarily store the data in buffer ex508 to ensure synchronization.

[0302] Although the memory ex511 was described above as an external component of the LSIex500, it may also be an internal component of the LSIex500. Similarly, the buffer ex508 is not limited to one, but may have multiple buffers. Furthermore, the LSIex500 may be implemented on a single chip or across multiple chips.

[0303] Furthermore, while the above assumes that the control unit ex501 includes a CPU ex502, a memory controller ex503, a stream controller ex504, a drive frequency control unit ex512, etc., the configuration of the control unit ex501 is not limited to this configuration. For example, the signal processing unit ex507 may also have a CPU. By providing a CPU inside the signal processing unit ex507, it becomes possible to further improve the processing speed. Another example is that 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 will have a configuration that includes the signal processing unit ex507, or a CPU ex502 having a part of it.

[0304] Although we have used the term LSI here, depending on the degree of integration, they may also be called IC, system LSI, super LSI, or ultra LSI.

[0305] Furthermore, the method of integrated circuit implementation is not limited to LSIs; it may also be implemented using dedicated circuits or general-purpose processors. After LSI manufacturing, FPGAs (Field Programmable Gate Arrays) that can be programmed, or reconfigurable processors that allow for the reconfiguration of the connections and settings of circuit cells inside the LSI, may also be used. Such programmable logic devices can typically execute the video encoding method or video decoding method described in each of the above embodiments by loading or reading a program that constitutes software or firmware from memory or the like.

[0306] Furthermore, if advancements in semiconductor technology or derivative technologies lead to the emergence of integrated circuit technologies that replace LSIs, then naturally, these technologies can be used to integrate functional blocks. The application of biotechnology, for example, is a possible possibility.

[0307] (Embodiment 6) When decoding video data generated by the video encoding methods or devices described in the above embodiments, the processing load is likely to increase compared to 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 the drive frequency of the CPUex502 to a higher frequency than when decoding video data conforming to conventional standards. However, increasing the drive frequency leads to the problem of increased power consumption.

[0308] To solve this problem, video decoding devices such as the TV ex300 and LSI ex500 are configured to identify which standard the video data conforms to and to switch the drive frequency according to the standard. Figure 41 shows the configuration ex800 in this embodiment. The drive frequency switching unit ex803 sets a high drive frequency when the video data is generated by the video encoding method or device shown in each of the above embodiments. It then instructs the decoding processing unit ex801, which executes the video decoding method shown in each of the above embodiments, to decode the video data. On the other hand, when the video data is video data conforming to a conventional standard, the drive frequency is set lower than when the video data is generated by the video encoding method or device shown in each of the above embodiments. It then instructs the decoding processing unit ex802, which conforms to a conventional standard, to decode the video data.

[0309] More specifically, the drive frequency switching unit ex803 consists of the CPU ex502 and the drive frequency control unit ex512 in Figure 40. The decoding processing unit ex801, which executes the video decoding method shown in each of the above embodiments, and the decoding processing unit ex802, which conforms to conventional standards, correspond to the signal processing unit ex507 in Figure 40. The CPU ex502 identifies which standard the video data conforms to. Based on the signal from the CPU ex502, the drive frequency control unit ex512 sets the drive frequency. 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 Embodiment 4 can be used to identify the video data. The identification information is not limited to that described in Embodiment 4; any information that can identify which standard the video data conforms to is acceptable. For example, if it is possible to identify which standard the video data conforms to based on an external signal that identifies whether the video data is for use in a television or for use in a disk, then such an external signal may be used for identification. Furthermore, the selection of the drive frequency in CPUex502 can be performed based on a lookup table that associates the video data standard with the drive frequency, as shown in Figure 43. The lookup table can be stored in buffer ex508 or the internal memory of the LSI, and CPUex502 can select the drive frequency by referring to this lookup table.

[0310] Figure 42 shows the steps for implementing the method of this embodiment. First, in step exS200, the signal processing unit ex507 obtains identification information from the multiplexed data. Next, in step exS201, the CPU ex502 identifies, based on the identification information, whether or not the video data was generated by the encoding method or device shown in each of the embodiments described above. If the video data was generated by the encoding method or device shown in each of the embodiments described above, in step exS202, the CPU ex502 sends a signal to the drive frequency control unit ex512 to set a higher drive frequency. The drive frequency control unit ex512 then sets the drive frequency to a higher level. On the other hand, if the video data is compliant with conventional standards such as MPEG-2, MPEG4-AVC, or VC-1, in step exS203, the CPU ex502 sends a signal to the drive frequency control unit ex512 to set a lower drive frequency. The drive frequency control unit ex512 then sets the drive frequency to a lower level than when the video data was generated by the encoding method or device shown in each of the embodiments described above.

[0311] Furthermore, by changing the voltage supplied to the LSIex500 or the device containing the LSIex500 in conjunction with the switching of the drive frequency, it is possible to further enhance the power saving effect. For example, when setting a lower drive frequency, it is conceivable to set the voltage supplied to the LSIex500 or the device containing the LSIex500 to a lower value compared to when the drive frequency is set to a higher value.

[0312] Furthermore, the method for setting the drive frequency is not limited to the above-described method; a higher drive frequency is set when the processing load during decoding is large, and a lower drive frequency is set when the processing load during decoding is small. For example, if the processing load for decoding video data compliant with the MPEG4-AVC standard is greater than the processing load for decoding video data generated by the video encoding method or device shown in each of the above embodiments, the drive frequency can be set in the opposite way to the above-described method.

[0313] Furthermore, the method for setting the drive frequency is not limited to a configuration that lowers the drive frequency. For example, if the identification information indicates that the video data was generated by the video encoding method or device shown in each of the above embodiments, the voltage supplied to the LSIex500 or the device including the LSIex500 can be set high. If the identification information indicates that the video data conforms to conventional standards such as MPEG-2, MPEG4-AVC, or VC-1, the voltage supplied to the LSIex500 or the device including the LSIex500 can be set low. Another example is that if the identification information indicates that the video data was generated by the video encoding method or device shown in each of the above embodiments, the CPUex502 can be driven without stopping. If the identification information indicates that the video data conforms to conventional standards such as MPEG-2, MPEG4-AVC, or VC-1, there is processing capacity, so the CPUex502 can be temporarily driven. Even if the identification information indicates that the video data was generated by the video encoding method or device shown in each of the above embodiments, if there is processing capacity, the CPUex502 can be temporarily driven. In this case, it is possible to set a shorter stop time compared to when indicating that the video data conforms to conventional standards such as MPEG-2, MPEG4-AVC, and VC-1.

[0314] In this way, power saving can be achieved by switching the drive frequency according to the standard to which the video data conforms. Furthermore, if the LSIex500 or a device containing the LSIex500 is powered by batteries, the battery life can be extended as a result of the power saving.

[0315] (Embodiment 7) Televisions, mobile phones, and other devices and systems mentioned above may receive multiple video data streams conforming to different standards. To enable decoding of these streams, the LSIex500's signal processing unit, ex507, needs to support multiple standards. However, using separate ex507 signal processing units for each standard would increase the circuit size and cost of the LSIex500.

[0316] To solve this problem, the decoding processing unit for executing the video decoding method shown in each of the above embodiments is partially shared with the 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 Figure 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 have some common processing content in processes such as entropy coding, inverse quantization, deblocking filter, and motion compensation. For common processing content, a decoding processing unit ex902 corresponding to the MPEG4-AVC standard is shared, and for other processing content specific to one aspect of the present invention that does not correspond 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 the decoding processing unit is shared for any or all of the other processes such as entropy decoding, inverse quantization, deblocking filter, and motion compensation. Regarding the sharing of the decoding processing unit, a configuration may be used in which the decoding processing unit for executing the video decoding method shown in each of the above embodiments is shared for common processing content, and a dedicated decoding processing unit is used for processing content specific to the MPEG4-AVC standard.

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

[0318] Thus, by sharing the decoding processing unit for common processing content between the video decoding method according to one aspect of the present invention and the conventional video decoding method, it is possible to reduce the circuit size of the LSI and lower costs. [Industrial applicability]

[0319] The present invention is used in video encoding devices and video decoding devices. For example, the present invention can be used 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 Unit 102 Orthogonal Transformation Unit 103 Quantization section 104, 202 Inverse quantization section 105, 203 Inverse orthogonal transformation section 106, 204 Addition section 107, 205 block memory 108,206 frame memory 109, 207 Intra Prediction Unit 110, 208 Interpretation Unit 111, 209 switches 112, 210 Interpretation Control Unit 113 Picture Type Determination Section 114, 211 Time Prediction Motion Vector Calculation Unit 115,212 colPic memory 116 Overall vector conservation section 117 Co-located Information Decision Department 118 Variable-length coding unit 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

[Claim 1] A video encoding device that performs interpredictive encoding of blocks to be encoded in a picture to be encoded using motion vectors, The system comprises a control circuit and a storage device electrically connected to the control circuit. The aforementioned control circuit is A time prediction restriction flag is encoded to indicate whether or not time prediction is used, which uses time prediction motion vectors that are the motion vectors of blocks contained in an encoded picture different from the aforementioned picture to be encoded. If the time prediction limit flag indicates that the time motion vector prediction is used, In order to calculate the aforementioned time-predicted motion vector, a first parameter for identifying the prediction direction is encoded, Based on the prediction direction identified by the first parameter, a plurality of first prediction motion vector candidates, including the time prediction motion vector, are derived. Using one of the plurality of first predicted motion vector candidates, the motion vector used for interpredictive coding of the target block to be coded is coded. If the aforementioned time prediction limit flag indicates that the time motion vector prediction is not used, Multiple candidate second predictive motion vectors that do not include the aforementioned time-predicted motion vector are derived. Using one of the plurality of second predicted motion vector candidates, the motion vector used for interpredictive coding of the target block to be coded is coded. If the time prediction limit flag indicates that the time motion vector prediction is not used, the first parameter is not encoded. The plurality of first predicted motion vector candidates, or the plurality of second predicted motion vector candidates, include an alternative vector that replaces the time predicted motion vector. Video encoding device.

Citation Information

Patent Citations

  • JPP7253709B

  • JPP7523031B