Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Remove the YV16 format.

Change-Id: I3f7995ba0cf41bcde995df293bea78bce7d82fc9
  • Loading branch information...
commit 4248ce329aa5164322acb15be20cbf32648a9790 1 parent 259111a
Mathias Agopian authored

Showing 1 changed file with 3 additions and 8 deletions. Show diff stats Hide diff stats

  1. +3 8 libgralloc-qsd8k/gpu.cpp
11 libgralloc-qsd8k/gpu.cpp
@@ -240,14 +240,9 @@ int gpu_context_t::alloc_impl(int w, int h, int format, int usage,
240 240
241 241 case HAL_PIXEL_FORMAT_YV12:
242 242 alignedw = ALIGN(w, 16);
243   - alignedh = ALIGN(h, 16);
244   - size = alignedw * alignedh;
245   - size += size / 2;
246   - break;
247   -
248   - case HAL_PIXEL_FORMAT_YV16:
249   - alignedh = ALIGN(h, 16);
250   - size = alignedw * alignedh * 2;
  243 + alignedh = ALIGN(h, 2);
  244 + size = alignedw*alignedh +
  245 + (ALIGN(alignedw/2, 16) * (alignedh/2))*2;
251 246 break;
252 247
253 248 default:

0 comments on commit 4248ce3

Please sign in to comment.
Something went wrong with that request. Please try again.