[go: up one dir, main page]

WO2010001916A1 - 画像処理装置および方法 - Google Patents

画像処理装置および方法 Download PDF

Info

Publication number
WO2010001916A1
WO2010001916A1 PCT/JP2009/062026 JP2009062026W WO2010001916A1 WO 2010001916 A1 WO2010001916 A1 WO 2010001916A1 JP 2009062026 W JP2009062026 W JP 2009062026W WO 2010001916 A1 WO2010001916 A1 WO 2010001916A1
Authority
WO
WIPO (PCT)
Prior art keywords
motion vector
prediction
image
motion
block
Prior art date
Legal status (The legal status 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 status listed.)
Ceased
Application number
PCT/JP2009/062026
Other languages
English (en)
French (fr)
Inventor
佐藤 数史
矢ケ崎 陽一
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sony Corp
Original Assignee
Sony Corp
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 Sony Corp filed Critical Sony Corp
Priority to US13/001,373 priority Critical patent/US20110103486A1/en
Priority to CN2009801253546A priority patent/CN102077596A/zh
Publication of WO2010001916A1 publication Critical patent/WO2010001916A1/ja
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

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
    • 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/132Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
    • 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/46Embedding additional information in the video signal during the compression process
    • 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/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • 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/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/523Motion estimation or motion compensation with sub-pixel accuracy
    • 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/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/57Motion estimation characterised by a search window with variable size or shape
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding

Definitions

  • the present invention relates to an image processing apparatus and method, and more particularly, to an image processing apparatus and method that suppresses a decrease in compression efficiency.
  • H.264 Motion Picture Experts Group
  • H.264 / AVC Advanced Video Coding
  • motion prediction / compensation processing with 1/2 pixel accuracy is performed by linear interpolation processing.
  • prediction / compensation processing with 1/4 pixel accuracy using a 6-tap FIR (Finite Impulse Response Filter) filter is performed.
  • motion prediction / compensation processing is performed in units of 16 ⁇ 16 pixels in the frame motion compensation mode, and each of the first field and the second field is performed in the field motion compensation mode.
  • motion prediction / compensation processing is performed in units of 16 ⁇ 8 pixels.
  • H. in the H.264 / AVC format motion prediction / compensation can be performed by changing the block size. That is, H.I. In the H.264 / AVC format, one macroblock composed of 16 ⁇ 16 pixels is divided into any of 16 ⁇ 16, 16 ⁇ 8, 8 ⁇ 16, or 8 ⁇ 8 partitions, and each is independent. It is possible to have motion vector information.
  • An 8 ⁇ 8 partition can be divided into 8 ⁇ 8, 8 ⁇ 4, 4 ⁇ 8, or 4 ⁇ 4 subpartitions and have independent motion vector information.
  • this method uses a decoded image for matching, it is possible to perform the same processing in the encoding device and the decoding device by setting a search range in advance. In other words, by performing the prediction / compensation processing as described above in the decoding device, it is not necessary to have motion vector information in the compressed image information from the encoding device, so that it is possible to suppress a decrease in encoding efficiency. It is.
  • Patent Document 1 when the technique of Patent Document 1 is applied to the prediction / compensation processing with decimal pixel accuracy, the pixel value of the region of the image to be encoded is not used or the pixel value used for matching is small. As a result, the prediction performance (residual) is lowered, and as a result, there is a possibility that the coding efficiency may be lowered although it is not necessary to have a motion vector.
  • the present invention has been made in view of such a situation, and suppresses a decrease in compression efficiency.
  • An image processing apparatus provides a decoding unit that decodes encoded motion vector information, and an integer pixel accuracy of a first target block of a frame with respect to the first target block.
  • a first motion prediction compensation unit that generates a predicted image with integer pixel accuracy by searching for a motion vector using a template that is adjacent in positional relationship and generated from a decoded image, and decoded by the decoding unit
  • a second motion prediction / compensation unit that generates a predicted image with decimal pixel accuracy using information on a motion vector with decimal pixel accuracy of the first target block.
  • the second motion prediction / compensation unit is a block that has been encoded, and uses the motion vector information for an adjacent block that is adjacent to the first target block to predict the motion vector with decimal pixel accuracy. A value can be generated.
  • the second motion prediction / compensation unit is a motion of a corresponding block which is a block of an encoded frame different from the frame and which is a block corresponding to the first target block and a block adjacent to the corresponding block.
  • the predicted value of the motion vector with decimal pixel accuracy can be generated using vector information or motion vector information for the corresponding block and the adjacent block.
  • the motion vector of the second target block of the frame is searched by the third motion prediction / compensation unit that searches for the motion vector using the second target block, and the first or second motion prediction / compensation unit
  • the image processing unit may further include a predicted image based on a motion vector and an image selection unit that selects one of the predicted images based on the motion vector searched by the third motion prediction / compensation unit.
  • an image processing apparatus decodes encoded motion vector information, and is adjacent to the target block in a predetermined positional relationship with respect to integer pixel accuracy of the target block of the frame.
  • an integer pixel accuracy predicted image is generated, and using the decoded decimal pixel accuracy motion vector information of the target block, Generating a predicted image with decimal pixel accuracy.
  • An image processing apparatus generates an integer pixel precision motion vector of a first target block of a frame adjacent to the first target block in a predetermined positional relationship and is generated from a decoded image.
  • a first motion prediction / compensation unit that searches using a template, and a second motion prediction / compensation that searches for a motion vector with decimal pixel precision of the first target block using the first target block
  • an encoding unit that encodes the motion vector information of the decimal pixel precision searched by the second motion prediction / compensation unit as the motion vector information for the first target block.
  • the second motion prediction / compensation unit is a block that has been encoded, and uses the motion vector information for an adjacent block that is adjacent to the first target block to predict the motion vector with decimal pixel accuracy.
  • a value is generated, and the encoding unit can encode the difference between the motion vector information of the decimal pixel precision and the predicted value as the motion vector information for the first target block.
  • the second motion prediction / compensation unit is a motion of a corresponding block which is a block of an encoded frame different from the frame and which is a block corresponding to the first target block and a block adjacent to the corresponding block.
  • the vector information or the motion vector information for the corresponding block and the adjacent block is used to generate a predicted value of the decimal pixel precision motion vector, and the encoding unit performs the motion vector for the first target block.
  • the difference between the motion vector information of the decimal pixel accuracy and the predicted value can be encoded.
  • the encoding unit has a case where the size of the first target block is 16 ⁇ 16 pixels, the predicted value of the motion vector with decimal pixel precision is 0, and all orthogonal transform coefficients are 0 As the motion vector information for the first target block, only a flag indicating that the first target block is a template skip block can be encoded.
  • the motion vector of the second target block of the frame is searched by the third motion prediction / compensation unit that searches for the motion vector using the second target block, and the first or second motion prediction / compensation unit
  • the image processing unit may further include a predicted image based on a motion vector and an image selection unit that selects one of the predicted images based on the motion vector searched by the third motion prediction / compensation unit.
  • the encoding unit When performing the arithmetic coding, the encoding unit includes a first context for the first target block targeted by the first and second motion prediction compensation units, and a third motion prediction compensation unit. Define a second context for the second target block as a target, encode motion vector information for the first target block using the first context, and move for the second target block. Vector information can be encoded using the second context.
  • the encoding unit When performing the arithmetic encoding, the encoding unit defines one context, and encodes the motion vector information for the first target block and the motion vector information for the second target block using the context.
  • the encoding unit When performing the arithmetic coding, the encoding unit defines a first context for motion vector information with integer pixel precision and a second context for motion vector information with decimal pixel precision, respectively, Of the motion vector information for the target block, the decimal pixel precision motion vector information is encoded using the second context, and among the motion vector information for the second target block, the integer pixel precision Motion vector information can be encoded using the first context, and the decimal pixel precision motion vector information can be encoded using the second context.
  • An image processing method uses an integer pixel precision motion vector of a target block of a frame adjacent to the target block in a predetermined positional relationship and a template generated from a decoded image. Search, search for the motion vector with decimal pixel accuracy of the target block using the target block, and encode the information of the searched motion vector with decimal pixel accuracy as the motion vector information for the target block Including the steps of:
  • encoded motion vector information is decoded. Then, with regard to the integer pixel accuracy of the target block of the frame, prediction of integer pixel accuracy is performed by searching for a motion vector using a template that is adjacent to the target block in a predetermined positional relationship and is generated from the decoded image. An image is generated, and a predicted image with decimal pixel accuracy is generated using the decoded motion vector information with decimal pixel accuracy of the target block.
  • an integer pixel precision motion vector of a target block of a frame is searched using a template that is adjacent to the target block in a predetermined positional relationship and is generated from a decoded image.
  • a motion vector with decimal pixel accuracy of the target block is searched using the target block. Then, as the motion vector information for the target block, the searched motion vector information with decimal pixel precision is encoded.
  • an image can be decoded. Further, according to one aspect of the present invention, it is possible to suppress a decrease in compression efficiency.
  • an image can be encoded. Moreover, according to the other aspect of this invention, the fall of compression efficiency can be suppressed.
  • step S32 of FIG. It is a figure explaining the direction of intra prediction. It is a figure explaining intra prediction. It is a flowchart explaining the inter motion prediction process of step S32 of FIG. It is a figure explaining the example of the production
  • FIG. 1 shows a configuration of an embodiment of an image encoding device of the present invention.
  • the image encoding device 51 includes an A / D conversion unit 61, a screen rearrangement buffer 62, a calculation unit 63, an orthogonal transformation unit 64, a quantization unit 65, a lossless encoding unit 66, a storage buffer 67, and an inverse quantization unit 68.
  • the unit 77, the predicted image selection unit 78, and the rate control unit 79 are configured.
  • This image encoding device 51 is, for example, H.264. H.264 and MPEG-4 Part 10 (Advanced Video Coding) (hereinafter referred to as H.264 / AVC) format for compression coding.
  • H.264 / AVC Advanced Video Coding
  • H. In the H.264 / AVC format motion prediction / compensation is performed with a variable block size. That is, H.I.
  • one macroblock composed of 16 ⁇ 16 pixels is converted into 16 ⁇ 16 pixels, 16 ⁇ 8 pixels, 8 ⁇ 16 pixels, or 8 ⁇ 8 pixels as shown in FIG. It is possible to divide into any partition and have independent motion vector information.
  • the 8 ⁇ 8 pixel partition is divided into 8 ⁇ 8 pixel, 8 ⁇ 4 pixel, 4 ⁇ 8 pixel, or 4 ⁇ 4 pixel subpartitions, respectively. It is possible to have independent motion vector information.
  • the position A indicates the position of the integer precision pixel
  • the positions b, c, and d indicate the positions of the 1/2 pixel precision
  • the positions e1, e2, and e3 indicate the positions of the 1/4 pixel precision.
  • max_pix When the input image has 8-bit precision, the value of max_pix is 255.
  • the pixel values at the positions b and d are generated by the following equation (2) using a 6-tap FIR filter.
  • the pixel value at the position c is generated as in the following Expression (3) by applying a 6-tap FIR filter in the horizontal direction and the vertical direction.
  • the clip process is executed only once at the end after performing both the horizontal and vertical product-sum processes.
  • the positions e1 to e3 are generated by linear interpolation as in the following equation (4).
  • the A / D conversion unit 61 performs A / D conversion on the input image, outputs it to the screen rearrangement buffer 62, and stores it.
  • the screen rearrangement buffer 62 rearranges the stored frames in the display order in the order of frames for encoding in accordance with GOP (Group of Picture).
  • the calculation unit 63 subtracts the prediction image from the intra prediction unit 74 or the prediction image from the motion prediction / compensation unit 75 selected by the prediction image selection unit 78 from the image read from the screen rearrangement buffer 62, The difference information is output to the orthogonal transform unit 64.
  • the orthogonal transform unit 64 subjects the difference information from the calculation unit 63 to orthogonal transform such as discrete cosine transform and Karhunen-Loeve transform, and outputs the transform coefficient.
  • the quantization unit 65 quantizes the transform coefficient output from the orthogonal transform unit 64.
  • the quantized transform coefficient that is the output of the quantization unit 65 is input to the lossless encoding unit 66, where lossless encoding such as variable length encoding and arithmetic encoding is performed and compressed.
  • the lossless encoding unit 66 acquires information on intra prediction from the intra prediction unit 74 and acquires information on inter prediction and inter template prediction from the motion prediction / compensation unit 75.
  • the lossless encoding unit 66 encodes the quantized transform coefficient and also encodes information related to intra prediction, information related to inter prediction and inter template prediction, and the like, and forms a part of header information in the compressed image.
  • the lossless encoding unit 66 supplies the encoded data to the accumulation buffer 67 for accumulation.
  • H.264 Variable length coding such as CAVLC (Context-Adaptive Variable Length ⁇ Coding) defined in H.264 / AVC format
  • lossless encoding processing such as arithmetic coding such as CABAC (Context-Adaptive Binary Arithmetic Coding) is performed.
  • CABAC Context-Adaptive Binary Arithmetic Coding
  • FIG. 4 shows a configuration example of the lossless encoding unit 66 that performs CABACBA encoding.
  • the lossless encoding unit 66 includes a context modeling unit 91, a binarizing unit 92, and an adaptive binary arithmetic encoding unit 93 including a probability estimation unit 94 and an encoding engine 95. Yes.
  • the context modeling unit 91 first converts a symbol (symbol) of a syntax element into an appropriate context model in accordance with a past history regarding an arbitrary syntax element in a compressed image.
  • a symbol symbol
  • CABAC CABAC encoding
  • f (X) is set to 1 when the macroblock X is a skipped macroblock that directly uses pixels at spatially corresponding positions in the reference frame, and is set to 0 otherwise.
  • the context Context (C) for the target macroblock C takes a value of 0, 1, 2 depending on the flags mb_skip_frag of the adjacent macroblocks A and B.
  • the flag mb_skip_frag for the target macroblock C is encoded by using one of the encoding engines 95 of 0, 1, and 2.
  • the binarization unit 92 converts the symbol of the element that is non-binarized data on the basis of the table shown in FIG.
  • binarization processing is performed based on a table defined separately instead of this table.
  • the syntax element binarized as described above is encoded by the adaptive binary arithmetic encoding unit 93 in the subsequent stage.
  • the adaptive binary arithmetic encoding unit 93 probability estimation is performed on the binarized symbol by the probability estimating unit 94, and adaptive arithmetic encoding based on the probability estimation is performed by the encoding engine 95.
  • the probability of “0” and “1” is initialized at the head of the slice, and the probability table is updated every time 1 Bin is encoded. That is, since the related model is updated after the adaptive arithmetic coding process is performed, each model can perform the coding process according to the statistics of the actual image compression information.
  • the accumulation buffer 67 converts the data supplied from the lossless encoding unit 66 to H.264.
  • the rate control unit 79 controls the quantization operation of the quantization unit 65 based on the compressed image stored in the storage buffer 67.
  • the quantized transform coefficient output from the quantization unit 65 is also input to the inverse quantization unit 68, and after inverse quantization, the inverse orthogonal transform unit 69 further performs inverse orthogonal transform.
  • the output subjected to the inverse orthogonal transform is added to the predicted image supplied from the predicted image selection unit 78 by the calculation unit 70, and becomes a locally decoded image.
  • the deblocking filter 71 removes block distortion from the decoded image, and then supplies the deblocking filter 71 to the frame memory 72 for accumulation.
  • the image before the deblocking filter processing by the deblocking filter 71 is also supplied to the frame memory 72 and accumulated.
  • the switch 73 outputs the reference image stored in the frame memory 72 to the motion prediction / compensation unit 75 or the intra prediction unit 74.
  • an I picture, a B picture, and a P picture from the screen rearrangement buffer 62 are supplied to the intra prediction unit 74 as images to be intra predicted (also referred to as intra processing). Further, the B picture and the P picture read from the screen rearrangement buffer 62 are supplied to the motion prediction / compensation unit 77 as an image to be inter predicted (also referred to as inter processing).
  • the intra prediction unit 74 performs intra prediction processing of all candidate intra prediction modes based on the image to be intra predicted read from the screen rearrangement buffer 62 and the reference image supplied from the frame memory 72, and performs prediction. Generate an image.
  • the intra prediction unit 74 calculates cost function values for all candidate intra prediction modes, and selects an intra prediction mode in which the calculated cost function value gives the minimum value as the optimal intra prediction mode.
  • the intra prediction unit 74 supplies the predicted image generated in the optimal intra prediction mode and its cost function value to the predicted image selection unit 78.
  • the intra prediction unit 74 supplies information related to the optimal intra prediction mode to the lossless encoding unit 66.
  • the lossless encoding unit 66 encodes this information and uses it as a part of header information in the compressed image.
  • the motion prediction / compensation unit 75 performs motion prediction / compensation processing for all candidate inter prediction modes. That is, the motion prediction / compensation unit 75 performs all the candidate interpolating operations based on the inter-processed image read from the screen rearrangement buffer 62 and the reference image supplied from the frame memory 72 via the switch 73. A motion vector in the prediction mode is detected, and motion prediction and compensation processing is performed on the reference image based on the motion vector to generate a predicted image.
  • the motion prediction / compensation unit 75 uses the inter-processed image read from the screen rearrangement buffer 62 and the reference image supplied from the frame memory 72 via the switch 73 as a template motion prediction / compensation unit 76. To supply.
  • the motion prediction / compensation unit 75 calculates cost function values for all candidate inter prediction modes.
  • the motion prediction / compensation unit 75 calculates a minimum value among the cost function value for the calculated inter prediction mode and the cost function value for the inter template prediction mode calculated by the template motion prediction / compensation unit 76.
  • the given prediction mode is determined as the optimum inter prediction mode.
  • the motion prediction / compensation unit 75 supplies the predicted image generated in the optimal inter prediction mode and its cost function value to the predicted image selection unit 78.
  • the motion prediction / compensation unit 75 and information related to the optimal inter prediction mode and information corresponding to the optimal inter prediction mode (motion vector) Information, flag information, reference frame information, etc.) are output to the lossless encoding unit 66.
  • the lossless encoding unit 66 performs lossless encoding processing such as variable length encoding and arithmetic encoding on the information from the motion prediction / compensation unit 75 and inserts the information into the header portion of the compressed image.
  • the template motion prediction / compensation unit 76 and the decimal pixel accuracy motion prediction / compensation unit 77 perform motion prediction / compensation processing in the inter template prediction mode.
  • the template motion prediction / compensation unit 76 performs motion prediction and compensation processing in integer pixel units in the inter template prediction mode, and the decimal pixel precision motion prediction / compensation unit 77 performs motion prediction and compensation processing in decimal pixel units. .
  • the template motion prediction / compensation unit 76 uses the inter template prediction mode based on the inter-processed image read from the screen rearrangement buffer 62 and the reference image supplied from the frame memory 72 via the switch 73. Then, motion prediction and compensation processing in units of integer pixels are performed to generate a predicted image.
  • the template motion prediction / compensation unit 76 uses the inter-coded image read from the screen rearrangement buffer 62 and the reference image supplied from the frame memory 72 via the switch 73 as the decimal pixel precision motion. This is supplied to the prediction / compensation unit 77.
  • the template motion prediction / compensation unit 76 calculates a cost function value for the inter template prediction mode, and supplies the calculated cost function value and the predicted image to the motion prediction / compensation unit 75. If there is information (for example, motion vector information or flag information) according to the inter template prediction mode, it is also supplied to the motion prediction / compensation unit 75.
  • the sub-pixel precision motion prediction / compensation unit 77 uses the inter-template prediction mode based on the inter-processed image read from the screen rearrangement buffer 62 and the reference image supplied from the frame memory 72 via the switch 73.
  • a prediction image is generated by performing motion prediction and compensation processing in units of decimal pixels.
  • the decimal pixel accuracy motion prediction / compensation unit 77 supplies the generated predicted image and motion vector information or flag information to the template motion prediction / compensation unit 76.
  • the predicted image selection unit 78 determines the optimal prediction mode from the optimal intra prediction mode and the optimal inter prediction mode based on each cost function value output from the intra prediction unit 74 or the motion prediction / compensation unit 75.
  • the predicted image in the optimum prediction mode is selected and supplied to the calculation units 63 and 70.
  • the predicted image selection unit 78 supplies the selection information of the predicted image to the intra prediction unit 74 or the motion prediction / compensation unit 75.
  • the rate control unit 79 controls the rate of the quantization operation of the quantization unit 65 based on the compressed image stored in the storage buffer 67 so that overflow or underflow does not occur.
  • step S11 the A / D converter 61 performs A / D conversion on the input image.
  • step S12 the screen rearrangement buffer 62 stores the image supplied from the A / D conversion unit 61, and rearranges the picture from the display order to the encoding order.
  • step S13 the calculation unit 63 calculates the difference between the image rearranged in step S12 and the predicted image.
  • the predicted image is supplied from the motion prediction / compensation unit 75 in the case of inter prediction and from the intra prediction unit 74 in the case of intra prediction to the calculation unit 63 via the predicted image selection unit 78.
  • ⁇ Difference data has a smaller data volume than the original image data. Therefore, the data amount can be compressed as compared with the case where the image is encoded as it is.
  • step S14 the orthogonal transformation unit 64 orthogonally transforms the difference information supplied from the calculation unit 63. Specifically, orthogonal transformation such as discrete cosine transformation and Karhunen-Loeve transformation is performed, and transformation coefficients are output.
  • step S15 the quantization unit 65 quantizes the transform coefficient. At the time of this quantization, the rate is controlled as described in the process of step S25 described later.
  • step S ⁇ b> 16 the inverse quantization unit 68 inversely quantizes the transform coefficient quantized by the quantization unit 65 with characteristics corresponding to the characteristics of the quantization unit 65.
  • step S ⁇ b> 17 the inverse orthogonal transform unit 69 performs inverse orthogonal transform on the transform coefficient inversely quantized by the inverse quantization unit 68 with characteristics corresponding to the characteristics of the orthogonal transform unit 64.
  • step S ⁇ b> 18 the calculation unit 70 adds the predicted image input via the predicted image selection unit 78 to the locally decoded difference information, and outputs the locally decoded image (input to the calculation unit 63. Corresponding image).
  • step S ⁇ b> 19 the deblock filter 71 filters the image output from the calculation unit 70. Thereby, block distortion is removed.
  • step S20 the frame memory 72 stores the filtered image. Note that an image that has not been filtered by the deblocking filter 71 is also supplied to the frame memory 72 from the computing unit 70 and stored therein.
  • step S21 the intra prediction unit 74, the motion prediction / compensation unit 75, the template motion prediction / compensation unit 76, and the decimal pixel precision motion prediction / compensation unit 77 each perform image prediction processing. That is, in step S21, the intra prediction unit 74 performs intra prediction processing in the intra prediction mode, and the motion prediction / compensation unit 75 performs motion prediction / compensation processing in the inter prediction mode.
  • the template motion prediction / compensation unit 76 and the decimal pixel accuracy motion prediction / compensation unit 77 perform motion prediction / compensation processing in the inter template prediction mode.
  • step S21 The details of the prediction process in step S21 will be described later with reference to FIG. 8.
  • prediction processes in all candidate prediction modes are performed, and cost functions in all candidate prediction modes are obtained. Each value is calculated.
  • the optimal intra prediction mode is selected, and the predicted image generated by the intra prediction in the optimal intra prediction mode and its cost function value are supplied to the predicted image selection unit 78.
  • the optimal inter prediction mode is determined from the inter prediction mode and the inter template prediction mode, and the predicted image generated in the optimal inter prediction mode and its cost function value are predicted. The image is supplied to the image selection unit 78.
  • step S ⁇ b> 22 the predicted image selection unit 78 optimizes one of the optimal intra prediction mode and the optimal inter prediction mode based on the cost function values output from the intra prediction unit 74 and the motion prediction / compensation unit 75.
  • the prediction mode is determined, and the predicted image of the determined optimal prediction mode is selected and supplied to the calculation units 63 and 70. As described above, this predicted image is used for the calculations in steps S13 and S18.
  • the prediction image selection information is supplied to the intra prediction unit 74 or the motion prediction / compensation unit 75.
  • the intra prediction unit 74 supplies information related to the optimal intra prediction mode (that is, intra prediction mode information) to the lossless encoding unit 66.
  • the motion prediction / compensation unit 75 When a prediction image in the optimal inter prediction mode is selected, the motion prediction / compensation unit 75 includes information on the optimal inter prediction mode and information corresponding to the optimal inter prediction mode (such as motion vector information, flag information, and reference frame information). ) Is output to the lossless encoding unit 66. More specifically, when a prediction image in the inter prediction mode is selected as the optimal inter prediction mode, the motion prediction / compensation unit 75 converts the inter prediction mode information, motion vector information, and reference frame information into a lossless encoding unit. 66.
  • the lossless encoding unit 66 encodes the quantized transform coefficient output from the quantization unit 65. That is, the difference image is subjected to lossless encoding such as variable length encoding and arithmetic encoding, and is compressed. At this time, the information corresponding to the intra prediction mode information from the intra prediction unit 74 or the optimal inter prediction mode from the motion prediction / compensation unit 75 (prediction mode) input to the lossless encoding unit 66 in step S22 described above. Information, motion vector information, reference frame information, etc.) are also encoded and added to the header information.
  • flag information indicating template matching skip is output from the motion prediction / compensation unit 75, only the flag information is encoded. That is, the transform coefficient is not encoded.
  • the context in the target block of the inter template prediction mode is determined for the inter prediction mode and the intra prediction mode.
  • the context can be defined separately from the defined context, or the same context as the inter prediction mode and the intra prediction mode can be used.
  • motion vector information with integer pixel accuracy is encoded with a context for integer pixel accuracy motion vector information.
  • the motion vector information with decimal pixel accuracy and the motion vector information with decimal pixel accuracy searched by the prediction processing in the inter template prediction mode are sub-pixel accuracy motions. Encoded in the context for vector information.
  • step S24 the accumulation buffer 67 accumulates the difference image as a compressed image.
  • the compressed image stored in the storage buffer 67 is appropriately read and transmitted to the decoding side via the transmission path.
  • step S25 the rate control unit 79 controls the quantization operation rate of the quantization unit 65 based on the compressed image stored in the storage buffer 67 so that overflow or underflow does not occur.
  • the decoded image to be referred to is read from the frame memory 72, and the intra prediction unit 74 via the switch 73. To be supplied. Based on these images, in step S31, the intra prediction unit 74 performs intra prediction on the pixels of the block to be processed in all candidate intra prediction modes. Note that pixels that have not been deblocked filtered by the deblocking filter 71 are used as decoded pixels that are referred to.
  • intra prediction is performed in all candidate intra prediction modes, and for all candidate intra prediction modes.
  • a cost function value is calculated.
  • the optimal intra prediction mode is selected, and the predicted image generated by the intra prediction in the optimal intra prediction mode and its cost function value are supplied to the predicted image selection unit 78.
  • the processing target image supplied from the screen rearrangement buffer 62 is an image to be inter-processed
  • the referenced image is read from the frame memory 72 and supplied to the motion prediction / compensation unit 75 via the switch 73.
  • the motion prediction / compensation unit 75 performs an inter motion prediction process. That is, the motion prediction / compensation unit 75 refers to the image supplied from the frame memory 72 and performs motion prediction processing in all candidate inter prediction modes.
  • step S32 Details of the inter motion prediction process in step S32 will be described later with reference to FIG. 12. With this process, the motion prediction process is performed in all candidate inter prediction modes, and all candidate inter prediction modes are set. On the other hand, a cost function value is calculated.
  • the processing target image supplied from the screen rearrangement buffer 62 is an inter-processed image
  • the referenced image is read out from the frame memory 72 and passed through the switch 73 and the motion prediction / compensation unit 75.
  • the template motion prediction / compensation unit 76 is also supplied. Based on these images, the template motion prediction / compensation unit 76 and the decimal pixel precision motion prediction / compensation unit 77 perform inter template motion prediction processing in the inter template prediction mode in step S33.
  • the motion prediction process is performed in the inter template prediction mode, and the cost function value is calculated for the inter template prediction mode. Is done. Then, the predicted image generated by the motion prediction process in the inter template prediction mode and its cost function value are supplied to the motion prediction / compensation unit 75. If there is information (for example, motion vector information or flag information) according to the inter template prediction mode, it is also supplied to the motion prediction / compensation unit 75.
  • information for example, motion vector information or flag information
  • step S34 the motion prediction / compensation unit 75 compares the cost function value for the inter prediction mode calculated in step S32 with the cost function value for the inter template prediction mode calculated in step S33, and The prediction mode that gives the minimum value is determined as the optimal inter prediction mode. Then, the motion prediction / compensation unit 75 supplies the predicted image generated in the optimal inter prediction mode and its cost function value to the predicted image selection unit 78.
  • step S31 in FIG. 8 will be described with reference to the flowchart in FIG.
  • a case of a luminance signal will be described as an example.
  • step S41 the intra prediction unit 74 performs intra prediction for each of the 4 ⁇ 4 pixel, 8 ⁇ 8 pixel, and 16 ⁇ 16 pixel intra prediction modes.
  • the luminance signal intra prediction modes include nine types of 4 ⁇ 4 pixel and 8 ⁇ 8 pixel block units, and four types of 16 ⁇ 16 pixel macroblock unit prediction modes. There are four types of prediction modes in units of 8 ⁇ 8 pixel blocks.
  • the color difference signal intra prediction mode can be set independently of the luminance signal intra prediction mode.
  • the 4 ⁇ 4 pixel and 8 ⁇ 8 pixel intra prediction modes of the luminance signal one intra prediction mode is defined for each block of the luminance signal of 4 ⁇ 4 pixels and 8 ⁇ 8 pixels.
  • the 16 ⁇ 16 pixel intra prediction mode for luminance signals and the intra prediction mode for color difference signals one prediction mode is defined for one macroblock.
  • Prediction mode 2 is average value prediction.
  • the processing target image for example, pixels a to p
  • the decoded image pixels A to M
  • the intra prediction unit 74 is supplied to the intra prediction unit 74 via the switch 73.
  • the intra prediction unit 74 performs intra prediction on the pixels of the block to be processed. By performing this intra prediction process in each intra prediction mode, a prediction image in each intra prediction mode is generated. Note that, as decoded pixels to be referred to (pixels A to M), pixels that have not been deblocked by the deblocking filter 71 are used.
  • the intra prediction unit 74 calculates a cost function value for each intra prediction mode of 4 ⁇ 4 pixels, 8 ⁇ 8 pixels, and 16 ⁇ 16 pixels.
  • the calculation of the cost function value is H.264.
  • JM Joint Model
  • the encoding process is temporarily performed for all candidate prediction modes, and the cost function value expressed by the following equation (7) is set for each prediction mode.
  • the prediction mode that calculates and gives the minimum value is selected as the optimum prediction mode.
  • D a difference (distortion) between the original image and the decoded image
  • R is a generated code amount including up to the orthogonal transform coefficient
  • is a Lagrange multiplier given as a function of the quantization parameter QP.
  • step S41 prediction image generation and header bits such as motion vector information, prediction mode information, and flag information are calculated for all candidate prediction modes. Then, the cost function value expressed by the following equation (8) is calculated for each prediction mode, and the prediction mode that gives the minimum value is selected as the optimum prediction mode.
  • Cost (Mode) D + QPtoQuant (QP) ⁇ Header_Bit (8)
  • D is a difference (distortion) between the original image and the decoded image, Header_Bit is a header bit for the prediction mode, and QPtoQuant is a function given as a function of the quantization parameter QP.
  • the intra prediction unit 74 determines an optimum mode for each of the 4 ⁇ 4 pixel, 8 ⁇ 8 pixel, and 16 ⁇ 16 pixel intra prediction modes. That is, as described above with reference to FIG. 10, in the case of the intra 4 ⁇ 4 prediction mode and the intra 8 ⁇ 8 prediction mode, there are nine types of prediction modes, and in the case of the intra 16 ⁇ 16 prediction mode. There are four types of prediction modes. Therefore, the intra prediction unit 74 selects the optimal intra 4 ⁇ 4 prediction mode, the optimal intra 8 ⁇ 8 prediction mode, and the optimal intra 16 ⁇ 16 prediction mode from among the cost function values calculated in step S42. decide.
  • the intra prediction unit 74 calculates the cost calculated in step S42 from among the optimum modes determined for the 4 ⁇ 4 pixel, 8 ⁇ 8 pixel, and 16 ⁇ 16 pixel intra prediction modes in step S44.
  • the optimal intra prediction mode is selected based on the function value. That is, the mode having the minimum cost function value is selected as the optimal intra prediction mode from among the optimal modes determined for 4 ⁇ 4 pixels, 8 ⁇ 8 pixels, and 16 ⁇ 16 pixels.
  • the intra prediction unit 74 supplies the predicted image generated in the optimal intra prediction mode and its cost function value to the predicted image selection unit 78.
  • step S51 the motion prediction / compensation unit 75 determines a motion vector and a reference image for each of the eight types of inter prediction modes including 16 ⁇ 16 pixels to 4 ⁇ 4 pixels described above with reference to FIG. . That is, a motion vector and a reference image are determined for each block to be processed in each inter prediction mode.
  • step S52 the motion prediction / compensation unit 75 performs motion prediction on the reference image based on the motion vector determined in step S51 for each of the eight types of inter prediction modes including 16 ⁇ 16 pixels to 4 ⁇ 4 pixels. Perform compensation processing. By this motion prediction and compensation processing, a prediction image in each inter prediction mode is generated.
  • step S53 the motion prediction / compensation unit 75 adds motion vector information for adding to the compressed image the motion vectors determined for each of the eight types of inter prediction modes including 16 ⁇ 16 pixels to 4 ⁇ 4 pixels. Is generated.
  • FIG. 13 A method for generating motion vector information according to the H.264 / AVC format will be described.
  • a target block E to be encoded for example, 16 ⁇ 16 pixels
  • blocks A to D that have already been encoded and are adjacent to the target block E are illustrated.
  • the block D is adjacent to the upper left of the target block E
  • the block B is adjacent to the upper side of the target block E
  • the block C is adjacent to the upper right of the target block E
  • the block A is , Adjacent to the left of the target block E.
  • the blocks A to D are not divided represent blocks having any one of the 16 ⁇ 16 pixels to 4 ⁇ 4 pixels described above with reference to FIG.
  • the predicted motion vector information for the current block E pmv E is block A, B, by using the motion vector information on C, is generated as in the following equation by median prediction (9).
  • Data mvd E added to the header portion of the compressed image as motion vector information for the target block E is generated as in the following equation (10) using pmv E.
  • mvd E mv E -pmv E (10)
  • processing is performed independently for each of the horizontal and vertical components of the motion vector information.
  • the motion vector information is generated by generating the motion vector information and adding the difference between the motion vector information and the motion vector information generated by the correlation with the adjacent block to the header portion of the compressed image. Can be reduced.
  • the motion vector information generated as described above is also used when calculating the cost function value in the next step S54.
  • the predicted image selection unit 78 When the corresponding predicted image is finally selected by the predicted image selection unit 78, Along with the prediction mode information and the reference frame information, it is output to the lossless encoding unit 66.
  • FIG. 14 a frame N that is a target frame to be encoded and a frame N ⁇ 1 that is a reference frame that is referred to when searching for a motion vector are illustrated.
  • the target block to be encoded is motion vector information mv for the target block, which has already been encoded, and each block adjacent to the target block has motion vector information mv a and mv b for each block. , Mv c and mv d are shown respectively.
  • motion vector information mv d for the block is shown in the block adjacent to the upper left of the target block
  • motion vector information mv b for the block is shown in the block adjacent to the target block.
  • the block adjacent to the upper right of the target block, the block adjacent to the left of the motion vector information mv c, the target block for the block, are shown motion vector information mv a is for that block.
  • motion vector information mv col for the corresponding block is shown in the corresponding block (co-located block) of the target block.
  • the corresponding block is a block of an encoded frame (a frame positioned before or after) different from the target frame, and is a block at a position corresponding to the target block.
  • each block adjacent to the corresponding block has motion vector information mv t4 , mv t0 , mv t7 , mv t1 , mv t3 , mv t5 , mv t2 , mv t6 for each block, respectively.
  • motion vector information mv t4 , mv t0 , mv t7 , mv t1 , mv t3 , mv t5 , mv t2 , mv t6 for each block, respectively.
  • motion vector information mv t4 for the block is shown in the block adjacent to the upper left of the corresponding block
  • motion vector information mv t0 for the block is shown in the block adjacent to the corresponding block.
  • the block adjacent to the upper right of the corresponding block shows motion vector information mv t7 for the block
  • the block adjacent to the left of the corresponding block shows the motion vector information mv t1 for the block.
  • the block adjacent to the right of the corresponding block shows motion vector information mv t3 for the block
  • the block adjacent to the lower left of the corresponding block shows motion vector information mv t5 for the block.
  • motion vector information mv t2 for the block is shown
  • motion vector information mv t6 for the block is shown in the block adjacent to the lower right of the corresponding block.
  • the predicted motion vector information pmv of the above equation (9) is generated from the motion vector information of the block adjacent to the target block, but as shown in the following equation (11), the predicted motion vector information pmv tm5 , pmv tm9 , Pmv col can also be generated.
  • MV Competition method a method for generating a plurality of pieces of predicted motion vector information and selecting an optimum one among them.
  • step S54 the motion prediction / compensation unit 75 performs the above-described Expression (7) or Expression (8) for each of the eight types of inter prediction modes including 16 ⁇ 16 pixels to 4 ⁇ 4 pixels. ) Is calculated.
  • the cost function value calculated here is used when determining the optimal inter prediction mode in step S34 of FIG. 8 described above.
  • step S71 the template motion prediction / compensation unit 76 performs motion prediction and compensation processing in units of integer pixels in the inter template prediction mode. That is, the template motion prediction / compensation unit 76 searches for a motion vector in units of integer pixels based on the inter template matching method, performs motion prediction and compensation processing on the reference image based on the motion vector, and generates a predicted image. .
  • a target frame to be encoded and a reference frame to be referred to when searching for a motion vector are shown.
  • a target frame a target block A that is about to be encoded and a template region B that is adjacent to the target block A and includes already encoded pixels are shown. That is, when the encoding process is performed in the raster scan order, the template area B is an area located on the left and upper side of the target block A as shown in FIG. 16, and the decoded image is accumulated in the frame memory 72. It is an area.
  • the template motion prediction / compensation unit 76 performs template matching processing using, for example, SAD (Sum of Absolute Difference) etc. within a predetermined search range E on the reference frame as a cost function value, and correlates with the pixel value of the template region B Search for the region B ′ where becomes the highest. Then, the template motion prediction / compensation unit 76 searches for the motion vector P for the target block A using the block A ′ corresponding to the searched area B ′ as a predicted image for the target block A.
  • SAD Sud of Absolute Difference
  • the motion vector search process by the inter template matching method uses a decoded image for the template matching process
  • the predetermined search range E is determined in advance, so that the image encoding apparatus 51 of FIG.
  • the same processing can be performed in the image decoding apparatus 101 of FIG. That is, also in the image decoding apparatus 101, by configuring the template motion prediction / compensation unit 123, it is not necessary to send the information of the motion vector P for the target block A to the image decoding apparatus 101. Therefore, motion vector information in the compressed image Can be reduced.
  • the sizes of blocks and templates in the inter template prediction mode are arbitrary. That is, like the motion prediction / compensation unit 75, one block size can be fixed from the eight types of block sizes of 16 ⁇ 16 pixels to 4 ⁇ 4 pixels described above with reference to FIG.
  • the block size can also be used as a candidate.
  • the template size may be variable or fixed.
  • step S72 the template motion prediction / compensation unit 76 causes the decimal pixel precision motion prediction / compensation unit 77 to perform motion prediction / compensation processing for each decimal pixel in the inter template prediction mode.
  • prediction / compensation processing up to 1/4 pixel accuracy can be performed.
  • decimal pixel accuracy when a motion vector search process based on the inter template matching method is performed, the search range E is not used for the search, and the pixel value of the target block A (FIG. 16) is determined. For this reason, the prediction performance (residual) is lowered, and as a result, there is a possibility that the coding efficiency may be lowered although it is not necessary to have a motion vector.
  • motion prediction and compensation processing in units of decimal pixels are performed based on a method such as block matching instead of an inter template matching method.
  • the decimal pixel precision motion prediction / compensation unit 77 searches for a motion vector in decimal pixel units based on a method such as block matching, and performs motion prediction and compensation processing on the reference image based on the motion vectors. To generate a predicted image. At that time, since it is necessary to add motion vector information in decimal pixel units to the header portion of the compressed image, the decimal pixel precision motion prediction / compensation unit 77 performs motion vector information on the motion vector in decimal pixel units in step S73. Is generated.
  • a method of generating motion vector information in decimal pixel units will be described again with reference to FIG.
  • the target block E to be subjected to motion prediction / compensation processing based on the template matching method and the blocks A to D that have already been encoded and are adjacent to the target block E are shown.
  • the block E only the motion vector information mv_sub E in units of decimal pixels in the motion vector information mv E of the block E may be encoded.
  • any of the blocks A to D is a block to be intra-processed, that block does not have motion vector information.
  • the block X is a block to be intra-processed, the following equation (12) is obtained.
  • the predicted motion vector information Pmv_sub E motion vector information Mv_sub E sub-pixel unit of a target block E, based on the median prediction is generated as in the following equation (13).
  • pmv_sub E med (mv_sub A , mv_sub B , mv_sub C ) (13)
  • processing is performed independently for each of the horizontal and vertical components of the motion vector information. If the motion vector information related to the block C is not available because it is at the end of the image frame or is not yet encoded, the motion vector information related to the block C is The motion vector information regarding the block D is substituted.
  • the data mvd_sub E added to the header of the compressed image as the motion vector information in decimal pixel units of the target block E is generated as in the following equation (14) using pmv_sub E.
  • mvd_sub E mv_sub E - pmv_sub E ⁇ (14)
  • the motion vector information generated as described above is supplied to the template motion prediction / compensation unit 76 together with the generated predicted image and the like. This motion vector information is also used when calculating a cost function value in step S75 described later.
  • a predicted image generated by the predicted image selection unit 78 in the inter template prediction mode is finally selected. Are output to the lossless encoding unit 66 together with the prediction mode information.
  • a plurality of predicted motion vector information is generated based on the MV Competition method described above with reference to FIG. 14, and an optimal one is selected, and mvd_sub E Can also be generated.
  • step S74 the decimal pixel precision motion prediction / compensation unit 77 performs a template skip determination process.
  • the details of the template skip determination process will be described later with reference to FIG. .
  • step S75 the template motion prediction / compensation unit 76 calculates the cost function value represented by the above-described formula (7) or formula (8) for the inter template prediction mode.
  • the cost function value calculated here is used when determining the optimal inter prediction mode in step S34 of FIG. 8 described above.
  • step S91 the decimal pixel precision motion prediction / compensation unit 77 determines whether the block size of the target block is 16 ⁇ 16 pixels. If it is determined in step S91 that the block size is 16 ⁇ 16 pixels, the decimal pixel precision motion prediction / compensation unit 77 sets the motion vector information mvd_sub E generated in step S73 of FIG. It is determined whether or not.
  • This flag is also used when calculating the cost function value in step S75 of FIG. 15.
  • the motion vector information mvd_sub E is output to the lossless encoding unit 66, and both the orthogonal transform coefficient and the motion vector information mvd_sub E are output. Encoded.
  • the prediction image selection unit 78 finally performs motion prediction / interaction in the inter template prediction mode.
  • the prediction image predicted by the compensation process is selected, the difference between the prediction images is calculated, orthogonally transformed, and the coefficient after quantization is 0, the motion vector information mvd_sub E is further 0.
  • TM_skip_frag 1 is set.
  • the motion prediction and compensation processing is performed based on the template matching method. Since the motion prediction / compensation process based on the block matching method or the like is performed on the decimal pixel unit of the block to be transmitted and the searched motion vector information is transmitted to the image decoding apparatus 101, the prediction performance (residual) is degraded. Can be suppressed. Thereby, a reduction in encoding accuracy can be suppressed.
  • the encoded compressed image is transmitted via a predetermined transmission path and decoded by an image decoding device.
  • FIG. 18 shows the configuration of an embodiment of such an image decoding apparatus.
  • the image decoding apparatus 101 includes a storage buffer 111, a lossless decoding unit 112, an inverse quantization unit 113, an inverse orthogonal transform unit 114, a calculation unit 115, a deblock filter 116, a screen rearrangement buffer 117, a D / A conversion unit 118, a frame
  • the memory 119, the switch 120, the intra prediction unit 121, the motion prediction / compensation unit 122, the template motion prediction / compensation unit 123, the decimal pixel accuracy motion prediction / compensation unit 124, and the switch 125 are configured.
  • the accumulation buffer 111 accumulates the transmitted compressed image.
  • the lossless decoding unit 112 decodes the information supplied from the accumulation buffer 111 and encoded by the lossless encoding unit 66 in FIG. 1 using a method corresponding to the encoding method of the lossless encoding unit 66.
  • the inverse quantization unit 113 inversely quantizes the image decoded by the lossless decoding unit 112 by a method corresponding to the quantization method of the quantization unit 65 of FIG.
  • the inverse orthogonal transform unit 114 performs inverse orthogonal transform on the output of the inverse quantization unit 113 by a method corresponding to the orthogonal transform method of the orthogonal transform unit 64 in FIG.
  • the output subjected to inverse orthogonal transform is added to the prediction image supplied from the switch 125 by the arithmetic unit 115 and decoded.
  • the deblocking filter 116 removes block distortion of the decoded image, and then supplies the frame to the frame memory 119 for storage and outputs it to the screen rearrangement buffer 117.
  • the screen rearrangement buffer 117 rearranges images. That is, the order of frames rearranged for the encoding order by the screen rearrangement buffer 62 in FIG. 1 is rearranged in the original display order.
  • the D / A conversion unit 118 performs D / A conversion on the image supplied from the screen rearrangement buffer 117, and outputs and displays the image on a display (not shown).
  • the switch 120 reads an image to be inter-processed and a reference image from the frame memory 119 and outputs them to the motion prediction / compensation unit 122, and also reads an image used for intra prediction from the frame memory 119 and sends it to the intra prediction unit 121. Supply.
  • the intra prediction unit 121 is supplied with information about the intra prediction mode obtained by decoding the header information from the lossless decoding unit 112.
  • the intra prediction unit 121 generates a prediction image based on this information, and outputs the generated prediction image to the switch 125.
  • prediction mode information (prediction mode information, motion vector information, reference frame information) obtained by decoding header information is supplied from the lossless decoding unit 112 to the motion prediction / compensation unit 122.
  • the motion prediction / compensation unit 122 performs motion prediction and compensation processing on the image based on the motion vector information and the reference frame information, and generates a predicted image.
  • the motion prediction / compensation unit 122 supplies the inter-processed image read from the frame memory 119 and the referred image to the template motion prediction / compensation unit 123. Then, motion prediction / compensation processing in the inter template prediction mode is performed.
  • the motion prediction / compensation unit 122 outputs either the prediction image generated in the inter prediction mode or the prediction image generated in the inter template prediction mode to the switch 125 according to the prediction mode information.
  • the template motion prediction / compensation unit 123 and the decimal pixel accuracy motion prediction / compensation unit 124 perform the motion prediction / compensation processing in the inter template prediction mode.
  • the template motion prediction / compensation unit 123 performs motion prediction and compensation processing in integer pixel units in the inter template prediction mode, and the decimal pixel precision motion prediction / compensation unit 124 performs motion prediction and compensation processing in decimal pixel units. .
  • the template motion prediction / compensation unit 123 performs inter-pixel prediction mode integer pixel unit motion prediction and compensation processing based on the inter-processed image read from the frame memory 119 and the referenced image. A prediction image is generated.
  • This motion prediction / compensation process is basically the same process as the template motion prediction / compensation unit 76 of the image encoding device 51.
  • the template motion prediction / compensation unit 123 supplies the inter-processed image read from the frame memory 119 and the image referred to the decimal pixel accuracy motion prediction / compensation unit 124.
  • the template motion prediction / compensation unit 123 also supplies the generated prediction image and the prediction image generated by the decimal pixel accuracy motion prediction / compensation unit 124 to the motion prediction / compensation unit 122.
  • the information (motion vector information or flag information) obtained by decoding the header information is supplied from the lossless decoding unit 112 to the decimal pixel precision motion prediction / compensation unit 124.
  • the decimal pixel precision motion prediction / compensation unit 124 performs motion prediction and compensation processing on the image based on the supplied motion vector information or flag information, and generates a predicted image. This predicted image is output to the template motion prediction / compensation unit 123.
  • the switch 125 selects the prediction image generated by the motion prediction / compensation unit 122 or the intra prediction unit 121 and supplies the selected prediction image to the calculation unit 115.
  • step S131 the storage buffer 111 stores the transmitted image.
  • step S132 the lossless decoding unit 112 decodes the compressed image supplied from the accumulation buffer 111. That is, the I picture, P picture, and B picture encoded by the lossless encoding unit 66 in FIG. 1 are decoded.
  • motion vector information reference frame information
  • prediction mode information information indicating an intra prediction mode, an inter prediction mode, or an inter template prediction mode
  • flag information are also decoded. That is, when the prediction mode information is intra prediction mode information, the prediction mode information is supplied to the intra prediction unit 121.
  • the prediction mode information is inter prediction mode information
  • motion vector information corresponding to the prediction mode information is supplied to the motion prediction / compensation unit 122.
  • the prediction mode information is supplied to the motion prediction / compensation unit 122, and the corresponding motion vector information or flag information indicating template matching skip is a decimal pixel. This is supplied to the precision motion prediction / compensation unit 124.
  • orthogonal transform coefficients that are all 0 are supplied to the inverse quantization unit 113.
  • step S133 the inverse quantization unit 113 inversely quantizes the transform coefficient decoded by the lossless decoding unit 112 with characteristics corresponding to the characteristics of the quantization unit 65 in FIG.
  • step S134 the inverse orthogonal transform unit 114 performs inverse orthogonal transform on the transform coefficient inversely quantized by the inverse quantization unit 113 with characteristics corresponding to the characteristics of the orthogonal transform unit 64 in FIG. As a result, the difference information corresponding to the input of the orthogonal transform unit 64 of FIG. 1 (the output of the calculation unit 63) is decoded.
  • step S135 the calculation unit 115 adds the prediction image selected in the process of step S141 described later and input via the switch 125 to the difference information. As a result, the original image is decoded.
  • step S136 the deblocking filter 116 filters the image output from the calculation unit 115. Thereby, block distortion is removed.
  • step S137 the frame memory 119 stores the filtered image.
  • step S138 the intra prediction unit 121, the motion prediction / compensation unit 122, or the template motion prediction / compensation unit 123 and the decimal pixel precision motion prediction / compensation unit 124 correspond to the prediction mode information supplied from the lossless decoding unit 112. And predicting each image.
  • the intra prediction unit 121 performs an intra prediction process in the intra prediction mode.
  • the motion prediction / compensation unit 122 performs a motion prediction / compensation process in the inter prediction mode.
  • inter template prediction mode information is supplied from the lossless decoding unit 112
  • the template motion prediction / compensation unit 123 and the decimal pixel accuracy motion prediction / compensation unit 124 perform motion prediction / compensation processing in the inter template prediction mode.
  • step S138 the prediction image generated by the intra prediction unit 121, the prediction image generated by the motion prediction / compensation unit 122, or the template motion A prediction image generated by the prediction / compensation unit 123 and the decimal pixel precision motion prediction / compensation unit 124 is supplied to the switch 125.
  • step S139 the switch 125 selects a predicted image. That is, a prediction image generated by the intra prediction unit 121, a prediction image generated by the motion prediction / compensation unit 122, or a prediction image generated by the template motion prediction / compensation unit 123 and the decimal pixel precision motion prediction / compensation unit 124. Therefore, the supplied predicted image is selected and supplied to the calculation unit 115, and is added to the output of the inverse orthogonal transform unit 114 in step S134 as described above.
  • step S140 the screen rearrangement buffer 117 performs rearrangement. That is, the order of frames rearranged for encoding by the screen rearrangement buffer 62 of the image encoding device 51 is rearranged to the original display order.
  • step S141 the D / A conversion unit 118 D / A converts the image from the screen rearrangement buffer 117. This image is output to a display (not shown), and the image is displayed.
  • the intra prediction mode information is supplied from the lossless decoding unit 112 to the intra prediction unit 121.
  • the intra prediction unit 121 determines whether or not intra prediction mode information is supplied. If the intra prediction unit 121 determines that intra prediction mode information is supplied, the intra prediction unit 121 performs intra prediction in step S172.
  • the intra prediction unit 121 performs intra prediction according to the intra prediction mode information supplied from the lossless decoding unit 112, and generates a predicted image.
  • step S171 If it is determined in step S171 that intra prediction mode information has not been supplied, the process proceeds to step S173.
  • the inter prediction mode information, the reference frame information, and the motion vector information are supplied from the lossless decoding unit 112 to the motion prediction / compensation unit 122.
  • the motion prediction / compensation unit 122 determines whether or not inter prediction mode information is supplied. When it is determined that inter prediction mode information is supplied, in step S174, the motion prediction / compensation unit 122 performs inter motion prediction.
  • step S174 the motion prediction / compensation unit 122 performs motion prediction in the inter prediction mode based on the motion vector supplied from the lossless decoding unit 112, and generates a predicted image.
  • step S171 If it is determined in step S171 that the inter prediction mode information has not been supplied, the process proceeds to step S175. That is, since the inter template prediction mode information is supplied, the motion prediction / compensation unit 122 transmits the inter template prediction to the template motion prediction / compensation unit 123 and the decimal pixel precision motion prediction / compensation unit 124 in steps S175 and S176. The mode motion prediction / compensation process is performed.
  • the image to be processed is an image subjected to the inter template prediction process
  • a necessary image is read from the frame memory 119, and the template motion prediction / It is supplied to the compensation unit 123.
  • the necessary image is supplied to the decimal pixel accuracy motion prediction / compensation unit 124 via the template motion prediction / compensation unit 123.
  • step S175 the template motion prediction / compensation unit 123 performs motion prediction and compensation processing in integer pixel units in the inter template prediction mode. That is, the template motion prediction / compensation unit 123 searches for a motion vector in units of integer pixels based on the inter template matching method, performs motion prediction and compensation processing on the reference image based on the motion vector, and generates a predicted image. .
  • the decoded motion vector information in decimal pixel units is based on the motion vector information obtained in step S72 of FIG. 15 and the MV competition method described above with reference to equation (13) and FIG. 14 in step S73.
  • the decimal pixel accuracy motion prediction / compensation unit 124 generates prediction motion vector information in the same manner as the decimal pixel accuracy motion prediction / compensation unit 77, and the generated prediction motion vector information and decoded motion vector information in units of decimal pixels. Are added to obtain motion vector information in decimal pixel units. Then, the decimal pixel precision motion prediction / compensation unit 124 generates a predicted image with the obtained motion vector information in decimal pixel units.
  • the target block is a block for obtaining motion vector information using pixels at spatially corresponding positions in the reference frame, so the corresponding pixels in the reference image are used. Thus, a predicted image is generated.
  • motion prediction based on template matching is performed by both the image encoding device and the image decoding device, thereby displaying high-quality image quality without sending integer pixel accuracy motion vector information. Can be made.
  • H.264 / AVC system is used, but other encoding / decoding systems may be used.
  • image information (bit stream) compressed by orthogonal transform such as discrete cosine transform and motion compensation, such as MPEG, H.26x, etc.
  • orthogonal transform such as discrete cosine transform and motion compensation, such as MPEG, H.26x, etc.
  • satellite broadcast cable TV (television)
  • image encoding and decoding devices used when receiving via the Internet and network media such as mobile phones, or when processing on storage media such as optical, magnetic disks, and flash memory can do.
  • the series of processes described above can be executed by hardware or can be executed by software.
  • a program constituting the software executes various functions by installing a computer incorporated in dedicated hardware or various programs. For example, it is installed from a program recording medium in a general-purpose personal computer or the like.
  • Program recording media that store programs that are installed in the computer and can be executed by the computer are magnetic disks (including flexible disks), optical disks (CD-ROM (Compact Disc-Read Only Memory), DVD (Digital Versatile). Disk), a magneto-optical disk), or a removable medium that is a package medium made of semiconductor memory, or a ROM or hard disk in which a program is temporarily or permanently stored.
  • the program is stored in the program recording medium using a wired or wireless communication medium such as a local area network, the Internet, or digital satellite broadcasting via an interface such as a router or a modem as necessary.
  • the steps for describing a program are not only processes performed in time series in the order described, but also processes that are executed in parallel or individually even if they are not necessarily processed in time series. Is also included.

Landscapes

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

Abstract

本発明は、圧縮効率の低下を抑制することができる画像処理装置および方法に関する。 テンプレート動き予測・補償部76は、画面並べ替えバッファ62から読み出されたインター符号化が行われる画像と、スイッチ73を介してフレームメモリ72から供給される参照画像に基づいて、インターテンプレート予測モードの整数画素単位の動き予測と補償処理を行う。小数画素精度動き予測・補償部77は、画面並べ替えバッファ62から読み出されたインター符号化が行われる画像と、スイッチ73を介してフレームメモリ72から供給される参照画像に基づいて、インターテンプレート予測モードの小数画素単位の動き予測と補償処理を行う。本発明は、例えば、H.264/AVC方式で符号化する画像符号化装置に適用することができる。

Description

画像処理装置および方法
 本発明は画像処理装置および方法に関し、特に、圧縮効率の低下を抑制するようにした画像処理装置および方法に関する。
 近年、MPEG(Moving Picture Experts Group)2やH.264およびMPEG-4 Part10 (Advanced Video Coding)(以下H.264/AVCと記す)などの方式で画像を圧縮符号化し、パケット化して伝送し、受信側で復号する技術が普及してきた。これによりユーザは高品質の動画像を視聴することができる。
 ところで、MPEG2方式においては、線形内挿処理により1/2画素精度の動き予測・補償処理が行われているが、H.264/AVC方式においては、6タップのFIR (Finite Impulse Response Filter)フィルタを用いた1/4画素精度の予測・補償処理が行われている。
 また、MPEG2方式においては、フレーム動き補償モードの場合には、16×16画素を単位として動き予測・補償処理が行われ、フィールド動き補償モードの場合には、第1フィールドと第2フィールドのそれぞれに対し、16×8画素を単位として動き予測・補償処理が行われている。
 これに対して、H.264/AVC方式においては、ブロックサイズを可変にして、動き予測・補償を行うことができる。すなわち、H.264/AVC方式においては、16×16画素で構成される1つのマクロブロックを、16×16、16×8、8×16、あるいは8×8のいずれかのパーティションに分割して、それぞれ独立した動きベクトル情報を持つことが可能である。また、8×8パーティションに関しては、8×8、8×4、4×8、あるいは4×4のいずれかのサブパーティションに分割し、それぞれ独立した動きベクトル情報を持つことが可能である。
 しかしながら、H.264/AVC方式においては、上述した1/4画素精度、およびブロック可変の動き予測・補償処理が行われることにより、膨大な動きベクトル情報が生成されてしまい、これをこのまま符号化してしまうと、符号化効率の低下を招いていた。
 そこで、符号化対象の画像の領域に対して所定の位置関係で隣接すると共に復号画像の一部であるテンプレート領域の復号画像と相関が高い画像の領域を、復号画像から探索して、探索された領域と所定の位置関係とに基づいて予測を行う方法が提案されている(特許文献1参照)。
 この方法は、マッチングに復号画像を用いているため、探索範囲を予め定めておくことで、符号化装置と復号装置において同一の処理を行うことが可能である。すなわち、復号装置においても上述したような予測・補償処理を行うことにより、符号化装置からの画像圧縮情報の中に動きベクトル情報を持つ必要がないため、符号化効率の低下を抑えることが可能である。
