Permalink
Browse files

Remove the YV16 format.

Change-Id: I3f7995ba0cf41bcde995df293bea78bce7d82fc9
  • Loading branch information...
1 parent 259111a commit 4248ce329aa5164322acb15be20cbf32648a9790 Mathias Agopian committed Jul 7, 2010
Showing with 3 additions and 8 deletions.
  1. +3 −8 libgralloc-qsd8k/gpu.cpp
View
11 libgralloc-qsd8k/gpu.cpp
@@ -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:

0 comments on commit 4248ce3

Please sign in to comment.