diff options
author | Miao Wang <miaowang@google.com> | 2015-04-12 13:39:56 -0700 |
---|---|---|
committer | Miao Wang <miaowang@google.com> | 2015-04-15 16:59:07 -0700 |
commit | 43a6cba1be3ef984cd619c85373973cbb93edf5e (patch) | |
tree | 5f8f4a933b5d1a66217ca9be25e4cfc66c70ebc9 /cpp/Element.cpp | |
parent | bc10dff26207bb8c02051b28326bb134a8f28eb3 (diff) | |
download | rs-43a6cba1be3ef984cd619c85373973cbb93edf5e.tar.gz |
Enable YUV support in rs C++ API.
Change-Id: I5326c2b6551953e19da50aff1848557231b908e5
Diffstat (limited to 'cpp/Element.cpp')
-rw-r--r-- | cpp/Element.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/Element.cpp b/cpp/Element.cpp index dd4707c0..cfbc3854 100644 --- a/cpp/Element.cpp +++ b/cpp/Element.cpp @@ -331,7 +331,8 @@ android::RSC::sp<const Element> Element::createPixel(android::RSC::sp<RS> rs, Rs dk == RS_KIND_PIXEL_LA || dk == RS_KIND_PIXEL_RGB || dk == RS_KIND_PIXEL_RGBA || - dk == RS_KIND_PIXEL_DEPTH)) { + dk == RS_KIND_PIXEL_DEPTH || + dk == RS_KIND_PIXEL_YUV)) { rs->throwError(RS_ERROR_INVALID_PARAMETER, "Unsupported DataKind"); return nullptr; } |