WO2011135841A1 - 画像符号化方法、画像復号方法、画像符号化装置および画像復号装置 - Google Patents

画像符号化方法、画像復号方法、画像符号化装置および画像復号装置 Download PDF

Info

Publication number
WO2011135841A1
WO2011135841A1 PCT/JP2011/002425 JP2011002425W WO2011135841A1 WO 2011135841 A1 WO2011135841 A1 WO 2011135841A1 JP 2011002425 W JP2011002425 W JP 2011002425W WO 2011135841 A1 WO2011135841 A1 WO 2011135841A1
Authority
WO
WIPO (PCT)
Prior art keywords
prediction
edge
image
edges
block
Prior art date
Application number
PCT/JP2011/002425
Other languages
English (en)
French (fr)
Inventor
陽司 柴原
西 孝啓
寿郎 笹井
Original Assignee
パナソニック株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by パナソニック株式会社 filed Critical パナソニック株式会社
Publication of WO2011135841A1 publication Critical patent/WO2011135841A1/ja

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/11Selection of coding mode or of prediction mode among a plurality of spatial predictive coding modes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/119Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • H04N19/14Coding unit complexity, e.g. amount of activity or edge presence estimation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/182Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a pixel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/189Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding
    • H04N19/19Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding using optimisation based on Lagrange multipliers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques

Definitions

  • the present invention relates to an image encoding method for encoding an image for each block and an image decoding method for decoding an image for each block.
  • H.264 As a standard of an image encoding method for encoding a moving image, H.264 has been proposed. H.264 / MPEG-4 AVC. A conventional image encoding device based on this standard encodes a picture included in a moving image for each block. Then, the image coding apparatus improves the compression rate by removing the redundancy in the time direction and the redundancy in the spatial direction.
  • Inter-plane prediction is a method for removing temporal redundancy.
  • the image encoding device When performing inter prediction, the image encoding device generates a predicted image block from an already encoded picture based on the motion of a moving image. Then, the image encoding device encodes the difference between the encoding target block and the predicted image block. This removes redundancy in the time direction.
  • in-plane prediction is a method for removing the redundancy in the spatial direction.
  • the image encoding device When performing the intra prediction, the image encoding device generates a predicted image block from a picture including an encoding target block. Then, the image encoding device encodes the difference between the encoding target block and the predicted image block. This eliminates spatial redundancy.
  • the image encoding device generates a predicted image block based on the prediction direction when performing in-plane prediction. For example, when the prediction direction is the right direction, the image encoding device uses the pixel value of the pixel position adjacent to the left side of the encoding target block as the pixel value of the prediction image block. For example, when the prediction direction is downward, the image encoding device uses the pixel value of the pixel position adjacent to the upper side of the encoding target block as the pixel value of the prediction image block.
  • the image encoding device can generate a prediction image block based on various prediction directions. That is, the image coding apparatus can generate a predicted image block according to the characteristics of the image. Therefore, the image coding apparatus can improve the compression rate.
  • the image encoding device described in Patent Document 1 uses the edge direction around the block to be encoded as the prediction direction. Specifically, the image encoding device of Patent Literature 1 generates a predicted image block using an edge vector.
  • the edge vector is a vector having a direction orthogonal to the direction of the gradient based on a plurality of pixel values. Further, it is presumed that the edge around the encoding target block also affects the pixel value of the encoding target block. Therefore, the edge direction is suitable for use as a prediction direction in in-plane prediction. Therefore, the image encoding device of Patent Literature 1 can encode an image based on an appropriate prediction direction.
  • an appropriate prediction direction may not be selected. Specifically, when a plurality of edge vectors are detected, the image encoding device disclosed in Patent Literature 1 selects an edge vector used in the prediction direction based on the size of the edge vector. That is, the image coding apparatus determines a prediction direction based on a strong edge.
  • an object of the present invention is to provide an image encoding method and an image decoding method that can appropriately generate a predicted image.
  • an image encoding method is an image encoding method for encoding an image for each block, and includes a plurality of edges from one or more adjacent blocks adjacent to an encoding target block. And an edge detection step for detecting a length of a cross line that is a common part between the straight line passing through the position of the edge and the direction of the edge and the encoding target block, for each of the plurality of edges.
  • a prediction direction selecting step for selecting a prediction direction and predicting a pixel value included in the encoding target block using the prediction direction, and a prediction image Comprising a prediction step of generating a lock, and a coding step of coding the difference image block which is a difference between the predicted image block and the encoding target block.
  • the prediction direction may be selected depending on the lengths of the plurality of intersecting line segments corresponding to the plurality of edges and the strengths of the plurality of edges.
  • the prediction direction is selected based on the length of the intersection line segment and the strength of the edge. That is, a more appropriate prediction direction is selected based on the influence of the edge.
  • the edge detection step the plurality of edges including a first detection edge and a second detection edge different from the first detection edge are detected, and in the prediction direction selection step, the first detection edge is detected.
  • the product of the length of the corresponding intersection line segment and the strength of the first detection edge is larger than the product of the length of the intersection line segment corresponding to the second detection edge and the strength of the second detection edge,
  • the direction of the first detection edge may be selected as the predicted direction.
  • the direction of the specific edge is used as the prediction direction. Therefore, the direction of the edge having a large influence on the encoding target block is appropriately selected as the prediction direction.
  • a plurality of prediction directions are selected from the directions of the plurality of edges depending on the lengths of the plurality of intersecting line segments corresponding to the plurality of edges, and in the prediction step, The pixel values included in the encoding target block may be predicted using the plurality of prediction directions.
  • a plurality of prediction directions are selected based on the length of the intersection line segment, that is, the degree of influence on the encoding target block.
  • an appropriate prediction image is generated.
  • a pixel value included in the region is predicted, and a second prediction direction that is different from the first prediction direction is used among the plurality of prediction directions, and is different from the first divided region among the plurality of divided regions.
  • the prediction step pixel values included in a third divided region different from the first divided region and the second divided region among the plurality of divided regions are predicted using the first prediction direction.
  • the first predicted value is obtained
  • the second predicted value is obtained by predicting the pixel value included in the third divided region using the second predicted direction, and the first predicted value is obtained.
  • the second predicted value may be used to predict the pixel value included in the third divided region.
  • pixel values of pixel positions included in a third divided region different from the first divided region and the second divided region among the plurality of divided regions are set to the plurality of intersecting line segments. You may predict using the direction of the straight line which passes through the intersection of the some straight line and the said pixel position.
  • a prediction image is generated using the prediction direction passing through the intersection. That is, the direction of a plurality of edges is effectively used, and an appropriate predicted image is generated.
  • the edge detection step the plurality of edges including a first edge and a second edge different from the first edge are detected, and in the prediction direction selection step, the direction of the plurality of edges
  • the plurality of prediction directions including the direction of the first edge as the first prediction direction and the direction of the second edge as the second prediction direction are selected, and in the prediction step, the second edge passes through the second edge.
  • the image region belongs to an image region including the first edge, passes through the first edge, and is a straight line along the direction of the first edge.
  • the pixel value included in the first divided region belonging to the image region not including the second edge is determined as the first prediction method.
  • the image region including the second edge among the two image regions obtained by predicting and dividing the image by a straight line passing through the first edge and along the direction of the first edge, Pixels included in the second divided region belonging to an image region that does not include the first edge out of two image regions obtained by dividing the image along a straight line passing through the second edge and along the direction of the second edge The value may be predicted using the second prediction direction.
  • a plurality of prediction values are obtained by predicting a pixel value included in the encoding target block, and an average of the plurality of prediction values is obtained. It may be used to predict the pixel value included in the encoding target block.
  • a prediction image is generated using an average of a plurality of prediction results obtained based on a plurality of prediction directions. Therefore, the prediction accuracy is stable.
  • the image decoding method is an image decoding method for decoding an image for each block, and an edge detection step for detecting a plurality of edges from one or more adjacent blocks adjacent to a decoding target block; For each of a plurality of edges, a plurality of lines corresponding to the plurality of edges are obtained by obtaining the lengths of intersecting line segments that are common parts between the straight line passing through the edge position and along the edge direction and the block to be decoded.
  • a segment length acquisition step for acquiring the length of the intersection line segment, and a prediction direction is selected from the direction of the plurality of edges depending on the length of the plurality of intersection line segments corresponding to the plurality of edges
  • An image decoding method may be used.
  • the prediction direction may be selected depending on the lengths of the plurality of intersecting line segments corresponding to the plurality of edges and the strengths of the plurality of edges.
  • the prediction direction is selected based on the length of the intersection line segment and the strength of the edge. That is, a more appropriate prediction direction is selected based on the influence of the edge.
  • the edge detection step the plurality of edges including a first detection edge and a second detection edge different from the first detection edge are detected, and in the prediction direction selection step, the first detection edge is detected.
  • the product of the length of the corresponding intersection line segment and the strength of the first detection edge is larger than the product of the length of the intersection line segment corresponding to the second detection edge and the strength of the second detection edge,
  • the direction of the first detection edge may be selected as the predicted direction.
  • the direction of the specific edge is used as the prediction direction. Therefore, the direction of the edge having a large influence on the decoding target block is appropriately selected as the prediction direction.
  • a plurality of prediction directions are selected from the directions of the plurality of edges depending on the lengths of the plurality of intersecting line segments corresponding to the plurality of edges, and in the prediction step, The pixel values included in the decoding target block may be predicted using the plurality of prediction directions.
  • a plurality of prediction directions are selected based on the length of the intersection line segment, that is, the degree of influence on the decoding target block.
  • an appropriate prediction image is generated.
  • an appropriate prediction direction is used in each of a plurality of divided regions obtained by dividing the decoding target block. Therefore, an appropriate predicted image is generated.
  • the prediction step pixel values included in a third divided region different from the first divided region and the second divided region among the plurality of divided regions are predicted using the first prediction direction.
  • the first predicted value is obtained
  • the second predicted value is obtained by predicting the pixel value included in the third divided region using the second predicted direction, and the first predicted value is obtained.
  • the second predicted value may be used to predict the pixel value included in the third divided region.
  • pixel values of pixel positions included in a third divided region different from the first divided region and the second divided region among the plurality of divided regions are set to the plurality of intersecting line segments. You may predict using the direction of the straight line which passes through the intersection of the some straight line and the said pixel position.
  • a prediction image is generated using the prediction direction passing through the intersection. That is, the direction of a plurality of edges is effectively used, and an appropriate predicted image is generated.
  • the edge detection step the plurality of edges including a first edge and a second edge different from the first edge are detected, and in the prediction direction selection step, the direction of the plurality of edges
  • the plurality of prediction directions including the direction of the first edge as the first prediction direction and the direction of the second edge as the second prediction direction are selected, and in the prediction step, the second edge passes through the second edge.
  • the image region belongs to an image region including the first edge, passes through the first edge, and is a straight line along the direction of the first edge.
  • the pixel value included in the first divided region belonging to the image region not including the second edge is determined as the first prediction method.
  • the image region including the second edge among the two image regions obtained by predicting and dividing the image by a straight line passing through the first edge and along the direction of the first edge, Pixels included in the second divided region belonging to an image region that does not include the first edge out of two image regions obtained by dividing the image along a straight line passing through the second edge and along the direction of the second edge The value may be predicted using the second prediction direction.
  • a plurality of prediction values are obtained by predicting pixel values included in the decoding target block using each of the plurality of prediction directions, and an average of the plurality of prediction values is used.
  • the pixel value included in the decoding target block may be predicted.
  • a prediction image is generated using an average of a plurality of prediction results obtained based on a plurality of prediction directions. Therefore, the prediction accuracy is stable.
  • An image encoding apparatus is an image encoding apparatus that encodes an image for each block, and detects edges from one or more adjacent blocks adjacent to an encoding target block. And each of the plurality of edges, by obtaining a length of an intersection line segment that is a common part of the encoding target block and a straight line passing through the position of the edge along the edge direction, A line segment length acquisition unit that acquires the lengths of a plurality of intersecting line segments corresponding to the edges, and depending on the lengths of the plurality of intersecting line segments corresponding to the plurality of edges from the direction of the plurality of edges.
  • a prediction direction selection unit that selects a prediction direction, a prediction unit that generates a predicted image block by predicting a pixel value included in the encoding target block using the prediction direction, and the prediction It may be an image encoding apparatus and an encoding unit for encoding the difference image block which is a difference between the image block and the encoding target block.
  • the image encoding method according to the present invention is realized as an image encoding apparatus.
  • An image decoding apparatus is an image decoding apparatus that decodes an image for each block, and includes an edge detection unit that detects a plurality of edges from one or more adjacent blocks adjacent to a decoding target block; For each of a plurality of edges, a plurality of lines corresponding to the plurality of edges are obtained by obtaining the lengths of intersecting line segments that are common parts between the straight line passing through the edge position and along the edge direction and the block to be decoded.
  • a segment length acquisition unit that acquires the length of the intersection line segment, and a prediction direction is selected from the direction of the plurality of edges depending on the length of the plurality of intersection line segments corresponding to the plurality of edges
  • a prediction direction selection unit a prediction unit that generates a prediction image block by predicting a pixel value included in the decoding target block using the prediction direction, and the prediction image block
  • the decoded differential image block which is a difference between the current block by adding the said prediction image block and the difference image block, may be an image decoding apparatus and a decoding unit for restoring the current block.
  • the image decoding method according to the present invention is realized as an image decoding apparatus.
  • the prediction direction is selected according to the degree of influence of the edge on the processing target block. Therefore, an appropriate predicted image corresponding to the image characteristics is generated.
  • FIG. 1 is a configuration diagram of an image encoding device according to Embodiment 1.
  • FIG. 2 is a diagram illustrating an example of a picture.
  • FIG. 3 is a diagram illustrating an example of an edge vector.
  • FIG. 4 is a conceptual diagram illustrating an example of in-plane prediction.
  • FIG. 5 is a diagram illustrating a plurality of examples of prediction directions.
  • FIG. 6 is a flowchart showing the operation of the image coding apparatus according to Embodiment 1.
  • FIG. 7 is a diagram illustrating a cross line segment according to the first embodiment.
  • FIG. 8 is a diagram illustrating the distance between the edge and the processing target block according to the first embodiment.
  • FIG. 9 is a diagram showing selection of edge vectors according to the first embodiment.
  • FIG. 1 is a configuration diagram of an image encoding device according to Embodiment 1.
  • FIG. 2 is a diagram illustrating an example of a picture.
  • FIG. 3 is a diagram illustrating an example of an
  • FIG. 10 is a configuration diagram of the image decoding apparatus according to the second embodiment.
  • FIG. 11 is a flowchart showing the operation of the image decoding apparatus according to the second embodiment.
  • FIG. 12 is a diagram illustrating a first example of division of a processing target block according to the third embodiment.
  • FIG. 13 is a diagram illustrating a second example of the division of the processing target block according to the third embodiment.
  • FIG. 14 is a diagram illustrating an example of in-plane prediction of the external area according to the third embodiment.
  • FIG. 15 is a diagram illustrating an example of in-plane prediction of the inner region according to the third embodiment.
  • FIG. 16 is a diagram illustrating a modified example of the in-plane prediction of the inner region according to the third embodiment.
  • FIG. 12 is a diagram illustrating a first example of division of a processing target block according to the third embodiment.
  • FIG. 13 is a diagram illustrating a second example of the division of the processing target block according to the third embodiment.
  • FIG. 17 is a flowchart showing the operation of in-plane prediction according to the third embodiment.
  • FIG. 18 is a diagram illustrating a third example of the division of the processing target block according to the third embodiment.
  • FIG. 19 is a configuration diagram of an image encoding device according to the fifth embodiment.
  • FIG. 20 is a flowchart showing the operation of the image coding apparatus according to the fifth embodiment.
  • FIG. 21 is a block diagram of an image decoding apparatus according to the fifth embodiment.
  • FIG. 22 is a flowchart showing the operation of the image decoding apparatus according to the fifth embodiment.
  • FIG. 23 is an overall configuration diagram of a content supply system that implements a content distribution service.
  • FIG. 24 is an overall configuration diagram of a digital broadcasting system.
  • FIG. 25 is a block diagram illustrating a configuration example of a television.
  • FIG. 26 is a block diagram illustrating a configuration example of an information reproducing / recording unit that reads and writes information from and on a recording medium that is an optical disk.
  • FIG. 27 is a diagram illustrating a structure example of a recording medium that is an optical disk.
  • FIG. 28A is a diagram illustrating an example of a mobile phone.
  • FIG. 28B is a block diagram illustrating a configuration example of a mobile phone.
  • FIG. 29 is a diagram showing a structure of multiplexed data.
  • FIG. 30 is a diagram schematically showing how each stream is multiplexed in the multiplexed data.
  • FIG. 31 is a diagram showing in more detail how the video stream is stored in the PES packet sequence.
  • FIG. 32 is a diagram showing the structure of TS packets and source packets in multiplexed data.
  • FIG. 33 shows the data structure of the PMT.
  • FIG. 34 shows the internal structure of multiplexed data information.
  • FIG. 35 shows the internal structure of stream attribute information.
  • FIG. 36 is a diagram showing steps for identifying video data.
  • FIG. 37 is a block diagram illustrating a configuration example of an integrated circuit that realizes the moving picture coding method and the moving picture decoding method according to each embodiment.
  • FIG. 38 is a diagram showing a configuration for switching the drive frequency.
  • FIG. 39 is a diagram illustrating steps for identifying video data and switching between driving frequencies.
  • FIG. 40 is a diagram illustrating an example of a look-up table in which video data standards are associated with drive frequencies.
  • FIG. 41A is a diagram illustrating an example of a configuration for sharing a module of a signal processing unit.
  • FIG. 41B is a diagram illustrating another example of a configuration for sharing a
  • FIG. 1 is a configuration diagram of an image encoding device according to Embodiment 1.
  • the image encoding device 100 shown in FIG. 1 encodes an input video signal Vin and outputs an encoded stream (encoded signal) Str.
  • the image encoding device 100 includes a subtraction unit 144, a quantization conversion unit 142, an encoding unit 143, an inverse quantization inverse conversion unit 123, an addition unit 129, a frame memory 124, a candidate vector derivation unit 125, and an edge vector derivation unit. 126 and a prediction unit 127.
  • the image encoding device 100 divides and encodes the video signal Vin into a plurality of blocks.
  • the subtraction unit 144 generates a prediction error signal PredErr that is a difference signal between the video signal Vin and the prediction signal Pred.
  • the quantization transform unit 142 generates a coding coefficient Coeff by performing frequency transform, quantization, and scan on the prediction error signal PredErr.
  • the encoding unit 143 compresses the encoding coefficient Coeff by entropy encoding, and outputs an encoded stream Str.
  • the inverse quantization inverse transform unit 123 generates a quantized prediction error signal QPredErr by performing inverse scan, inverse quantization, and inverse transform on the coding coefficient Coeff.
  • the adder 129 generates a decoded signal Recon by adding the quantized prediction error signal QPredErr and the prediction signal Pred, and stores the decoded signal Recon in the frame memory 124.
  • the candidate vector derivation unit 125 acquires the image signal of the neighboring block BlkNgh that is a decoded block near the decoding target block from the frame memory 124. Then, the candidate vector deriving unit 125 performs edge detection filter processing and the like on the acquired image signal to derive a plurality of candidate vectors Vec.
  • the edge vector deriving unit 126 selects a candidate vector having the maximum vector size (also called norm) from the plurality of candidate vectors Vec as the edge vector EdgeVec (A). Alternatively, the edge vector derivation unit 126 calculates the edge vector EdgeVec from the plurality of candidate vectors Vec by a statistical averaging process such as an average of the plurality of candidate vectors Vec (B).
  • the edge vector deriving unit 126 may exclude candidate vectors that do not indicate the processing target block in the above-described processing (A) or (B). Further, the edge vector deriving unit 126 may select not only the norm of the candidate vector but also a candidate vector having a long intersection line corresponding to the candidate vector as the edge vector EdgeVec. Here, the intersection line segment is a common part between the straight line obtained by extending the candidate vector and the processing target block.
  • the prediction unit 127 generates a prediction signal Pred with reference to the reference block BlkRef based on the direction of the edge vector EdgeVec.
  • the edge vector deriving unit 126 may output the division information PrtnCtrl for further finely dividing the processing target block to the prediction unit 127.
  • the prediction unit 127 may divide the processing target block more finely based on the division information PrtnCtrl. And the prediction part 127 may produce
  • FIG. 2 is a diagram illustrating an example of a picture.
  • a moving image is composed of a plurality of pictures.
  • the picture shown in FIG. 2 is an example of a picture included in a moving image.
  • the image encoding device 100 shown in FIG. 1 encodes the picture shown in FIG. 2 for each block.
  • FIG. 3 is a diagram showing an example of an edge vector or a candidate vector in the picture shown in FIG.
  • Edges are detected from the picture shown in FIG. 2 by an edge detection filter or the like.
  • the edge indicates a spatial position where the pixel value changes in the picture.
  • the edge also has a direction and strength. The greater the change in pixel value, the greater the edge strength.
  • the change in pixel value is also called a gradient.
  • the direction of the edge is a direction rotated 90 degrees to the left or right from the direction of change of the pixel value.
  • An edge vector and a candidate vector that is a candidate for an edge vector are vectors having a direction along the edge direction and having the strength of the edge as a magnitude.
  • the edge vector and candidate vector are obtained by rotating the gradient vector 90 degrees to the left or right.
  • the gradient vector has a direction along the change direction of the pixel value, and has a change amount of the pixel value as a magnitude.
  • the direction of the edge vector and the candidate vector may be limited to a predetermined range.
  • the direction of the edge vector and the candidate vector may be limited to a range that can be used as a prediction direction.
  • the direction of the edge vector and the candidate vector may be limited to a range of ⁇ 135 degrees or more and less than 45 degrees when the right direction is 0 degrees.
  • the direction of the edge vector and the candidate vector may be a direction that approximates a predetermined prediction direction.
  • FIG. 4 is a conceptual diagram showing an example of in-plane prediction.
  • the value of the pixel in the processing target block (the encoding target block or the decoding target block) is predicted from one or more processed (encoded or decoded) adjacent blocks adjacent to the processing target block.
  • the processing target block is also called a current block.
  • the adjacent blocks include blocks adjacent to the processing target block in an oblique direction.
  • the pixel value of the adjacent block is copied to the pixel of the processing target block based on the prediction direction.
  • the prediction image block corresponding to a process target block is produced
  • the prediction direction shown in FIG. 4 is an example, and the prediction direction used for in-plane prediction is not limited to the example shown in FIG.
  • FIG. 5 is a diagram illustrating a plurality of examples of the prediction direction. For example, as shown in FIG. 5, eight directions are used as prediction directions according to the in-plane prediction mode. However, the plurality of prediction directions shown in FIG. 5 are examples, and a direction different from the direction shown in FIG. 5 may be used as the prediction direction.
  • FIG. 6 is a flowchart showing the operation of the image encoding device 100.
  • the image encoding device 100 divides input image data into a plurality of blocks and encodes each block.
  • the image encoding device 100 performs edge detection at the time of encoding, and performs in-plane prediction based on the result of edge detection.
  • FIG. 6 shows the operation during this encoding.
  • the image encoding device 100 detects an edge vector from peripheral blocks that are peripheral blocks of the processing target block (S102).
  • the prediction unit 127 generates a predicted image block in the direction of the edge vector (S103).
  • the subtraction unit 144 generates a difference image block obtained by subtracting the predicted image block from the processing target block (S104).
  • the quantization conversion unit 142 frequency-converts and quantizes the difference image block (S105).
  • the encoding unit 143 encodes the quantized difference image block by entropy encoding (S106).
  • the inverse quantization inverse transformation unit 123 inverse quantizes the quantized difference image block and performs inverse frequency transformation (S107).
  • the adding unit 129 adds the predicted image block and the difference image block to generate a decoded image block (S108).
  • the image coding apparatus 100 repeats the above processing for each block until all the pixels in the picture are coded (S101).
  • the candidate vector deriving unit 125 derives one or more candidate vectors among the processed peripheral blocks adjacent to the processing target block (S109).
  • the candidate vector deriving unit 125 calculates a candidate vector using an edge detection type filter such as a 3 ⁇ 3 pixel or 4 ⁇ 4 pixel Sobel filter or a Prewitt filter.
  • an edge detection type filter such as a 3 ⁇ 3 pixel or 4 ⁇ 4 pixel Sobel filter or a Prewitt filter.
  • the edge vector deriving unit 126 determines whether or not the derived candidate vector indicates a processing target block (S111). That is, the edge vector deriving unit 126 determines whether or not the processing target block exists on the extension line of the candidate vector. Here, this determination is called block intersection determination. Next, when the processing target block exists on the extension line of the candidate vector, the length of the intersection line segment (cutting line segment) that is a common part of the extension line and the processing target block is measured (S112).
  • the edge vector deriving unit 126 executes the above-described processing for each of one or more candidate vectors derived from the surrounding blocks (S110). Then, the edge vector derivation unit 126 selects an edge vector from one or more candidate vectors (S113). At this time, the edge vector deriving unit 126 selects an edge vector in consideration of the length of the intersection line segment in addition to the norm that is the size of the candidate vector.
  • FIG. 7 is a conceptual diagram for explaining in detail the length of the above-mentioned intersection line segment.
  • FIG. 7 shows a region of the processing target block BlkCur and a region of a neighboring block BlkNgh that is adjacent to the processing target block BlkCur and includes processed pixels.
  • Candidate vectors Vec are calculated at a plurality of positions in the neighboring block BlkNgh.
  • the candidate vector Vec shown in FIG. 7 has a specific position as the start point Vcntr.
  • the straight line VecLine shown in FIG. 7 is obtained by extending the candidate vector Vec.
  • the intersection line segment CutSeg corresponds to a portion where the straight line VecLine cuts the processing target block BlkCur.
  • the intersection line segment CutSeg is a line segment corresponding to an edge (pattern boundary or the like) predicted in the processing target block BlkCur.
  • the image encoding apparatus 100 selects a prediction direction corresponding to a large edge in the processing target block BlkCur by selecting a long intersection line segment CutSeg. Therefore, the image coding apparatus 100 can more appropriately reflect the image characteristics in the prediction. And the image coding apparatus 100 can improve prediction performance.
  • the edge vector deriving unit 126 may acquire N ⁇ L as the evaluation value. Then, the edge vector deriving unit 126 may preferentially select a candidate vector Vec having a large evaluation value.
  • the candidate vector deriving unit 125 may detect two edges, a first detection edge and a second detection edge.
  • the edge vector deriving unit 126 acquires the product of the length of the intersection line segment CutSeg corresponding to the first detection edge and the strength of the first detection edge.
  • the edge vector deriving unit 126 acquires the product of the length of the intersection line segment CutSeg corresponding to the second detection edge and the strength of the second detection edge.
  • the edge vector deriving unit 126 may select the direction of the first detection edge as the prediction direction when the product corresponding to the first detection edge is larger than the product corresponding to the second detection edge. Further, the edge vector deriving unit 126 may select a direction that approximates the direction of the first detection edge as the prediction direction.
  • the edge vector deriving unit 126 may acquire N + L ⁇ K as an evaluation value by using a predetermined constant K. Then, the edge vector deriving unit 126 may preferentially select a candidate vector Vec having a large evaluation value.
  • the edge vector deriving unit 126 may preferentially select the candidate vector Vec having a short distance from the start point Vcntr of the candidate vector Vec to the processing target block BlkCur.
  • FIG. 8 is a diagram showing the distance between the edge and the block to be processed.
  • FIG. 8 shows the distance from the start point Vcntr of the candidate vector Vec to the processing target block BlkCur. More specifically, the distance from the start point Vcntr to the nearest position of the processing target block BlkCur is used for the evaluation.
  • the edge vector deriving unit 126 may acquire N ⁇ L ⁇ (K2 ⁇ D) as the evaluation value.
  • K2 is a constant.
  • K2 may be the maximum value of D.
  • the edge vector deriving unit 126 may acquire N + L ⁇ K + (1 ⁇ D) ⁇ K3 as an evaluation value.
  • K3 is a constant.
  • the edge vector deriving unit 126 may first evaluate only the norm. Then, the edge vector deriving unit 126 may extract some of the higher ranks from the plurality of candidate vectors in descending order of the norm, and then evaluate the extracted plurality of candidate vectors with the above evaluation values.
  • the edge vector deriving unit 126 depends on the above L and D only when the norms of the two candidate vectors obtained by extracting the top two from the plurality of candidate vectors in the descending order of the norm are close to each other. Two candidate vectors may be evaluated. When the upper two norms are close, for example, there is a case where a small norm is larger than K4 times a large norm.
  • K4 is a constant of 1 or less.
  • FIG. 9 is a conceptual diagram showing an example of the operation of the image encoding device 100 shown in FIG. FIG. 9 shows two candidate vectors Vec1 and Vec2.
  • FIG. 9 shows an example in which the sizes are almost the same or the candidate vector Vec1 is slightly larger than the candidate vector Vec2.
  • CutSeg2 When comparing the cross line segment CutSeg1 by the straight line VecLine1 extended from the candidate vector Vec1 and the cross line segment CutSeg2 by the straight line VecLine2 extended from the candidate vector Vec2, CutSeg2 is longer. In this case, the image encoding device 100 operates to select the candidate vector Vec2 more preferentially.
  • the image encoding device 100 selects the prediction direction according to the length of the intersection line segment. Therefore, even when a plurality of strong edges are detected, the prediction direction is appropriately selected according to the degree of influence of the edges on the encoding target block. Thereby, an appropriate predicted image according to the characteristics of the image is generated. Therefore, the image encoding device 100 can improve the compression rate.
  • FIG. 10 is a configuration diagram of the image decoding apparatus according to the second embodiment.
  • the image decoding apparatus 200 shown in FIG. 10 decodes the encoded stream Str encoded by the image encoding apparatus 100 for each block, and outputs a decoded video signal Vout. Further, the image decoding apparatus 200 includes a decoding unit 122, an inverse quantization inverse transformation unit 123, an addition unit 129, a frame memory 124, a candidate vector derivation unit 125, an edge vector derivation unit 126, and a prediction unit 127. Description of components that perform the same operations as those of the image encoding device 100 illustrated in FIG. 1 is omitted.
  • the decoding unit 122 acquires the encoded stream Str as an input. Then, the decoding unit 122 generates an encoded coefficient Coeff by performing entropy decoding on the encoded stream Str. Thereafter, a decoded signal Recon is generated and stored in the frame memory 124. The decoded signal Recon stored in the frame memory 124 is output as a decoded video signal Vout.
  • the other components perform the same operations as the components shown in FIG.
  • FIG. 11 is a flowchart showing the operation of the image decoding apparatus 200 shown in FIG. The description of the same operation as that shown in FIG. 6 is omitted.
  • the image decoding apparatus 200 decodes an image for each block (S101).
  • the decoding unit 122 decodes the encoded stream Str by entropy decoding to generate an encoded coefficient Coeff (S124).
  • the inverse quantization inverse transform unit 123 performs inverse scan, inverse quantization, and inverse transform to generate a quantized prediction error signal QPredErr (S125).
  • the adder 129 adds the quantized prediction error signal QPredErr and the prediction signal Pred to generate a decoded signal Recon (S126).
  • the selection method of the edge vector is the same as the method using the length of the intersection line segment and the distance to the processing target block described with reference to FIG. 7, FIG. 8, FIG.
  • the image decoding apparatus 200 selects the prediction direction according to the length of the intersection line segment, similarly to the image encoding apparatus 100. Therefore, even when a plurality of strong edges are detected, the prediction direction is appropriately selected according to the degree of influence of the edges on the decoding target block. Thereby, an appropriate predicted image according to the characteristics of the image is generated.
  • Embodiment 3 The image coding apparatus according to Embodiment 3 has the same components as those of image coding apparatus 100 of Embodiment 1 shown in FIG. Further, the image decoding apparatus according to Embodiment 3 has the same components as those of the image decoding apparatus 200 according to Embodiment 2 shown in FIG. The difference is that division information PrtnCtrl is generated.
  • FIG. 12 is a diagram illustrating a first example of the division of the processing target block according to the third embodiment. As shown in FIG. 12, when the two candidate vectors have a large norm and their start point positions are separated from each other by a predetermined distance or more, the edge vector deriving unit 126 selects an edge vector as an alternative. Instead, both are selected as edge vectors.
  • the edge vector deriving unit 126 selects two edge vectors EVec1 and EVec2. By extending each of the two edge vectors EVec1 and EVec2, two straight lines EVecLine1 and EVecLine2 are obtained. Then, the intersection ISP is obtained. Further, the processing target block is divided by the two straight lines EVecLine1 and EVecLine2.
  • regions RegO1, RegX12N, RegX12F, and RegO2 will be described in detail. These regions created by the two straight lines EVecLine1 and EVecLine2 are classified according to the direction of the vector with respect to the intersection ISP. That is, a region having an angle at which the direction of the edge vector EVec1 and the direction of the edge vector EVec2 coincide with the intersection point ISP is defined as a region (internal region) RegX12.
  • the region RegX12 may be further divided into two regions. The side closer to the neighboring block BlkNgh is defined as a region (inner region) RegX12N, and the far side is defined as a region (inner region) RegX12F.
  • region (external region) RegO region where the vector direction with respect to the intersection ISP does not match.
  • region (external region) RegO a region having a line segment from the neighboring block BlkNgh to the intersection ISP as a part of the boundary.
  • a region having a line segment from the neighboring block BlkNgh to the intersection ISP as a part of the boundary is defined as a region (external region) RegO2.
  • the region is defined on the assumption that the processing target block is rectangular, the left side and the upper side of the processing target block are in contact with the neighboring block BlkNgh, the straight line EVecLine1 intersects the left side, and the straight line EVecLine2 intersects the upper side.
  • the left region may be defined as the region RegO1
  • the right region may be defined as the region RegO2
  • the middle region may be defined as RegX12.
  • the two regions RegO1 and RegO2 satisfy the following condition. Therefore, the two regions RegO1 and RegO2 may be defined as regions that satisfy the following conditions.
  • the region RegO1 belongs to an image region including the first edge (edge vector EVec1) among the two image regions obtained by dividing the image by the straight line EVecLine2 along the direction of the second edge (edge vector EVec2). Further, the region RegO1 belongs to an image region that does not include the second edge (edge vector EVec2) among the two image regions obtained by dividing the image by the straight line EVecLine1 along the direction of the first edge (edge vector EVec1). .
  • the region RegO2 belongs to the image region including the second edge (edge vector EVec2) among the two image regions obtained by dividing the image by the straight line EVecLine1 along the direction of the first edge (edge vector EVec1). . Further, the region RegO2 belongs to an image region that does not include the first edge (edge vector EVec1) among the two image regions obtained by dividing the image by the straight line EVecLine2 along the direction of the second edge (edge vector EVec2). .
  • FIG. 13 is a diagram illustrating a second example of the division of the processing target block according to the third embodiment.
  • the intersection ISP is located outside the block.
  • the region determination operation is the same as the operation described with reference to FIG.
  • An intermediate region between the two vectors is the region RegX12 or the region RegX12N.
  • the side close to the straight line EVecLine1 is the region RegO1
  • the side close to the straight line EVecLine2 is the region RegO2.
  • FIG. 14 is a diagram illustrating an example of in-plane prediction of the external area according to the third embodiment.
  • the prediction unit 127 performs prediction on the region RegO using only one edge vector.
  • the prediction unit 127 predicts each pixel of the region RegO1 using the direction of the edge vector EVec1. At this time, the prediction unit 127 generates a prediction signal using a pixel (proximity pixel) BlkNgh1 that is close to the processing target block inside the neighboring block BlkNgh. Specifically, the prediction unit 127 generates a predicted image by causing the values of the pixels BlkNgh1 to continue along the direction of the edge vector EVec1. That is, the prediction unit 127 generates a prediction image by stretching the pixel BlkNgh1.
  • the prediction unit 127 predicts each pixel of the region RegO2 using the direction of the edge vector EVec2. At this time, the prediction unit 127 generates a prediction signal using a pixel (proximity pixel) BlkNgh2 that is close to the processing target block inside the neighboring block BlkNgh. Specifically, the prediction unit 127 generates a predicted image by causing the values of the pixels BlkNgh2 to continue along the direction of the edge vector EVec2. That is, the prediction unit 127 generates a predicted image by stretching the pixel BlkNgh2.
  • FIG. 15 is a diagram illustrating an example of in-plane prediction of the internal region according to the third embodiment.
  • the region RegX12N is generated by each of the two edge vectors EVec1 and EVec2 using the processed pixel (proximity pixel) BlkNghN that is close to the processing target block, and then averages the two predicted values obtained in each pixel. , Generate pixel values.
  • the prediction unit 127 generates a first prediction signal (first prediction value) by continuing the values of the pixels BlkNghN along the direction of the edge vector EVec1. That is, the prediction unit 127 generates a prediction image by extending the pixel BlkNghN in the direction of the edge vector EVec1.
  • the prediction unit 127 generates a second prediction signal (second prediction value) by continuing the value of the pixel BlkNghN along the direction of the edge vector EVec2. That is, the prediction unit 127 generates a prediction image by extending the pixel BlkNghN in the direction of the edge vector EVec2.
  • the prediction part 127 averages a 1st prediction signal and a 2nd prediction signal, and produces
  • the prediction unit 127 performs prediction for the region RegX12F in the same manner as the region RegX12N, but the pixels to be referred to are different. For example, the prediction unit 127 predicts the pixel value of the region RegX12F from the pixel BlkNghF1 and the pixel BlkNghF2 illustrated in FIG. In addition, prediction by another method as described below can be applied to the prediction of the pixel value in the region RegX12.
  • FIG. 16 is a diagram illustrating a modified example of the in-plane prediction of the internal region according to the third embodiment.
  • the prediction unit 127 generates a prediction signal so as to converge from the pixel BlkNghN toward the intersection ISP in the region RegX12N.
  • the prediction unit 127 also extends the prediction direction in the region RegX12N in the region RegX12F. By using this prediction direction, the prediction unit 127 can predict a sharper shape with higher accuracy.
  • FIG. 17 is a flowchart showing the in-plane prediction operation according to the third embodiment.
  • FIG. 17 shows an operation flow related to prediction using a plurality of edge vectors.
  • encoding or decoding is performed for each block.
  • the candidate vector deriving unit 125 derives a plurality of candidate vectors from the processed neighboring block BlkNgh adjacent to the processing target block using an edge detection filter such as a Sobel filter (S130).
  • the edge vector deriving unit 126 derives a plurality of edge vectors having high evaluation values using the evaluation values based on the norm of the candidate vectors, the length of the intersection line segment, the distance to the processing target block, and the like. (S131).
  • the edge vector derivation unit 126 defines a plurality of regions from the positional relationship of the plurality of edge vectors, the vector orientation, and the like (S132). Further, the edge vector derivation unit 126 transmits the division information PrtnCtrl to the prediction unit 127. And the prediction part 127 produces
  • in-plane prediction is shown as a prediction signal generation method.
  • inter-surface prediction may be used using edge vectors.
  • the motion compensation region may be defined using the region definition method described in FIGS. 12 and 13.
  • the prediction method shown in the present embodiment is also applicable when using three or more edge vectors.
  • FIG. 18 is a diagram illustrating a third example of the division of the processing target block according to the third embodiment.
  • FIG. 18 shows three edge vectors EVec1, EVec2, and EVec3.
  • the processing target block is divided by a straight line EVecLine1, a straight line EVecLine2, and a straight line EVecLine3.
  • EVecLine1 a straight line EVecLine2
  • EVecLine3 a straight line EVecLine3.
  • FIG. 18 when three edge vectors EVec1, EVec2, and EVec3 are arranged counterclockwise, four regions RegO1, RegX12N, RegX23N, and RegO3 are defined counterclockwise.
  • the region RegO1 is predicted only in the direction of the edge vector EVec1.
  • the pixel value of the region RegX12N is finally predicted by the average value of the prediction based on the direction of the edge vector EVec1 and the prediction based on the direction of the edge vector EVec2.
  • the pixel value of the region RegX23N is finally predicted by an average value of prediction based on the direction of the edge vector EVec2 and prediction based on the direction of the edge vector EVec3.
  • the pixel value of the region RegO3 is predicted only in the direction of the edge vector EVec3.
  • the image encoding device 100 and the image decoding device 200 according to Embodiment 3 use a plurality of prediction directions when there are a plurality of edges. Then, the image encoding device 100 and the image decoding device 200 divide the processing target block into a plurality of regions and perform highly accurate prediction for each region. Thereby, compression performance improves.
  • Embodiment 4 Even if the prediction method using one edge vector as shown in Embodiment 1 and Embodiment 2 and the prediction method using a plurality of edge vectors as shown in Embodiment 3 are combined, Good.
  • the information about which prediction method to use may be incorporated as a flag in the encoded stream.
  • the information may be incorporated for each profile level layer, sequence parameter set, picture parameter set, frame header, slice header, coding unit header, or encoding block of the encoded stream.
  • the image coding apparatus 100 and the image decoding apparatus 200 shown in the first embodiment, the second embodiment, and the third embodiment use the norm, the intersection line segment length, and the like, and the candidate vector having the highest evaluation value is used. Are selected as edge vectors.
  • information on which candidate vector is selected as the edge vector may be incorporated in the encoded stream as a flag.
  • the information may be incorporated for each profile level layer, sequence parameter set, picture parameter set, frame header, slice header, coding unit header, or encoding block, as described above.
  • the image encoding device 100 and the image decoding device 200 can generate an appropriate predicted image while adaptively changing the prediction method.
  • FIG. 19 is a configuration diagram of an image encoding device according to the fifth embodiment.
  • the image encoding device 300 illustrated in FIG. 19 encodes an image for each block.
  • the image encoding device 300 includes an edge detection unit 301, a line segment length acquisition unit 302, a prediction direction selection unit 303, a prediction unit 304, and an encoding unit 305.
  • the edge detection unit 301 corresponds to the candidate vector derivation unit 125 of the image encoding device 100 shown in FIG.
  • the line segment length acquisition unit 302 and the prediction direction selection unit 303 correspond to the edge vector derivation unit 126 of the image encoding device 100 illustrated in FIG.
  • the prediction unit 304 corresponds to the prediction unit 127 of the image encoding device 100 illustrated in FIG.
  • the encoding unit 305 corresponds to the subtraction unit 144, the quantization transform unit 142, and the encoding unit 143 of the image encoding device 100 illustrated in FIG.
  • FIG. 20 is a flowchart showing the operation of the image coding apparatus 300 shown in FIG.
  • the edge detection unit 301 detects a plurality of edges from one or more adjacent blocks adjacent to the encoding target block (S301).
  • the line segment length acquisition unit 302 acquires the length of the intersection line segment for each of the plurality of edges.
  • the intersecting line segment is a common part between the straight line passing through the edge position and along the edge direction, and the encoding target block.
  • the line segment length acquisition unit 302 acquires the lengths of a plurality of intersecting line segments corresponding to the plurality of edges (S302).
  • the prediction direction selection unit 303 selects a prediction direction from the directions of the plurality of edges depending on the lengths of the plurality of intersecting line segments corresponding to the plurality of edges (S303).
  • the prediction unit 304 predicts the pixel value included in the encoding target block using the prediction direction. Accordingly, the prediction unit 304 generates a predicted image block (S304).
  • the encoding unit 305 generates an encoded stream by encoding the difference image block (S305).
  • the difference image block here is a difference between the prediction image block and the encoding target block.
  • FIG. 21 is a block diagram of an image decoding apparatus according to the fifth embodiment.
  • the image decoding apparatus 400 illustrated in FIG. 21 decodes an image for each block.
  • the image decoding apparatus 400 includes an edge detection unit 401, a line segment length acquisition unit 402, a prediction direction selection unit 403, a prediction unit 404, and a decoding unit 405.
  • the edge detection unit 401 corresponds to the candidate vector derivation unit 125 of the image decoding device 200 shown in FIG.
  • the line segment length acquisition unit 402 and the prediction direction selection unit 403 correspond to the edge vector derivation unit 126 of the image decoding device 200 illustrated in FIG.
  • the prediction unit 404 corresponds to the prediction unit 127 of the image decoding device 200 illustrated in FIG.
  • the decoding unit 405 corresponds to the decoding unit 122, the inverse quantization inverse transformation unit 123, and the addition unit 129 of the image decoding device 200 illustrated in FIG.
  • FIG. 22 is a flowchart showing the operation of the image decoding apparatus 400 shown in FIG.
  • the edge detection unit 401 detects a plurality of edges from one or more adjacent blocks adjacent to the decoding target block (S401).
  • the line segment length acquisition unit 402 acquires the length of the intersection line segment for each of the plurality of edges.
  • the intersection line segment is a common part between the straight line passing through the edge position and along the edge direction and the decoding target block. Accordingly, the line segment length acquisition unit 402 acquires the lengths of a plurality of intersecting line segments corresponding to the plurality of edges (S402).
  • the prediction direction selection unit 403 selects a prediction direction from the directions of the plurality of edges depending on the lengths of the plurality of intersecting line segments corresponding to the plurality of edges (S403).
  • the prediction unit 404 predicts the pixel value included in the decoding target block using the prediction direction. Accordingly, the prediction unit 404 generates a predicted image block (S404).
  • the decoding unit 405 decodes the difference image block from the encoded stream.
  • the difference image block here is a difference between the prediction image block and the decoding target block.
  • the decoding unit 405 adds the difference image block and the predicted image block. Thereby, the decoding unit 405 restores the decoding target block (S405).
  • the image encoding device 300 and the image decoding device 400 select a prediction direction according to the length of the intersection line segment. That is, the image encoding device 300 and the image decoding device 400 select a prediction direction according to the degree of influence of an edge on the processing target block. Therefore, an appropriate predicted image corresponding to the image characteristics is generated. Then, the image encoding device 300 and the image decoding device 400 can improve the compression rate.
  • the image encoding device and the image decoding device according to the present invention have been described based on a plurality of embodiments.
  • the present invention is not limited to these embodiments.
  • Embodiments obtained by subjecting the embodiments to modifications conceivable by those skilled in the art and other embodiments realized by arbitrarily combining the components in the embodiments are also included in the present invention.
  • another processing unit may execute a process executed by a specific processing unit.
  • the order in which the processes are executed may be changed, or a plurality of processes may be executed in parallel.
  • the present invention can be realized not only as an image encoding device and an image decoding device, but also as a method using processing means constituting the image encoding device and the image decoding device as steps. For example, these steps are performed by a computer.
  • the present invention can be realized as a program for causing a computer to execute the steps included in these methods.
  • the present invention can be realized as a computer-readable recording medium such as a CD-ROM in which the program is recorded.
  • a plurality of components included in the image encoding device and the image decoding device may be realized as an LSI (Large Scale Integration) that is an integrated circuit. These components may be individually made into one chip, or may be made into one chip so as to include a part or all of them. For example, components other than the storage unit may be integrated into one chip.
  • LSI Large Scale Integration
  • IC Integrated Circuit
  • system LSI system LSI
  • super LSI super LSI
  • ultra LSI ultra LSI depending on the degree of integration.
  • the method of circuit integration is not limited to LSI, and implementation with a dedicated circuit or a general-purpose processor is also possible.
  • An FPGA Field Programmable Gate Array
  • a reconfigurable processor that can reconfigure the connection and setting of circuit cells inside the LSI may be used.
  • the storage medium may be any medium that can record a program, such as a magnetic disk, an optical disk, a magneto-optical disk, an IC card, and a semiconductor memory.
  • FIG. 23 is a diagram showing an overall configuration of a content supply system ex100 that realizes a content distribution service.
  • a communication service providing area is divided into desired sizes, and base stations ex106, ex107, ex108, ex109, and ex110, which are fixed wireless stations, are installed in each cell.
  • This content supply system ex100 includes a computer ex111, a PDA (Personal Digital Assistant) ex112, a camera ex113, a mobile phone ex114, a game machine ex115 via the Internet ex101, the Internet service provider ex102, the telephone network ex104, and the base stations ex106 to ex110. Etc. are connected.
  • PDA Personal Digital Assistant
  • each device may be directly connected to the telephone network ex104 without going from the base station ex106, which is a fixed wireless station, to ex110.
  • the devices may be directly connected to each other via short-range wireless or the like.
  • the camera ex113 is a device that can shoot moving images such as a digital video camera
  • the camera ex116 is a device that can shoot still images and movies such as a digital camera.
  • the mobile phone ex114 is a GSM (Global System for Mobile Communications) system, a CDMA (Code Division Multiple Access) system, a W-CDMA (Wideband-Code Division Multiple Access) system, an LTE (Long Terminal Evolution) system, an HSPA ( High-speed-Packet-Access) mobile phone or PHS (Personal-Handyphone System), etc.
  • GSM Global System for Mobile Communications
  • CDMA Code Division Multiple Access
  • W-CDMA Wideband-Code Division Multiple Access
  • LTE Long Terminal Evolution
  • HSPA High-speed-Packet-Access
  • PHS Personal-Handyphone System
  • the camera ex113 and the like are connected to the streaming server ex103 through the base station ex109 and the telephone network ex104, thereby enabling live distribution and the like.
  • live distribution the content (for example, music live video) captured by the user using the camera ex113 is encoded as described in the above embodiments, and transmitted to the streaming server ex103.
  • the streaming server ex103 stream-distributes the content data transmitted to the requested client. Examples of the client include a computer ex111, a PDA ex112, a camera ex113, a mobile phone ex114, and a game machine ex115 that can decode the encoded data. Each device that receives the distributed data decodes the received data and reproduces it.
  • the captured data may be encoded by the camera ex113, the streaming server ex103 that performs data transmission processing, or may be shared with each other.
  • the decryption processing of the distributed data may be performed by the client, the streaming server ex103, or may be performed in common with each other.
  • still images and / or moving image data captured by the camera ex116 may be transmitted to the streaming server ex103 via the computer ex111.
  • the encoding process in this case may be performed by any of the camera ex116, the computer ex111, and the streaming server ex103, or may be performed in a shared manner.
  • these encoding / decoding processes are generally performed in the computer ex111 and the LSI ex500 included in each device.
  • the LSI ex500 may be configured as a single chip or a plurality of chips.
  • moving image encoding / decoding software is incorporated into some recording medium (CD-ROM, flexible disk, hard disk, etc.) that can be read by the computer ex111, etc., and encoding / decoding processing is performed using the software. May be.
  • moving image data acquired by the camera may be transmitted.
  • the moving image data at this time is data encoded by the LSI ex500 included in the mobile phone ex114.
  • the streaming server ex103 may be a plurality of servers or a plurality of computers, and may process, record, and distribute data in a distributed manner.
  • the encoded data can be received and reproduced by the client.
  • the information transmitted by the user can be received, decrypted and reproduced by the client in real time, and personal broadcasting can be realized even for a user who does not have special rights or facilities.
  • At least one of the video encoding device and the video decoding device of each of the above embodiments is incorporated in the digital broadcasting system ex200. be able to.
  • the broadcast station ex201 multiplexed data obtained by multiplexing music data and the like on video data is transmitted to a communication or satellite ex202 via radio waves.
  • This video data is data encoded by the moving image encoding method described in the above embodiments.
  • the broadcasting satellite ex202 transmits a radio wave for broadcasting, and this radio wave is received by a home antenna ex204 capable of receiving satellite broadcasting.
  • the received multiplexed data is decoded and reproduced by a device such as the television (receiver) ex300 or the set top box (STB) ex217.
  • a reader / recorder ex218 that reads and decodes multiplexed data recorded on a recording medium ex215 such as a DVD or a BD, encodes a video signal on the recording medium ex215, and in some cases multiplexes and writes it with a music signal. It is possible to mount the moving picture decoding apparatus or moving picture encoding apparatus described in the above embodiments. In this case, the reproduced video signal is displayed on the 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.
  • a moving picture decoding apparatus may be mounted 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 the television.
  • the moving picture decoding apparatus may be incorporated in the television instead of the set top box.
  • FIG. 25 is a diagram illustrating a television (receiver) ex300 that uses the video decoding method and the video encoding method described in each of the above embodiments.
  • the television ex300 obtains or outputs multiplexed data in which audio data is multiplexed with video data via the antenna ex204 or the cable ex203 that receives the broadcast, and demodulates the received multiplexed data.
  • the modulation / demodulation unit ex302 that modulates multiplexed data to be transmitted to the outside, and the demodulated multiplexed data is separated into video data and audio data, or the video data and audio data encoded by the signal processing unit ex306 Is provided with a multiplexing / demultiplexing unit ex303.
  • the television ex300 decodes the audio data and the video data, or encodes each information, the audio signal processing unit ex304, the signal processing unit ex306 including the video signal processing unit ex305, and the decoded audio signal.
  • the television ex300 includes an interface unit ex317 including an operation input unit ex312 that receives an input of a user operation.
  • the television ex300 includes a control unit ex310 that performs overall control of each unit, and a power supply circuit unit ex311 that supplies power to each unit.
  • the interface unit ex317 includes a bridge unit ex313 connected to an external device such as a reader / recorder ex218, a recording unit ex216 such as an SD card, and an external recording unit such as a hard disk.
  • a driver ex315 for connecting to a medium, a modem ex316 for connecting to a telephone network, and the like may be included.
  • the recording medium ex216 is capable of electrically recording information by using a nonvolatile / volatile semiconductor memory element to be stored.
  • Each part of the television ex300 is connected to each other via a synchronous bus.
  • the television ex300 receives a user operation from the remote controller ex220 or the like, and demultiplexes the multiplexed data demodulated by the modulation / demodulation unit ex302 by the multiplexing / demultiplexing unit ex303 based on the control of the control unit ex310 having a CPU or the like. Furthermore, in the television ex300, the separated audio data is decoded by the audio signal processing unit ex304, and the separated video data is decoded by 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 from the output unit ex309 to the outside. At the time of output, these signals may be temporarily stored in the buffers ex318, ex319, etc. so that the audio signal and the video signal are reproduced in synchronization. Also, the television ex300 may read multiplexed data from recording media ex215 and ex216 such as a magnetic / optical disk and an SD card, not from broadcasting. Next, a configuration in which the television ex300 encodes an audio signal or a video signal and transmits the signal to the outside or to a recording medium will be described.
  • the television ex300 receives a user operation from the remote controller ex220 and the like, encodes an audio signal with the audio signal processing unit ex304, and converts the video signal with the video signal processing unit ex305 based on the control of the control unit ex310. Encoding is performed using the encoding method described in (1).
  • the encoded audio signal and video signal are multiplexed by the multiplexing / demultiplexing unit ex303 and output to the outside. When multiplexing, these signals may be temporarily stored in the buffers ex320, ex321, etc. so that the audio signal and the video signal are synchronized.
  • a plurality of buffers ex318, ex319, ex320, and ex321 may be provided as illustrated, or one or more buffers may be shared. Further, in addition to the illustrated example, data may be stored in the buffer as a buffer material that prevents system overflow and underflow, for example, between the modulation / demodulation unit ex302 and the multiplexing / demultiplexing unit ex303.
  • the television ex300 has a configuration for receiving AV input of a microphone and a camera, and performs encoding processing on the data acquired from them. Also good.
  • the television ex300 has been described as a configuration capable of the above-described encoding processing, multiplexing, and external output, but these processing cannot be performed, and only the above-described reception, decoding processing, and external output are possible. It may be a configuration.
  • the decoding process or the encoding process may be performed by either the television ex300 or the reader / recorder ex218.
  • the reader / recorder ex218 may share with each other.
  • FIG. 26 shows a configuration of the information reproducing / recording unit ex400 when data is read from or written to an optical disk.
  • the information reproducing / recording unit ex400 includes elements ex401, ex402, ex403, ex404, ex405, ex406, and ex407 described below.
  • the optical head ex401 irradiates a laser spot on the recording surface of the recording medium ex215 that is an optical disk to write information, and detects information reflected from the recording surface of the recording medium ex215 to read the information.
  • the modulation recording unit ex402 electrically drives a semiconductor laser built in the optical head ex401 and modulates the laser beam according to the recording data.
  • the reproduction demodulator ex403 amplifies the reproduction signal obtained by electrically detecting the reflected light from the recording surface by the photodetector built in the optical head ex401, separates and demodulates the signal component recorded on the recording medium ex215, and is necessary Information is played back.
  • the buffer ex404 temporarily holds information to be recorded on the recording medium ex215 and information reproduced from the recording medium ex215.
  • the disk motor ex405 rotates the recording medium ex215.
  • the servo control unit ex406 moves the optical head ex401 to a predetermined information track while controlling the rotational drive of the disk motor ex405, and performs a laser spot tracking process.
  • the system control unit ex407 controls the entire information reproduction / recording unit ex400.
  • the system control unit ex407 uses various types of information held in the buffer ex404, and generates and adds new information as necessary.
  • the modulation recording unit ex402, the reproduction demodulation unit This is realized by recording / reproducing information through the optical head ex401 while operating the ex403 and the servo control unit ex406 in a coordinated manner.
  • the system control unit ex407 includes, for example, a microprocessor, and executes these processes by executing a read / write program.
  • the optical head ex401 has been described as irradiating a laser spot.
  • a configuration in which higher-density recording is performed using near-field light may be used.
  • FIG. 27 shows a schematic diagram of a recording medium ex215 that is an optical disk.
  • Guide grooves grooves
  • address information indicating the absolute position on the disc is recorded in advance on the information track ex230 by changing the shape of the groove.
  • This address information includes information for specifying the position of the recording block ex231 that is a unit for recording data, and the recording block is specified by reproducing the information track ex230 and reading the address information in a recording or reproducing apparatus.
  • the recording medium ex215 includes a data recording area ex233, an inner peripheral area ex232, and an outer peripheral area ex234.
  • the area used for recording user data is the data recording area ex233, and the inner circumference area ex232 and the outer circumference area ex234 arranged on the inner or outer circumference of the data recording area ex233 are used for specific purposes other than user data recording. Used.
  • the information reproducing / recording unit ex400 reads / writes encoded audio data, video data, or multiplexed data obtained by multiplexing these data with respect to the data recording area ex233 of the recording medium ex215.
  • an optical disk such as a single-layer DVD or BD has been described as an example.
  • the present invention is not limited to these, and an optical disk having a multilayer structure and capable of recording other than the surface may be used.
  • an optical disc with a multi-dimensional recording / reproducing structure such as recording information using light of different wavelengths in the same place on the disc, or recording different layers of information from various angles. It may be.
  • the car ex210 having the antenna ex205 can receive data from the satellite ex202 and the like, and the moving image can be reproduced on a display device such as the car navigation ex211 that the car ex210 has.
  • the configuration of the car navigation ex211 may be, for example, a configuration in which a GPS receiving unit is added in the configuration illustrated in FIG. 25, and the same may be considered for the computer ex111, the mobile phone ex114, and the like.
  • FIG. 28A is a diagram showing the mobile phone ex114 using the moving picture decoding method and the moving picture encoding method described in the above embodiment.
  • the mobile phone ex114 includes an antenna ex350 for transmitting and receiving radio waves to and from the base station ex110, a camera unit ex365 capable of capturing video and still images, a video captured by the camera unit ex365, a video received by the antenna ex350, and the like Is provided with a display unit ex358 such as a liquid crystal display for displaying the decrypted data.
  • the mobile phone ex114 further includes a main body unit having an operation key unit ex366, an audio output unit ex357 such as a speaker for outputting audio, an audio input unit ex356 such as a microphone for inputting audio, a captured video,
  • an audio input unit ex356 such as a microphone for inputting audio
  • a captured video In the memory unit ex367 for storing encoded data or decoded data such as still images, recorded audio, received video, still images, mails, or the like, or an interface unit with a recording medium for storing data
  • a slot ex364 is provided.
  • the mobile phone ex114 has a power supply circuit part ex361, an operation input control part ex362, and a video signal processing part ex355 with respect to a main control part ex360 that comprehensively controls each part of the main body including the display part ex358 and the operation key part ex366.
  • a camera interface unit ex363, an LCD (Liquid Crystal Display) control unit ex359, a modulation / demodulation unit ex352, a multiplexing / demultiplexing unit ex353, an audio signal processing unit ex354, a slot unit ex364, and a memory unit ex367 are connected to each other via a bus ex370. ing.
  • the power supply circuit unit ex361 starts up the mobile phone ex114 in an operable state by supplying power from the battery pack to each unit.
  • the cellular phone ex114 converts the audio signal collected by the audio input unit ex356 in the voice call mode into a digital audio signal by the audio signal processing unit ex354 based on the control of the main control unit ex360 having a CPU, a ROM, a RAM, and the like. Then, this is subjected to spectrum spread processing by the modulation / demodulation unit ex352, digital-analog conversion processing and frequency conversion processing are performed by the transmission / reception unit ex351, and then transmitted via the antenna ex350.
  • the mobile phone ex114 also amplifies the received data received via the antenna ex350 in the voice call mode, performs frequency conversion processing and analog-digital conversion processing, performs spectrum despreading processing by the modulation / demodulation unit ex352, and performs voice signal processing unit After being converted into an analog audio signal by ex354, this is output from the audio output unit ex357.
  • the text data of the e-mail input by operating the operation key unit ex366 of the main unit is sent to the main control unit ex360 via the operation input control unit ex362.
  • the main control unit ex360 performs spread spectrum processing on the text data in the modulation / demodulation unit ex352, performs digital analog conversion processing and frequency conversion processing in the transmission / reception unit ex351, and then transmits the text data to the base station ex110 via the antenna ex350.
  • almost the reverse process is performed on the received data and output to the display unit ex358.
  • the video signal processing unit ex355 compresses the video signal supplied from the camera unit ex365 by the moving image encoding method described in the above embodiments.
  • the encoded video data is sent to the multiplexing / separating 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 images a video, a still image, etc., and sends the encoded audio data to the multiplexing / separating unit ex353. To do.
  • the multiplexing / demultiplexing unit ex353 multiplexes the encoded video data supplied from the video signal processing unit ex355 and the encoded audio data supplied from the audio signal processing unit ex354 by a predetermined method, and is obtained as a result.
  • the multiplexed data is subjected to spread spectrum processing by the modulation / demodulation circuit unit ex352, subjected to digital analog conversion processing and frequency conversion processing by the transmission / reception unit ex351, and then transmitted via the antenna ex350.
  • the multiplexing / separating unit ex353 separates the multiplexed data into a video data bit stream and an audio data bit stream, and performs video signal processing on the video data encoded via the synchronization bus ex370.
  • the encoded audio data is supplied to the audio signal processing unit ex354 while being supplied to the unit ex355.
  • the video signal processing unit ex355 decodes the video signal by decoding using the video decoding method corresponding to the video encoding method described in each of the above embodiments, and the display unit ex358 via the LCD control unit ex359. From, for example, video and still images included in a moving image file linked to a home page are displayed.
  • the audio signal processing unit ex354 decodes the audio signal, and the audio is output from the audio output unit ex357.
  • the terminal such as the mobile phone ex114 is referred to as a transmission terminal having only an encoder and a receiving terminal having only a decoder.
  • a transmission terminal having only an encoder
  • a receiving terminal having only a decoder.
  • multiplexed data in which music data is multiplexed with video data is received and transmitted.
  • character data related to video is multiplexed. It may be converted data, or may be video data itself instead of multiplexed data.
  • the moving picture encoding method or the moving picture decoding method shown in each of the above embodiments can be used in any of the above-described devices / systems. The described effect can be obtained.
  • multiplexed data obtained by multiplexing audio data or the like with video data is configured to include identification information indicating which standard the video data conforms to.
  • identification information indicating which standard the video data conforms to.
  • FIG. 29 is a diagram showing a structure of multiplexed data.
  • multiplexed data is obtained by multiplexing one or more of a video stream, an audio stream, a presentation graphics stream (PG), and an interactive graphics stream.
  • the video stream indicates the main video and sub-video of the movie
  • the audio stream (IG) indicates the main audio portion of the movie and the sub-audio mixed with the main audio
  • the presentation graphics stream indicates the subtitles of the movie.
  • the main video indicates a normal video displayed on the screen
  • the sub-video is a video displayed on a small screen in the main video.
  • the interactive graphics stream indicates an interactive screen created by arranging GUI components on the screen.
  • the video stream is encoded by the moving image encoding method or apparatus shown in the above embodiments, or the moving image encoding method or apparatus conforming to the conventional standards such as MPEG-2, MPEG4-AVC, and VC-1. ing.
  • the audio stream is encoded by a method such as Dolby AC-3, Dolby Digital Plus, MLP, DTS, DTS-HD, or linear PCM.
  • Each stream included in the multiplexed data is identified by PID. For example, 0x1011 for video streams used for movie images, 0x1100 to 0x111F for audio streams, 0x1200 to 0x121F for presentation graphics, 0x1400 to 0x141F for interactive graphics streams, 0x1B00 to 0x1B1F are assigned to video streams used for sub-pictures, and 0x1A00 to 0x1A1F are assigned to audio streams used for sub-audio mixed with the main audio.
  • FIG. 30 is a diagram schematically showing how multiplexed data is multiplexed.
  • a video stream ex235 composed of a plurality of video frames and an audio stream ex238 composed of a plurality of audio frames are converted into PES packet sequences ex236 and ex239, respectively, and converted into TS packets ex237 and ex240.
  • the data of the presentation graphics stream ex241 and interactive graphics ex244 are converted into PES packet sequences ex242 and ex245, respectively, and further converted into TS packets ex243 and ex246.
  • the multiplexed data ex247 is configured by multiplexing these TS packets into one stream.
  • FIG. 31 shows in more detail how the video stream is stored in the PES packet sequence.
  • the first row in FIG. 31 shows a video frame sequence of the video stream.
  • the second level shows a PES packet sequence.
  • a plurality of Video Presentation Units in a video stream are divided into pictures, B pictures, and P pictures, and are stored in the payload of the PES packet.
  • Each PES packet has a PES header, and a PTS (Presentation Time-Stamp) that is a display time of a picture and a DTS (Decoding Time-Stamp) that is a decoding time of a picture are stored in the PES header.
  • PTS Presentation Time-Stamp
  • DTS Decoding Time-Stamp
  • FIG. 32 shows the format of TS packets that are finally written in the multiplexed data.
  • the TS packet is a 188-byte fixed-length packet composed of a 4-byte TS header having information such as a PID for identifying a stream and a 184-byte TS payload for storing data.
  • the PES packet is divided and stored in the TS payload.
  • a 4-byte TP_Extra_Header is added to a TS packet, forms a 192-byte source packet, and is written in multiplexed data.
  • TP_Extra_Header information such as ATS (Arrival_Time_Stamp) is described.
  • ATS indicates the transfer start time of the TS packet to the PID filter of the decoder.
  • Source packets are arranged in the multiplexed data as shown in the lower part of FIG. 32, and the number incremented from the head of the multiplexed data is called SPN (source packet number).
  • TS packets included in the multiplexed data include PAT (Program Association Table), PMT (Program Map Table), PCR (Program Clock Reference), and the like in addition to each stream such as video / audio / caption.
  • PAT indicates what the PID of the PMT used in the multiplexed data is, and the PID of the PAT itself is registered as 0.
  • the PMT has the PID of each stream such as video / audio / subtitles included in the multiplexed data and the attribute information of the stream corresponding to each PID, and has various descriptors related to the multiplexed data.
  • the descriptor includes copy control information for instructing permission / non-permission of copying of multiplexed data.
  • the PCR corresponds to the ATS in which the PCR packet is transferred to the decoder. Contains STC time information.
  • FIG. 33 is a diagram for explaining the data structure of the PMT in detail.
  • a PMT header describing the length of data included in the PMT is arranged at the head of the PMT.
  • a plurality of descriptors related to multiplexed data are arranged.
  • the copy control information and the like are described as descriptors.
  • a plurality of pieces of stream information regarding each stream included in the multiplexed data are arranged.
  • the stream information includes a stream descriptor in which a stream type, a stream PID, and stream attribute information (frame rate, aspect ratio, etc.) are described to identify a compression codec of the stream.
  • the multiplexed data is recorded together with the multiplexed data information file.
  • the multiplexed data information file is management information of multiplexed data, has a one-to-one correspondence with the multiplexed data, and includes multiplexed data information, stream attribute information, and an entry map.
  • the multiplexed data information is composed of a system rate, a reproduction start time, and a reproduction end time.
  • the system rate indicates a maximum transfer rate of multiplexed data to a PID filter of a system target decoder described later.
  • the ATS interval included in the multiplexed data is set to be equal to or less than the system rate.
  • the playback start time is the PTS of the first video frame of the multiplexed data
  • the playback end time is set by adding the playback interval for one frame to the PTS of the video frame at the end of the multiplexed data.
  • attribute information about each stream included in the multiplexed data is registered for each PID.
  • the attribute information has different information for each video stream, audio stream, presentation graphics stream, and interactive graphics stream.
  • the video stream attribute information includes the compression codec used to compress the video stream, the resolution of the individual picture data constituting the video stream, the aspect ratio, and the frame rate. It has information such as how much it is.
  • the audio stream attribute information includes the compression codec used to compress the audio stream, the number of channels included in the audio stream, the language supported, and the sampling frequency. With information. These pieces of information are used for initialization of the decoder before the player reproduces it.
  • the stream type included in the PMT is used.
  • video stream attribute information included in the multiplexed data information is used.
  • the video encoding shown in each of the above embodiments for the stream type or video stream attribute information included in the PMT.
  • FIG. 36 shows the steps of the moving picture decoding method according to the present embodiment.
  • step exS100 the stream type included in the PMT or the video stream attribute information included in the multiplexed data information is acquired from the multiplexed data.
  • step exS101 it is determined whether or not the stream type or the video stream attribute information indicates multiplexed data generated by the moving picture encoding method or apparatus described in the above embodiments. To do.
  • step exS102 the above embodiments are performed. Decoding is performed by the moving picture decoding method shown in the form.
  • the conventional information Decoding is performed by a moving image decoding method compliant with the standard.
  • FIG. 37 shows a configuration of the LSI ex500 that is made into one chip.
  • the LSI ex500 includes elements ex501, ex502, ex503, ex504, ex505, ex506, ex507, ex508, and ex509 described below, and each element is connected via a bus ex510.
  • the power supply circuit unit ex505 is activated to an operable state by supplying power to each unit when the power supply is on.
  • the LSI ex500 when performing the encoding process, performs the microphone ex117 and the camera ex113 by the AV I / O ex509 based on the control of the control unit ex501 including the CPU ex502, the memory controller ex503, the stream controller ex504, the drive frequency control unit ex512, and the like.
  • the AV signal is input from the above.
  • the input AV signal is temporarily stored in an external memory ex511 such as SDRAM.
  • the accumulated data is divided into a plurality of times as appropriate according to the processing amount and the processing speed and sent to the signal processing unit ex507, and the signal processing unit ex507 encodes an audio signal and / or video. Signal encoding is performed.
  • the encoding process of the video signal is the encoding process described in the above embodiments.
  • the signal processing unit ex507 further performs processing such as multiplexing the encoded audio data and the encoded video data according to circumstances, and outputs the result from the stream I / Oex 506 to the outside.
  • the output multiplexed data is transmitted to the base station ex107 or written to the recording medium ex215. It should be noted that data should be temporarily stored in the buffer ex508 so as to be synchronized when multiplexing.
  • the memory ex511 is described as an external configuration of the LSI ex500.
  • a configuration included in the LSI ex500 may be used.
  • the number of buffers ex508 is not limited to one, and a plurality of buffers may be provided.
  • the LSI ex500 may be made into one chip or a plurality of chips.
  • control unit ex510 includes the CPU ex502, the memory controller ex503, the stream controller ex504, the drive frequency control unit ex512, and the like, but the configuration of the control unit ex510 is not limited to this configuration.
  • the signal processing unit ex507 may further include a CPU.
  • the CPU ex502 may be configured to include a signal processing unit ex507 or, for example, an audio signal processing unit that is a part of the signal processing unit ex507.
  • the control unit ex501 is configured to include a signal processing unit ex507 or a CPU ex502 having a part thereof.
  • LSI LSI
  • IC system LSI
  • super LSI ultra LSI depending on the degree of integration
  • the method of circuit integration is not limited to LSI, and implementation with a dedicated circuit or a general-purpose processor is also possible.
  • An FPGA Field Programmable Gate Array
  • a reconfigurable processor that can reconfigure the connection and setting of circuit cells inside the LSI may be used.
  • FIG. 38 shows a configuration ex800 in the present embodiment.
  • the drive frequency switching unit ex803 sets the drive frequency high when the video data is generated by the moving image encoding method or apparatus described in the above embodiments.
  • the decoding processing unit ex801 that executes the moving picture decoding method described in each of the above embodiments is instructed to decode the video data.
  • the video data is video data compliant with the conventional standard, compared to the case where the video data is generated by the moving picture encoding method or apparatus shown in the above embodiments, Set the drive frequency low. Then, it instructs the decoding processing unit ex802 compliant with the conventional standard to decode the video data.
  • the drive frequency switching unit ex803 includes the CPU ex502 and the drive frequency control unit ex512 in FIG.
  • the decoding processing unit ex801 that executes the moving picture decoding method described in each of the above embodiments and the decoding processing unit ex802 that conforms to the conventional standard correspond to the signal processing unit ex507 in FIG.
  • the CPU ex502 identifies which standard the video data conforms to.
  • the drive frequency control unit ex512 sets the drive frequency.
  • the signal processing unit ex507 decodes the video data.
  • the identification of the video data for example, it is conceivable to use the identification information described in the seventh embodiment.
  • the identification information is not limited to that described in the seventh embodiment, and any information that can identify which standard the video data conforms to may be used. For example, it is possible to identify which standard the video data conforms to based on an external signal that identifies whether the video data is used for a television or a disk. In some cases, identification may be performed based on such an external signal.
  • the selection of the driving frequency in the CPU ex502 may be performed based on, for example, a lookup table in which video data standards and driving frequencies are associated with each other as shown in FIG. The look-up table is stored in the buffer ex508 or the internal memory of the LSI, and the CPU ex502 can select the drive frequency by referring to the look-up table.
  • FIG. 39 shows steps for executing the method of the present embodiment.
  • the signal processing unit ex507 acquires identification information from the multiplexed data.
  • the CPU ex502 identifies whether the video data is generated by the encoding method or apparatus described in each of the above embodiments based on the identification information.
  • the CPU ex502 sends a signal for setting the drive frequency high to the drive frequency control unit ex512. Then, the drive frequency control unit ex512 sets a high drive frequency.
  • the CPU ex502 drives the signal for setting the drive frequency low in step exS203. This is sent to the frequency control unit ex512. Then, in the drive frequency control unit ex512, the drive frequency is set to be lower than that in the case where the video data is generated by the encoding method or apparatus described in the above embodiments.
  • the power saving effect can be further enhanced by changing the voltage applied to the LSI ex500 or the device including the LSI ex500 in conjunction with the switching of the driving frequency. For example, when the drive frequency is set low, it is conceivable that the voltage applied to the LSI ex500 or the device including the LSI ex500 is set low as compared with the case where the drive frequency is set high.
  • the setting method of the driving frequency may be set to a high driving frequency when the processing amount at the time of decoding is large, and to a low driving frequency when the processing amount at the time of decoding is small. It is not limited to the method.
  • the amount of processing for decoding video data compliant with the MPEG4-AVC standard is larger than the amount of processing for decoding video data generated by the moving picture encoding method or apparatus described in the above embodiments. It is conceivable that the setting of the driving frequency is reversed to that in the case described above.
  • the method for setting the drive frequency is not limited to the configuration in which the drive frequency is lowered.
  • the voltage applied to the LSIex500 or the apparatus including the LSIex500 is set high.
  • the driving of the CPU ex502 is stopped.
  • the CPU ex502 is temporarily stopped because there is room in processing. Is also possible. Even when the identification information indicates that the video data is generated by the moving image encoding method or apparatus described in each of the above embodiments, if there is a margin for processing, the CPU ex502 is temporarily driven. It can also be stopped. In this case, it is conceivable to set the stop time shorter than in the case where the video data conforms to the conventional standards such as MPEG-2, MPEG4-AVC, and VC-1.
  • a plurality of video data that conforms to different standards may be input to the above-described devices and systems such as a television and a mobile phone.
  • the signal processing unit ex507 of the LSI ex500 needs to support a plurality of standards in order to be able to decode even when a plurality of video data complying with different standards is input.
  • the signal processing unit ex507 corresponding to each standard is used individually, there is a problem that the circuit scale of the LSI ex500 increases and the cost increases.
  • a decoding processing unit for executing the moving picture decoding method shown in each of the above embodiments and a decoding conforming to a standard such as MPEG-2, MPEG4-AVC, or VC-1
  • the processing unit is partly shared.
  • An example of this configuration is shown as ex900 in FIG. 41A.
  • the moving picture decoding method shown in each of the above embodiments and the moving picture decoding method compliant with the MPEG4-AVC standard are processed in processes such as entropy coding, inverse quantization, deblocking filter, and motion compensation. Some contents are common.
  • the decoding processing unit ex902 corresponding to the MPEG4-AVC standard is shared, and for the other processing content unique to the present invention not corresponding to the MPEG4-AVC standard, the dedicated decoding processing unit ex901 is used.
  • Configuration is conceivable.
  • a dedicated decoding processing unit ex901 is used for prediction, and any of other dequantization, entropy coding, deblocking filter, Alternatively, it is conceivable to share the decoding processing unit for all the processes.
  • the decoding processing unit for executing the moving picture decoding method described in each of the above embodiments is shared, and the processing content specific to the MPEG4-AVC standard As for, a configuration using a dedicated decoding processing unit may be used.
  • ex1000 in FIG. 41B shows another example in which processing is partially shared.
  • a dedicated decoding processing unit ex1001 corresponding to processing content unique to the present invention
  • a dedicated decoding processing unit ex1002 corresponding to processing content specific to other conventional standards
  • a moving picture decoding method of the present invention A common decoding processing unit ex1003 corresponding to processing contents common to other conventional video decoding methods is used.
  • the dedicated decoding processing units ex1001 and ex1002 are not necessarily specialized in the processing content specific to the present invention or other conventional standards, and may be capable of executing other general-purpose processing.
  • the configuration of the present embodiment can be implemented by LSI ex500.
  • the circuit scale of the LSI can be reduced and the cost can be reduced. It is possible to reduce.
  • the image encoding method and the image decoding method according to the present invention can be used for, for example, a television, a digital video recorder, a car navigation, a mobile phone, a digital camera, a digital video camera, or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

 予測画像を適切に生成することができる画像符号化方法を提供する。画像符号化方法は、複数のエッジを検出するエッジ検出ステップ(S301)と、複数のエッジのそれぞれについて、エッジの位置を通りエッジの方向に沿う直線と符号化対象ブロックとの共通部分である交差線分の長さを取得することにより、複数のエッジに対応する複数の交差線分の長さを取得する線分長取得ステップ(S302)と、複数のエッジの方向から、複数のエッジに対応する複数の交差線分の長さに依存させて、予測方向を選択する予測方向選択ステップ(S303)と、予測方向を用いて、符号化対象ブロックに含まれる画素値を予測することにより、予測画像ブロックを生成する予測ステップ(S304)と、予測画像ブロックと符号化対象ブロックとの差分である差分画像ブロックを符号化する符号化ステップ(S305)とを含む。

Description

画像符号化方法、画像復号方法、画像符号化装置および画像復号装置
 本発明は、画像をブロック毎に符号化する画像符号化方法、および、画像をブロック毎に復号する画像復号方法に関する。
 従来、動画像を符号化する画像符号化方法の規格として、H.264/MPEG-4 AVCがある。この規格に基づく従来の画像符号化装置は、動画像に含まれるピクチャをブロック毎に符号化する。そして、画像符号化装置は、時間方向の冗長性および空間方向の冗長性を取り除くことにより、圧縮率を向上させる。
 時間方向の冗長性を取り除く方法として、面間予測がある。画像符号化装置は、面間予測を実行する場合、動画像の動きに基づいて、既に符号化されたピクチャから予測画像ブロックを生成する。そして、画像符号化装置は、符号化対象ブロックと予測画像ブロックとの差分を符号化する。これにより、時間方向の冗長性が取り除かれる。
 一方、空間方向の冗長性を取り除く方法として、面内予測がある。画像符号化装置は、面内予測を実行する場合、符号化対象ブロックを含むピクチャから、予測画像ブロックを生成する。そして、画像符号化装置は、符号化対象ブロックと予測画像ブロックとの差分を符号化する。これにより、空間方向の冗長性が取り除かれる。
 また、画像符号化装置は、面内予測を実行する場合、予測方向に基づいて、予測画像ブロックを生成する。例えば、予測方向が右方向である場合、画像符号化装置は、符号化対象ブロックの左側に隣接する画素位置の画素値を予測画像ブロックの画素値として用いる。また、例えば、予測方向が下方向である場合、画像符号化装置は、符号化対象ブロックの上側に隣接する画素位置の画素値を予測画像ブロックの画素値として用いる。
 上述の手順により、画像符号化装置は、様々な予測方向に基づいて、予測画像ブロックを生成できる。すなわち、画像符号化装置は、画像の特性に応じて、予測画像ブロックを生成できる。したがって、画像符号化装置は、圧縮率を向上させることができる。
 また、特許文献1に記載の画像符号化装置は、符号化対象ブロックの周辺におけるエッジの方向を予測方向として用いる。具体的には、特許文献1の画像符号化装置は、エッジベクトルを用いて、予測画像ブロックを生成する。
 ここで、エッジベクトルは、複数の画素値による勾配の方向に直交する方向を有するベクトルである。また、符号化対象ブロックの周辺におけるエッジは、符号化対象ブロックの画素値にも影響を及ぼすと推測される。そのため、エッジの方向は、面内予測における予測方向として用いることに適している。よって、特許文献1の画像符号化装置は、適切な予測方向に基づいて、画像を符号化することができる。
国際公開第2009/090884号
 しかしながら、特許文献1の画像符号化装置では、適切な予測方向が選択されない場合がある。具体的には、特許文献1の画像符号化装置は、複数のエッジベクトルが検出された場合、エッジベクトルの大きさに基づいて、予測方向に用いられるエッジベクトルを選択する。すなわち、画像符号化装置は、強いエッジに基づいて、予測方向を決定する。
 しかし、強いエッジが、符号化対象ブロックに大きな影響を及ぼすとは限らない。弱いエッジが、符号化対象ブロックに大きな影響を及ぼす場合もある。そのため、特許文献1の画像符号化装置では、予測画像が適切に生成されない場合がある。
 そこで、本発明は、予測画像を適切に生成することができる画像符号化方法および画像復号方法を提供することを目的とする。
 上記課題を解決するため、本発明に係る画像符号化方法は、画像をブロック毎に符号化する画像符号化方法であって、符号化対象ブロックに隣接する1以上の隣接ブロックから、複数のエッジを検出するエッジ検出ステップと、前記複数のエッジのそれぞれについて、エッジの位置を通り前記エッジの方向に沿う直線と前記符号化対象ブロックとの共通部分である交差線分の長さを取得することにより、前記複数のエッジに対応する複数の交差線分の長さを取得する線分長取得ステップと、前記複数のエッジの方向から、前記複数のエッジに対応する前記複数の交差線分の長さに依存させて、予測方向を選択する予測方向選択ステップと、前記予測方向を用いて、前記符号化対象ブロックに含まれる画素値を予測することにより、予測画像ブロックを生成する予測ステップと、前記予測画像ブロックと前記符号化対象ブロックとの差分である差分画像ブロックを符号化する符号化ステップとを含む。
 これにより、交差線分の長さに応じて、予測方向が選択される。すなわち、符号化対象ブロックへのエッジの影響度合いに応じて、予測方向が選択される。したがって、画像の特性に応じた適切な予測画像が生成される。
 また、前記予測方向選択ステップでは、前記複数のエッジに対応する前記複数の交差線分の長さと、前記複数のエッジの強さとに依存させて、前記予測方向を選択してもよい。
 これにより、交差線分の長さと、エッジの強さとに基づいて、予測方向が選択される。すなわち、エッジの影響に基づいて、より適切な予測方向が選択される。
 また、前記エッジ検出ステップでは、第1検出エッジと、前記第1検出エッジとは異なる第2検出エッジとを含む前記複数のエッジを検出し、前記予測方向選択ステップでは、前記第1検出エッジに対応する交差線分の長さと前記第1検出エッジの強さとの積が、前記第2検出エッジに対応する交差線分の長さと前記第2検出エッジの強さとの積よりも大きい場合、前記第1検出エッジの方向を前記予測方向として選択してもよい。
 これにより、特定のエッジに対応する交差線分の長さとエッジの強さとの積が、他のエッジに対応する積よりも大きい場合、当該特定のエッジの方向が予測方向として用いられる。したがって、符号化対象ブロックに及ぼす影響が大きいエッジの方向が、予測方向として適切に選択される。
 また、前記予測方向選択ステップでは、前記複数のエッジの方向から、前記複数のエッジに対応する前記複数の交差線分の長さに依存させて、複数の予測方向を選択し、前記予測ステップでは、前記複数の予測方向を用いて、前記符号化対象ブロックに含まれる画素値を予測してもよい。
 これにより、交差線分の長さ、すなわち、符号化対象ブロックへの影響度合いに基づいて、複数の予測方向が選択される。これらの予測方向が用いられることで、適切な予測画像が生成される。
 また、前記予測ステップでは、前記複数の予測方向のうち第1予測方向を用いて、前記符号化対象ブロックを前記複数の交差線分で分割することにより得られる複数の分割領域のうち第1分割領域に含まれる画素値を予測し、前記複数の予測方向のうち、前記第1予測方向とは異なる第2予測方向を用いて、前記複数の分割領域のうち、前記第1分割領域とは異なる第2分割領域に含まれる画素値を予測してもよい。
 これにより、符号化対象ブロックを分割することにより得られた複数の分割領域のそれぞれで、適切な予測方向が用いられる。したがって、適切な予測画像が生成される。
 また、前記予測ステップでは、前記第1予測方向を用いて、前記複数の分割領域のうち、前記第1分割領域および前記第2分割領域とは異なる第3分割領域に含まれる画素値を予測することにより、第1予測値を取得し、前記第2予測方向を用いて、前記第3分割領域に含まれる前記画素値を予測することにより、第2予測値を取得し、前記第1予測値と前記第2予測値との平均を用いて、前記第3分割領域に含まれる前記画素値を予測してもよい。
 これにより、複数の予測結果の平均を用いて、予測画像が生成される。したがって、予測精度が安定する。
 また、前記予測ステップでは、前記複数の分割領域のうち、前記第1分割領域および前記第2分割領域とは異なる第3分割領域に含まれる画素位置の画素値を、前記複数の交差線分に沿う複数の直線の交点と、前記画素位置とを通る直線の方向を用いて、予測してもよい。
 これにより、交点を通る予測方向を用いて、予測画像が生成される。すなわち、複数のエッジの方向が有効に活用され、適切な予測画像が生成される。
 また、前記エッジ検出ステップでは、第1エッジと、前記第1エッジとは異なる第2エッジとを含む前記複数のエッジを検出し、前記予測方向選択ステップでは、前記複数のエッジの方向から、前記第1エッジの方向を前記第1予測方向として含み、前記第2エッジの方向を前記第2予測方向として含む前記複数の予測方向を選択し、前記予測ステップでは、前記第2エッジを通り前記第2エッジの方向に沿う直線で前記画像を分割することにより得られる2つの画像領域のうち前記第1エッジを含む画像領域に属し、前記第1エッジを通り前記第1エッジの方向に沿う直線で前記画像を分割することにより得られる2つの画像領域のうち前記第2エッジを含まない画像領域に属する前記第1分割領域に含まれる画素値を、前記第1予測方向を用いて、予測し、前記第1エッジを通り前記第1エッジの方向に沿う直線で前記画像を分割することにより得られる2つの画像領域のうち前記第2エッジを含む画像領域に属し、前記第2エッジを通り前記第2エッジの方向に沿う直線で前記画像を分割することにより得られる2つの画像領域のうち前記第1エッジを含まない画像領域に属する前記第2分割領域に含まれる画素値を、前記第2予測方向を用いて、予測してもよい。
 これにより、特定のエッジのみから影響を受ける領域では、当該特定のエッジの方向に基づいて、予測画像が生成される。したがって、より適切な予測画像が生成される。
 また、前記予測ステップでは、前記複数の予測方向のそれぞれを用いて、前記符号化対象ブロックに含まれる画素値を予測することにより、複数の予測値を取得し、前記複数の予測値の平均を用いて、前記符号化対象ブロックに含まれる前記画素値を予測してもよい。
 これにより、複数の予測方向に基づいて得られた複数の予測結果の平均を用いて、予測画像が生成される。したがって、予測精度が安定する。
 また、本発明に係る画像復号方法は、画像をブロック毎に復号する画像復号方法であって、復号対象ブロックに隣接する1以上の隣接ブロックから、複数のエッジを検出するエッジ検出ステップと、前記複数のエッジのそれぞれについて、エッジの位置を通り前記エッジの方向に沿う直線と前記復号対象ブロックとの共通部分である交差線分の長さを取得することにより、前記複数のエッジに対応する複数の交差線分の長さを取得する線分長取得ステップと、前記複数のエッジの方向から、前記複数のエッジに対応する前記複数の交差線分の長さに依存させて、予測方向を選択する予測方向選択ステップと、前記予測方向を用いて、前記復号対象ブロックに含まれる画素値を予測することにより、予測画像ブロックを生成する予測ステップと、前記予測画像ブロックと前記復号対象ブロックとの差分である差分画像ブロックを復号し、前記差分画像ブロックと前記予測画像ブロックとを加算することにより、前記復号対象ブロックを復元する復号ステップとを含む画像復号方法でもよい。
 これにより、交差線分の長さに応じて、予測方向が選択される。すなわち、復号対象ブロックへのエッジの影響度合いに応じて、予測方向が選択される。したがって、画像の特性に応じた適切な予測画像が生成される。
 また、前記予測方向選択ステップでは、前記複数のエッジに対応する前記複数の交差線分の長さと、前記複数のエッジの強さとに依存させて、前記予測方向を選択してもよい。
 これにより、交差線分の長さと、エッジの強さとに基づいて、予測方向が選択される。すなわち、エッジの影響に基づいて、より適切な予測方向が選択される。
 また、前記エッジ検出ステップでは、第1検出エッジと、前記第1検出エッジとは異なる第2検出エッジとを含む前記複数のエッジを検出し、前記予測方向選択ステップでは、前記第1検出エッジに対応する交差線分の長さと前記第1検出エッジの強さとの積が、前記第2検出エッジに対応する交差線分の長さと前記第2検出エッジの強さとの積よりも大きい場合、前記第1検出エッジの方向を前記予測方向として選択してもよい。
 これにより、特定のエッジに対応する交差線分の長さとエッジの強さとの積が、他のエッジに対応する積よりも大きい場合、当該特定のエッジの方向が予測方向として用いられる。したがって、復号対象ブロックに及ぼす影響が大きいエッジの方向が、予測方向として適切に選択される。
 また、前記予測方向選択ステップでは、前記複数のエッジの方向から、前記複数のエッジに対応する前記複数の交差線分の長さに依存させて、複数の予測方向を選択し、前記予測ステップでは、前記複数の予測方向を用いて、前記復号対象ブロックに含まれる画素値を予測してもよい。
 これにより、交差線分の長さ、すなわち、復号対象ブロックへの影響度合いに基づいて、複数の予測方向が選択される。これらの予測方向が用いられることで、適切な予測画像が生成される。
 また、前記予測ステップでは、前記複数の予測方向のうち第1予測方向を用いて、前記復号対象ブロックを前記複数の交差線分で分割することにより得られる複数の分割領域のうち第1分割領域に含まれる画素値を予測し、前記複数の予測方向のうち、前記第1予測方向とは異なる第2予測方向を用いて、前記複数の分割領域のうち、前記第1分割領域とは異なる第2分割領域に含まれる画素値を予測してもよい。
 これにより、復号対象ブロックを分割することにより得られた複数の分割領域のそれぞれで、適切な予測方向が用いられる。したがって、適切な予測画像が生成される。
 また、前記予測ステップでは、前記第1予測方向を用いて、前記複数の分割領域のうち、前記第1分割領域および前記第2分割領域とは異なる第3分割領域に含まれる画素値を予測することにより、第1予測値を取得し、前記第2予測方向を用いて、前記第3分割領域に含まれる前記画素値を予測することにより、第2予測値を取得し、前記第1予測値と前記第2予測値との平均を用いて、前記第3分割領域に含まれる前記画素値を予測してもよい。
 これにより、複数の予測結果の平均を用いて、予測画像が生成される。したがって、予測精度が安定する。
 また、前記予測ステップでは、前記複数の分割領域のうち、前記第1分割領域および前記第2分割領域とは異なる第3分割領域に含まれる画素位置の画素値を、前記複数の交差線分に沿う複数の直線の交点と、前記画素位置とを通る直線の方向を用いて、予測してもよい。
 これにより、交点を通る予測方向を用いて、予測画像が生成される。すなわち、複数のエッジの方向が有効に活用され、適切な予測画像が生成される。
 また、前記エッジ検出ステップでは、第1エッジと、前記第1エッジとは異なる第2エッジとを含む前記複数のエッジを検出し、前記予測方向選択ステップでは、前記複数のエッジの方向から、前記第1エッジの方向を前記第1予測方向として含み、前記第2エッジの方向を前記第2予測方向として含む前記複数の予測方向を選択し、前記予測ステップでは、前記第2エッジを通り前記第2エッジの方向に沿う直線で前記画像を分割することにより得られる2つの画像領域のうち前記第1エッジを含む画像領域に属し、前記第1エッジを通り前記第1エッジの方向に沿う直線で前記画像を分割することにより得られる2つの画像領域のうち前記第2エッジを含まない画像領域に属する前記第1分割領域に含まれる画素値を、前記第1予測方向を用いて、予測し、前記第1エッジを通り前記第1エッジの方向に沿う直線で前記画像を分割することにより得られる2つの画像領域のうち前記第2エッジを含む画像領域に属し、前記第2エッジを通り前記第2エッジの方向に沿う直線で前記画像を分割することにより得られる2つの画像領域のうち前記第1エッジを含まない画像領域に属する前記第2分割領域に含まれる画素値を、前記第2予測方向を用いて、予測してもよい。
 これにより、特定のエッジのみから影響を受ける領域では、当該特定のエッジの方向に基づいて、予測画像が生成される。したがって、より適切な予測画像が生成される。
 また、前記予測ステップでは、前記複数の予測方向のそれぞれを用いて、前記復号対象ブロックに含まれる画素値を予測することにより、複数の予測値を取得し、前記複数の予測値の平均を用いて、前記復号対象ブロックに含まれる前記画素値を予測してもよい。
 これにより、複数の予測方向に基づいて得られた複数の予測結果の平均を用いて、予測画像が生成される。したがって、予測精度が安定する。
 また、本発明に係る画像符号化装置は、画像をブロック毎に符号化する画像符号化装置であって、符号化対象ブロックに隣接する1以上の隣接ブロックから、複数のエッジを検出するエッジ検出部と、前記複数のエッジのそれぞれについて、エッジの位置を通り前記エッジの方向に沿う直線と前記符号化対象ブロックとの共通部分である交差線分の長さを取得することにより、前記複数のエッジに対応する複数の交差線分の長さを取得する線分長取得部と、前記複数のエッジの方向から、前記複数のエッジに対応する前記複数の交差線分の長さに依存させて、予測方向を選択する予測方向選択部と、前記予測方向を用いて、前記符号化対象ブロックに含まれる画素値を予測することにより、予測画像ブロックを生成する予測部と、前記予測画像ブロックと前記符号化対象ブロックとの差分である差分画像ブロックを符号化する符号化部とを備える画像符号化装置でもよい。
 これにより、本発明に係る画像符号化方法が、画像符号化装置として実現される。
 また、本発明に係る画像復号装置は、画像をブロック毎に復号する画像復号装置であって、復号対象ブロックに隣接する1以上の隣接ブロックから、複数のエッジを検出するエッジ検出部と、前記複数のエッジのそれぞれについて、エッジの位置を通り前記エッジの方向に沿う直線と前記復号対象ブロックとの共通部分である交差線分の長さを取得することにより、前記複数のエッジに対応する複数の交差線分の長さを取得する線分長取得部と、前記複数のエッジの方向から、前記複数のエッジに対応する前記複数の交差線分の長さに依存させて、予測方向を選択する予測方向選択部と、前記予測方向を用いて、前記復号対象ブロックに含まれる画素値を予測することにより、予測画像ブロックを生成する予測部と、前記予測画像ブロックと前記復号対象ブロックとの差分である差分画像ブロックを復号し、前記差分画像ブロックと前記予測画像ブロックとを加算することにより、前記復号対象ブロックを復元する復号部とを備える画像復号装置でもよい。
 これにより、本発明に係る画像復号方法が、画像復号装置として実現される。
 本発明により、処理対象ブロックへのエッジの影響度合いに応じて、予測方向が選択される。したがって、画像の特性に応じた適切な予測画像が生成される。