特開2007-43651号公報
 しかしながら、特許文献1の技術を、小数画素精度の予測・補償処理に適用すると、符号化対象の画像の領域の画素値を用いていないことや、マッチングに用いる画素値が少ないことなどの理由により、予測性能(残差)が低下してしまい、その結果、動きベクトルを持つ必要がないにも関わらず、符号化効率の低下を招いてしまう恐れがあった。
 本発明は、このような状況に鑑みてなされたものであり、圧縮効率の低下を抑制するものである。
 本発明の一側面の画像処理装置は、符号化された動きベクトルの情報を復号する復号部と、フレームの第1の対象ブロックの整数画素精度について、前記第1の対象ブロックに対して所定の位置関係で隣接するとともに復号画像から生成されるテンプレートを利用して動きベクトルを探索することで、整数画素精度の予測画像を生成する第1の動き予測補償部と、前記復号部により復号された前記第1の対象ブロックの小数画素精度の動きベクトルの情報を用いて、小数画素精度の予測画像を生成する第2の動き予測補償部とを備える。
 前記第2の動き予測補償部は、符号化済みのブロックであって、前記第1の対象ブロックに隣接するブロックである隣接ブロックに対する動きベクトルの情報を用いて前記小数画素精度の動きベクトルの予測値を生成することができる。
 前記第2の動き予測補償部は、前記フレームと異なる符号化済みフレームのブロックであって、前記第1の対象ブロックに対応する位置のブロックである対応ブロックと前記対応ブロックに隣接するブロックに対する動きベクトルの情報、または、前記対応ブロックと前記隣接ブロックに対する動きベクトルの情報を用いて前記小数画素精度の動きベクトルの予測値を生成することができる。
 前記フレームの第2の対象ブロックの動きベクトルを、前記第2の対象ブロックを利用して探索する第3の動き予測補償部と、前記第1または第2の動き予測補償部により探索された前記動きベクトルに基づく予測画像と、前記第3の動き予測補償部により探索された前記動きベクトルに基づく予測画像のうちの一方を選択する画像選択部とをさらに備えることができる。
 本発明の一側面の画像処理方法は、画像処理装置が、符号化された動きベクトルの情報を復号し、フレームの対象ブロックの整数画素精度について、前記対象ブロックに対して所定の位置関係で隣接するとともに復号画像から生成されるテンプレートを利用して動きベクトルを探索することで、整数画素精度の予測画像を生成し、復号された前記対象ブロックの小数画素精度の動きベクトルの情報を用いて、小数画素精度の予測画像を生成するステップを含む。
 本発明の他の側面の画像処理装置は、フレームの第1の対象ブロックの整数画素精度の動きベクトルを、前記第1の対象ブロックに対して所定の位置関係で隣接するとともに復号画像から生成されるテンプレートを利用して探索する第1の動き予測補償部と、前記第1の対象ブロックの小数画素精度の動きベクトルを、前記第1の対象ブロックを利用して探索する第2の動き予測補償部と、前記第1の対象ブロックに対する動きベクトルの情報として、前記第2の動き予測補償部により探索された前記小数画素精度の動きベクトルの情報を符号化する符号化部とを備える。
 前記第2の動き予測補償部は、符号化済みのブロックであって、前記第1の対象ブロックに隣接するブロックである隣接ブロックに対する動きベクトルの情報を用いて前記小数画素精度の動きベクトルの予測値を生成し、前記符号化部は、前記第1の対象ブロックに対する動きベクトルの情報として、前記小数画素精度の動きベクトルの情報と前記予測値との差分を符号化することができる。
 前記第2の動き予測補償部は、前記フレームと異なる符号化済みフレームのブロックであって、前記第1の対象ブロックに対応する位置のブロックである対応ブロックと前記対応ブロックに隣接するブロックに対する動きベクトルの情報、または、前記対応ブロックと前記隣接ブロックに対する動きベクトルの情報を用いて前記小数画素精度の動きベクトルの予測値を生成し、前記符号化部は、前記第1の対象ブロックに対する動きベクトルの情報として、前記小数画素精度の動きベクトルの情報と前記予測値との差分を符号化することができる。
 前記符号化部は、前記第1の対象ブロックの大きさが16×16画素であり、前記小数画素精度の動きベクトルの予測値が0であり、かつ、全ての直交変換係数が0である場合、前記第1の対象ブロックに対する動きベクトルの情報として、前記第1の対象ブロックがテンプレートスキップブロックであることを表すフラグのみを符号化することができる。
 前記フレームの第2の対象ブロックの動きベクトルを、前記第2の対象ブロックを利用して探索する第3の動き予測補償部と、前記第1または第2の動き予測補償部により探索された前記動きベクトルに基づく予測画像と、前記第3の動き予測補償部により探索された前記動きベクトルに基づく予測画像のうちの一方を選択する画像選択部とをさらに備えることができる。
 前記符号化部は、算術符号化を行う場合、前記第1および第2の動き予測補償部が対象とする前記第1の対象ブロックに対する第1のコンテクスト、および前記第3の動き予測補償部が対象とする前記第2の対象ブロックに対する第2のコンテクストをそれぞれ定義し、前記第1の対象ブロックに対する動きベクトルの情報を前記第1のコンテクストを用いて符号化し、前記第2の対象ブロックに対する動きベクトルの情報を前記第2のコンテクストを用いて符号化する
ことができる。
 前記符号化部は、算術符号化を行う場合、1つのコンテクストを定義し、前記第1の対象ブロックに対する動きベクトルの情報および前記第2の対象ブロックに対する動きベクトルの情報を前記コンテクストを用いて符号化することができる。
 前記符号化部は、算術符号化を行う場合、整数画素精度の動きベクトルの情報に対する第1のコンテクストと、小数画素精度の動きベクトルの情報に対する第2のコンテクストをそれぞれ定義し、前記第1の対象ブロックに対する動きベクトルの情報のうち、前記小数画素精度の動きベクトルの情報を前記第2のコンテクストを用いて符号化し、前記第2の対象ブロックに対する動きベクトルの情報のうち、前記整数画素精度の動きベクトルの情報を前記第1のコンテクストを用いて符号化し、前記小数画素精度の動きベクトルの情報を前記第2のコンテクストを用いて符号化することができる。
 本発明の他の側面の画像処理方法は、フレームの対象ブロックの整数画素精度の動きベクトルを、前記対象ブロックに対して所定の位置関係で隣接するとともに復号画像から生成されるテンプレートを利用して探索し、前記対象ブロックの小数画素精度の動きベクトルを、前記対象ブロックを利用して探索し、前記対象ブロックに対する動きベクトルの情報として、探索された前記小数画素精度の動きベクトルの情報を符号化するステップを含む。
 本発明の一側面においては、符号化された動きベクトルの情報が復号される。そして、フレームの対象ブロックの整数画素精度について、前記対象ブロックに対して所定の位置関係で隣接するとともに復号画像から生成されるテンプレートを利用して動きベクトルを探索することで、整数画素精度の予測画像が生成され、復号された前記対象ブロックの小数画素精度の動きベクトルの情報を用いて、小数画素精度の予測画像が生成される。
 本発明の他の側面においては、フレームの対象ブロックの整数画素精度の動きベクトルが、前記対象ブロックに対して所定の位置関係で隣接するとともに復号画像から生成されるテンプレートを利用して探索され、前記対象ブロックの小数画素精度の動きベクトルが、前記対象ブロックを利用して探索される。そして、前記対象ブロックに対する動きベクトルの情報として、探索された前記小数画素精度の動きベクトルの情報が符号化される。
 以上のように、本発明の一側面によれば、画像を復号することができる。また、本発明の一側面によれば、圧縮効率の低下を抑制することができる。
 本発明の他の側面によれば、画像を符号化することができる。また、本発明の他の側面によれば、圧縮効率の低下を抑制することができる。
本発明を適用した画像符号化装置の一実施の形態の構成を示すブロック図である。 可変ブロックサイズ動き予測・補償処理を説明する図である。 1/4画素精度の動き予測・補償処理を説明する図である。 図1の可逆符号化部66の一実施の形態の構成を示すブロック図である。 図4のコンテクストモデル化部91の処理について説明する図である。 図4の2値化部92のテーブルの例を示す図である。 図1の画像符号化装置の符号化処理を説明するフローチャートである。 図7のステップS21の予測処理を説明するフローチャートである。 図8のステップS31のイントラ予測処理を説明するフローチャートである。 イントラ予測の方向を説明する図である。 イントラ予測を説明する図である。 図8のステップS32のインター動き予測処理を説明するフローチャートである。 動きベクトル情報の生成方法の例を説明する図である。 動きベクトル情報の生成方法の他の例を説明する図である。 図8のステップS33のインターテンプレート動き予測処理を説明するフローチャートである。 インターテンプレートマッチング方式について説明する図である。 図15のステップS74のテンプレートスキップ判定処理を説明するフローチャートである。 本発明を適用した画像復号装置の一実施の形態の構成を示すブロック図である。 図18の画像復号装置の復号処理を説明するフローチャートである。 図19のステップS138の予測処理を説明するフローチャートである。
 以下、図を参照して本発明の実施の形態について説明する。
 図1は、本発明の画像符号化装置の一実施の形態の構成を表している。この画像符号化装置51は、A/D変換部61、画面並べ替えバッファ62、演算部63、直交変換部64、量子化部65、可逆符号化部66、蓄積バッファ67、逆量子化部68、逆直交変換部69、演算部70、デブロックフィルタ71、フレームメモリ72、スイッチ73、イントラ予測部74、動き予測・補償部75、テンプレート動き予測・補償部76、小数画素精度動き予測・補償部77、予測画像選択部78、およびレート制御部79により構成されている。
 この画像符号化装置51は、例えば、H.264およびMPEG-4 Part10 (Advanced Video Coding)(以下H.264/AVCと記す)方式で画像を圧縮符号化する。
 H.264/AVC方式においては、ブロックサイズを可変にして、動き予測・補償が行われる。すなわち、H.264/AVC方式においては、16×16画素で構成される1つのマクロブロックを、図2に示されるように、16×16画素、16×8画素、8×16画素、あるいは8×8画素のいずれかのパーティションに分割して、それぞれ独立した動きベクトル情報を持つことが可能である。また、8×8画素のパーティションに関しては、図2に示されるように、8×8画素、8×4画素、4×8画素、あるいは4×4画素のいずれかのサブパーティションに分割し、それぞれ独立した動きベクトル情報を持つことが可能である。
 また、H.264/AVC方式においては、6タップのFIR (Finite Impulse Response Filter)フィルタを用いた1/4画素精度の予測・補償処理が行われている。図3を参照して、H.264/AVC方式における小数画素精度の予測・補償処理について説明する。
 図3の例において、位置Aは、整数精度画素の位置、位置b,c,dは、1/2画素精度の位置、位置e1,e2,e3は、1/4画素精度の位置を示している。まず、以下においては、Clip()を次の式(1)のように定義する。
Figure JPOXMLDOC01-appb-M000001
 なお、入力画像が8ビット精度である場合、max_pixの値は255となる。
 位置bおよびdにおける画素値は、6タップのFIRフィルタを用いて、次の式(2)のように生成される。
 
Figure JPOXMLDOC01-appb-M000002
 位置cにおける画素値は、水平方向および垂直方向に6タップのFIRフィルタを適用し、次の式(3)のように生成される。

Figure JPOXMLDOC01-appb-M000003
 なお、Clip処理は、水平方向および垂直方向の積和処理の両方を行った後、最後に1度のみ実行される。
 位置e1乃至e3は、次の式(4)のように線形内挿により生成される。

Figure JPOXMLDOC01-appb-M000004
 図1に戻って、A/D変換部61は、入力された画像をA/D変換し、画面並べ替えバッファ62に出力し、記憶させる。画面並べ替えバッファ62は、記憶した表示の順番のフレームの画像を、GOP(Group of Picture)に応じて、符号化のためのフレームの順番に並べ替える。
 演算部63は、画面並べ替えバッファ62から読み出された画像から、予測画像選択部78により選択されたイントラ予測部74からの予測画像または動き予測・補償部75からの予測画像を減算し、その差分情報を直交変換部64に出力する。直交変換部64は、演算部63からの差分情報に対して、離散コサイン変換、カルーネン・レーベ変換等の直交変換を施し、その変換係数を出力する。量子化部65は直交変換部64が出力する変換係数を量子化する。
 量子化部65の出力となる、量子化された変換係数は、可逆符号化部66に入力され、ここで可変長符号化、算術符号化等の可逆符号化が施され、圧縮される。
 可逆符号化部66は、イントラ予測に関する情報をイントラ予測部74から取得し、インター予測やインターテンプレート予測に関する情報などを動き予測・補償部75から取得する。可逆符号化部66は、量子化された変換係数を符号化するとともに、イントラ予測に関する情報、インター予測やインターテンプレート予測に関する情報などを符号化し、圧縮画像におけるヘッダ情報の一部とする。可逆符号化部66は、符号化したデータを蓄積バッファ67に供給して蓄積させる。
 例えば、可逆符号化部66においては、H.264/AVC方式で定められているCAVLC(Context-Adaptive Variable Length Coding)などの可変長符号化、または、CABAC(Context-Adaptive Binary Arithmetic Coding)などの算術符号化等の可逆符号化処理が行われる。ここで、CABAC 符号化方式について説明する。
 図4は、CABAC 符号化を行う可逆符号化部66の構成例を表している。図4の例において、可逆符号化部66は、コンテクストモデル化部91、2値化部92、並びに、確率推定部94および符号化エンジン95からなる適応2値算術符号化部93により構成されている。
 コンテクストモデル化部91は、圧縮画像における任意のシンタクス要素に関して、まず、過去の履歴に応じて、シンタクス要素のシンボル(記号)を適切なコンテクストモデルに変換する。CABAC 符号化においては、異なるシンタクス要素は、異なるコンテクストにより符号化がなされる。また、同じシンタクス要素であっても、周辺ブロックまたはマクロブロックにおける符号化情報に応じて異なるコンテクストにより符号化がなされる。
 図5を参照して、フラグmb_skip_fragを例にとって説明するが、他のシンタクス要素に対する処理についても同様である。
 図5の例において、これから符号化される対象マクロブロックCと、既に符号化済みのブロックであり、対象マクロブロックCに隣接する隣接マクロブロックAおよびBが示されている。それぞれのマクロブロックX(X=A,B,C)に対して、フラグmb_skip_fragが定義されており、次の式(5)であるとする。
