am a484fe21: Merge "Remove the YV16 format." into gingerbread

Merge commit 'a484fe215059e8c927cdbbec7d5c9683962d8f9b'

* commit 'a484fe215059e8c927cdbbec7d5c9683962d8f9b':
  Remove the YV16 format.
This commit is contained in:
Mathias Agopian 2010-07-14 16:39:57 -07:00 committed by Android Git Automerger
commit bcc1f4a90b

View File

@ -240,14 +240,9 @@ int gpu_context_t::alloc_impl(int w, int h, int format, int usage,
case HAL_PIXEL_FORMAT_YV12:
alignedw = ALIGN(w, 16);
alignedh = ALIGN(h, 16);
size = alignedw * alignedh;
size += size / 2;
break;
case HAL_PIXEL_FORMAT_YV16:
alignedh = ALIGN(h, 16);
size = alignedw * alignedh * 2;
alignedh = ALIGN(h, 2);
size = alignedw*alignedh +
(ALIGN(alignedw/2, 16) * (alignedh/2))*2;
break;
default: