diff options
| author | Jason Sams <jsams@google.com> | 2013-02-15 18:13:43 -0800 |
|---|---|---|
| committer | Jason Sams <jsams@google.com> | 2013-02-15 18:13:43 -0800 |
| commit | bc0ca6ba4e31239bf77060578d0bdf1a10e04168 (patch) | |
| tree | b9d9131f89406a6faaa7b106ad1f60a4ec58cae7 /rsComponent.cpp | |
| parent | 27c96a4d92d2216e5d902b3805bca44519f64b27 (diff) | |
| download | android_frameworks_rs-bc0ca6ba4e31239bf77060578d0bdf1a10e04168.tar.gz android_frameworks_rs-bc0ca6ba4e31239bf77060578d0bdf1a10e04168.tar.bz2 android_frameworks_rs-bc0ca6ba4e31239bf77060578d0bdf1a10e04168.zip | |
Support typed YUV allocations
Change-Id: I844051ee1be1462e497d238f5460f301be1aaa1d
Diffstat (limited to 'rsComponent.cpp')
| -rw-r--r-- | rsComponent.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/rsComponent.cpp b/rsComponent.cpp index d240952b..e48af4e8 100644 --- a/rsComponent.cpp +++ b/rsComponent.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009-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. @@ -61,6 +61,12 @@ void Component::set(RsDataType dt, RsDataKind dk, bool norm, uint32_t vecSize) { rsAssert(mVectorSize == 4); rsAssert(mNormalized == true); break; + case RS_KIND_PIXEL_YUV: + mIsPixel = true; + rsAssert(mVectorSize == 1); + rsAssert(mNormalized == true); + break; + default: rsAssert(mKind != RS_KIND_INVALID); break; |
