summaryrefslogtreecommitdiff
path: root/cpp/ScriptIntrinsics.cpp
diff options
context:
space:
mode:
authorJason Sams <jsams@google.com>2014-03-18 21:31:44 +0000
committerJason Sams <jsams@google.com>2014-03-18 21:32:29 +0000
commit933bdc9b648995ab68da746c6daa2206eec02b0f (patch)
tree49077ebc7c04639e49b7b3903d6226a0a0a11a31 /cpp/ScriptIntrinsics.cpp
parent64048e720cf940cb0f7f6f9a4ab4f061918a1fd9 (diff)
downloadrs-933bdc9b648995ab68da746c6daa2206eec02b0f.tar.gz
Revert "RS: Add VP9 LoopFilter Intrinsic"
This has build errors with the x86 SDK. This reverts commit 64048e720cf940cb0f7f6f9a4ab4f061918a1fd9. Change-Id: Ia712a46abd06e2a580853c863bfa53410b7f99e9
Diffstat (limited to 'cpp/ScriptIntrinsics.cpp')
-rw-r--r--cpp/ScriptIntrinsics.cpp45
1 files changed, 0 insertions, 45 deletions
diff --git a/cpp/ScriptIntrinsics.cpp b/cpp/ScriptIntrinsics.cpp
index 34b2162c..f9a1d979 100644
--- a/cpp/ScriptIntrinsics.cpp
+++ b/cpp/ScriptIntrinsics.cpp
@@ -644,48 +644,3 @@ void ScriptIntrinsicYuvToRGB::forEach(sp<Allocation> out) {
Script::forEach(0, NULL, out, NULL, 0);
}
-
-sp<ScriptIntrinsicVP9LoopFilter> ScriptIntrinsicVP9LoopFilter::create(sp<RS> rs, sp<const Element> e) {
- if (!(e->isCompatible(Element::U8(rs)))) {
- rs->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element for Vp9LoopFilter");
- return NULL;
- }
- return new ScriptIntrinsicVP9LoopFilter(rs, e);
-}
-
-ScriptIntrinsicVP9LoopFilter::ScriptIntrinsicVP9LoopFilter(sp<RS> rs, sp<const Element> e)
- : ScriptIntrinsic(rs, RS_SCRIPT_INTRINSIC_ID_LOOP_FILTER, e) {
- sp<const Type> t_pad = Type::create(rs, e, 1, 0, 0);
- mPadAlloc = Allocation::createTyped(rs, t_pad, RS_ALLOCATION_MIPMAP_NONE, RS_ALLOCATION_USAGE_SCRIPT, NULL);
-}
-
-void ScriptIntrinsicVP9LoopFilter::setLoopFilterDomain(int start, int stop, int numPlanes, int miRows, int miCols) {
- FieldPacker fp(20);
- fp.add(start);
- fp.add(stop);
- fp.add(numPlanes);
- fp.add(miRows);
- fp.add(miCols);
- Script::setVar(0, fp.getData(), fp.getLength());
-}
-
-void ScriptIntrinsicVP9LoopFilter::setBufferInfo(const BufferInfo *bufInfo) {
- Script::setVar(1, bufInfo, sizeof(BufferInfo));
-}
-
-void ScriptIntrinsicVP9LoopFilter::setLoopFilterInfo(sp<Allocation> lfInfo) {
- Script::setVar(2, lfInfo);
-}
-
-void ScriptIntrinsicVP9LoopFilter::setLoopFilterMasks(sp<Allocation> lfMasks) {
- Script::setVar(3, lfMasks);
-}
-
-void ScriptIntrinsicVP9LoopFilter::forEach(sp<Allocation> frameBuffer) {
- if (!(frameBuffer->getType()->getElement()->isCompatible(mElement))) {
- mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element for input/output in Vp9LoopFilter");
- return;
- }
- Script::setVar(4, frameBuffer);
- Script::forEach(0, mPadAlloc, NULL, NULL, 0);
-}