From dd6c8b34f172ba699954e4d3095dba8c0fd5e930 Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Fri, 15 Feb 2013 17:27:24 -0800 Subject: Support typed YUV allocations. Change-Id: I56e7a318dc979f0b7454fcfa5773ea6d95bbaeaa --- graphics/java/android/renderscript/Element.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'graphics/java/android/renderscript/Element.java') diff --git a/graphics/java/android/renderscript/Element.java b/graphics/java/android/renderscript/Element.java index a79ce1776776..f6c07d1a80f0 100644 --- a/graphics/java/android/renderscript/Element.java +++ b/graphics/java/android/renderscript/Element.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008-2012 The Android Open Source Project + * Copyright (C) 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -906,7 +906,8 @@ public class Element extends BaseObj { dk == DataKind.PIXEL_LA || dk == DataKind.PIXEL_RGB || dk == DataKind.PIXEL_RGBA || - dk == DataKind.PIXEL_DEPTH)) { + dk == DataKind.PIXEL_DEPTH || + dk == DataKind.PIXEL_YUV)) { throw new RSIllegalArgumentException("Unsupported DataKind"); } if (!(dt == DataType.UNSIGNED_8 || -- cgit v1.2.3