図1は、実施の形態1に係る画像符号化装置の構成図である。 図2は、ピクチャの一例を示す図である。 図3は、エッジベクトルの一例を示す図である。 図4は、面内予測の一例を示す概念図である。 図5は、予測方向についての複数の例を示す図である。 図6は、実施の形態1に係る画像符号化装置の動作を示すフローチャートである。 図7は、実施の形態1に係る交差線分を示す図である。 図8は、実施の形態1に係るエッジと処理対象ブロックとの距離を示す図である。 図9は、実施の形態1に係るエッジベクトルの選択を示す図である。 図10は、実施の形態2に係る画像復号装置の構成図である。 図11は、実施の形態2に係る画像復号装置の動作を示すフローチャートである。 図12は、実施の形態3に係る処理対象ブロックの分割の第1例を示す図である。 図13は、実施の形態3に係る処理対象ブロックの分割の第2例を示す図である。 図14は、実施の形態3に係る外部領域の面内予測の例を示す図である。 図15は、実施の形態3に係る内部領域の面内予測の例を示す図である。 図16は、実施の形態3に係る内部領域の面内予測の変形例を示す図である。 図17は、実施の形態3に係る面内予測の動作を示すフローチャートである。 図18は、実施の形態3に係る処理対象ブロックの分割の第3例を示す図である。 図19は、実施の形態5に係る画像符号化装置の構成図である。 図20は、実施の形態5に係る画像符号化装置の動作を示すフローチャートである。 図21は、実施の形態5に係る画像復号装置の構成図である。 図22は、実施の形態5に係る画像復号装置の動作を示すフローチャートである。 図23は、コンテンツ配信サービスを実現するコンテンツ供給システムの全体構成図である。 図24は、デジタル放送用システムの全体構成図である。 図25は、テレビの構成例を示すブロック図である。 図26は、光ディスクである記録メディアに情報の読み書きを行う情報再生/記録部の構成例を示すブロック図である。 図27は、光ディスクである記録メディアの構造例を示す図である。 図28Aは、携帯電話の一例を示す図である。 図28Bは、携帯電話の構成例を示すブロック図である。 図29は、多重化データの構成を示す図である。 図30は、各ストリームが多重化データにおいてどのように多重化されているかを模式的に示す図である。 図31は、PESパケット列に、ビデオストリームがどのように格納されるかを更に詳しく示した図である。 図32は、多重化データにおけるTSパケットとソースパケットの構造を示す図である。 図33は、PMTのデータ構成を示す図である。 図34は、多重化データ情報の内部構成を示す図である。 図35は、ストリーム属性情報の内部構成を示す図である。 図36は、映像データを識別するステップを示す図である。 図37は、各実施の形態の動画像符号化方法および動画像復号化方法を実現する集積回路の構成例を示すブロック図である。 図38は、駆動周波数を切り替える構成を示す図である。 図39は、映像データを識別し、駆動周波数を切り替えるステップを示す図である。 図40は、映像データの規格と駆動周波数を対応づけたルックアップテーブルの一例を示す図である。 図41Aは、信号処理部のモジュールを共有化する構成の一例を示す図である。 図41Bは、信号処理部のモジュールを共有化する構成の他の一例を示す図である。
 (実施の形態1)
 図1は、実施の形態1に係る画像符号化装置の構成図である。図1に示された画像符号化装置100は、入力された映像信号Vinを符号化して、符号化ストリーム(符号化信号)Strを出力する。また、画像符号化装置100は、減算部144、量子化変換部142、符号化部143、逆量子化逆変換部123、加算部129、フレームメモリ124、候補ベクトル導出部125、エッジベクトル導出部126および予測部127を備える。画像符号化装置100は、映像信号Vinを複数のブロックに分割して符号化する。
 減算部144は、映像信号Vinと予測信号Predとの差分信号である予測誤差信号PredErrを生成する。量子化変換部142は、予測誤差信号PredErrに対して、周波数変換、量子化およびスキャンを実行することで、符号化係数Coeffを生成する。符号化部143は、符号化係数Coeffをエントロピー符号化により圧縮し、符号化ストリームStrを出力する。
 逆量子化逆変換部123は、符号化係数Coeffに対して、逆スキャン、逆量子化および逆変換を実行することで、量子化予測誤差信号QPredErrを生成する。加算部129は、量子化予測誤差信号QPredErrと予測信号Predとを加算することにより、復号信号Reconを生成し、フレームメモリ124に格納する。
 候補ベクトル導出部125は、フレームメモリ124から復号対象ブロックの近傍の復号済みのブロックである近傍ブロックBlkNghの画像信号を取得する。そして、候補ベクトル導出部125は、取得された画像信号に対してエッジ検出フィルタ処理などを実行し、複数の候補ベクトルVecを導出する。
 エッジベクトル導出部126は、複数の候補ベクトルVecから、ベクトルの大きさ(ノルムとも呼ばれる)が最大である候補ベクトルをエッジベクトルEdgeVecとして選択する(A)。あるいは、エッジベクトル導出部126は、複数の候補ベクトルVecから、複数の候補ベクトルVecの平均などの統計的な平均化処理によってエッジベクトルEdgeVecを算出する(B)。
 エッジベクトル導出部126は、上述の(A)または(B)の処理において、処理対象ブロックを指し示さない候補ベクトルを除外してもよい。また、エッジベクトル導出部126は、候補ベクトルのノルムだけではなく、候補ベクトルに対応する交差線分が長くなるような候補ベクトルをエッジベクトルEdgeVecとして選んでもよい。ここで、交差線分は、候補ベクトルを延長した直線と処理対象ブロックとの共通部分である。
 予測部127は、エッジベクトルEdgeVecの方向に基づいて、参照ブロックBlkRefを参照して、予測信号Predを生成する。
 なお、エッジベクトル導出部126は、処理対象ブロックをさらに細かく分割するための分割情報PrtnCtrlを予測部127に出力してもよい。予測部127は、分割情報PrtnCtrlに基づいて、処理対象ブロックをさらに細かく分割してもよい。そして、予測部127は、分割により得られた領域毎に異なる方向を用いて、予測信号Predを生成してもよい。
 図2は、ピクチャの一例を示す図である。動画像は、複数のピクチャで構成される。図2に示されたピクチャは、動画像に含まれるピクチャの一例である。そして、図1に示された画像符号化装置100は、図2に示されたピクチャをブロック毎に符号化する。図2に示されたピクチャでは、中央部分と周辺部分とで画素値に大きな違いがある。
 図3は、図2に示されたピクチャにおけるエッジベクトルまたは候補ベクトルの一例を示す図である。図2に示されたピクチャから、エッジ検出フィルタ等によって、エッジが検出される。エッジは、ピクチャにおいて、画素値が変化している空間的な位置を示す。また、エッジは、方向および強さを有する。画素値の変化が大きい程、エッジの強さは大きくなる。画素値の変化は、勾配とも呼ばれる。エッジの方向は、画素値の変化の方向から、左または右に、90度回転した方向である。
 エッジベクトル、および、エッジベクトルの候補である候補ベクトルは、エッジの方向に沿った方向を有し、エッジの強さを大きさとして有するベクトルである。また、エッジベクトルおよび候補ベクトルは、勾配ベクトルを左または右に90度回転することにより得られる。勾配ベクトルは、画素値の変化の方向に沿った方向を有し、画素値の変化量を大きさとして有する。
 エッジベクトルおよび候補ベクトルの方向は、予め定められた範囲に限定されてもよい。例えば、エッジベクトルおよび候補ベクトルの方向は、予測方向として利用可能な範囲に限定されてもよい。具体的には、エッジベクトルおよび候補ベクトルの方向は、右方向が0度である場合、-135度以上、45度未満の範囲に限定してもよい。あるいは、エッジベクトルおよび候補ベクトルの方向は、予め定められた予測方向に近似する方向でもよい。
 図4は、面内予測の一例を示す概念図である。処理対象ブロック(符号化対象ブロックまたは復号対象ブロック)における画素の値は、処理対象ブロックに隣接する1以上の処理済み(符号化済み、または、復号済み)の隣接ブロックから、予測される。なお、処理対象ブロックは、カレントブロックとも呼ばれる。また、隣接ブロックには、処理対象ブロックに対して斜め方向に隣接するブロックも含まれる。
 予測の際、隣接ブロックの画素の値が、予測方向に基づいて、処理対象ブロックの画素にコピーされる。これにより、予測方向に基づいて、処理対象ブロックに対応する予測画像ブロックが生成される。図4に示された予測方向は一例であって、面内予測に用いられる予測方向は、図4に示された例に限られない。
 図5は、予測方向についての複数の例を示す図である。例えば、図5に示されたように、面内予測のモードに応じて、8つの方向が予測方向として用いられる。しかし、図5に示された複数の予測方向は、例であって、図5に示された方向とは異なる方向が、予測方向に用いられてもよい。
 図6は、画像符号化装置100の動作を示すフローチャートである。画像符号化装置100は、入力された画像データを、複数のブロックに分割し、ブロック毎に符号化する。画像符号化装置100は、符号化の際、エッジ検出を実行し、エッジ検出の結果に基づいて面内予測を実行する。図6には、この符号化の際の動作が示されている。
 画像符号化装置100は、処理対象ブロックの周辺のブロックである周辺ブロックからエッジベクトルを検出する(S102)。予測部127は、エッジベクトルの方向で予測画像ブロックを生成する(S103)。
 減算部144は、処理対象ブロックから予測画像ブロックを減じた差分画像ブロックを生成する(S104)。量子化変換部142は、差分画像ブロックを周波数変換し、量子化する(S105)。符号化部143は、量子化された差分画像ブロックをエントロピー符号化により符号化する(S106)。逆量子化逆変換部123は、量子化された差分画像ブロックを逆量子化し、逆周波数変換する(S107)。加算部129は、予測画像ブロックと差分画像ブロックとを加算し、復号画像ブロックを生成する(S108)。画像符号化装置100は、ピクチャ内の全画素を符号化するまで、ブロック毎に上述の処理を繰り返す(S101)。
 次に、エッジベクトル検出(S102)の詳細を説明する。候補ベクトル導出部125は、処理対象ブロックに隣接する処理済みの周辺ブロックの中で、1以上の候補ベクトルを導出する(S109)。
 具体的には、候補ベクトル導出部125は、3x3画素や4x4画素のソーベル(Sobel)フィルタまたはPrewittフィルタなどのエッジ検出タイプのフィルタを用いて、候補ベクトルを算出する。
 エッジベクトル導出部126は、導出された候補ベクトルが処理対象ブロックを指すか否かを判定する(S111)。すなわち、エッジベクトル導出部126は、候補ベクトルの延長線上に処理対象ブロックが存在するか否かを判定する。ここでは、この判定をブロック交差判定と呼ぶ。次に、候補ベクトルの延長線上に処理対象ブロックが存在する場合、その延長線と処理対象ブロックとの共通部分である交差線分(切断線分)の長さを計測する(S112)。
 エッジベクトル導出部126は、周辺ブロックから導出された1以上の候補ベクトルのそれぞれについて、上述の処理を実行する(S110)。そして、エッジベクトル導出部126は、1以上の候補ベクトルからエッジベクトルを選択する(S113)。この時、エッジベクトル導出部126は、候補ベクトルの大きさであるノルムに加えて、交差線分の長さも考慮して、エッジベクトルを選択する。
 図7は、上記の交差線分の長さを詳しく説明するための概念図である。図7には、処理対象ブロックBlkCurの領域と、それに隣接し、処理済みの画素で構成される近傍ブロックBlkNghの領域とが示されている。
 近傍ブロックBlkNgh内の複数の位置において、候補ベクトルVecが算出される。図7に示された候補ベクトルVecは、特定の位置を始点Vcntrとして有する。図7に示された直線VecLineは、候補ベクトルVecを延長することにより得られる。交差線分CutSegは、直線VecLineが処理対象ブロックBlkCurを切断する部分に対応する。
 交差線分CutSegは、処理対象ブロックBlkCur内において予測されるエッジ(絵柄の境界等)に相当する線分である。画像符号化装置100は、長い交差線分CutSegを選択することで、処理対象ブロックBlkCur内の大きなエッジに対応する予測方向を選択する。したがって、画像符号化装置100は、より適切に、画像の特性を予測に反映させることができる。そして、画像符号化装置100は、予測性能を向上させることができる。
 例えば、候補ベクトルVecのノルムがN、交差線分CutSegの長さがLとして表現される場合、エッジベクトル導出部126は、N×Lを評価値として取得してもよい。そして、エッジベクトル導出部126は、評価値の大きい候補ベクトルVecを優先して選択してもよい。
 より具体的には、候補ベクトル導出部125は、第1検出エッジおよび第2検出エッジの2つのエッジを検出する場合がある。この場合、エッジベクトル導出部126は、第1検出エッジに対応する交差線分CutSegの長さと第1検出エッジの強さとの積を取得する。同様に、エッジベクトル導出部126は、第2検出エッジに対応する交差線分CutSegの長さと第2検出エッジの強さとの積を取得する。
 そして、エッジベクトル導出部126は、第1検出エッジに対応する積が第2検出エッジに対応する積よりも大きい場合、第1検出エッジの方向を予測方向として選択してもよい。また、エッジベクトル導出部126は、第1検出エッジの方向に近似する方向を予測方向として選択してもよい。
 あるいは、エッジベクトル導出部126は、予め定められた定数であるKを用いて、N+L×Kを評価値として取得してもよい。そして、エッジベクトル導出部126は、評価値の大きい候補ベクトルVecを優先して選択してもよい。
 さらに、エッジベクトル導出部126は、候補ベクトルVecの始点Vcntrから処理対象ブロックBlkCurへの距離が短い候補ベクトルVecを優先して選択してもよい。
 図8は、エッジと処理対象ブロックとの距離を示す図である。図8には、候補ベクトルVecの始点Vcntrから処理対象ブロックBlkCurへの距離が示されている。より具体的には、始点Vcntrから処理対象ブロックBlkCurの最寄りの位置までの距離が評価に用いられる。距離がDとして表現される場合、エッジベクトル導出部126は、N×L×(K2-D)を評価値として取得してもよい。ここで、K2は定数である。K2は、Dの最大値でもよい。
 あるいは、エッジベクトル導出部126は、N+L×K+(1-D)×K3を評価値として取得してもよい。ここで、K3は定数である。
 また、全ての候補ベクトルが、交差線分CutSegの長さおよびブロックへの距離を用いて、評価されなくてもよい。エッジベクトル導出部126は、まず、ノルムのみを評価してもよい。そして、エッジベクトル導出部126は、複数の候補ベクトルからノルムの大きい順に上位の幾つかを抽出したのち、抽出された複数の候補ベクトルを上記の評価値で評価してもよい。
 あるいは、複数の候補ベクトルからノルムの大きい順に上位の2つを抽出することで得られた2つの候補ベクトルのノルムが近い場合のみ、エッジベクトル導出部126は、上記のLおよびDに依存させて、2つの候補ベクトルを評価してもよい。上位の2つのノルムが近い場合には、例えば、大きいノルムのK4倍よりも、小さいノルムが大きい場合などがある。ここで、K4は1以下の定数である。
 図9は、図1に示された画像符号化装置100による動作の一例を示す概念図である。図9には、2つの候補ベクトルVec1、Vec2が示されている。また、図9には、それらの大きさがほぼ同じ、あるいは、候補ベクトルVec1が候補ベクトルVec2よりもやや大きい場合の例が示されている。
 候補ベクトルVec1を延長した直線VecLine1による交差線分CutSeg1と、候補ベクトルVec2を延長した直線VecLine2による交差線分CutSeg2とを比較すると、CutSeg2の方が長い。この場合、画像符号化装置100は、候補ベクトルVec2をより優先的に選ぶように動作する。
 以上のように、画像符号化装置100は、交差線分の長さに応じて、予測方向を選択する。そのため、複数の強いエッジが検出された場合でも、符号化対象ブロックへのエッジの影響度合いに応じて、適切に予測方向が選択される。これにより、画像の特性に応じた適切な予測画像が生成される。よって、画像符号化装置100は、圧縮率を向上させることができる。
 (実施の形態2)
 図10は、実施の形態2に係る画像復号装置の構成図である。図10に示された画像復号装置200は、画像符号化装置100で符号化された符号化ストリームStrをブロック毎に復号して復号映像信号Voutを出力する。また、画像復号装置200は、復号部122、逆量子化逆変換部123、加算部129、フレームメモリ124、候補ベクトル導出部125、エッジベクトル導出部126および予測部127を備える。図1に示された画像符号化装置100と同様の動作を実行する構成要素については、説明を省略する。
 復号部122は、符号化ストリームStrを入力として取得する。そして、復号部122は、符号化ストリームStrに対してエントロピー復号を実行することにより、符号化係数Coeffを生成する。その後、復号信号Reconが生成され、フレームメモリ124に格納される。また、フレームメモリ124に格納された復号信号Reconは、復号映像信号Voutとして出力される。その他の構成要素は、図1に示された構成要素と同様の動作を実行する。
 図11は、図10に示された画像復号装置200の動作を示すフローチャートである。なお、図6に示された動作と同様の動作については、説明を省略する。
 画像復号装置200は、ブロック毎に画像を復号する(S101)。復号部122は、符号化ストリームStrをエントロピー復号により復号して、符号化係数Coeffを生成する(S124)。逆量子化逆変換部123は、逆スキャン、逆量子化、逆変換を実行して、量子化予測誤差信号QPredErrを生成する(S125)。加算部129は、量子化予測誤差信号QPredErrと予測信号Predとを加算して復号信号Reconを生成する(S126)。
 エッジベクトルの選択方法は、図7、図8、図9などを用いて説明した、交差線分の長さ、および、処理対象ブロックとの距離を用いた方法と同様である。
 画像復号装置200は、画像符号化装置100と同様に、交差線分の長さに応じて、予測方向を選択する。そのため、複数の強いエッジが検出された場合でも、復号対象ブロックへのエッジの影響度合いに応じて、適切に予測方向が選択される。これにより、画像の特性に応じた適切な予測画像が生成される。
 (実施の形態3)
 実施の形態3に係る画像符号化装置は、図1に示された実施の形態1の画像符号化装置100と同様の構成要素を有する。また、実施の形態3に係る画像復号装置は、図10に示された実施の形態2の画像復号装置200と同様の構成要素を有する。相違点は、分割情報PrtnCtrlが生成される点である。
 図12は、実施の形態3に係る処理対象ブロックの分割の第1例を示す図である。図12のように、2つの候補ベクトルが大きいノルムを有し、かつ、それらの始点位置が所定の距離以上相互に離れている場合、エッジベクトル導出部126は、エッジベクトルを択一で選ぶのではなく、両方をエッジベクトルとして選択する。
 具体的には、例えば、図12のように、エッジベクトル導出部126は、2つのエッジベクトルEVec1、EVec2を選択する。2つのエッジベクトルEVec1、EVec2のそれぞれを延長することにより、2つの直線EVecLine1、EVecLine2が得られる。そして、その交点ISPが得られる。また、上記2つの直線EVecLine1、EVecLine2によって、処理対象ブロックが分割される。
 例えば、図12のように、交点ISPが処理対象ブロックの内部にある場合、4つの領域(分割領域)RegO1、RegX12N、RegX12F、RegO2が得られる。予測部127は、それぞれの領域で異なる予測を実行する。
 次に、4つの領域RegO1、RegX12N、RegX12F、RegO2を具体的に説明する。2つの直線EVecLine1、EVecLine2が作るこれらの領域は、交点ISPに対するベクトルの向きによって、分類される。すなわち、交点ISPに対して、エッジベクトルEVec1の向きとエッジベクトルEVec2の向きが一致する角を有する領域は、領域(内部領域)RegX12として定義される。領域RegX12は、さらに、2つの領域に分かれている可能性がある。近傍ブロックBlkNghに近い側は、領域(内部領域)RegX12Nとして定義され、遠い側は、領域(内部領域)RegX12Fとして定義される。
 上記以外の、交点ISPに対するベクトルの向きが一致しない領域は、領域(外部領域)RegOとして定義される。さらに、直線EVecLine1において、近傍ブロックBlkNghから交点ISPに至る線分を境界の一部として持つ領域が、領域(外部領域)RegO1として定義される。また、直線EVecLine2において、近傍ブロックBlkNghから交点ISPに至る線分を境界の一部として持つ領域が、領域(外部領域)RegO2として定義される。
 あるいは、処理対象ブロックが矩形であり、処理対象ブロックの左辺と上辺とが近傍ブロックBlkNghに接し、直線EVecLine1が左辺に交差し、直線EVecLine2が上辺に交差している場合を前提として、領域の定義が簡略化されてもよい。この場合、左側の領域が領域RegO1として定義され、右側の領域が領域RegO2として定義され、中間に位置する領域がRegX12として定義されてもよい。
 また、エッジベクトルEVec1に対応するエッジが第1エッジであって、エッジベクトルEVec2に対応するエッジが第2エッジである場合、2つの領域RegO1、RegO2は、次の条件を満たす。したがって、2つの領域RegO1、RegO2は、次の条件を満たす領域として定義されてもよい。
 すなわち、領域RegO1は、第2エッジ(エッジベクトルEVec2)の方向に沿う直線EVecLine2で画像を分割することにより得られる2つの画像領域のうち第1エッジ(エッジベクトルEVec1)を含む画像領域に属する。さらに、領域RegO1は、第1エッジ(エッジベクトルEVec1)の方向に沿う直線EVecLine1で画像を分割することにより得られる2つの画像領域のうち第2エッジ(エッジベクトルEVec2)を含まない画像領域に属する。
 同様に、領域RegO2は、第1エッジ(エッジベクトルEVec1)の方向に沿う直線EVecLine1で画像を分割することにより得られる2つの画像領域のうち第2エッジ(エッジベクトルEVec2)を含む画像領域に属する。さらに、領域RegO2は、第2エッジ(エッジベクトルEVec2)の方向に沿う直線EVecLine2で画像を分割することにより得られる2つの画像領域のうち第1エッジ(エッジベクトルEVec1)を含まない画像領域に属する。
 図13は、実施の形態3に係る処理対象ブロックの分割の第2例を示す図である。図13では、交点ISPがブロックの外側に位置する。領域決定の動作は、図12を用いて説明された動作と同様である。2つのベクトルの中間の領域が、領域RegX12、あるいは、領域RegX12Nである。その領域の外側のうち、直線EVecLine1に近い側が領域RegO1であり、直線EVecLine2に近い側が領域RegO2である。
 図14は、実施の形態3に係る外部領域の面内予測の例を示す図である。予測部127は、領域RegOについて、1つのエッジベクトルのみを用いて予測を実行する。
 予測部127は、エッジベクトルEVec1の方向を用いて、領域RegO1の各画素を予測する。この時、予測部127は、近傍ブロックBlkNgh内部で処理対象ブロックに近接する画素(近接画素)BlkNgh1を用いて予測信号を生成する。具体的には、予測部127は、エッジベクトルEVec1の方向に沿って、画素BlkNgh1の値を連続させることによって、予測画像を生成する。つまり、予測部127は、画素BlkNgh1を引き伸ばすことにより、予測画像を生成する。
 同様に、予測部127は、エッジベクトルEVec2の方向を用いて、領域RegO2の各画素を予測する。この時、予測部127は、近傍ブロックBlkNgh内部で処理対象ブロックに近接する画素(近接画素)BlkNgh2を用いて予測信号を生成する。具体的には、予測部127は、エッジベクトルEVec2の方向に沿って、画素BlkNgh2の値を連続させることによって、予測画像を生成する。つまり、予測部127は、画素BlkNgh2を引き伸ばすことにより、予測画像を生成する。
 図15は、実施の形態3に係る内部領域の面内予測の例を示す図である。領域RegX12Nは、処理対象ブロックに近接する処理済みの画素(近接画素)BlkNghNを用いて、2つのエッジベクトルEVec1、EVec2のそれぞれで生成した後、各画素において得られる2つの予測値を平均化して、画素値を生成する。
 具体的には、予測部127は、エッジベクトルEVec1の方向に沿って、画素BlkNghNの値を連続させることによって、第1予測信号(第1予測値)を生成する。つまり、予測部127は、画素BlkNghNをエッジベクトルEVec1の方向に引き伸ばすことにより、予測画像を生成する。
 また、予測部127は、エッジベクトルEVec2の方向に沿って、画素BlkNghNの値を連続させることによって、第2予測信号(第2予測値)を生成する。つまり、予測部127は、画素BlkNghNをエッジベクトルEVec2の方向に引き伸ばすことにより、予測画像を生成する。
 そして、予測部127は、第1予測信号と第2予測信号を平均して、領域RegX12Nの予測信号を生成する。予測部127は、領域RegX12Fも領域RegX12Nと同様に予測を実行するが、参照される画素が異なる。例えば、予測部127は、図15に示された画素BlkNghF1と、画素BlkNghF2とから、領域RegX12Fの画素値を予測する。また、領域RegX12における画素値の予測には、次に示されるような別の方法による予測も適用可能である。
 図16は、実施の形態3に係る内部領域の面内予測の変形例を示す図である。予測部127は、領域RegX12Nにおいて、画素BlkNghNから交点ISPに向かって収束するように予測信号を生成する。また、予測部127は、領域RegX12Fにおいても、領域RegX12Nにおける予測方向を延長させる。予測部127は、この予測方向を用いることにより、より尖った形状をより高精度に予測できる。
 図17は、実施の形態3に係る面内予測の動作を示すフローチャートである。図17は、複数のエッジベクトルを用いる予測に関する動作フローを示す。実施の形態3に係る画像符号化方法または画像復号方法では、ブロック毎に符号化または復号が実行される。
 まず、候補ベクトル導出部125は、処理対象ブロックに隣接する処理済みの近傍ブロックBlkNgh内から、ソーベルフィルタ等のエッジ検出フィルタを用いて、複数の候補ベクトルを導出する(S130)。次に、エッジベクトル導出部126は、上記の候補ベクトルのノルム、交差線分長、および、処理対象ブロックまでの距離等に基づく評価値を用いて、評価値の高い複数のエッジベクトルを導出する(S131)。
 そして、エッジベクトル導出部126は、複数のエッジベクトルの位置関係、および、ベクトルの向き等から、複数の領域を定義する(S132)。また、エッジベクトル導出部126は、予測部127へ、分割情報PrtnCtrlを送信する。そして、予測部127は、それぞれの領域について、領域に応じた予測信号を生成する(S133)。
 なお、本実施の形態では、予測信号の生成方法として、面内予測が示されている。しかし、エッジベクトルを用いて、面間予測が用いられてもよい。具体的には、図12と図13で説明された領域の定義方法を用いて、動き補償の領域が定義されてもよい。また、3以上のエッジベクトルを用いる場合にも、本実施の形態に示された予測方法が適用可能である。
 図18は、実施の形態3に係る処理対象ブロックの分割の第3例を示す図である。図18には、3つのエッジベクトルEVec1、EVec2、EVec3が示されている。処理対象ブロックは、直線EVecLine1、直線EVecLine2および直線EVecLine3で分割される。例えば、図18のように、反時計回りに、3つのエッジベクトルEVec1、EVec2、EVec3が並んでいる場合、反時計回りに、4つの領域RegO1、RegX12N、RegX23N、RegO3が定義される。
 領域RegO1は、エッジベクトルEVec1の方向のみで予測される。領域RegX12Nの画素値は、エッジベクトルEVec1の方向による予測とエッジベクトルEVec2の方向による予測との平均値により、最終的に予測される。領域RegX23Nの画素値は、エッジベクトルEVec2の方向による予測とエッジベクトルEVec3の方向による予測との平均値により、最終的に予測される。領域RegO3の画素値は、エッジベクトルEVec3の方向のみで予測される。
 以上のように、実施の形態3に係る画像符号化装置100および画像復号装置200は、複数のエッジが存在する場合、複数の予測方向を用いる。そして、画像符号化装置100および画像復号装置200は、処理対象ブロックを複数の領域に分割して領域毎に精度の高い予測を実行する。これにより、圧縮性能が向上する。
 (実施の形態4)
 実施の形態1および実施の形態2で示したような、1つのエッジベクトルを用いる予測方法、および、実施の形態3で示したような、複数のエッジベクトルを用いる予測方法が、組み合わされてもよい。
 そして、どの予測方法を用いるかについての情報が、符号化ストリームにフラグとして組み込まれてもよい。その情報は、符号化ストリームの、プロファイルレベル層、シーケンスパラメータセット、ピクチャパラメータセット、フレームヘッダ、スライスヘッダ、コーディングユニットヘッダ、あるいは、符号化のブロック毎に組み込まれてもよい。
 また、実施の形態1、実施の形態2および実施の形態3で示された画像符号化装置100および画像復号装置200は、ノルムおよび交差線分長等を用いて、最も評価値の高い候補ベクトルをエッジベクトルとして選択する。
 その際、どの候補ベクトルをエッジベクトルとして選択するかの情報が、符号化ストリームにフラグとして組み込まれてもよい。そして、その情報は、上記と同様に、プロファイルレベル層、シーケンスパラメータセット、ピクチャパラメータセット、フレームヘッダ、スライスヘッダ、コーディングユニットヘッダ、あるいは、符号化のブロック毎に組み込まれてもよい。
 これにより、画像符号化装置100と画像復号装置200とが、予測方法を適応的に変更しながら、適切な予測画像を生成することができる。
 (実施の形態5)
 以下、実施の形態1、実施の形態2、実施の形態3および実施の形態4の特徴的な構成要素を実施の形態5として、説明する。
 図19は、実施の形態5に係る画像符号化装置の構成図である。図19に示された画像符号化装置300は、画像をブロック毎に符号化する。また、画像符号化装置300は、エッジ検出部301、線分長取得部302、予測方向選択部303、予測部304および符号化部305を備える。
 エッジ検出部301は、図1に示された画像符号化装置100の候補ベクトル導出部125に対応する。線分長取得部302および予測方向選択部303は、図1に示された画像符号化装置100のエッジベクトル導出部126に対応する。予測部304は、図1に示された画像符号化装置100の予測部127に対応する。符号化部305は、図1に示された画像符号化装置100の減算部144、量子化変換部142および符号化部143に対応する。
 図20は、図19に示された画像符号化装置300の動作を示すフローチャートである。まず、エッジ検出部301は、符号化対象ブロックに隣接する1以上の隣接ブロックから、複数のエッジを検出する(S301)。次に、線分長取得部302は、複数のエッジのそれぞれについて、交差線分の長さを取得する。交差線分は、エッジの位置を通りエッジの方向に沿う直線と、符号化対象ブロックとの共通部分である。これにより、線分長取得部302は、複数のエッジに対応する複数の交差線分の長さを取得する(S302)。
 次に、予測方向選択部303は、複数のエッジに対応する複数の交差線分の長さに依存させて、複数のエッジの方向から予測方向を選択する(S303)。次に、予測部304は、予測方向を用いて、符号化対象ブロックに含まれる画素値を予測する。これにより、予測部304は、予測画像ブロックを生成する(S304)。最後に、符号化部305は、差分画像ブロックを符号化することにより、符号化ストリームを生成する(S305)。ここでの差分画像ブロックは、予測画像ブロックと符号化対象ブロックとの差分である。
 図21は、実施の形態5に係る画像復号装置の構成図である。図21に示された画像復号装置400は、画像をブロック毎に復号する。また、画像復号装置400は、エッジ検出部401、線分長取得部402、予測方向選択部403、予測部404および復号部405を備える。
 エッジ検出部401は、図10に示された画像復号装置200の候補ベクトル導出部125に対応する。線分長取得部402および予測方向選択部403は、図10に示された画像復号装置200のエッジベクトル導出部126に対応する。予測部404は、図10に示された画像復号装置200の予測部127に対応する。復号部405は、図10に示された画像復号装置200の復号部122、逆量子化逆変換部123および加算部129に対応する。
 図22は、図21に示された画像復号装置400の動作を示すフローチャートである。まず、エッジ検出部401は、復号対象ブロックに隣接する1以上の隣接ブロックから、複数のエッジを検出する(S401)。次に、線分長取得部402は、複数のエッジのそれぞれについて、交差線分の長さを取得する。交差線分は、エッジの位置を通りエッジの方向に沿う直線と、復号対象ブロックとの共通部分である。これにより、線分長取得部402は、複数のエッジに対応する複数の交差線分の長さを取得する(S402)。
 次に、予測方向選択部403は、複数のエッジに対応する複数の交差線分の長さに依存させて、複数のエッジの方向から予測方向を選択する(S403)。次に、予測部404は、予測方向を用いて、復号対象ブロックに含まれる画素値を予測する。これにより、予測部404は、予測画像ブロックを生成する(S404)。
 次に、復号部405は、符号化ストリームから、差分画像ブロックを復号する。ここでの差分画像ブロックは、予測画像ブロックと復号対象ブロックとの差分である。そして、復号部405は、差分画像ブロックと予測画像ブロックとを加算する。これにより、復号部405は、復号対象ブロックを復元する(S405)。
 上述の動作により、画像符号化装置300および画像復号装置400は、交差線分の長さに応じて、予測方向を選択する。すなわち、画像符号化装置300および画像復号装置400は、処理対象ブロックへのエッジの影響度合いに応じて、予測方向を選択する。したがって、画像の特性に応じた適切な予測画像が生成される。そして、画像符号化装置300および画像復号装置400は、圧縮率を向上させることができる。
 以上、本発明に係る画像符号化装置および画像復号装置について、複数の実施の形態に基づいて説明したが、本発明はそれらの実施の形態に限定されるものではない。実施の形態に対して当業者が思いつく変形を施して得られる形態、および、実施の形態における構成要素を任意に組み合わせて実現される別の形態も本発明に含まれる。
 例えば、特定の処理部が実行する処理を別の処理部が実行してもよい。また、処理を実行する順番が変更されてもよいし、複数の処理が並行して実行されてもよい。
 また、本発明は、画像符号化装置および画像復号装置として実現できるだけでなく、画像符号化装置および画像復号装置を構成する処理手段をステップとする方法として実現できる。例えば、それらのステップは、コンピュータによって実行される。そして、本発明は、それらの方法に含まれるステップを、コンピュータに実行させるためのプログラムとして実現できる。さらに、本発明は、そのプログラムを記録したCD-ROM等のコンピュータ読み取り可能な記録媒体として実現できる。
 また、画像符号化装置および画像復号装置に含まれる複数の構成要素は、集積回路であるLSI(Large Scale Integration)として実現されてもよい。これらの構成要素は、個別に1チップ化されてもよいし、一部または全てを含むように1チップ化されてもよい。例えば、記憶部以外の構成要素が1チップ化されてもよい。ここでは、LSIとしたが、集積度の違いにより、IC(Integrated Circuit)、システムLSI、スーパーLSIまたはウルトラLSIと呼称されることもある。
 また、集積回路化の手法はLSIに限るものではなく、専用回路または汎用プロセッサで実現してもよい。プログラムすることが可能なFPGA(Field Programmable Gate Array)、または、LSI内部の回路セルの接続および設定を再構成可能なリコンフィギュラブル・プロセッサを利用してもよい。
 さらには、半導体技術の進歩または派生する別技術によりLSIに置き換わる集積回路化の技術が登場すれば、当然、その技術を用いて、画像符号化装置および画像復号装置に含まれる構成要素の集積回路化を行ってもよい。
 (実施の形態6)
 上記各実施の形態で示した動画像符号化方法または動画像復号化方法の構成を実現するためのプログラムを記憶メディアに記録することにより、上記各実施の形態で示した処理を独立したコンピュータシステムにおいて簡単に実施することが可能となる。記憶メディアは、磁気ディスク、光ディスク、光磁気ディスク、ICカード、半導体メモリ等、プログラムを記録できるものであればよい。
 さらにここで、上記各実施の形態で示した動画像符号化方法や動画像復号化方法の応用例とそれを用いたシステムを説明する。
 図23は、コンテンツ配信サービスを実現するコンテンツ供給システムex100の全体構成を示す図である。通信サービスの提供エリアを所望の大きさに分割し、各セル内にそれぞれ固定無線局である基地局ex106、ex107、ex108、ex109、ex110が設置されている。
 このコンテンツ供給システムex100は、インターネットex101にインターネットサービスプロバイダex102および電話網ex104、および基地局ex106からex110を介して、コンピュータex111、PDA(Personal Digital Assistant)ex112、カメラex113、携帯電話ex114、ゲーム機ex115などの各機器が接続される。
 しかし、コンテンツ供給システムex100は図23のような構成に限定されず、いずれかの要素を組合せて接続するようにしてもよい。また、固定無線局である基地局ex106からex110を介さずに、各機器が電話網ex104に直接接続されてもよい。また、各機器が近距離無線等を介して直接相互に接続されていてもよい。
 カメラex113はデジタルビデオカメラ等の動画撮影が可能な機器であり、カメラex116はデジタルカメラ等の静止画撮影、動画撮影が可能な機器である。また、携帯電話ex114は、GSM(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)の携帯電話機、またはPHS(Personal Handyphone System)等であり、いずれでも構わない。
 コンテンツ供給システムex100では、カメラex113等が基地局ex109、電話網ex104を通じてストリーミングサーバex103に接続されることで、ライブ配信等が可能になる。ライブ配信では、ユーザがカメラex113を用いて撮影するコンテンツ(例えば、音楽ライブの映像等)に対して上記各実施の形態で説明したように符号化処理を行い、ストリーミングサーバex103に送信する。一方、ストリーミングサーバex103は要求のあったクライアントに対して送信されたコンテンツデータをストリーム配信する。クライアントとしては、上記符号化処理されたデータを復号化することが可能な、コンピュータex111、PDAex112、カメラex113、携帯電話ex114、ゲーム機ex115等がある。配信されたデータを受信した各機器では、受信したデータを復号化処理して再生する。
 なお、撮影したデータの符号化処理はカメラex113で行っても、データの送信処理をするストリーミングサーバex103で行ってもよいし、互いに分担して行ってもよい。同様に配信されたデータの復号化処理はクライアントで行っても、ストリーミングサーバex103で行ってもよいし、互いに分担して行ってもよい。また、カメラex113に限らず、カメラex116で撮影した静止画像および/または動画像データを、コンピュータex111を介してストリーミングサーバex103に送信してもよい。この場合の符号化処理はカメラex116、コンピュータex111、ストリーミングサーバex103のいずれで行ってもよいし、互いに分担して行ってもよい。
 また、これら符号化・復号化処理は、一般的にコンピュータex111や各機器が有するLSIex500において処理する。LSIex500は、ワンチップであっても複数チップからなる構成であってもよい。なお、動画像符号化・復号化用のソフトウェアをコンピュータex111等で読み取り可能な何らかの記録メディア(CD-ROM、フレキシブルディスク、ハードディスクなど)に組み込み、そのソフトウェアを用いて符号化・復号化処理を行ってもよい。さらに、携帯電話ex114がカメラ付きである場合には、そのカメラで取得した動画データを送信してもよい。このときの動画データは携帯電話ex114が有するLSIex500で符号化処理されたデータである。
 また、ストリーミングサーバex103は複数のサーバや複数のコンピュータであって、データを分散して処理したり記録したり配信するものであってもよい。
 以上のようにして、コンテンツ供給システムex100では、符号化されたデータをクライアントが受信して再生することができる。このようにコンテンツ供給システムex100では、ユーザが送信した情報をリアルタイムでクライアントが受信して復号化し、再生することができ、特別な権利や設備を有さないユーザでも個人放送を実現できる。
 なお、コンテンツ供給システムex100の例に限らず、図24に示すように、デジタル放送用システムex200にも、上記各実施の形態の少なくとも動画像符号化装置または動画像復号化装置のいずれかを組み込むことができる。具体的には、放送局ex201では映像データに音楽データなどが多重化された多重化データが電波を介して通信または衛星ex202に伝送される。この映像データは上記各実施の形態で説明した動画像符号化方法により符号化されたデータである。これを受けた放送衛星ex202は、放送用の電波を発信し、この電波を衛星放送の受信が可能な家庭のアンテナex204が受信する。受信した多重化データを、テレビ(受信機)ex300またはセットトップボックス(STB)ex217等の装置が復号化して再生する。
 また、DVD、BD等の記録メディアex215に記録した多重化データを読み取り復号化する、または記録メディアex215に映像信号を符号化し、さらに場合によっては音楽信号と多重化して書き込むリーダ/レコーダex218にも上記各実施の形態で示した動画像復号化装置または動画像符号化装置を実装することが可能である。この場合、再生された映像信号はモニタex219に表示され、多重化データが記録された記録メディアex215により他の装置やシステムにおいて映像信号を再生することができる。また、ケーブルテレビ用のケーブルex203または衛星/地上波放送のアンテナex204に接続されたセットトップボックスex217内に動画像復号化装置を実装し、これをテレビのモニタex219で表示してもよい。このときセットトップボックスではなく、テレビ内に動画像復号化装置を組み込んでもよい。
 図25は、上記各実施の形態で説明した動画像復号化方法および動画像符号化方法を用いたテレビ(受信機)ex300を示す図である。テレビex300は、上記放送を受信するアンテナex204またはケーブルex203等を介して映像データに音声データが多重化された多重化データを取得、または出力するチューナex301と、受信した多重化データを復調する、または外部に送信する多重化データに変調する変調/復調部ex302と、復調した多重化データを映像データと、音声データとに分離する、または信号処理部ex306で符号化された映像データ、音声データを多重化する多重/分離部ex303を備える。
 また、テレビex300は、音声データ、映像データそれぞれを復号化する、またはそれぞれの情報を符号化する音声信号処理部ex304、映像信号処理部ex305を有する信号処理部ex306と、復号化した音声信号を出力するスピーカex307、復号化した映像信号を表示するディスプレイ等の表示部ex308を有する出力部ex309とを有する。さらに、テレビex300は、ユーザ操作の入力を受け付ける操作入力部ex312等を有するインタフェース部ex317を有する。さらに、テレビex300は、各部を統括的に制御する制御部ex310、各部に電力を供給する電源回路部ex311を有する。インタフェース部ex317は、操作入力部ex312以外に、リーダ/レコーダex218等の外部機器と接続されるブリッジex313、SDカード等の記録メディアex216を装着可能とするためのスロット部ex314、ハードディスク等の外部記録メディアと接続するためのドライバex315、電話網と接続するモデムex316等を有していてもよい。なお記録メディアex216は、格納する不揮発性/揮発性の半導体メモリ素子により電気的に情報の記録を可能としたものである。テレビex300の各部は同期バスを介して互いに接続されている。
 まず、テレビex300がアンテナex204等により外部から取得した多重化データを復号化し、再生する構成について説明する。テレビex300は、リモートコントローラex220等からのユーザ操作を受け、CPU等を有する制御部ex310の制御に基づいて、変調/復調部ex302で復調した多重化データを多重/分離部ex303で分離する。さらにテレビex300は、分離した音声データを音声信号処理部ex304で復号化し、分離した映像データを映像信号処理部ex305で上記各実施の形態で説明した復号化方法を用いて復号化する。復号化した音声信号、映像信号は、それぞれ出力部ex309から外部に向けて出力される。出力する際には、音声信号と映像信号が同期して再生するよう、バッファex318、ex319等に一旦これらの信号を蓄積するとよい。また、テレビex300は、放送等からではなく、磁気/光ディスク、SDカード等の記録メディアex215、ex216から多重化データを読み出してもよい。次に、テレビex300が音声信号や映像信号を符号化し、外部に送信または記録メディア等に書き込む構成について説明する。テレビex300は、リモートコントローラex220等からのユーザ操作を受け、制御部ex310の制御に基づいて、音声信号処理部ex304で音声信号を符号化し、映像信号処理部ex305で映像信号を上記各実施の形態で説明した符号化方法を用いて符号化する。符号化した音声信号、映像信号は多重/分離部ex303で多重化され外部に出力される。多重化する際には、音声信号と映像信号が同期するように、バッファex320、ex321等に一旦これらの信号を蓄積するとよい。なお、バッファex318、ex319、ex320、ex321は図示しているように複数備えていてもよいし、1つ以上のバッファを共有する構成であってもよい。さらに、図示している以外に、例えば変調/復調部ex302や多重/分離部ex303の間等でもシステムのオーバフロー、アンダーフローを避ける緩衝材としてバッファにデータを蓄積することとしてもよい。
 また、テレビex300は、放送等や記録メディア等から音声データ、映像データを取得する以外に、マイクやカメラのAV入力を受け付ける構成を備え、それらから取得したデータに対して符号化処理を行ってもよい。なお、ここではテレビex300は上記の符号化処理、多重化、および外部出力ができる構成として説明したが、これらの処理を行うことはできず、上記受信、復号化処理、外部出力のみが可能な構成であってもよい。
 また、リーダ/レコーダex218で記録メディアから多重化データを読み出す、または書き込む場合には、上記復号化処理または符号化処理はテレビex300、リーダ/レコーダex218のいずれで行ってもよいし、テレビex300とリーダ/レコーダex218が互いに分担して行ってもよい。
 一例として、光ディスクからデータの読み込みまたは書き込みをする場合の情報再生/記録部ex400の構成を図26に示す。情報再生/記録部ex400は、以下に説明する要素ex401、ex402、ex403、ex404、ex405、ex406、ex407を備える。光ヘッドex401は、光ディスクである記録メディアex215の記録面にレーザスポットを照射して情報を書き込み、記録メディアex215の記録面からの反射光を検出して情報を読み込む。変調記録部ex402は、光ヘッドex401に内蔵された半導体レーザを電気的に駆動し記録データに応じてレーザ光の変調を行う。再生復調部ex403は、光ヘッドex401に内蔵されたフォトディテクタにより記録面からの反射光を電気的に検出した再生信号を増幅し、記録メディアex215に記録された信号成分を分離して復調し、必要な情報を再生する。バッファex404は、記録メディアex215に記録するための情報および記録メディアex215から再生した情報を一時的に保持する。ディスクモータex405は記録メディアex215を回転させる。サーボ制御部ex406は、ディスクモータex405の回転駆動を制御しながら光ヘッドex401を所定の情報トラックに移動させ、レーザスポットの追従処理を行う。システム制御部ex407は、情報再生/記録部ex400全体の制御を行う。上記の読み出しや書き込みの処理はシステム制御部ex407が、バッファex404に保持された各種情報を利用し、また必要に応じて新たな情報の生成・追加を行うと共に、変調記録部ex402、再生復調部ex403、サーボ制御部ex406を協調動作させながら、光ヘッドex401を通して、情報の記録再生を行うことにより実現される。システム制御部ex407は例えばマイクロプロセッサで構成され、読み出し書き込みのプログラムを実行することでそれらの処理を実行する。
 以上では、光ヘッドex401はレーザスポットを照射するとして説明したが、近接場光を用いてより高密度な記録を行う構成であってもよい。
 図27に光ディスクである記録メディアex215の模式図を示す。記録メディアex215の記録面には案内溝(グルーブ)がスパイラル状に形成され、情報トラックex230には、予めグルーブの形状の変化によってディスク上の絶対位置を示す番地情報が記録されている。この番地情報はデータを記録する単位である記録ブロックex231の位置を特定するための情報を含み、記録や再生を行う装置において情報トラックex230を再生し番地情報を読み取ることで記録ブロックを特定することができる。また、記録メディアex215は、データ記録領域ex233、内周領域ex232、外周領域ex234を含んでいる。ユーザデータを記録するために用いる領域がデータ記録領域ex233であり、データ記録領域ex233より内周または外周に配置されている内周領域ex232と外周領域ex234は、ユーザデータの記録以外の特定用途に用いられる。情報再生/記録部ex400は、このような記録メディアex215のデータ記録領域ex233に対して、符号化された音声データ、映像データまたはそれらのデータを多重化した多重化データの読み書きを行う。
 以上では、1層のDVD、BD等の光ディスクを例に挙げ説明したが、これらに限ったものではなく、多層構造であって表面以外にも記録可能な光ディスクであってもよい。また、ディスクの同じ場所にさまざまな異なる波長の色の光を用いて情報を記録したり、さまざまな角度から異なる情報の層を記録したりなど、多次元的な記録/再生を行う構造の光ディスクであってもよい。
 また、デジタル放送用システムex200において、アンテナex205を有する車ex210で衛星ex202等からデータを受信し、車ex210が有するカーナビゲーションex211等の表示装置に動画を再生することも可能である。なお、カーナビゲーションex211の構成は例えば図25に示す構成のうち、GPS受信部を加えた構成が考えられ、同様なことがコンピュータex111や携帯電話ex114等でも考えられる。
 図28Aは、上記実施の形態で説明した動画像復号化方法および動画像符号化方法を用いた携帯電話ex114を示す図である。携帯電話ex114は、基地局ex110との間で電波を送受信するためのアンテナex350、映像、静止画を撮ることが可能なカメラ部ex365、カメラ部ex365で撮像した映像、アンテナex350で受信した映像等が復号化されたデータを表示する液晶ディスプレイ等の表示部ex358を備える。携帯電話ex114は、さらに、操作キー部ex366を有する本体部、音声を出力するためのスピーカ等である音声出力部ex357、音声を入力するためのマイク等である音声入力部ex356、撮影した映像、静止画、録音した音声、または受信した映像、静止画、メール等の符号化されたデータもしくは復号化されたデータを保存するメモリ部ex367、又は同様にデータを保存する記録メディアとのインタフェース部であるスロット部ex364を備える。
 さらに、携帯電話ex114の構成例について、図28Bを用いて説明する。携帯電話ex114は、表示部ex358及び操作キー部ex366を備えた本体部の各部を統括的に制御する主制御部ex360に対して、電源回路部ex361、操作入力制御部ex362、映像信号処理部ex355、カメラインタフェース部ex363、LCD(Liquid Crystal Display)制御部ex359、変調/復調部ex352、多重/分離部ex353、音声信号処理部ex354、スロット部ex364、メモリ部ex367がバスex370を介して互いに接続されている。
 電源回路部ex361は、ユーザの操作により終話及び電源キーがオン状態にされると、バッテリパックから各部に対して電力を供給することにより携帯電話ex114を動作可能な状態に起動する。
 携帯電話ex114は、CPU、ROM、RAM等を有する主制御部ex360の制御に基づいて、音声通話モード時に音声入力部ex356で収音した音声信号を音声信号処理部ex354でデジタル音声信号に変換し、これを変調/復調部ex352でスペクトラム拡散処理し、送信/受信部ex351でデジタルアナログ変換処理および周波数変換処理を施した後にアンテナex350を介して送信する。また携帯電話ex114は、音声通話モード時にアンテナex350を介して受信した受信データを増幅して周波数変換処理およびアナログデジタル変換処理を施し、変調/復調部ex352でスペクトラム逆拡散処理し、音声信号処理部ex354でアナログ音声信号に変換した後、これを音声出力部ex357から出力する。
 さらにデータ通信モード時に電子メールを送信する場合、本体部の操作キー部ex366等の操作によって入力された電子メールのテキストデータは操作入力制御部ex362を介して主制御部ex360に送出される。主制御部ex360は、テキストデータを変調/復調部ex352でスペクトラム拡散処理をし、送信/受信部ex351でデジタルアナログ変換処理および周波数変換処理を施した後にアンテナex350を介して基地局ex110へ送信する。電子メールを受信する場合は、受信したデータに対してこのほぼ逆の処理が行われ、表示部ex358に出力される。
 データ通信モード時に映像、静止画、または映像と音声を送信する場合、映像信号処理部ex355は、カメラ部ex365から供給された映像信号を上記各実施の形態で示した動画像符号化方法によって圧縮符号化し、符号化された映像データを多重/分離部ex353に送出する。また、音声信号処理部ex354は、映像、静止画等をカメラ部ex365で撮像中に音声入力部ex356で収音した音声信号を符号化し、符号化された音声データを多重/分離部ex353に送出する。
 多重/分離部ex353は、映像信号処理部ex355から供給された符号化された映像データと音声信号処理部ex354から供給された符号化された音声データを所定の方式で多重化し、その結果得られる多重化データを変調/復調回路部ex352でスペクトラム拡散処理をし、送信/受信部ex351でデジタルアナログ変換処理及び周波数変換処理を施した後にアンテナex350を介して送信する。
 データ通信モード時にホームページ等にリンクされた動画像ファイルのデータを受信する場合、または映像およびもしくは音声が添付された電子メールを受信する場合、アンテナex350を介して受信された多重化データを復号化するために、多重/分離部ex353は、多重化データを分離することにより映像データのビットストリームと音声データのビットストリームとに分け、同期バスex370を介して符号化された映像データを映像信号処理部ex355に供給するとともに、符号化された音声データを音声信号処理部ex354に供給する。映像信号処理部ex355は、上記各実施の形態で示した動画像符号化方法に対応した動画像復号化方法によって復号化することにより映像信号を復号し、LCD制御部ex359を介して表示部ex358から、例えばホームページにリンクされた動画像ファイルに含まれる映像、静止画が表示される。また音声信号処理部ex354は、音声信号を復号し、音声出力部ex357から音声が出力される。
 また、上記携帯電話ex114等の端末は、テレビex300と同様に、符号化器・復号化器を両方持つ送受信型端末の他に、符号化器のみの送信端末、復号化器のみの受信端末という3通りの実装形式が考えられる。さらに、デジタル放送用システムex200において、映像データに音楽データなどが多重化された多重化された多重化データを受信、送信するとして説明したが、音声データ以外に映像に関連する文字データなどが多重化されたデータであってもよいし、多重化データではなく映像データ自体であってもよい。
 このように、上記各実施の形態で示した動画像符号化方法あるいは動画像復号化方法を上述したいずれの機器・システムに用いることは可能であり、そうすることで、上記各実施の形態で説明した効果を得ることができる。
 また、本発明はかかる上記実施形態に限定されるものではなく、本発明の範囲を逸脱することなく種々の変形または修正が可能である。
 (実施の形態7)
 上記各実施の形態で示した動画像符号化方法または装置と、MPEG-2、MPEG4-AVC、VC-1など異なる規格に準拠した動画像符号化方法または装置とを、必要に応じて適宜切替えることにより、映像データを生成することも可能である。
 ここで、それぞれ異なる規格に準拠する複数の映像データを生成した場合、復号する際に、それぞれの規格に対応した復号方法を選択する必要がある。しかしながら、復号する映像データが、どの規格に準拠するものであるか識別できないため、適切な復号方法を選択することができないという課題を生じる。
 この課題を解決するために、映像データに音声データなどを多重化した多重化データは、映像データがどの規格に準拠するものであるかを示す識別情報を含む構成とする。上記各実施の形態で示す動画像符号化方法または装置によって生成された映像データを含む多重化データの具体的な構成を以下説明する。多重化データは、MPEG-2トランスポートストリーム形式のデジタルストリームである。
 図29は、多重化データの構成を示す図である。図29に示すように多重化データは、ビデオストリーム、オーディオストリーム、プレゼンテーショングラフィックスストリーム(PG)、インタラクティブグラフィックスストリームのうち、1つ以上を多重化することで得られる。ビデオストリームは映画の主映像および副映像を、オーディオストリーム(IG)は映画の主音声部分とその主音声とミキシングする副音声を、プレゼンテーショングラフィックスストリームは、映画の字幕をそれぞれ示している。ここで主映像とは画面に表示される通常の映像を示し、副映像とは主映像の中に小さな画面で表示する映像のことである。また、インタラクティブグラフィックスストリームは、画面上にGUI部品を配置することにより作成される対話画面を示している。ビデオストリームは、上記各実施の形態で示した動画像符号化方法または装置、従来のMPEG-2、MPEG4-AVC、VC-1などの規格に準拠した動画像符号化方法または装置によって符号化されている。オーディオストリームは、ドルビーAC-3、Dolby Digital Plus、MLP、DTS、DTS-HD、または、リニアPCMのなどの方式で符号化されている。
 多重化データに含まれる各ストリームはPIDによって識別される。例えば、映画の映像に利用するビデオストリームには0x1011が、オーディオストリームには0x1100から0x111Fまでが、プレゼンテーショングラフィックスには0x1200から0x121Fまでが、インタラクティブグラフィックスストリームには0x1400から0x141Fまでが、映画の副映像に利用するビデオストリームには0x1B00から0x1B1Fまで、主音声とミキシングする副音声に利用するオーディオストリームには0x1A00から0x1A1Fが、それぞれ割り当てられている。
 図30は、多重化データがどのように多重化されるかを模式的に示す図である。まず、複数のビデオフレームからなるビデオストリームex235、複数のオーディオフレームからなるオーディオストリームex238を、それぞれPESパケット列ex236およびex239に変換し、TSパケットex237およびex240に変換する。同じくプレゼンテーショングラフィックスストリームex241およびインタラクティブグラフィックスex244のデータをそれぞれPESパケット列ex242およびex245に変換し、さらにTSパケットex243およびex246に変換する。多重化データex247はこれらのTSパケットを1本のストリームに多重化することで構成される。
 図31は、PESパケット列に、ビデオストリームがどのように格納されるかをさらに詳しく示している。図31における第1段目はビデオストリームのビデオフレーム列を示す。第2段目は、PESパケット列を示す。図31の矢印yy1,yy2, yy3, yy4に示すように、ビデオストリームにおける複数のVideo Presentation UnitであるIピクチャ、Bピクチャ、Pピクチャは、ピクチャ毎に分割され、PESパケットのペイロードに格納される。各PESパケットはPESヘッダを持ち、PESヘッダには、ピクチャの表示時刻であるPTS(Presentation Time-Stamp)やピクチャの復号時刻であるDTS(Decoding Time-Stamp)が格納される。
 図32は、多重化データに最終的に書き込まれるTSパケットの形式を示している。TSパケットは、ストリームを識別するPIDなどの情報を持つ4ByteのTSヘッダとデータを格納する184ByteのTSペイロードから構成される188Byte固定長のパケットであり、上記PESパケットは分割されTSペイロードに格納される。BD-ROMの場合、TSパケットには、4ByteのTP_Extra_Headerが付与され、192Byteのソースパケットを構成し、多重化データに書き込まれる。TP_Extra_HeaderにはATS(Arrival_Time_Stamp)などの情報が記載される。ATSは当該TSパケットのデコーダのPIDフィルタへの転送開始時刻を示す。多重化データには図32下段に示すようにソースパケットが並ぶこととなり、多重化データの先頭からインクリメントする番号はSPN(ソースパケットナンバー)と呼ばれる。
 また、多重化データに含まれるTSパケットには、映像・音声・字幕などの各ストリーム以外にもPAT(Program Association Table)、PMT(Program Map Table)、PCR(Program Clock Reference)などがある。PATは多重化データ中に利用されるPMTのPIDが何であるかを示し、PAT自身のPIDは0で登録される。PMTは、多重化データ中に含まれる映像・音声・字幕などの各ストリームのPIDと各PIDに対応するストリームの属性情報を持ち、また多重化データに関する各種ディスクリプタを持つ。ディスクリプタには多重化データのコピーを許可・不許可を指示するコピーコントロール情報などがある。PCRは、ATSの時間軸であるATC(Arrival Time Clock)とPTS・DTSの時間軸であるSTC(System Time Clock)の同期を取るために、そのPCRパケットがデコーダに転送されるATSに対応するSTC時間の情報を持つ。
 図33はPMTのデータ構造を詳しく説明する図である。PMTの先頭には、そのPMTに含まれるデータの長さなどを記したPMTヘッダが配置される。その後ろには、多重化データに関するディスクリプタが複数配置される。上記コピーコントロール情報などが、ディスクリプタとして記載される。ディスクリプタの後には、多重化データに含まれる各ストリームに関するストリーム情報が複数配置される。ストリーム情報は、ストリームの圧縮コーデックなどを識別するためストリームタイプ、ストリームのPID、ストリームの属性情報(フレームレート、アスペクト比など)が記載されたストリームディスクリプタから構成される。ストリームディスクリプタは多重化データに存在するストリームの数だけ存在する。
 記録媒体などに記録する場合には、上記多重化データは、多重化データ情報ファイルと共に記録される。
 多重化データ情報ファイルは、図34に示すように多重化データの管理情報であり、多重化データと1対1に対応し、多重化データ情報、ストリーム属性情報とエントリマップから構成される。
 多重化データ情報は図34に示すようにシステムレート、再生開始時刻、再生終了時刻から構成されている。システムレートは多重化データの、後述するシステムターゲットデコーダのPIDフィルタへの最大転送レートを示す。多重化データ中に含まれるATSの間隔はシステムレート以下になるように設定されている。再生開始時刻は多重化データの先頭のビデオフレームのPTSであり、再生終了時刻は多重化データの終端のビデオフレームのPTSに1フレーム分の再生間隔を足したものが設定される。
 ストリーム属性情報は図35に示すように、多重化データに含まれる各ストリームについての属性情報が、PID毎に登録される。属性情報はビデオストリーム、オーディオストリーム、プレゼンテーショングラフィックスストリーム、インタラクティブグラフィックスストリーム毎に異なる情報を持つ。ビデオストリーム属性情報は、そのビデオストリームがどのような圧縮コーデックで圧縮されたか、ビデオストリームを構成する個々のピクチャデータの解像度がどれだけであるか、アスペクト比はどれだけであるか、フレームレートはどれだけであるかなどの情報を持つ。オーディオストリーム属性情報は、そのオーディオストリームがどのような圧縮コーデックで圧縮されたか、そのオーディオストリームに含まれるチャンネル数は何であるか、何の言語に対応するか、サンプリング周波数がどれだけであるかなどの情報を持つ。これらの情報は、プレーヤが再生する前のデコーダの初期化などに利用される。
 本実施の形態においては、上記多重化データのうち、PMTに含まれるストリームタイプを利用する。また、記録媒体に多重化データが記録されている場合には、多重化データ情報に含まれる、ビデオストリーム属性情報を利用する。具体的には、上記各実施の形態で示した動画像符号化方法または装置において、PMTに含まれるストリームタイプ、または、ビデオストリーム属性情報に対し、上記各実施の形態で示した動画像符号化方法または装置によって生成された映像データであることを示す固有の情報を設定するステップまたは手段を設ける。この構成により、上記各実施の形態で示した動画像符号化方法または装置によって生成した映像データと、他の規格に準拠する映像データとを識別することが可能になる。
 また、本実施の形態における動画像復号化方法のステップを図36に示す。ステップexS100において、多重化データからPMTに含まれるストリームタイプ、または、多重化データ情報に含まれるビデオストリーム属性情報を取得する。次に、ステップexS101において、ストリームタイプ、または、ビデオストリーム属性情報が上記各実施の形態で示した動画像符号化方法または装置によって生成された多重化データであることを示しているか否かを判断する。そして、ストリームタイプ、または、ビデオストリーム属性情報が上記各実施の形態で示した動画像符号化方法または装置によって生成されたものであると判断された場合には、ステップexS102において、上記各実施の形態で示した動画像復号方法により復号を行う。また、ストリームタイプ、または、ビデオストリーム属性情報が、従来のMPEG-2、MPEG4-AVC、VC-1などの規格に準拠するものであることを示している場合には、ステップexS103において、従来の規格に準拠した動画像復号方法により復号を行う。
 このように、ストリームタイプ、または、ビデオストリーム属性情報に新たな固有値を設定することにより、復号する際に、上記各実施の形態で示した動画像復号化方法または装置で復号可能であるかを判断することができる。従って、異なる規格に準拠する多重化データが入力された場合であっても、適切な復号化方法または装置を選択することができるため、エラーを生じることなく復号することが可能となる。また、本実施の形態で示した動画像符号化方法または装置、または、動画像復号方法または装置を、上述したいずれの機器・システムに用いることも可能である。
 (実施の形態8)
 上記各実施の形態で示した動画像符号化方法および装置、動画像復号化方法および装置は、典型的には集積回路であるLSIで実現される。一例として、図37に1チップ化されたLSIex500の構成を示す。LSIex500は、以下に説明する要素ex501、ex502、ex503、ex504、ex505、ex506、ex507、ex508、ex509を備え、各要素はバスex510を介して接続している。電源回路部ex505は電源がオン状態の場合に各部に対して電力を供給することで動作可能な状態に起動する。
 例えば符号化処理を行う場合には、LSIex500は、CPUex502、メモリコントローラex503、ストリームコントローラex504、駆動周波数制御部ex512等を有する制御部ex501の制御に基づいて、AV I/Oex509によりマイクex117やカメラex113等からAV信号を入力する。入力されたAV信号は、一旦SDRAM等の外部のメモリex511に蓄積される。制御部ex501の制御に基づいて、蓄積したデータは処理量や処理速度に応じて適宜複数回に分けるなどされ信号処理部ex507に送られ、信号処理部ex507において音声信号の符号化および/または映像信号の符号化が行われる。ここで映像信号の符号化処理は上記各実施の形態で説明した符号化処理である。信号処理部ex507ではさらに、場合により符号化された音声データと符号化された映像データを多重化するなどの処理を行い、ストリームI/Oex506から外部に出力する。この出力された多重化データは、基地局ex107に向けて送信されたり、または記録メディアex215に書き込まれたりする。なお、多重化する際には同期するよう、一旦バッファex508にデータを蓄積するとよい。
 なお、上記では、メモリex511がLSIex500の外部の構成として説明したが、LSIex500の内部に含まれる構成であってもよい。バッファex508も1つに限ったものではなく、複数のバッファを備えていてもよい。また、LSIex500は1チップ化されてもよいし、複数チップ化されてもよい。
 また、上記では、制御部ex510が、CPUex502、メモリコントローラex503、ストリームコントローラex504、駆動周波数制御部ex512等を有するとしているが、制御部ex510の構成は、この構成に限らない。例えば、信号処理部ex507がさらにCPUを備える構成であってもよい。信号処理部ex507の内部にもCPUを設けることにより、処理速度をより向上させることが可能になる。また、他の例として、CPUex502が信号処理部ex507、または信号処理部ex507の一部である例えば音声信号処理部を備える構成であってもよい。このような場合には、制御部ex501は、信号処理部ex507、またはその一部を有するCPUex502を備える構成となる。
 なお、ここでは、LSIとしたが、集積度の違いにより、IC、システムLSI、スーパーLSI、ウルトラLSIと呼称されることもある。
 また、集積回路化の手法はLSIに限るものではなく、専用回路または汎用プロセッサで実現してもよい。LSI製造後に、プログラムすることが可能なFPGA(Field Programmable Gate Array)や、LSI内部の回路セルの接続や設定を再構成可能なリコンフィギュラブル・プロセッサを利用してもよい。
 さらには、半導体技術の進歩または派生する別技術によりLSIに置き換わる集積回路化の技術が登場すれば、当然、その技術を用いて機能ブロックの集積化を行ってもよい。バイオ技術の適応等が可能性としてありえる。
 (実施の形態9)
 上記各実施の形態で示した動画像符号化方法または装置によって生成された映像データを復号する場合、従来のMPEG-2、MPEG4-AVC、VC-1などの規格に準拠する映像データを復号する場合に比べ、処理量が増加することが考えられる。そのため、LSIex500において、従来の規格に準拠する映像データを復号する際のCPUex502の駆動周波数よりも高い駆動周波数に設定する必要がある。しかし、駆動周波数を高くすると、消費電力が高くなるという課題が生じる。
 この課題を解決するために、テレビex300、LSIex500などの動画像復号化装置は、映像データがどの規格に準拠するものであるかを識別し、規格に応じて駆動周波数を切替える構成とする。図38は、本実施の形態における構成ex800を示している。駆動周波数切替え部ex803は、映像データが、上記各実施の形態で示した動画像符号化方法または装置によって生成されたものである場合には、駆動周波数を高く設定する。そして、上記各実施の形態で示した動画像復号化方法を実行する復号処理部ex801に対し、映像データを復号するよう指示する。一方、映像データが、従来の規格に準拠する映像データである場合には、映像データが、上記各実施の形態で示した動画像符号化方法または装置によって生成されたものである場合に比べ、駆動周波数を低く設定する。そして、従来の規格に準拠する復号処理部ex802に対し、映像データを復号するよう指示する。
 より具体的には、駆動周波数切替え部ex803は、図37のCPUex502と駆動周波数制御部ex512から構成される。また、上記各実施の形態で示した動画像復号化方法を実行する復号処理部ex801、および、従来の規格に準拠する復号処理部ex802は、図37の信号処理部ex507に該当する。CPUex502は、映像データがどの規格に準拠するものであるかを識別する。そして、CPUex502からの信号に基づいて、駆動周波数制御部ex512は、駆動周波数を設定する。また、CPUex502からの信号に基づいて、信号処理部ex507は、映像データの復号を行う。ここで、映像データの識別には、例えば、実施の形態7で記載した識別情報を利用することが考えられる。識別情報に関しては、実施の形態7で記載したものに限られず、映像データがどの規格に準拠するか識別できる情報であればよい。例えば、映像データがテレビに利用されるものであるか、ディスクに利用されるものであるかなどを識別する外部信号に基づいて、映像データがどの規格に準拠するものであるか識別可能である場合には、このような外部信号に基づいて識別してもよい。また、CPUex502における駆動周波数の選択は、例えば、図40のような映像データの規格と、駆動周波数とを対応付けたルックアップテーブルに基づいて行うことが考えられる。ルックアップテーブルを、バッファex508や、LSIの内部メモリに格納しておき、CPUex502がこのルックアップテーブルを参照することにより、駆動周波数を選択することが可能である。
 図39は、本実施の形態の方法を実施するステップを示している。まず、ステップexS200では、信号処理部ex507において、多重化データから識別情報を取得する。次に、ステップexS201では、CPUex502において、識別情報に基づいて映像データが上記各実施の形態で示した符号化方法または装置によって生成されたものであるか否かを識別する。映像データが上記各実施の形態で示した符号化方法または装置によって生成されたものである場合には、ステップexS202において、駆動周波数を高く設定する信号を、CPUex502が駆動周波数制御部ex512に送る。そして、駆動周波数制御部ex512において、高い駆動周波数に設定される。一方、従来のMPEG-2、MPEG4-AVC、VC-1などの規格に準拠する映像データであることを示している場合には、ステップexS203において、駆動周波数を低く設定する信号を、CPUex502が駆動周波数制御部ex512に送る。そして、駆動周波数制御部ex512において、映像データが上記各実施の形態で示した符号化方法または装置によって生成されたものである場合に比べ、低い駆動周波数に設定される。
 さらに、駆動周波数の切替えに連動して、LSIex500またはLSIex500を含む装置に与える電圧を変更することにより、省電力効果をより高めることが可能である。例えば、駆動周波数を低く設定する場合には、これに伴い、駆動周波数を高く設定している場合に比べ、LSIex500またはLSIex500を含む装置に与える電圧を低く設定することが考えられる。
 また、駆動周波数の設定方法は、復号する際の処理量が大きい場合に、駆動周波数を高く設定し、復号する際の処理量が小さい場合に、駆動周波数を低く設定すればよく、上述した設定方法に限らない。例えば、MPEG4-AVC規格に準拠する映像データを復号する処理量の方が、上記各実施の形態で示した動画像符号化方法または装置により生成された映像データを復号する処理量よりも大きい場合には、駆動周波数の設定を上述した場合の逆にすることが考えられる。
 さらに、駆動周波数の設定方法は、駆動周波数を低くする構成に限らない。例えば、識別情報が、上記各実施の形態で示した動画像符号化方法または装置によって生成された映像データであることを示している場合には、LSIex500またはLSIex500を含む装置に与える電圧を高く設定し、従来のMPEG-2、MPEG4-AVC、VC-1などの規格に準拠する映像データであることを示している場合には、LSIex500またはLSIex500を含む装置に与える電圧を低く設定することも考えられる。また、他の例としては、識別情報が、上記各実施の形態で示した動画像符号化方法または装置によって生成された映像データであることを示している場合には、CPUex502の駆動を停止させることなく、従来のMPEG-2、MPEG4-AVC、VC-1などの規格に準拠する映像データであることを示している場合には、処理に余裕があるため、CPUex502の駆動を一時停止させることも考えられる。識別情報が、上記各実施の形態で示した動画像符号化方法または装置によって生成された映像データであることを示している場合であっても、処理に余裕があれば、CPUex502の駆動を一時停止させることも考えられる。この場合は、従来のMPEG-2、MPEG4-AVC、VC-1などの規格に準拠する映像データであることを示している場合に比べて、停止時間を短く設定することが考えられる。
 このように、映像データが準拠する規格に応じて、駆動周波数を切替えることにより、省電力化を図ることが可能になる。また、電池を用いてLSIex500またはLSIex500を含む装置を駆動している場合には、省電力化に伴い、電池の寿命を長くすることが可能である。
 (実施の形態10)
 テレビや、携帯電話など、上述した機器・システムには、異なる規格に準拠する複数の映像データが入力される場合がある。このように、異なる規格に準拠する複数の映像データが入力された場合にも復号できるようにするために、LSIex500の信号処理部ex507が複数の規格に対応している必要がある。しかし、それぞれの規格に対応する信号処理部ex507を個別に用いると、LSIex500の回路規模が大きくなり、また、コストが増加するという課題が生じる。
 この課題を解決するために、上記各実施の形態で示した動画像復号方法を実行するための復号処理部と、従来のMPEG-2、MPEG4-AVC、VC-1などの規格に準拠する復号処理部とを一部共有化する構成とする。この構成例を図41Aのex900に示す。例えば、上記各実施の形態で示した動画像復号方法と、MPEG4-AVC規格に準拠する動画像復号方法とは、エントロピー符号化、逆量子化、デブロッキング・フィルタ、動き補償などの処理において処理内容が一部共通する。共通する処理内容については、MPEG4-AVC規格に対応する復号処理部ex902を共有し、MPEG4-AVC規格に対応しない、本発明特有の他の処理内容については、専用の復号処理部ex901を用いるという構成が考えられる。特に、本発明は、予測に特徴を有していることから、例えば、予測については専用の復号処理部ex901を用い、それ以外の逆量子化、エントロピー符号化、デブロッキング・フィルタのいずれか、または、全ての処理については、復号処理部を共有することが考えられる。復号処理部の共有化に関しては、共通する処理内容については、上記各実施の形態で示した動画像復号化方法を実行するための復号処理部を共有し、MPEG4-AVC規格に特有の処理内容については、専用の復号処理部を用いる構成であってもよい。
 また、処理を一部共有化する他の例を図41Bのex1000に示す。この例では、本発明に特有の処理内容に対応した専用の復号処理部ex1001と、他の従来規格に特有の処理内容に対応した専用の復号処理部ex1002と、本発明の動画像復号方法と他の従来規格の動画像復号方法とに共通する処理内容に対応した共用の復号処理部ex1003とを用いる構成としている。ここで、専用の復号処理部ex1001、ex1002は、必ずしも本発明、または、他の従来規格に特有の処理内容に特化したものではなく、他の汎用処理を実行できるものであってもよい。また、本実施の形態の構成を、LSIex500で実装することも可能である。
 このように、本発明の動画像復号方法と、従来の規格の動画像復号方法とで共通する処理内容について、復号処理部を共有することにより、LSIの回路規模を小さくし、かつ、コストを低減することが可能である。
 本発明に係る画像符号化方法および画像復号方法は、例えば、テレビ、デジタルビデオレコーダー、カーナビゲーション、携帯電話、デジタルカメラ、または、デジタルビデオカメラ等に利用可能である。
  100、300 画像符号化装置
  122、405 復号部
  123 逆量子化逆変換部
  124 フレームメモリ
  125 候補ベクトル導出部
  126 エッジベクトル導出部
  127、304、404 予測部
  129 加算部
  142 量子化変換部
  143、305 符号化部
  144 減算部
  200、400 画像復号装置
  301、401 エッジ検出部
  302、402 線分長取得部
  303、403 予測方向選択部
 

Claims (20)

  1.  画像をブロック毎に符号化する画像符号化方法であって、
     符号化対象ブロックに隣接する1以上の隣接ブロックから、複数のエッジを検出するエッジ検出ステップと、
     前記複数のエッジのそれぞれについて、エッジの位置を通り前記エッジの方向に沿う直線と前記符号化対象ブロックとの共通部分である交差線分の長さを取得することにより、前記複数のエッジに対応する複数の交差線分の長さを取得する線分長取得ステップと、
     前記複数のエッジの方向から、前記複数のエッジに対応する前記複数の交差線分の長さに依存させて、予測方向を選択する予測方向選択ステップと、
     前記予測方向を用いて、前記符号化対象ブロックに含まれる画素値を予測することにより、予測画像ブロックを生成する予測ステップと、
     前記予測画像ブロックと前記符号化対象ブロックとの差分である差分画像ブロックを符号化する符号化ステップとを含む
     画像符号化方法。
  2.  前記予測方向選択ステップでは、前記複数のエッジに対応する前記複数の交差線分の長さと、前記複数のエッジの強さとに依存させて、前記予測方向を選択する
     請求項1に記載の画像符号化方法。
  3.  前記エッジ検出ステップでは、第1検出エッジと、前記第1検出エッジとは異なる第2検出エッジとを含む前記複数のエッジを検出し、
     前記予測方向選択ステップでは、前記第1検出エッジに対応する交差線分の長さと前記第1検出エッジの強さとの積が、前記第2検出エッジに対応する交差線分の長さと前記第2検出エッジの強さとの積よりも大きい場合、前記第1検出エッジの方向を前記予測方向として選択する
     請求項2に記載の画像符号化方法。
  4.  前記予測方向選択ステップでは、前記複数のエッジの方向から、前記複数のエッジに対応する前記複数の交差線分の長さに依存させて、複数の予測方向を選択し、
     前記予測ステップでは、前記複数の予測方向を用いて、前記符号化対象ブロックに含まれる画素値を予測する
     請求項1~3のいずれか1項に記載の画像符号化方法。
  5.  前記予測ステップでは、
     前記複数の予測方向のうち第1予測方向を用いて、前記符号化対象ブロックを前記複数の交差線分で分割することにより得られる複数の分割領域のうち第1分割領域に含まれる画素値を予測し、
     前記複数の予測方向のうち、前記第1予測方向とは異なる第2予測方向を用いて、前記複数の分割領域のうち、前記第1分割領域とは異なる第2分割領域に含まれる画素値を予測する
     請求項4に記載の画像符号化方法。
  6.  前記予測ステップでは、前記第1予測方向を用いて、前記複数の分割領域のうち、前記第1分割領域および前記第2分割領域とは異なる第3分割領域に含まれる画素値を予測することにより、第1予測値を取得し、前記第2予測方向を用いて、前記第3分割領域に含まれる前記画素値を予測することにより、第2予測値を取得し、前記第1予測値と前記第2予測値との平均を用いて、前記第3分割領域に含まれる前記画素値を予測する
     請求項5に記載の画像符号化方法。
  7.  前記予測ステップでは、前記複数の分割領域のうち、前記第1分割領域および前記第2分割領域とは異なる第3分割領域に含まれる画素位置の画素値を、前記複数の交差線分に沿う複数の直線の交点と、前記画素位置とを通る直線の方向を用いて、予測する
     請求項5に記載の画像符号化方法。
  8.  前記エッジ検出ステップでは、第1エッジと、前記第1エッジとは異なる第2エッジとを含む前記複数のエッジを検出し、
     前記予測方向選択ステップでは、前記複数のエッジの方向から、前記第1エッジの方向を前記第1予測方向として含み、前記第2エッジの方向を前記第2予測方向として含む前記複数の予測方向を選択し、
     前記予測ステップでは、
     前記第2エッジを通り前記第2エッジの方向に沿う直線で前記画像を分割することにより得られる2つの画像領域のうち前記第1エッジを含む画像領域に属し、前記第1エッジを通り前記第1エッジの方向に沿う直線で前記画像を分割することにより得られる2つの画像領域のうち前記第2エッジを含まない画像領域に属する前記第1分割領域に含まれる画素値を、前記第1予測方向を用いて、予測し、
     前記第1エッジを通り前記第1エッジの方向に沿う直線で前記画像を分割することにより得られる2つの画像領域のうち前記第2エッジを含む画像領域に属し、前記第2エッジを通り前記第2エッジの方向に沿う直線で前記画像を分割することにより得られる2つの画像領域のうち前記第1エッジを含まない画像領域に属する前記第2分割領域に含まれる画素値を、前記第2予測方向を用いて、予測する
     請求項5~7のいずれか1項に記載の画像符号化方法。
  9.  前記予測ステップでは、前記複数の予測方向のそれぞれを用いて、前記符号化対象ブロックに含まれる画素値を予測することにより、複数の予測値を取得し、前記複数の予測値の平均を用いて、前記符号化対象ブロックに含まれる前記画素値を予測する
     請求項4に記載の画像符号化方法。
  10.  画像をブロック毎に復号する画像復号方法であって、
     復号対象ブロックに隣接する1以上の隣接ブロックから、複数のエッジを検出するエッジ検出ステップと、
     前記複数のエッジのそれぞれについて、エッジの位置を通り前記エッジの方向に沿う直線と前記復号対象ブロックとの共通部分である交差線分の長さを取得することにより、前記複数のエッジに対応する複数の交差線分の長さを取得する線分長取得ステップと、
     前記複数のエッジの方向から、前記複数のエッジに対応する前記複数の交差線分の長さに依存させて、予測方向を選択する予測方向選択ステップと、
     前記予測方向を用いて、前記復号対象ブロックに含まれる画素値を予測することにより、予測画像ブロックを生成する予測ステップと、
     前記予測画像ブロックと前記復号対象ブロックとの差分である差分画像ブロックを復号し、前記差分画像ブロックと前記予測画像ブロックとを加算することにより、前記復号対象ブロックを復元する復号ステップとを含む
     画像復号方法。
  11.  前記予測方向選択ステップでは、前記複数のエッジに対応する前記複数の交差線分の長さと、前記複数のエッジの強さとに依存させて、前記予測方向を選択する
     請求項10に記載の画像復号方法。
  12.  前記エッジ検出ステップでは、第1検出エッジと、前記第1検出エッジとは異なる第2検出エッジとを含む前記複数のエッジを検出し、
     前記予測方向選択ステップでは、前記第1検出エッジに対応する交差線分の長さと前記第1検出エッジの強さとの積が、前記第2検出エッジに対応する交差線分の長さと前記第2検出エッジの強さとの積よりも大きい場合、前記第1検出エッジの方向を前記予測方向として選択する
     請求項11に記載の画像復号方法。
  13.  前記予測方向選択ステップでは、前記複数のエッジの方向から、前記複数のエッジに対応する前記複数の交差線分の長さに依存させて、複数の予測方向を選択し、
     前記予測ステップでは、前記複数の予測方向を用いて、前記復号対象ブロックに含まれる画素値を予測する
     請求項10~12のいずれか1項に記載の画像復号方法。
  14.  前記予測ステップでは、
     前記複数の予測方向のうち第1予測方向を用いて、前記復号対象ブロックを前記複数の交差線分で分割することにより得られる複数の分割領域のうち第1分割領域に含まれる画素値を予測し、
     前記複数の予測方向のうち、前記第1予測方向とは異なる第2予測方向を用いて、前記複数の分割領域のうち、前記第1分割領域とは異なる第2分割領域に含まれる画素値を予測する
     請求項13に記載の画像復号方法。
  15.  前記予測ステップでは、前記第1予測方向を用いて、前記複数の分割領域のうち、前記第1分割領域および前記第2分割領域とは異なる第3分割領域に含まれる画素値を予測することにより、第1予測値を取得し、前記第2予測方向を用いて、前記第3分割領域に含まれる前記画素値を予測することにより、第2予測値を取得し、前記第1予測値と前記第2予測値との平均を用いて、前記第3分割領域に含まれる前記画素値を予測する
     請求項14に記載の画像復号方法。
  16.  前記予測ステップでは、前記複数の分割領域のうち、前記第1分割領域および前記第2分割領域とは異なる第3分割領域に含まれる画素位置の画素値を、前記複数の交差線分に沿う複数の直線の交点と、前記画素位置とを通る直線の方向を用いて、予測する
     請求項14に記載の画像復号方法。
  17.  前記エッジ検出ステップでは、第1エッジと、前記第1エッジとは異なる第2エッジとを含む前記複数のエッジを検出し、
     前記予測方向選択ステップでは、前記複数のエッジの方向から、前記第1エッジの方向を前記第1予測方向として含み、前記第2エッジの方向を前記第2予測方向として含む前記複数の予測方向を選択し、
     前記予測ステップでは、
     前記第2エッジを通り前記第2エッジの方向に沿う直線で前記画像を分割することにより得られる2つの画像領域のうち前記第1エッジを含む画像領域に属し、前記第1エッジを通り前記第1エッジの方向に沿う直線で前記画像を分割することにより得られる2つの画像領域のうち前記第2エッジを含まない画像領域に属する前記第1分割領域に含まれる画素値を、前記第1予測方向を用いて、予測し、
     前記第1エッジを通り前記第1エッジの方向に沿う直線で前記画像を分割することにより得られる2つの画像領域のうち前記第2エッジを含む画像領域に属し、前記第2エッジを通り前記第2エッジの方向に沿う直線で前記画像を分割することにより得られる2つの画像領域のうち前記第1エッジを含まない画像領域に属する前記第2分割領域に含まれる画素値を、前記第2予測方向を用いて、予測する
     請求項14~16のいずれか1項に記載の画像復号方法。
  18.  前記予測ステップでは、前記複数の予測方向のそれぞれを用いて、前記復号対象ブロックに含まれる画素値を予測することにより、複数の予測値を取得し、前記複数の予測値の平均を用いて、前記復号対象ブロックに含まれる前記画素値を予測する
     請求項13に記載の画像復号方法。
  19.  画像をブロック毎に符号化する画像符号化装置であって、
     符号化対象ブロックに隣接する1以上の隣接ブロックから、複数のエッジを検出するエッジ検出部と、
     前記複数のエッジのそれぞれについて、エッジの位置を通り前記エッジの方向に沿う直線と前記符号化対象ブロックとの共通部分である交差線分の長さを取得することにより、前記複数のエッジに対応する複数の交差線分の長さを取得する線分長取得部と、
     前記複数のエッジの方向から、前記複数のエッジに対応する前記複数の交差線分の長さに依存させて、予測方向を選択する予測方向選択部と、
     前記予測方向を用いて、前記符号化対象ブロックに含まれる画素値を予測することにより、予測画像ブロックを生成する予測部と、
     前記予測画像ブロックと前記符号化対象ブロックとの差分である差分画像ブロックを符号化する符号化部とを備える
     画像符号化装置。
  20.  画像をブロック毎に復号する画像復号装置であって、
     復号対象ブロックに隣接する1以上の隣接ブロックから、複数のエッジを検出するエッジ検出部と、
     前記複数のエッジのそれぞれについて、エッジの位置を通り前記エッジの方向に沿う直線と前記復号対象ブロックとの共通部分である交差線分の長さを取得することにより、前記複数のエッジに対応する複数の交差線分の長さを取得する線分長取得部と、
     前記複数のエッジの方向から、前記複数のエッジに対応する前記複数の交差線分の長さに依存させて、予測方向を選択する予測方向選択部と、
     前記予測方向を用いて、前記復号対象ブロックに含まれる画素値を予測することにより、予測画像ブロックを生成する予測部と、
     前記予測画像ブロックと前記復号対象ブロックとの差分である差分画像ブロックを復号し、前記差分画像ブロックと前記予測画像ブロックとを加算することにより、前記復号対象ブロックを復元する復号部とを備える
     画像復号装置。
     
PCT/JP2011/002425 2010-04-29 2011-04-25 画像符号化方法、画像復号方法、画像符号化装置および画像復号装置 WO2011135841A1 (ja)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US32940610P 2010-04-29 2010-04-29
US61/329,406 2010-04-29

Publications (1)

Publication Number Publication Date
WO2011135841A1 true WO2011135841A1 (ja) 2011-11-03

Family

ID=44861163

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2011/002425 WO2011135841A1 (ja) 2010-04-29 2011-04-25 画像符号化方法、画像復号方法、画像符号化装置および画像復号装置

Country Status (1)

Country Link
WO (1) WO2011135841A1 (ja)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014157386A1 (ja) * 2013-03-29 2014-10-02 Kddi株式会社 動画像符号化装置及び動画像復号装置
JPWO2014104242A1 (ja) * 2012-12-28 2017-01-19 シャープ株式会社 画像復号装置、および画像符号化装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003520531A (ja) * 2000-01-21 2003-07-02 ノキア コーポレイション イメージをコード化する方法およびイメージコーダ
JP2007074726A (ja) * 2005-09-06 2007-03-22 Samsung Electronics Co Ltd 映像のイントラ予測符号化及び復号化方法、並びに装置
JP2009134620A (ja) * 2007-11-30 2009-06-18 Fujitsu Ltd 描画装置、描画プログラムおよび描画方法
WO2009090884A1 (ja) * 2008-01-18 2009-07-23 Panasonic Corporation 画像符号化方法及び画像復号方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003520531A (ja) * 2000-01-21 2003-07-02 ノキア コーポレイション イメージをコード化する方法およびイメージコーダ
JP2007074726A (ja) * 2005-09-06 2007-03-22 Samsung Electronics Co Ltd 映像のイントラ予測符号化及び復号化方法、並びに装置
JP2009134620A (ja) * 2007-11-30 2009-06-18 Fujitsu Ltd 描画装置、描画プログラムおよび描画方法
WO2009090884A1 (ja) * 2008-01-18 2009-07-23 Panasonic Corporation 画像符号化方法及び画像復号方法

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
ALI TABATABAI ET AL.: "AVC based Intra Prediction for Improved Visual Quality", JOINT COLLABORATIVE TEAM ON VIDEO CODING (JCT-VC) OF ITU-T SG16 WP3 AND ISO/IEC JTC1/ SC29/WG11 1ST MEETING: DRESDEN, ITU-T AND ISO/ IEC, 15 April 2010 (2010-04-15), pages 1 - 4 *
DONG LIU ET AL.: "Image Compression With Edge- Based Inpainting", IEEE TRANSACTIONS ON CIRSUITS AND SYSTEMS FOR VIDEO TECHNOLOGY, vol. 17, no. 10, October 2007 (2007-10-01), pages 1273 - 1287 *
TOMOYA, MOTTO KANTAN NI -SENBUN KOSA HANTEI, 4 July 2011 (2011-07-04), Retrieved from the Internet <URL:http://www5d.biglobe.ne.jp/-tomoya03/shtml/algorithm/Intersection.htm> [retrieved on 20110704] *
WILSON KWOK ET AL.: "Multi-Directional Interpolation for Spatial Error Concealment", IEEE TRANSACTIONS ON CONSUMER ELECTRONICS, vol. 39, no. 3, August 1993 (1993-08-01), pages 455 - 460 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2014104242A1 (ja) * 2012-12-28 2017-01-19 シャープ株式会社 画像復号装置、および画像符号化装置
WO2014157386A1 (ja) * 2013-03-29 2014-10-02 Kddi株式会社 動画像符号化装置及び動画像復号装置
JP2014200021A (ja) * 2013-03-29 2014-10-23 Kddi株式会社 動画像符号化装置及び動画像復号装置
US10356402B2 (en) 2013-03-29 2019-07-16 Kddi Corporation Video encoding device and video decoding device

Similar Documents

Publication Publication Date Title
JP6064235B2 (ja) 符号化方法、プログラムおよび符号化装置
JP5792347B2 (ja) 画像符号化方法及び画像符号化装置
JP2020043611A (ja) 復号化方法および復号化装置
WO2012090491A1 (ja) 画像符号化方法、画像復号方法、画像符号化装置、画像復号装置、および、画像符号化復号装置
WO2013001818A1 (ja) 画像復号方法、画像符号化方法、画像復号装置、画像符号化装置、および、画像符号化復号装置
WO2013061551A1 (ja) 画像符号化方法、画像復号方法、画像符号化装置および画像復号装置
JP6327435B2 (ja) 画像符号化方法、画像復号方法、画像符号化装置、及び、画像復号装置
JP6210375B2 (ja) 画像符号化方法、画像復号方法、画像符号化装置、画像復号装置及び画像符号化復号装置
JP6004375B2 (ja) 画像符号化方法および画像復号化方法
JP6414712B2 (ja) 多数の参照ピクチャを用いる動画像符号化方法、動画像復号方法、動画像符号化装置、および動画像復号方法
JP2013526199A (ja) 予測誤差から導出されるブロック形状を用いた予測符号化
WO2012023281A1 (ja) 動画像復号方法、動画像符号化方法、動画像復号装置、及び、動画像符号化装置
WO2012120840A1 (ja) 画像復号方法、画像符号化方法、画像復号装置および画像符号化装置
WO2011129090A1 (ja) 符号化歪み除去方法、符号化方法、復号化方法、符号化歪み除去装置、符号化装置、および復号化装置
WO2013001813A1 (ja) 画像符号化方法、画像復号方法、画像符号化装置および画像復号装置
JP6399433B2 (ja) 画像符号化方法、画像復号方法、画像符号化装置及び画像復号装置
JP5873029B2 (ja) 動画像符号化方法及び動画像復号化方法
JP6187887B2 (ja) 符号化方法および符号化装置
JP2018133820A (ja) 符号化方法、復号方法、符号化装置、および復号装置
WO2011135841A1 (ja) 画像符号化方法、画像復号方法、画像符号化装置および画像復号装置
WO2013014884A1 (ja) 動画像符号化方法、動画像符号化装置、動画像復号化方法、および動画像復号化装置
WO2015001700A1 (ja) 画像符号化方法、及び、画像符号化装置
WO2012096157A1 (ja) 画像符号化方法、画像復号方法、画像符号化装置および画像復号装置
WO2012042810A1 (ja) 画像符号化方法、画像復号方法、画像符号化装置、画像復号装置および画像処理システム
WO2012086166A1 (ja) 画像符号化方法及び画像復号化方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11774627

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 13641683

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11774627

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: JP