Methods, systems, and apparatuses for averaging data in packed format are
provided. The data may be image data, such as data words containing
color-specific data portions representative of pixels of a captured
image. A first data word containing first image data is received. A
second data word containing second image data is received. A logical AND
of the first data word and the second data word is performed to generate
a third data word. A logical exclusive OR (XOR) of the first data word
and the second data word is performed to generate a fourth data word. A
right shift of the fourth data word is performed. The third data word and
the right shifted fourth data word are summed to generate a fifth data
word that is an average of the first and second data words.