A method for processing video image data including a plurality of
different image data types begins by providing tasks to be performed on
each different image data type. The image data is divided into a
plurality of groups based on the image data type. A set of arithmetic
operations required to accomplish the tasks provided for the
corresponding image data type is determined. Each arithmetic operation is
assigned to one of a plurality of commonly used arithmetic units which
performs the arithmetic operation, whereby each image data type is
transformed in accordance with the corresponding provided tasks. The
transformed image data of each group is combined, completing the
processing.