Remove the YV16 format.
Change-Id: I3f7995ba0cf41bcde995df293bea78bce7d82fc9
This commit is contained in:
parent
3f3bead8b6
commit
fce1cc8a83
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user