Merge "Remove the YV16 format." into gingerbread

This commit is contained in:
Mathias Agopian 2010-07-14 16:30:21 -07:00 committed by Android (Google) Code Review
commit c901bf964d

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: