主权项 |
1. A motion compensating apparatus that performs motion-compensated prediction with fractional-pixel accuracy between pictures that constitute a moving picture, said motion compensating apparatus comprising:
a high-order tap filtering circuit configured to generate pieces of pixel data with half-pixel accuracy used for motion-compensated prediction, by successively performing filtering operations in a predetermined direction on pieces of reference pixel data, the pieces of reference pixel data being included in each block to be processed, and each of the pieces of reference pixel data including integer pixels; an intermediate output pixel memory configured to store the pieces of pixel data with half-pixel accuracy generated by said high-order tap filtering circuit; a necessary pixel determining circuit configured to determine, as a necessary pixel area, a pixel area necessary for processing performed by said high-order tap filtering circuit, based on a position of a pixel to be motion compensated; and a data transfer controlling circuit configured to control transfer of the pieces of reference pixel data, wherein said data transfer controlling circuit is configured to transfer, to said high-order tap filtering circuit, only ones of the pieces of reference pixel data included in the necessary pixel area determined by said necessary pixel determining circuit, wherein said high-order tap filtering circuit is configured to generate the pieces of pixel data with half-pixel accuracy from the pieces of reference pixel data transferred by said data transfer controlling circuit, wherein said necessary pixel determining circuit is configured to determine whether the position of the pixel to be motion compensated is (i) a position with integer accuracy, or (ii) a position with fractional accuracy, wherein, when said necessary pixel determining circuit determines that the position of the pixel to be motion compensated is the position with integer accuracy, said necessary pixel determining circuit determines, as the necessary pixel area, a first area including only integer pixels within a current block to be processed, wherein, when said necessary pixel determining circuit determines that the position of the pixel to be motion compensated is the position with fractional accuracy, said necessary pixel determining circuit determines, as the necessary pixel area, both an area including integer pixels within the current block to be processed and a second area including integer pixels outside of and surrounding the current block to be processed, the second area being larger than the first area, and wherein the current block to be processed is made up of horizontal M pixels×vertical N pixels, where M and N are positive integers, and wherein said data transfer controlling circuit is configured to:
compare the horizontal M pixels and the vertical N pixels;transfer the pieces of reference pixel data used for the current block to be processed to said high-order tap filtering circuit in the vertical direction, and then transfer ones of the pieces of reference pixel data used for the current block to be processed to said high-order tap filtering circuit in the horizontal direction, in the case where N is smaller than M; andtransfer the pieces of reference pixel data used for the current block to be processed to said high-order tap filtering circuit in the horizontal direction, and then transfer ones of the pieces of the reference pixel data used for the current block to be processed to said high-order tap filtering circuit in the vertical direction, in the case where M is smaller than N. |