Figure JPOXMLDOC01-appb-M000005

 すなわち、マクロブロックXが、参照フレームの空間的に対応する位置の画素をそのまま用いるスキップトマクロブロックである場合、f(X)は1とされ、そうでない場合、0とされる。
 このとき、対象マクロブロックCに対するコンテクストContext(C)は、次の式(6)のように、左の隣接マクロブロックAのf(A)と上の隣接マクロブロックBのf(B)の和として算出される。

 Context(C) = f(A) + f(B)               ・・・(6)
 すなわち、対象マクロブロックCに対するコンテクストContext(C)は、隣接マクロブロックA,Bのフラグmb_skip_fragに応じて、0,1,2のいずれかの値をとることになる。対象マクロブロックCに対するフラグmb_skip_fragは、0,1,2のいずれかの符号化エンジン95が用いられて符号化されることになる。
 2値化部92は、例えば、イントラ予測モードのように、シンタクス上、非2値化データである要素のシンボルを、図6に示されるテーブルに基づいて変換する。
 図6のテーブルにおいては、コードシンボルが0の場合、0に2値化され、コードシンボルが1の場合、10に2値化され、コードシンボルが2の場合、110に2値化されることが示されている。また、コードシンボルが3の場合、1110に2値化され、コードシンボルが4の場合、11110に2値化され、コードシンボルが5の場合、111110に2値化されることが示されている。
 ただし、マクロブロックタイプに関してはこのテーブルではなく、別途定義されたテーブルに基づいて2値化処理が行われる。
 以上のようにして2値化されたシンタクス要素は、後段の適応2値算術符号化部93により符号化される。
 適応2値算術符号化部93においては、2値化されたシンボルに対して、確率推定部94によって確率推定がなされ、符号化エンジン95によって確率推定に基づく適応算術符号化が施される。その際、“0”“1”の確率は、スライス先頭で初期化され、1Binの符号化が行われる毎にその確率テーブルが更新される。すなわち、適応算術符号化処理が行われた後、関連するモデルの更新が行われるため、それぞれのモデルは実際の画像圧縮情報の統計に応じた符号化処理を行うことが可能となる。
 図1に戻って、蓄積バッファ67は、可逆符号化部66から供給されたデータを、H.264/AVC方式で符号化された圧縮画像として、例えば、後段の図示せぬ記録装置や伝送路などに出力する。レート制御部79は、蓄積バッファ67に蓄積された圧縮画像に基づいて、量子化部65の量子化動作を制御する。
 また、量子化部65より出力された、量子化された変換係数は、逆量子化部68にも入力され、逆量子化された後、さらに逆直交変換部69において逆直交変換される。逆直交変換された出力は演算部70により予測画像選択部78から供給される予測画像と加算されて、局部的に復号された画像となる。デブロックフィルタ71は、復号された画像のブロック歪を除去した後、フレームメモリ72に供給し、蓄積させる。フレームメモリ72には、デブロックフィルタ71によりデブロックフィルタ処理される前の画像も供給され、蓄積される。
 スイッチ73はフレームメモリ72に蓄積された参照画像を動き予測・補償部75またはイントラ予測部74に出力する。
 この画像符号化装置51においては、例えば、画面並べ替えバッファ62からのIピクチャ、Bピクチャ、およびPピクチャが、イントラ予測(イントラ処理とも称する)する画像として、イントラ予測部74に供給される。また、画面並べ替えバッファ62から読み出されたBピクチャおよびPピクチャが、インター予測(インター処理とも称する)する画像として、動き予測・補償部77に供給される。
 イントラ予測部74は、画面並べ替えバッファ62から読み出されたイントラ予測する画像とフレームメモリ72から供給された参照画像に基づいて、候補となる全てのイントラ予測モードのイントラ予測処理を行い、予測画像を生成する。
 その際、イントラ予測部74は、候補となる全てのイントラ予測モードに対してコスト関数値を算出し、算出したコスト関数値が最小値を与えるイントラ予測モードを、最適イントラ予測モードとして選択する。
 イントラ予測部74は、最適イントラ予測モードで生成された予測画像とそのコスト関数値を、予測画像選択部78に供給する。イントラ予測部74は、予測画像選択部78により最適イントラ予測モードで生成された予測画像が選択された場合、最適イントラ予測モードに関する情報を、可逆符号化部66に供給する。可逆符号化部66は、この情報を符号化し、圧縮画像におけるヘッダ情報の一部とする。
 動き予測・補償部75は、候補となる全てのインター予測モードの動き予測・補償処理を行う。すなわち、動き予測・補償部75は、画面並べ替えバッファ62から読み出されたインター処理する画像と、スイッチ73を介してフレームメモリ72から供給される参照画像に基づいて、候補となる全てのインター予測モードの動きベクトルを検出し、動きベクトルに基づいて参照画像に動き予測と補償処理を施し、予測画像を生成する。
 また、動き予測・補償部75は、画面並べ替えバッファ62から読み出されたインター処理される画像と、スイッチ73を介してフレームメモリ72から供給される参照画像を、テンプレート動き予測・補償部76に供給する。
 さらに、動き予測・補償部75は、候補となる全てのインター予測モードに対してコスト関数値を算出する。動き予測・補償部75は、算出したインター予測モードに対してのコスト関数値と、テンプレート動き予測・補償部76により算出されたインターテンプレート予測モードに対してのコスト関数値のうち、最小値を与える予測モードを、最適インター予測モードとして決定する。
 動き予測・補償部75は、最適インター予測モードで生成された予測画像とそのコスト関数値を、予測画像選択部78に供給する。動き予測・補償部75は、予測画像選択部78により最適インター予測モードで生成された予測画像が選択された場合、最適インター予測モードに関する情報、およびその最適インター予測モードに応じた情報(動きベクトル情報、フラグ情報、参照フレーム情報など)を可逆符号化部66に出力する。可逆符号化部66は、動き予測・補償部75からの情報をやはり可変長符号化、算術符号化といった可逆符号化処理し、圧縮画像のヘッダ部に挿入する。
 テンプレート動き予測・補償部76と小数画素精度動き予測・補償部77は、インターテンプレート予測モードの動き予測・補償処理を行う。テンプレート動き予測・補償部76は、インターテンプレート予測モードのうち、整数画素単位の動き予測と補償処理を行い、小数画素精度動き予測・補償部77は、小数画素単位の動き予測と補償処理を行う。
 すなわち、テンプレート動き予測・補償部76は、画面並べ替えバッファ62から読み出されたインター処理される画像と、スイッチ73を介してフレームメモリ72から供給される参照画像に基づいて、インターテンプレート予測モードの整数画素単位の動き予測と補償処理を行い、予測画像を生成する。
 また、テンプレート動き予測・補償部76は、画面並べ替えバッファ62から読み出されたインター符号化が行われる画像と、スイッチ73を介してフレームメモリ72から供給される参照画像を、小数画素精度動き予測・補償部77に供給する。
 テンプレート動き予測・補償部76は、インターテンプレート予測モードに対してコスト関数値を算出し、算出したコスト関数値と予測画像を、動き予測・補償部75に供給する。インターテンプレート予測モードに応じた情報(例えば、動きベクトル情報やフラグ情報など)がある場合には、それも動き予測・補償部75に供給される。
 小数画素精度動き予測・補償部77は、画面並べ替えバッファ62から読み出されたインター処理される画像と、スイッチ73を介してフレームメモリ72から供給される参照画像に基づいて、インターテンプレート予測モードの小数画素単位の動き予測と補償処理を行い、予測画像を生成する。小数画素精度動き予測・補償部77は、生成した予測画像と、動きベクトル情報またはフラグ情報などを、テンプレート動き予測・補償部76に供給する。
 予測画像選択部78は、イントラ予測部74または動き予測・補償部75より出力された各コスト関数値に基づいて、最適イントラ予測モードと最適インター予測モードから、最適予測モードを決定し、決定された最適予測モードの予測画像を選択し、演算部63,70に供給する。このとき、予測画像選択部78は、予測画像の選択情報を、イントラ予測部74または動き予測・補償部75に供給する。
 レート制御部79は、蓄積バッファ67に蓄積された圧縮画像に基づいて、オーバーフローあるいはアンダーフローが発生しないように、量子化部65の量子化動作のレートを制御する。
 次に、図7のフローチャートを参照して、図1の画像符号化装置51の符号化処理について説明する。
 ステップS11において、A/D変換部61は入力された画像をA/D変換する。ステップS12において、画面並べ替えバッファ62は、A/D変換部61より供給された画像を記憶し、各ピクチャの表示する順番から符号化する順番への並べ替えを行う。
 ステップS13において、演算部63は、ステップS12で並び替えられた画像と予測画像との差分を演算する。予測画像は、インター予測する場合は動き予測・補償部75から、イントラ予測する場合はイントラ予測部74から、それぞれ予測画像選択部78を介して演算部63に供給される。
 差分データは元の画像データに較べてデータ量が小さくなっている。したがって、画像をそのまま符号化する場合に較べて、データ量を圧縮することができる。
 ステップS14において、直交変換部64は演算部63から供給された差分情報を直交変換する。具体的には、離散コサイン変換、カルーネン・レーベ変換等の直交変換が行われ、変換係数が出力される。ステップS15において、量子化部65は変換係数を量子化する。この量子化に際しては、後述するステップS25の処理で説明されるように、レートが制御される。
 以上のようにして量子化された差分情報は、次のようにして局部的に復号される。すなわち、ステップS16において、逆量子化部68は量子化部65により量子化された変換係数を量子化部65の特性に対応する特性で逆量子化する。ステップS17において、逆直交変換部69は逆量子化部68により逆量子化された変換係数を直交変換部64の特性に対応する特性で逆直交変換する。
 ステップS18において、演算部70は、予測画像選択部78を介して入力される予測画像を局部的に復号された差分情報に加算し、局部的に復号された画像(演算部63への入力に対応する画像)を生成する。ステップS19においてデブロックフィルタ71は、演算部70より出力された画像をフィルタリングする。これによりブロック歪みが除去される。ステップS20においてフレームメモリ72は、フィルタリングされた画像を記憶する。なお、フレームメモリ72にはデブロックフィルタ71によりフィルタ処理されていない画像も演算部70から供給され、記憶される。
 ステップS21において、イントラ予測部74、動き予測・補償部75、テンプレート動き予測・補償部76、および小数画素精度動き予測・補償部77は、それぞれ画像の予測処理を行う。すなわち、ステップS21において、イントラ予測部74は、イントラ予測モードのイントラ予測処理を行い、動き予測・補償部75は、インター予測モードの動き予測・補償処理を行う。また、テンプレート動き予測・補償部76および小数画素精度動き予測・補償部77は、インターテンプレート予測モードの動き予測・補償処理を行う。
 ステップS21における予測処理の詳細は、図8を参照して後述するが、この処理により、候補となる全ての予測モードでの予測処理がそれぞれ行われ、候補となる全ての予測モードでのコスト関数値がそれぞれ算出される。そして、算出されたコスト関数値に基づいて、最適イントラ予測モードが選択され、最適イントラ予測モードのイントラ予測により生成された予測画像とそのコスト関数値が予測画像選択部78に供給される。また、算出されたコスト関数値に基づいて、インター予測モードとインターテンプレート予測モードの中から、最適インター予測モードが決定され、最適インター予測モードで生成された予測画像とそのコスト関数値が、予測画像選択部78に供給される。
 ステップS22において、予測画像選択部78は、イントラ予測部74および動き予測・補償部75より出力された各コスト関数値に基づいて、最適イントラ予測モードと最適インター予測モードのうちの一方を、最適予測モードに決定し、決定された最適予測モードの予測画像を選択し、演算部63,70に供給する。この予測画像が、上述したように、ステップS13,S18の演算に利用される。
 なお、この予測画像の選択情報は、イントラ予測部74または動き予測・補償部75に供給される。最適イントラ予測モードの予測画像が選択された場合、イントラ予測部74は、最適イントラ予測モードに関する情報(すなわち、イントラ予測モード情報)を、可逆符号化部66に供給する。
 最適インター予測モードの予測画像が選択された場合、動き予測・補償部75は、最適インター予測モードに関する情報、およびその最適インター予測モードに応じた情報(動きベクトル情報やフラグ情報、参照フレーム情報など)を可逆符号化部66に出力する。さらに具体的には、最適インター予測モードとして、インター予測モードによる予測画像が選択されているときには、動き予測・補償部75は、インター予測モード情報、動きベクトル情報、参照フレーム情報を可逆符号化部66に出力する。
 一方、最適インター予測モードとして、インターテンプレート予測モードによる予測画像が選択されているときには、動き予測・補償部75は、インターテンプレート予測モード情報、動きベクトル情報、小数画素単位の動きベクトル情報を可逆符号化部66に出力する。なお、その際、対象ブロックがテンプレートスキップであると判定されているときには、小数画素単位の動きベクトル情報の代わりに、図17を参照して後述するテンプレートマッチングスキップであることを表すフラグ情報(TM_skip_frag=1)が出力される。
 ステップS23において、可逆符号化部66は量子化部65より出力された量子化された変換係数を符号化する。すなわち、差分画像が可変長符号化、算術符号化等の可逆符号化され、圧縮される。このとき、上述したステップS22において可逆符号化部66に入力された、イントラ予測部74からのイントラ予測モード情報、または、動き予測・補償部75からの最適インター予測モードに応じた情報(予測モード情報、動きベクトル情報や参照フレーム情報など)なども符号化され、ヘッダ情報に付加される。
 なお、動き予測・補償部75からテンプレートマッチングスキップであることを表すフラグ情報が出力された場合には、フラグ情報のみが符号化される。すなわち、変換係数も符号化されない。
 ここで、可逆符号化部66において、可逆符号化方式が、図4を参照して上述したCABACに基づく場合、インターテンプレート予測モードの対象ブロックにおけるコンテクストを、インター予測モードおよびイントラ予測モードに対して定義されたコンテクストとは別に定義することもできるし、インター予測モードおよびイントラ予測モードと同じコンテクストを用いることもできる。
 さらに、整数画素精度動きベクトル情報用と、小数画素精度動きベクトル情報用に別々のコンテクストを定義し、それを用いて符号化することもできる。
 すなわち、この場合、インター予測モードの予測処理で求められた動きベクトルのうち、整数画素精度の動きベクトル情報は、整数画素精度動きベクトル情報用のコンテクストで符号化される。一方、インター予測モードの予測処理で求められた動きベクトルのうち、小数画素精度の動きベクトル情報と、インターテンプレート予測モードの予測処理で探索された小数画素精度の動きベクトル情報は、小数画素精度動きベクトル情報用のコンテクストで符号化される。
 ステップS24において蓄積バッファ67は差分画像を圧縮画像として蓄積する。蓄積バッファ67に蓄積された圧縮画像が適宜読み出され、伝送路を介して復号側に伝送される。
 ステップS25においてレート制御部79は、蓄積バッファ67に蓄積された圧縮画像に基づいて、オーバーフローあるいはアンダーフローが発生しないように、量子化部65の量子化動作のレートを制御する。
 次に、図8のフローチャートを参照して、図7のステップS21における予測処理を説明する。
 画面並べ替えバッファ62から供給される処理対象の画像がイントラ処理されるブロックの画像である場合、参照される復号済みの画像がフレームメモリ72から読み出され、スイッチ73を介してイントラ予測部74に供給される。これらの画像に基づいて、ステップS31において、イントラ予測部74は処理対象のブロックの画素を、候補となる全てのイントラ予測モードでイントラ予測する。なお、参照される復号済みの画素としては、デブロックフィルタ71によりデブロックフィルタリングされていない画素が用いられる。
 ステップS31におけるイントラ予測処理の詳細は、図9を参照して後述するが、この処理により、候補となる全てのイントラ予測モードでイントラ予測が行われ、候補となる全てのイントラ予測モードに対してコスト関数値が算出される。そして、算出されたコスト関数値に基づいて、最適イントラ予測モードが選択され、最適イントラ予測モードのイントラ予測により生成された予測画像とそのコスト関数値が予測画像選択部78に供給される。
 画面並べ替えバッファ62から供給される処理対象の画像がインター処理される画像である場合、参照される画像がフレームメモリ72から読み出され、スイッチ73を介して動き予測・補償部75に供給される。これらの画像に基づいて、ステップS32において、動き予測・補償部75はインター動き予測処理を行う。すなわち、動き予測・補償部75は、フレームメモリ72から供給される画像を参照して、候補となる全てのインター予測モードの動き予測処理を行う。
 ステップS32におけるインター動き予測処理の詳細は、図12を参照して後述するが、この処理により、候補となる全てのインター予測モードで動き予測処理が行われ、候補となる全てのインター予測モードに対してコスト関数値が算出される。
 また、画面並べ替えバッファ62から供給される処理対象の画像がインター処理される画像である場合、参照される画像がフレームメモリ72から読み出され、スイッチ73および動き予測・補償部75を介してテンプレート動き予測・補償部76にも供給される。これらの画像に基づいて、テンプレート動き予測・補償部76および小数画素精度動き予測・補償部77は、ステップS33において、インターテンプレート予測モードで、インターテンプレート動き予測処理を行う。
 ステップS33におけるインターテンプレート動き予測処理の詳細は、図15を参照して後述するが、この処理により、インターテンプレート予測モードで動き予測処理が行われ、インターテンプレート予測モードに対してコスト関数値が算出される。そして、インターテンプレート予測モードの動き予測処理により生成された予測画像とそのコスト関数値が動き予測・補償部75に供給される。なお、インターテンプレート予測モードに応じた情報(例えば、動きベクトル情報や、フラグ情報など)がある場合には、それも動き予測・補償部75に供給される。
 ステップS34において、動き予測・補償部75は、ステップS32において算出されたインター予測モードに対してコスト関数値と、ステップS33において算出されたインターテンプレート予測モードに対してのコスト関数値を比較し、最小値を与える予測モードを、最適インター予測モードとして決定する。そして、動き予測・補償部75は、最適インター予測モードで生成された予測画像とそのコスト関数値を、予測画像選択部78に供給する。
 次に、図9のフローチャートを参照して、図8のステップS31におけるイントラ予測処理を説明する。なお、図9の例においては、輝度信号の場合を例として説明する。
 イントラ予測部74は、ステップS41において、4×4画素、8×8画素、および16×16画素の各イントラ予測モードに対してイントラ予測を行う。
 輝度信号のイントラ予測モードには、9種類の4×4画素および8×8画素のブロック単位、並びに4種類の16×16画素のマクロブロック単位の予測モードがあり、色差信号のイントラ予測モードには、4種類の8×8画素のブロック単位の予測モードがある。色差信号のイントラ予測モードは、輝度信号のイントラ予測モードと独立に設定が可能である。輝度信号の4×4画素および8×8画素のイントラ予測モードについては、4×4画素および8×8画素の輝度信号のブロック毎に1つのイントラ予測モードが定義される。輝度信号の16×16画素のイントラ予測モードと色差信号のイントラ予測モードについては、1つのマクロブロックに対して1つの予測モードが定義される。
 予測モードの種類は、図10の番号0,1,3乃至8で示される方向に対応している。予測モード2は平均値予測である。
 例えば、イントラ4×4予測モードの場合について、図11を参照して説明する。画面並べ替えバッファ62から読み出された処理対象の画像(例えば、画素a乃至p)がイントラ処理されるブロックの画像である場合、参照される復号済みの画像(画素A乃至M)がフレームメモリ72から読み出され、スイッチ73を介してイントラ予測部74に供給される。
 これらの画像に基づいて、イントラ予測部74は、処理対象のブロックの画素をイントラ予測する。このイントラ予測処理が、各イントラ予測モードで行われることで、各イントラ予測モードでの予測画像が生成される。なお、参照される復号済みの画素(画素A乃至M)としては、デブロックフィルタ71によりデブロックフィルタリングされていない画素が用いられる。
 イントラ予測部74は、ステップS42において、4×4画素、8×8画素、および16×16画素の各イントラ予測モードに対するコスト関数値を算出する。ここで、コスト関数値の算出は、H.264/AVC方式における参照ソフトウエアであるJM(Joint Model)で定められているように、High Complexity モードか、Low Complexity モードのいずれかの手法に基づいて行う。 
 すなわち、High Complexity モードにおいては、ステップS41の処理として、候補となる全ての予測モードに対して、仮に符号化処理までを行い、次の式(7)で表わされるコスト関数値を各予測モードに対して算出し、その最小値を与える予測モードを最適予測モードであるとして選択する。
 Cost(Mode) = D + λ・R                ・・・(7)
 Dは、原画像と復号画像の差分(歪)、Rは、直交変換係数まで含んだ発生符号量、λは、量子化パラメータQPの関数として与えられるラグランジュ乗数である。
 一方、Low Complexity モードにおいては、ステップS41の処理として、候補となる全ての予測モードに対して、予測画像の生成、および、動きベクトル情報や予測モード情報、フラグ情報などのヘッダビットまでを算出し、次の式(8)で表わされるコスト関数値を各予測モードに対して算出し、その最小値を与える予測モードを最適予測モードであるとして選択する。
 Cost(Mode) = D + QPtoQuant(QP)・Header_Bit      ・・・(8)
 Dは、原画像と復号画像の差分(歪)、Header_Bitは、予測モードに対するヘッダビット、QPtoQuantは、量子化パラメータQPの関数として与えられる関数である。
 Low Complexity モードにおいては、全ての予測モードに対して、予測画像を生成するのみで、符号化処理および復号処理を行う必要がないため、演算量が少なくて済む。
 イントラ予測部74は、ステップS43において、4×4画素、8×8画素、および16×16画素の各イントラ予測モードに対して、それぞれ最適モードを決定する。すなわち、図10を参照して上述したように、イントラ4×4予測モードおよびイントラ8×8予測モードの場合には、予測モードの種類が9種類あり、イントラ16×16予測モードの場合には、予測モードの種類が4種類ある。したがって、イントラ予測部74は、ステップS42において算出されたコスト関数値に基づいて、それらの中から、最適イントラ4×4予測モード、最適イントラ8×8予測モード、最適イントラ16×16予測モードを決定する。
 イントラ予測部74は、ステップS44において、4×4画素、8×8画素、および16×16画素の各イントラ予測モードに対して決定された各最適モードの中から、ステップS42において算出されたコスト関数値に基づいて、最適イントラ予測モードを選択する。すなわち、4×4画素、8×8画素、および16×16画素に対して決定された各最適モードの中から、コスト関数値が最小値であるモードを、最適イントラ予測モードとして選択する。そして、イントラ予測部74は、最適イントラ予測モードで生成された予測画像とそのコスト関数値とを、予測画像選択部78に供給する。
 次に、図12のフローチャートを参照して、図8のステップS32のインター動き予測処理について説明する。
 動き予測・補償部75は、ステップS51において、図2を参照して上述した16×16画素乃至4×4画素からなる8種類の各インター予測モードに対して動きベクトルと参照画像をそれぞれ決定する。すなわち、各インター予測モードの処理対象のブロックについて、動きベクトルと参照画像がそれぞれ決定される。
 動き予測・補償部75は、ステップS52において、16×16画素乃至4×4画素からなる8種類の各インター予測モードについて、ステップS51で決定された動きベクトルに基づいて、参照画像に動き予測と補償処理を行う。この動き予測と補償処理により、各インター予測モードでの予測画像が生成される。
 動き予測・補償部75は、ステップS53において、16×16画素乃至4×4画素からなる8種類の各インター予測モードに対して決定された動きベクトルについて、圧縮画像に付加するための動きベクトル情報を生成する。
 ここで、図13を参照して、H.264/AVC方式による動きベクトル情報の生成方法について説明する。図13の例において、これから符号化される対象ブロックE(例えば、16×16画素)と、既に符号化済みであり、対象ブロックEに隣接するブロックA乃至Dが示されている。
 すなわち、ブロックDは、対象ブロックEの左上に隣接しており、ブロックBは、対象ブロックEの上に隣接しており、ブロックCは、対象ブロックEの右上に隣接しており、ブロックAは、対象ブロックEの左に隣接している。なお、ブロックA乃至Dが区切られていないのは、それぞれ、図2で上述した16×16画素乃至4×4画素のうちのいずれかの構成のブロックであることを表している。
 例えば、X(=A,B,C,D,E)に対する動きベクトル情報を、mvXで表す。まず、対象ブロックEに対する予測動きベクトル情報pmvEは、ブロックA,B,Cに関する動きベクトル情報を用いて、メディアン予測により次の式(9)のように生成される。
 pmvE = med(mvA,mvB,mvC)               ・・・(9)
 ブロックCに関する動きベクトル情報が、画枠の端であったり、あるいは、まだ符号化されていないなどの理由により、利用可能でない(unavailableである)場合には、ブロックCに関する動きベクトル情報は、ブロックDに関する動きベクトル情報で代用される。
 対象ブロックEに対する動きベクトル情報として、圧縮画像のヘッダ部に付加されるデータmvdEは、pmvEを用いて、次の式(10)のように生成される。

 mvdE = mvE - pmvE                 ・・・(10)
 なお、実際には、動きベクトル情報の水平方向、垂直方向のそれぞれの成分に対して、独立に処理が行われる。
 このように、予測動きベクトル情報を生成し、隣接するブロックとの相関で生成された予測動きベクトル情報と動きベクトル情報との差分を、圧縮画像のヘッダ部に付加することにより、動きベクトル情報を低減することができる。
 以上のようにして生成された動きベクトル情報は、次のステップS54におけるコスト関数値算出の際にも用いられ、最終的に予測画像選択部78により対応する予測画像が選択された場合には、予測モード情報および参照フレーム情報とともに、可逆符号化部66へ出力される。
 また、予測動きベクトル情報の他の生成方法について、図14を参照して説明する。図14の例においては、符号化対象の対象フレームであるフレームNと、動きベクトルを探索する際に参照される参照フレームであるフレームN-1が示されている。
 フレームNにおいて、これから符号化される対象ブロックには、対象ブロックに対する動きベクトル情報mv、既に符号化済みであり、対象ブロックに隣接する各ブロックには、各ブロックに対する動きベクトル情報mva,mvb,mvc,mvdがそれぞれ示されている。
 具体的には、対象ブロックの左上に隣接するブロックには、そのブロックに対する動きベクトル情報mvd、対象ブロックの上に隣接するブロックには、そのブロックに対する動きベクトル情報mvbが示されている。対象ブロックの右上に隣接するブロックには、そのブロックに対する動きベクトル情報mvc、対象ブロックの左に隣接するブロックには、そのブロックに対する動きベクトル情報mvaが示されている。
 フレームN-1において、対象ブロックの対応ブロック(co-located block)には、対応ブロックに対する動きベクトル情報mvcolが示されている。ここで、対応ブロックとは、対象フレームとは異なる、符号化済みのフレーム(前または後に位置するフレーム)のブロックであって、対象ブロックに対応する位置のブロックである。
 また、フレームN-1において、対応ブロックに隣接する各ブロックには、各ブロックに対する動きベクトル情報mvt4,mvt0,mvt7,mvt1,mvt3,mvt5,mvt2,mvt6がそれぞれ示されている。
 具体的には、対応ブロックの左上に隣接するブロックには、そのブロックに対する動きベクトル情報mvt4、対応ブロックの上に隣接するブロックには、そのブロックに対する動きベクトル情報mvt0が示されている。対応ブロックの右上に隣接するブロックには、そのブロックに対する動きベクトル情報mvt7、対応ブロックの左に隣接するブロックには、そのブロックに対する動きベクトル情報mvt1が示されている。対応ブロックの右に隣接するブロックには、そのブロックに対する動きベクトル情報mvt3、対応ブロックの左下に隣接するブロックには、そのブロックに対する動きベクトル情報mvt5が示されている。対応ブロックの下に隣接するブロックには、そのブロックに対する動きベクトル情報mvt2、対応ブロックの右下に隣接するブロックには、そのブロックに対する動きベクトル情報mvt6が示されている。
 上述した式(9)の予測動きベクトル情報pmvは、対象ブロックに隣接するブロックの動きベクトル情報で生成されたが、次の式(11)に示すようにして予測動きベクトル情報pmvtm5,pmvtm9,pmvcolを生成することもできる。
 pmvtm5 = med(mvcol, mvt0,…,mvt3)
 pmvtm9 = med(mvcol, mvt0,…,mvt7)
 pmvcol = med(mvcol, mvcol, mva, mvb,mvc)           (11)
 式(9)および式(11)のうち、どの予測動きベクトル情報を用いるかは、R-D最適化により選択される。ここで、Rは、直交変換係数まで含んだ発生符号量であり、Dは、原画像と復号画像の差分(歪)である。すなわち、最も発生符号量と原画像と復号画像の差分が最適になる予測動きベクトル情報が選択される。
 このように、複数の予測動きベクトル情報を生成し、その中で最適なものを選択する方式を、以下、MV Competition方式とも称する。
 図12に戻って、動き予測・補償部75は、ステップS54において、16×16画素乃至4×4画素からなる8種類の各インター予測モードに対して、上述した式(7)または式(8)で示されるコスト関数値を算出する。ここで算出されたコスト関数値は、上述した図8のステップS34で最適インター予測モードを決定する際に用いられる。
 次に、図15のフローチャートを参照して、図8のステップS33のインターテンプレート動き予測処理について説明する。
 テンプレート動き予測・補償部76は、ステップS71において、インターテンプレート予測モードの整数画素単位の動き予測、補償処理を行う。すなわち、テンプレート動き予測・補償部76は、インターテンプレートマッチング方式に基づいて整数画素単位の動きベクトルを探索し、その動きベクトルに基づいて参照画像に動き予測と補償処理を施し、予測画像を生成する。
 ここで、インターテンプレートマッチング方式について、図16を参照して具体的に説明する。
 図16の例においては、符号化対象の対象フレームと、動きベクトルを探索する際に参照される参照フレームが示されている。対象フレームには、これから符号化されようとしている対象ブロックAと、対象ブロックAに対して隣接するとともに、すでに符号化済みの画素で構成されるテンプレート領域Bが示されている。すなわち、テンプレート領域Bは、符号化処理をラスタスキャン順に行う場合には、図16に示されるように、対象ブロックAの左および上側に位置する領域であり、フレームメモリ72に復号画像が蓄積されている領域である。
 テンプレート動き予測・補償部76は、参照フレーム上の所定の探索範囲E内において、例えば、SAD(Sum of Absolute Difference) 等をコスト関数値としてテンプレートマッチング処理を行い、テンプレート領域Bの画素値と相関が最も高くなる領域B’を探索する。そして、テンプレート動き予測・補償部76は、探索された領域B’に対応するブロックA’を、対象ブロックAに対する予測画像として、対象ブロックAに対する動きベクトルPを探索する。
 このように、インターテンプレートマッチング方式による動きベクトル探索処理は、テンプレートマッチング処理に復号画像を用いているので、所定の探索範囲Eを予め定めておくことにより、図1の画像符号化装置51と後述する図18の画像復号装置101において同一の処理を行うことが可能である。すなわち、画像復号装置101においても、テンプレート動き予測・補償部123を構成することにより、対象ブロックAに対する動きベクトルPの情報を画像復号装置101に送る必要がなくなるので、圧縮画像中における動きベクトル情報を低減することができる。
 なお、インターテンプレート予測モードにおけるブロックおよびテンプレートのサイズは任意である。すなわち、動き予測・補償部75と同様に、図2で上述した16×16画素乃至4×4画素からなる8種類のブロックサイズから、1つのブロックサイズを固定して行うこともできるし、すべてのブロックサイズを候補として行うこともできる。ブロックサイズに応じて、テンプレートサイズは、可変としてもよいし、固定することもできる。
 テンプレート動き予測・補償部76は、ステップS72において、小数画素精度動き予測・補償部77に、インターテンプレート予測モードの小数画素単位の動き予測、補償処理を行わせる。
 図3を参照して上述したように、H.264/AVC方式においては、1/4画素精度までの予測・補償処理を行うことができる。しかしながら、小数画素精度についても、インターテンプレートマッチング方式に基づく動きベクトル探索処理を行うと、その探索に、対象ブロックA(図16)の画素値を用いていない、探索範囲Eが定められているなどの理由により、予測性能(残差)が低下してしまい、その結果、動きベクトルを持つ必要がないにも関わらず、符号化効率の低下を招いてしまう恐れがある。
 そこで、インターテンプレート予測モードにおいては、小数画素単位の動き予測、補償処理が、インターテンプレートマッチング方式ではなく、ブロックマッチングなどの方式に基づいて行われる。
 すなわち、小数画素精度動き予測・補償部77は、ステップS72において、小数画素単位の動きベクトルを、ブロックマッチングなどの方式に基づいて探索し、その動きベクトルに基づいて参照画像に動き予測と補償処理を施し、予測画像を生成する。その際、小数画素単位の動きベクトル情報を圧縮画像のヘッダ部に付加する必要があるので、小数画素精度動き予測・補償部77は、ステップS73において、小数画素単位の動きベクトルについて、動きベクトル情報を生成する。
 小数画素単位の動きベクトル情報の生成方法について、再び、図13を参照して説明する。これからテンプレートマッチング方式に基づく動き予測・補償処理が行われる対象ブロックEと、既に符号化済みであり、対象ブロックEに隣接するブロックA乃至Dが示されている。ブロックEに関しては、ブロックEが有する動きベクトル情報mvEのうちの小数画素単位の動きベクトル情報mv_subEのみ符号化されればよい。
 このとき、ブロックA乃至Dは、テンプレートマッチング方式に基づく動き予測・補償処理が行われたブロックとは限らないが、インター処理されるブロックである限り、動きベクトルmvX(X=A乃至D)を有する。それぞれの小数画素単位の動きベクトル情報を、mv_subX(X=A乃至D)とする。
 なお、ブロックA乃至Dのいずれかがイントラ処理されるブロックである場合、そのブロックは動きベクトル情報を有さないので、その取り扱いは、H.264/AVC方式に準ずる。すなわち、ブロックXがイントラ処理されるブロックであるなら、次の式(12)とする。
 mvX = 0                      ・・・(12)
 対象ブロックEの小数画素単位の動きベクトル情報mv_subEの予測動きベクトル情報pmv_subEを、メディアン予測に基づき、次の式(13)のように生成する。

 pmv_sub E = med(mv_sub A,mv_sub B,mv_sub C)    ・・・(13)
 なお、実際には、動きベクトル情報の水平方向、垂直方向のそれぞれの成分に対して、独立に処理が行われる。また、ブロックCに関する動きベクトル情報が、画枠の端であったり、あるいは、まだ符号化されていないなどの理由により、利用可能でない(unavailableである)場合には、ブロックCに関する動きベクトル情報は、ブロックDに関する動きベクトル情報で代用される。
 対象ブロックEの小数画素単位の動きベクトル情報として、圧縮画像のヘッダに付加されるデータmvd_sub Eは、pmv_sub Eを用いて、次の式(14)のように生成される。

 mvd_sub E = mv_sub E - pmv_sub E          ・・・(14)
 以上のようにして生成された動きベクトル情報は、生成した予測画像などとともに、テンプレート動き予測・補償部76に供給される。そして、この動きベクトル情報は、後述するステップS75のコスト関数値算出の際にも用いられ、最終的に予測画像選択部78によりインターテンプレート予測モードにより生成された予測画像が選択された場合には、予測モード情報とともに、可逆符号化部66へ出力される。
 なお、小数画素単位の動きベクトル情報についても、図14を参照して上述したMV Competition方式に基づいて、複数の予測動きベクトル情報を生成し、その中で最適なものを選択して、mvd_sub Eを生成することもできる。
 図15に戻って、ステップS74において、小数画素精度動き予測・補償部77は、テンプレートスキップ判定処理を行う。このテンプレートスキップ判定処理の詳細は、図17を参照して後述するが、この処理により、対象ブロックがテンプレートスキップであると判定された場合、それを表す1ビットのフラグTM_skip_fragが1に設定される。
 ステップS75において、テンプレート動き予測・補償部76は、インターテンプレート予測モードに対して、上述した式(7)または式(8)で示されるコスト関数値を算出する。ここで算出されたコスト関数値は、上述した図8のステップS34で最適インター予測モードを決定する際に用いられる。
 次に、図17のフローチャートを参照して、図15のステップS74のテンプレートスキップ判定処理を説明する。
 小数画素精度動き予測・補償部77は、ステップS91において、対象ブロックのブロックサイズが16×16画素であるか否かを判定する。ステップS91において、ブロックサイズが16×16画素であると判定された場合、小数画素精度動き予測・補償部77は、ステップS92において、図15のステップS73で生成された動きベクトル情報mvd_sub Eが0であるか否かを判定する。
 ステップS92において、mvd_sub Eが0であると判定された場合、小数画素精度動き予測・補償部77は、ステップS93において、直交変換係数が全て0であるか否かを判定する。ステップS93において、直交変換係数が全て0であると判定された場合、小数画素精度動き予測・補償部77は、ステップS94において、対象ブロックをテンプレートマッチングスキップであるとして、これを表す1ビットのフラグTM_skip_frag=1を設定する。
 このフラグは、図15のステップS75におけるコスト関数値算出の際にも用いられ、最終的に予測画像選択部78により対応する予測画像が選択されたときには、TM_skip_frag=1の場合、TM_skip_frag=1のみが可逆符号化部66へ出力される。
 すなわち、この場合、対象ブロックが、参照フレームの空間的に対応する位置の画素を利用して動きベクトル情報を求めるブロックであるので、動きベクトル情報を符号化する必要はなく、TM_skip_frag=1だけ符号化されればよい。したがって、更なる符号化効率の改善が望める。
 一方、ステップS91において、ブロックサイズが16×16画素ではないと判定された場合、ステップS92において、mvd_sub Eが0ではないと判定された場合、または、ステップS93において、直交変換係数が全て0ではないと判定された場合、小数画素精度動き予測・補償部77は、ステップS95において、対象ブロックをテンプレートマッチングスキップではないとして、これを表す1ビットのフラグTM_skip_frag=0を設定する。
 TM_skip_frag=0の場合、最終的に予測画像選択部78により対応する予測画像が選択されたときには、動きベクトル情報mvd_sub Eが可逆符号化部66に出力され、直交変換係数も動きベクトル情報mvd_sub Eも符号化される。
 なお、説明の便宜上、小数画素精度動き予測・補償部77がテンプレートスキップ判定処理を行う例を説明したが、実際には、最終的に予測画像選択部78によりインターテンプレート予測モードでの動き予測・補償処理で予測された予測画像が選択されて、その予測画像の差分が演算され、直交変換され、量子化された後の係数が0であった場合において、さらに、動きベクトル情報mvd_sub Eが0であると判定されたときに、TM_skip_frag=1が設定される。
 以上のように、インターテンプレート予測モードでの動き予測・補償処理を行う際に、処理対象となるブロックの整数画素単位については、テンプレートマッチング方式に基づいて動き予測、補償処理を行い、処理対象となるブロックの小数画素単位については、ブロックマッチング方式などに基づく動き予測・補償処理を行い、検索された動きベクトル情報を画像復号装置101に送信するようにしたので、予測性能(残差)の低下を抑制することができる。これにより、符号化精度の低減を抑制することができる。
 また、その際、小数画素単位の動きベクトル情報と、予測動きベクトル情報との差分を求めて、それを符号化するようにしたので、さらに、符号化精度の低減を抑制することができる。
 さらに、ブロックサイズが16×16画素であり、mvd_sub Eが0であり、直交変換係数が全て0である場合、テンプレートマッチングスキップであることを表す1ビットのフラグTM_skip_frag=1のみを符号化するようにしたので、更なる符号化効率の改善が望める。
 符号化された圧縮画像は、所定の伝送路を介して伝送され、画像復号装置により復号される。図18は、このような画像復号装置の一実施の形態の構成を表している。
 画像復号装置101は、蓄積バッファ111、可逆復号部112、逆量子化部113、逆直交変換部114、演算部115、デブロックフィルタ116、画面並べ替えバッファ117、D/A変換部118、フレームメモリ119、スイッチ120、イントラ予測部121、動き予測・補償部122、テンプレート動き予測・補償部123、小数画素精度動き予測・補償部124、およびスイッチ125により構成されている。
 蓄積バッファ111は伝送されてきた圧縮画像を蓄積する。可逆復号部112は、蓄積バッファ111より供給された、図1の可逆符号化部66により符号化された情報を、可逆符号化部66の符号化方式に対応する方式で復号する。逆量子化部113は可逆復号部112により復号された画像を、図1の量子化部65の量子化方式に対応する方式で逆量子化する。逆直交変換部114は、図1の直交変換部64の直交変換方式に対応する方式で逆量子化部113の出力を逆直交変換する。
 逆直交変換された出力は演算部115によりスイッチ125から供給される予測画像と加算されて復号される。デブロックフィルタ116は、復号された画像のブロック歪を除去した後、フレームメモリ119に供給し、蓄積させるとともに、画面並べ替えバッファ117に出力する。
 画面並べ替えバッファ117は、画像の並べ替えを行う。すなわち、図1の画面並べ替えバッファ62により符号化の順番のために並べ替えられたフレームの順番が、元の表示の順番に並べ替えられる。D/A変換部118は、画面並べ替えバッファ117から供給された画像をD/A変換し、図示せぬディスプレイに出力し、表示させる。
 スイッチ120は、インター処理される画像と参照される画像をフレームメモリ119から読み出し、動き予測・補償部122に出力するとともに、イントラ予測に用いられる画像をフレームメモリ119から読み出し、イントラ予測部121に供給する。
 イントラ予測部121には、ヘッダ情報を復号して得られたイントラ予測モードに関する情報が可逆復号部112から供給される。イントラ予測部121は、この情報に基づいて、予測画像を生成し、生成した予測画像を、スイッチ125に出力する。
 動き予測・補償部122には、ヘッダ情報を復号して得られた情報(予測モード情報、動きベクトル情報、参照フレーム情報)が可逆復号部112から供給される。インター予測モードである情報が供給された場合、動き予測・補償部122は、動きベクトル情報と参照フレーム情報に基づいて画像に動き予測と補償処理を施し、予測画像を生成する。インターテンプレート予測モードである情報が供給された場合、動き予測・補償部122は、フレームメモリ119から読み出されたインター処理される画像と参照される画像をテンプレート動き予測・補償部123に供給し、インターテンプレート予測モードでの動き予測・補償処理を行わせる。
 また、動き予測・補償部122は、予測モード情報に応じて、インター予測モードにより生成された予測画像、または、インターテンプレート予測モードにより生成された予測画像のどちらか一方をスイッチ125に出力する。
 テンプレート動き予測・補償部123と小数画素精度動き予測・補償部124は、インターテンプレート予測モードの動き予測・補償処理を行う。テンプレート動き予測・補償部123は、インターテンプレート予測モードのうち、整数画素単位の動き予測と補償処理を行い、小数画素精度動き予測・補償部124は、小数画素単位の動き予測と補償処理を行う。
 すなわち、テンプレート動き予測・補償部123は、フレームメモリ119から読み出されたインター処理される画像と参照される画像に基づいて、インターテンプレート予測モードの整数画素単位の動き予測と補償処理を行い、予測画像を生成する。なお、この動き予測・補償処理は、画像符号化装置51のテンプレート動き予測・補償部76と基本的に同じ処理である。
 さらに、テンプレート動き予測・補償部123は、フレームメモリ119から読み出されたインター処理される画像と参照される画像を、小数画素精度動き予測・補償部124に供給する。テンプレート動き予測・補償部123は、また、生成した予測画像と小数画素精度動き予測・補償部124により生成された予測画像を、動き予測・補償部122に供給する。
 小数画素精度動き予測・補償部124には、ヘッダ情報を復号して得られた情報(動きベクトル情報またはフラグ情報)が可逆復号部112から供給される。小数画素精度動き予測・補償部124は、供給された動きベクトル情報またはフラグ情報に基づいて画像に動き予測と補償処理を施し、予測画像を生成する。この予測画像は、テンプレート動き予測・補償部123に出力される。
 スイッチ125は、動き予測・補償部122またはイントラ予測部121により生成された予測画像を選択し、演算部115に供給する。
 次に、図19のフローチャートを参照して、画像復号装置101が実行する復号処理について説明する。
 ステップS131において、蓄積バッファ111は伝送されてきた画像を蓄積する。ステップS132において、可逆復号部112は、蓄積バッファ111から供給される圧縮画像を復号する。すなわち、図1の可逆符号化部66により符号化されたIピクチャ、Pピクチャ、並びにBピクチャが復号される。
 このとき、動きベクトル情報、参照フレーム情報、予測モード情報(イントラ予測モード、インター予測モード、またはインターテンプレート予測モードを表す情報)、フラグ情報も復号される。すなわち、予測モード情報がイントラ予測モード情報である場合、予測モード情報は、イントラ予測部121に供給される。
 予測モード情報がインター予測モード情報である場合、予測モード情報と対応する動きベクトル情報は、動き予測・補償部122に供給される。予測モード情報がインターテンプレート予測モード情報である場合、予測モード情報は、動き予測・補償部122に供給され、対応する動きベクトル情報、または、テンプレートマッチングスキップであることを表すフラグ情報は、小数画素精度動き予測・補償部124に供給される。
 なお、テンプレートマッチングスキップであることを表すフラグ情報が復号された場合、全て0である直交変換係数が逆量子化部113に供給される。
 ステップS133において、逆量子化部113は可逆復号部112により復号された変換係数を、図1の量子化部65の特性に対応する特性で逆量子化する。ステップS134において逆直交変換部114は逆量子化部113により逆量子化された変換係数を、図1の直交変換部64の特性に対応する特性で逆直交変換する。これにより図1の直交変換部64の入力(演算部63の出力)に対応する差分情報が復号されたことになる。
 ステップS135において、演算部115は、後述するステップS141の処理で選択され、スイッチ125を介して入力される予測画像を差分情報と加算する。これにより元の画像が復号される。ステップS136においてデブロックフィルタ116は、演算部115より出力された画像をフィルタリングする。これによりブロック歪みが除去される。ステップS137においてフレームメモリ119は、フィルタリングされた画像を記憶する。
 ステップS138において、イントラ予測部121、動き予測・補償部122、またはテンプレート動き予測・補償部123および小数画素精度動き予測・補償部124は、可逆復号部112から供給される予測モード情報に対応して、それぞれ画像の予測処理を行う。
 すなわち、可逆復号部112からイントラ予測モード情報が供給された場合、イントラ予測部121は、イントラ予測モードのイントラ予測処理を行う。可逆復号部112からインター予測モード情報が供給された場合、動き予測・補償部122は、インター予測モードの動き予測・補償処理を行う。また、可逆復号部112からインターテンプレート予測モード情報が供給された場合、テンプレート動き予測・補償部123および小数画素精度動き予測・補償部124は、インターテンプレート予測モードの動き予測・補償処理を行う。
 ステップS138における予測処理の詳細は、図20を参照して後述するが、この処理により、イントラ予測部121により生成された予測画像、動き予測・補償部122により生成された予測画像、またはテンプレート動き予測・補償部123および小数画素精度動き予測・補償部124により生成された予測画像がスイッチ125に供給される。
 ステップS139において、スイッチ125は予測画像を選択する。すなわち、イントラ予測部121により生成された予測画像、動き予測・補償部122により生成された予測画像、またはテンプレート動き予測・補償部123および小数画素精度動き予測・補償部124により生成された予測画像が供給されるので、供給された予測画像が選択されて演算部115に供給され、上述したように、ステップS134において逆直交変換部114の出力と加算される。
 ステップS140において、画面並べ替えバッファ117は並べ替えを行う。すなわち画像符号化装置51の画面並べ替えバッファ62により符号化のために並べ替えられたフレームの順序が、元の表示の順序に並べ替えられる。
 ステップS141において、D/A変換部118は、画面並べ替えバッファ117からの画像をD/A変換する。この画像が図示せぬディスプレイに出力され、画像が表示される。
 次に、図20のフローチャートを参照して、図19のステップS138の予測処理を説明する。
 処理対象の画像がイントラ処理される画像である場合、可逆復号部112からイントラ予測モード情報がイントラ予測部121に供給される。イントラ予測部121は、ステップS171において、イントラ予測モード情報が供給されたか否かを判定し、イントラ予測モード情報が供給されたと判定した場合、ステップS172において、イントラ予測を行う。
 すなわち、処理対象の画像がイントラ処理される画像である場合、必要な画像がフレームメモリ119から読み出され、スイッチ120を介してイントラ予測部121に供給される。ステップS172においてイントラ予測部121は、可逆復号部112から供給されるイントラ予測モード情報に従ってイントラ予測し、予測画像を生成する。
 ステップS171において、イントラ予測モード情報が供給されなかったと判定された場合、処理は、ステップS173に進む。
 処理対象の画像がインター処理される画像である場合、可逆復号部112からインター予測モード情報、参照フレーム情報、動きベクトル情報が動き予測・補償部122に供給される。ステップS173において、動き予測・補償部122は、インター予測モード情報が供給されたか否かを判定し、インター予測モード情報が供給されたと判定した場合、ステップS174において、インター動き予測を行う。
 すなわち、処理対象の画像がインター予測処理される画像である場合、必要な画像がフレームメモリ119から読み出され、スイッチ120を介して動き予測・補償部122に供給される。ステップS174において動き予測・補償部122は、可逆復号部112から供給される動きベクトルに基づいて、インター予測モードの動き予測をし、予測画像を生成する。
 ステップS171において、インター予測モード情報が供給されなかったと判定された場合、処理は、ステップS175に進む。すなわち、インターテンプレート予測モード情報が供給されているので、動き予測・補償部122は、ステップS175およびS176において、テンプレート動き予測・補償部123および小数画素精度動き予測・補償部124に、インターテンプレート予測モードの動き予測・補償処理を行わせる。
 具体的に説明すると、処理対象の画像がインターテンプレート予測処理される画像である場合、必要な画像がフレームメモリ119から読み出され、スイッチ120および動き予測・補償部122を介してテンプレート動き予測・補償部123に供給される。また、必要な画像は、テンプレート動き予測・補償部123を介して、小数画素精度動き予測・補償部124に供給される。さらに、小数画素精度動き予測・補償部124には、可逆復号部112から小数画素精度の動きベクトル情報またはフラグ情報(TM_skip_frag=1)が供給される。
 テンプレート動き予測・補償部123は、ステップS175において、インターテンプレート予測モードの整数画素単位の動き予測、補償処理を行う。すなわち、テンプレート動き予測・補償部123は、インターテンプレートマッチング方式に基づいて整数画素単位の動きベクトルを探索し、その動きベクトルに基づいて参照画像に動き予測と補償処理を施し、予測画像を生成する。
 小数画素精度動き予測・補償部124は、ステップS176において、可逆復号部112から供給される小数画素単位の動きベクトル情報、または、フラグ情報(TM_skip_frag=1)に基づいて、参照画像に対して動き予測と補償処理を行い、予測画像を生成する。
 なお、復号された小数画素単位の動きベクトル情報は、図15のステップS72で求められた動きベクトル情報と、ステップS73において式(13)や図14を参照して上述したMV Competition方式に基づいて隣接するブロックの動きベクトル情報から生成された予測動きベクトル情報との差分の情報(mvd_sub E)である。
 したがって、小数画素精度動き予測・補償部124は、小数画素精度動き予測・補償部77と同様に予測動きベクトル情報を生成し、生成した予測動きベクトル情報と復号された小数画素単位の動きベクトル情報とを加算して、小数画素単位の動きベクトル情報を求める。そして、小数画素精度動き予測・補償部124は、求めた小数画素単位の動きベクトル情報で、予測画像を生成する。
 一方、フラグ情報が供給された場合には、対象ブロックが、参照フレームの空間的に対応する位置の画素を利用して動きベクトル情報を求めるブロックであるので、参照画像の対応する画素を利用して予測画像が生成される。
 以上のように、整数画素精度について、テンプレートマッチングに基づく動き予測を、画像符号化装置および画像復号装置の両方で行うことにより、整数画素精度の動きベクトル情報を送らずに、良質な画質を表示させることができる。
 さらに、整数画素精度について、テンプレートマッチングに基づく動き予測を、画像符号化装置および画像復号装置の両方で行いながら、小数画素精度の動きベクトルを、圧縮画像中に符号化して、画像復号装置に送ることで、圧縮率の低下を抑制することができる。
 また、H.264/AVC方式による動き予測・補償処理を行う際に、テンプレートマッチングに基づく予測も行い、コスト関数値のよい方を選択して符号化処理を行うようにしたので、符号化効率を向上することができる。
 以上においては、符号化方式としてH.264/AVC方式を用いるようにしたが、その他の符号化方式/復号方式を用いることもできる。
 なお、本発明は、例えば、MPEG、H.26x等の様に、離散コサイン変換等の直交変換と動き補償によって圧縮された画像情報(ビットストリーム)を、衛星放送、ケーブルTV(テレビジョン)、インターネット、および携帯電話機などのネットワークメディアを介して受信する際に、あるいは、光、磁気ディスク、およびフラッシュメモリのような記憶メディア上で処理する際に用いられる画像符号化装置および画像復号装置に適用することができる。
 上述した一連の処理は、ハードウエアにより実行させることもできるし、ソフトウエアにより実行させることもできる。一連の処理をソフトウエアにより実行させる場合には、そのソフトウエアを構成するプログラムが、専用のハードウエアに組み込まれているコンピュータ、または、各種のプログラムをインストールすることで、各種の機能を実行することが可能な、例えば汎用のパーソナルコンピュータなどに、プログラム記録媒体からインストールされる。
 コンピュータにインストールされ、コンピュータによって実行可能な状態とされるプログラムを格納するプログラム記録媒体は、磁気ディスク(フレキシブルディスクを含む)、光ディスク(CD-ROM(Compact Disc-Read Only Memory),DVD(Digital Versatile Disc)を含む)、光磁気ディスクを含む)、もしくは半導体メモリなどよりなるパッケージメディアであるリムーバブルメディア、または、プログラムが一時的もしくは永続的に格納されるROMやハードディスクなどにより構成される。プログラム記録媒体へのプログラムの格納は、必要に応じてルータ、モデムなどのインタフェースを介して、ローカルエリアネットワーク、インターネット、デジタル衛星放送といった、有線または無線の通信媒体を利用して行われる。
 なお、本明細書において、プログラムを記述するステップは、記載された順序に沿って時系列的に行われる処理はもちろん、必ずしも時系列的に処理されなくとも、並列的あるいは個別に実行される処理をも含むものである。
 また、本発明の実施の形態は、上述した実施の形態に限定されるものではなく、本発明の要旨を逸脱しない範囲において種々の変更が可能である。
 51 画像符号化装置, 66 可逆符号化部, 74 イントラ予測部, 75 動き予測・補償部, 76 テンプレート動き予測・補償部, 77 小数画素精度動き予測・補償部, 78 予測画像選択部, 112 可逆復号部, 121 イントラ予測部, 122 動き予測・補償部, 123 テンプレート動き予測・補償部, 124 小数画素精度動き予測・補償部, 125 スイッチ

Claims (14)

  1.  符号化された動きベクトルの情報を復号する復号部と、
     フレームの第1の対象ブロックの整数画素精度について、前記第1の対象ブロックに対して所定の位置関係で隣接するとともに復号画像から生成されるテンプレートを利用して動きベクトルを探索することで、整数画素精度の予測画像を生成する第1の動き予測補償部と、
     前記復号部により復号された前記第1の対象ブロックの小数画素精度の動きベクトルの情報を用いて、小数画素精度の予測画像を生成する第2の動き予測補償部と
     を備える画像処理装置。
  2.  前記第2の動き予測補償部は、符号化済みのブロックであって、前記第1の対象ブロックに隣接するブロックである隣接ブロックに対する動きベクトルの情報を用いて前記小数画素精度の動きベクトルの予測値を生成する
     請求項1に記載の画像処理装置。
  3.  前記第2の動き予測補償部は、前記フレームと異なる符号化済みフレームのブロックであって、前記第1の対象ブロックに対応する位置のブロックである対応ブロックと前記対応ブロックに隣接するブロックに対する動きベクトルの情報、または、前記対応ブロックと前記隣接ブロックに対する動きベクトルの情報を用いて前記小数画素精度の動きベクトルの予測値を生成する
     請求項2に記載の画像処理装置。
  4.  前記フレームの第2の対象ブロックの動きベクトルを、前記第2の対象ブロックを利用して探索する第3の動き予測補償部と、
     前記第1または第2の動き予測補償部により探索された前記動きベクトルに基づく予測画像と、前記第3の動き予測補償部により探索された前記動きベクトルに基づく予測画像のうちの一方を選択する画像選択部とをさらに備える
     請求項1に記載の画像処理装置。
  5.  画像処理装置が、
     符号化された動きベクトルの情報を復号し、
     フレームの対象ブロックの整数画素精度について、前記対象ブロックに対して所定の位置関係で隣接するとともに復号画像から生成されるテンプレートを利用して動きベクトルを探索することで、整数画素精度の予測画像を生成し、
     復号された前記対象ブロックの小数画素精度の動きベクトルの情報を用いて、小数画素精度の予測画像を生成する
     ステップを含む画像処理方法。
  6.  フレームの第1の対象ブロックの整数画素精度の動きベクトルを、前記第1の対象ブロックに対して所定の位置関係で隣接するとともに復号画像から生成されるテンプレートを利用して探索する第1の動き予測補償部と、
     前記第1の対象ブロックの小数画素精度の動きベクトルを、前記第1の対象ブロックを利用して探索する第2の動き予測補償部と、
     前記第1の対象ブロックに対する動きベクトルの情報として、前記第2の動き予測補償部により探索された前記小数画素精度の動きベクトルの情報を符号化する符号化部と
     を備える画像処理装置。
  7.  前記第2の動き予測補償部は、符号化済みのブロックであって、前記第1の対象ブロックに隣接するブロックである隣接ブロックに対する動きベクトルの情報を用いて前記小数画素精度の動きベクトルの予測値を生成し、
     前記符号化部は、前記第1の対象ブロックに対する動きベクトルの情報として、前記小数画素精度の動きベクトルの情報と前記予測値との差分を符号化する
     請求項6に記載の画像処理装置。
  8.  前記第2の動き予測補償部は、前記フレームと異なる符号化済みフレームのブロックであって、前記第1の対象ブロックに対応する位置のブロックである対応ブロックと前記対応ブロックに隣接するブロックに対する動きベクトルの情報、または、前記対応ブロックと前記隣接ブロックに対する動きベクトルの情報を用いて前記小数画素精度の動きベクトルの予測値を生成し、
     前記符号化部は、前記第1の対象ブロックに対する動きベクトルの情報として、前記小数画素精度の動きベクトルの情報と前記予測値との差分を符号化する
     請求項7に記載の画像処理装置。
  9.  前記符号化部は、前記第1の対象ブロックの大きさが16×16画素であり、前記小数画素精度の動きベクトルの予測値が0であり、かつ、全ての直交変換係数が0である場合、前記第1の対象ブロックに対する動きベクトルの情報として、前記第1の対象ブロックがテンプレートスキップブロックであることを表すフラグのみを符号化する
     請求項6に記載の画像処理装置。
  10.  前記フレームの第2の対象ブロックの動きベクトルを、前記第2の対象ブロックを利用して探索する第3の動き予測補償部と、
     前記第1または第2の動き予測補償部により探索された前記動きベクトルに基づく予測画像と、前記第3の動き予測補償部により探索された前記動きベクトルに基づく予測画像のうちの一方を選択する画像選択部とをさらに備える
     請求項6に記載の画像処理装置。
  11.  前記符号化部は、算術符号化を行う場合、前記第1および第2の動き予測補償部が対象とする前記第1の対象ブロックに対する第1のコンテクスト、および前記第3の動き予測補償部が対象とする前記第2の対象ブロックに対する第2のコンテクストをそれぞれ定義し、
     前記第1の対象ブロックに対する動きベクトルの情報を前記第1のコンテクストを用いて符号化し、前記第2の対象ブロックに対する動きベクトルの情報を前記第2のコンテクストを用いて符号化する
     請求項10に記載の画像処理装置。
  12.  前記符号化部は、算術符号化を行う場合、1つのコンテクストを定義し、
     前記第1の対象ブロックに対する動きベクトルの情報および前記第2の対象ブロックに対する動きベクトルの情報を前記コンテクストを用いて符号化する
     請求項10に記載の画像処理装置。
  13.  前記符号化部は、算術符号化を行う場合、整数画素精度の動きベクトルの情報に対する第1のコンテクストと、小数画素精度の動きベクトルの情報に対する第2のコンテクストをそれぞれ定義し、
     前記第1の対象ブロックに対する動きベクトルの情報のうち、前記小数画素精度の動きベクトルの情報を前記第2のコンテクストを用いて符号化し、
     前記第2の対象ブロックに対する動きベクトルの情報のうち、前記整数画素精度の動きベクトルの情報を前記第1のコンテクストを用いて符号化し、前記小数画素精度の動きベクトルの情報を前記第2のコンテクストを用いて符号化する
     請求項10に記載の画像処理装置。
  14.  画像処理装置が、
     フレームの対象ブロックの整数画素精度の動きベクトルを、前記対象ブロックに対して所定の位置関係で隣接するとともに復号画像から生成されるテンプレートを利用して探索し、
     前記対象ブロックの小数画素精度の動きベクトルを、前記対象ブロックを利用して探索し、
     前記対象ブロックに対する動きベクトルの情報として、探索された前記小数画素精度の動きベクトルの情報を符号化する
     ステップを含む画像処理方法。
PCT/JP2009/062026 2008-07-01 2009-07-01 画像処理装置および方法 Ceased WO2010001916A1 (ja)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US13/001,373 US20110103486A1 (en) 2008-07-01 2009-07-01 Image processing apparatus and image processing method
CN2009801253546A CN102077596A (zh) 2008-07-01 2009-07-01 图像处理设备和图像处理方法

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2008172269A JP2010016453A (ja) 2008-07-01 2008-07-01 画像符号化装置および方法、画像復号装置および方法、並びにプログラム
JP2008-172269 2008-07-01

Publications (1)

Publication Number Publication Date
WO2010001916A1 true WO2010001916A1 (ja) 2010-01-07

Family

ID=41466008

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2009/062026 Ceased WO2010001916A1 (ja) 2008-07-01 2009-07-01 画像処理装置および方法

Country Status (4)

Country Link
US (1) US20110103486A1 (ja)
JP (1) JP2010016453A (ja)
CN (1) CN102077596A (ja)
WO (1) WO2010001916A1 (ja)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102300088A (zh) * 2010-06-25 2011-12-28 财团法人工业技术研究院 画面内预测模式最佳化方法与图像压缩方法以及装置
JP2013517682A (ja) * 2010-01-19 2013-05-16 トムソン ライセンシング ビデオ・エンコードおよびデコードのための低複雑性テンプレート照合予測のための方法および装置

Families Citing this family (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9036692B2 (en) 2010-01-18 2015-05-19 Mediatek Inc. Motion prediction method
JP5281596B2 (ja) * 2010-02-04 2013-09-04 日本電信電話株式会社 動きベクトル予測方法,動きベクトル予測装置および動きベクトル予測プログラム
JP5281597B2 (ja) * 2010-02-04 2013-09-04 日本電信電話株式会社 動きベクトル予測方法,動きベクトル予測装置および動きベクトル予測プログラム
US9237355B2 (en) 2010-02-19 2016-01-12 Qualcomm Incorporated Adaptive motion resolution for video coding
JP5882984B2 (ja) * 2010-03-16 2016-03-09 トムソン ライセンシングThomson Licensing ビデオ符号化およびビデオ復号化のための暗示的適応型動きベクトル予測子選択の方法および装置
CN102823251B (zh) * 2010-03-31 2015-08-12 Jvc建伍株式会社 动图像编码装置、动图像编码方法及动图像编码程序、以及动图像解码装置、动图像解码方法及动图像解码程序
JP5304708B2 (ja) * 2010-03-31 2013-10-02 株式会社Jvcケンウッド 動画像符号化装置、動画像符号化方法及び動画像符号化プログラム
JP5304709B2 (ja) * 2010-03-31 2013-10-02 株式会社Jvcケンウッド 動画像復号装置、動画像復号方法及び動画像復号プログラム
US10327008B2 (en) 2010-10-13 2019-06-18 Qualcomm Incorporated Adaptive motion vector resolution signaling for video coding
JP2012151576A (ja) 2011-01-18 2012-08-09 Hitachi Ltd 画像符号化方法、画像符号化装置、画像復号方法及び画像復号装置
RU2713857C2 (ru) * 2011-10-17 2020-02-07 Кт Корпорейшен Способ декодирования видеосигнала
TWI580264B (zh) * 2011-11-10 2017-04-21 Sony Corp Image processing apparatus and method
SG11201407508RA (en) 2012-05-14 2014-12-30 Luca Rossato Encoding and decoding based on blending of sequences of samples along time
CN109905710B (zh) * 2012-06-12 2021-12-21 太阳专利托管公司 动态图像编码方法及装置、动态图像解码方法及装置
US9774881B2 (en) 2014-01-08 2017-09-26 Microsoft Technology Licensing, Llc Representing motion vectors in an encoded bitstream
US9942560B2 (en) 2014-01-08 2018-04-10 Microsoft Technology Licensing, Llc Encoding screen capture data
US9749642B2 (en) 2014-01-08 2017-08-29 Microsoft Technology Licensing, Llc Selection of motion vector precision
CN108235007B (zh) * 2016-12-12 2023-06-27 上海天荷电子信息有限公司 各模式使用不同精度同种编码参数的数据压缩方法和装置
JP7167923B2 (ja) 2017-09-15 2022-11-09 ソニーグループ株式会社 画像処理装置および方法
CN116095312A (zh) * 2018-08-04 2023-05-09 北京字节跳动网络技术有限公司 视频处理方法、装置和计算机可读介质
WO2020070612A1 (en) 2018-10-06 2020-04-09 Beijing Bytedance Network Technology Co., Ltd. Improvement for temporal gradient calculating in bio
IL295916A (en) * 2020-03-12 2022-10-01 Interdigital Vc Holdings France Method and apparatus for video encoding and decoding
CN113873244B (zh) * 2020-06-30 2023-10-20 华为技术有限公司 一种系数编解码方法和系数编解码装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005318497A (ja) * 2003-12-26 2005-11-10 Ntt Docomo Inc 画像符号化装置、画像符号化方法、画像符号化プログラム、画像復号装置、画像復号方法、及び画像復号プログラム。
JP2007043651A (ja) * 2005-07-05 2007-02-15 Ntt Docomo Inc 動画像符号化装置、動画像符号化方法、動画像符号化プログラム、動画像復号装置、動画像復号方法及び動画像復号プログラム
JP2007067551A (ja) * 2005-08-29 2007-03-15 Nippon Telegr & Teleph Corp <Ntt> 動きベクトル推定方法,動きベクトル推定装置,動きベクトル推定プログラムおよび動きベクトル推定プログラム記録媒体

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6202344B1 (en) * 1998-07-14 2001-03-20 Paul W. W. Clarke Method and machine for changing agricultural mulch
US6289052B1 (en) * 1999-06-07 2001-09-11 Lucent Technologies Inc. Methods and apparatus for motion estimation using causal templates
EP1445956A4 (en) * 2001-11-16 2009-09-02 Ntt Docomo Inc PICTURE CODING, PICTURE DECODING, PICTURE CODIER, IMAGE DEVELOPER, PROGRAM, COMPUTER DATA SIGNAL AND IMAGE TRANSMISSION SYSTEM
US7408988B2 (en) * 2002-12-20 2008-08-05 Lsi Corporation Motion estimation engine with parallel interpolation and search hardware
WO2005046072A1 (en) * 2003-10-09 2005-05-19 Thomson Licensing Direct mode derivation process for error concealment
JP2006020095A (ja) * 2004-07-01 2006-01-19 Sharp Corp 動きベクトル検出回路、画像符号化回路、動きベクトル検出方法および画像符号化方法
KR20070046852A (ko) * 2004-08-13 2007-05-03 코닌클리케 필립스 일렉트로닉스 엔.브이. 혼합된 그래픽 및 비디오 소스의 압축을 위한 시스템 및방법
WO2006033953A1 (en) * 2004-09-16 2006-03-30 Thomson Licensing Video codec with weighted prediction utilizing local brightness variation
CN1658673A (zh) * 2005-03-23 2005-08-24 南京大学 视频压缩编解码方法
WO2006106935A1 (ja) * 2005-04-01 2006-10-12 Matsushita Electric Industrial Co., Ltd. 画像復号化装置及び画像復号化方法
JP4551814B2 (ja) * 2005-05-16 2010-09-29 Okiセミコンダクタ株式会社 無線通信装置
JP4686280B2 (ja) * 2005-07-06 2011-05-25 株式会社東芝 動画像符号化装置
KR100711878B1 (ko) * 2005-08-30 2007-04-25 삼성에스디아이 주식회사 레이저 열 전사 장치 및 레이저 열 전사 방법
US8170102B2 (en) * 2005-12-19 2012-05-01 Seiko Epson Corporation Macroblock homogeneity analysis and inter mode prediction
US8498336B2 (en) * 2006-02-02 2013-07-30 Thomson Licensing Method and apparatus for adaptive weight selection for motion compensated prediction
KR20100085199A (ko) * 2006-04-28 2010-07-28 가부시키가이샤 엔티티 도코모 화상 예측 부호화 장치, 화상 예측 부호화 방법, 화상 예측 부호화 프로그램, 화상 예측 복호 장치, 화상 예측 복호 방법 및 화상 예측 복호 프로그램

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005318497A (ja) * 2003-12-26 2005-11-10 Ntt Docomo Inc 画像符号化装置、画像符号化方法、画像符号化プログラム、画像復号装置、画像復号方法、及び画像復号プログラム。
JP2007043651A (ja) * 2005-07-05 2007-02-15 Ntt Docomo Inc 動画像符号化装置、動画像符号化方法、動画像符号化プログラム、動画像復号装置、動画像復号方法及び動画像復号プログラム
JP2007067551A (ja) * 2005-08-29 2007-03-15 Nippon Telegr & Teleph Corp <Ntt> 動きベクトル推定方法,動きベクトル推定装置,動きベクトル推定プログラムおよび動きベクトル推定プログラム記録媒体

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013517682A (ja) * 2010-01-19 2013-05-16 トムソン ライセンシング ビデオ・エンコードおよびデコードのための低複雑性テンプレート照合予測のための方法および装置
US9516341B2 (en) 2010-01-19 2016-12-06 Thomson Licensing Methods and apparatus for reduced complexity template matching prediction for video encoding and decoding
US10349080B2 (en) 2010-01-19 2019-07-09 Interdigital Madison Patent Holdings Methods and apparatus for reduced complexity template matching prediction for video encoding and decoding
CN102300088A (zh) * 2010-06-25 2011-12-28 财团法人工业技术研究院 画面内预测模式最佳化方法与图像压缩方法以及装置
CN102300088B (zh) * 2010-06-25 2013-11-06 财团法人工业技术研究院 画面内预测模式最佳化方法与图像压缩方法以及装置

Also Published As

Publication number Publication date
US20110103486A1 (en) 2011-05-05
CN102077596A (zh) 2011-05-25
JP2010016453A (ja) 2010-01-21

Similar Documents

Publication Publication Date Title
WO2010001916A1 (ja) 画像処理装置および方法
WO2010001917A1 (ja) 画像処理装置および方法
RU2696237C2 (ru) Способ декодирования видеосигнала
CN104363457B (zh) 图像处理设备和方法
CN104811715B (zh) 使用平面表达的增强帧内预测编码
WO2010001918A1 (ja) 画像処理装置および方法、並びにプログラム
CN102415098B (zh) 图像处理设备和方法
JP2010268259A (ja) 画像処理装置および方法、並びにプログラム
WO2010123055A1 (ja) 画像処理装置および方法
WO2010123057A1 (ja) 画像処理装置および方法
WO2010035735A1 (ja) 画像処理装置および方法
JP5488684B2 (ja) 画像処理装置および方法、プログラム、並びに記録媒体
JP5488685B2 (ja) 画像処理装置および方法、プログラム、並びに記録媒体
JP2011135460A (ja) 動画像符号化装置および動画像復号装置
JP4971817B2 (ja) 画像符号化装置
JP2006295503A (ja) 再符号化装置、再符号化方法、および再符号化用プログラム
JP6102977B2 (ja) 画像処理装置および方法、プログラム、並びに記録媒体
JP5776803B2 (ja) 画像処理装置および方法、並びに記録媒体
JP5776804B2 (ja) 画像処理装置および方法、並びに記録媒体
JP2015167387A (ja) 画像処理装置および方法、プログラム、並びに記録媒体

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 200980125354.6

Country of ref document: CN

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

Ref document number: 09773494

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 13001373

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: 09773494

Country of ref document: EP

Kind code of ref document: A1