summaryrefslogtreecommitdiffstats
path: root/media/libmedia
diff options
context:
space:
mode:
authorJeff Tinker <jtinker@google.com>2014-11-06 02:36:17 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-11-06 02:36:17 +0000
commit1cf9ad1abb599ce4057189e0db154cf00b4913f8 (patch)
tree1bbf6047da0636dddcac32a904d55c2cd87d2ba0 /media/libmedia
parent19a3f69d9d5398db62ee7b15f2c13052d7ee9f07 (diff)
parent2514d080c8a54ff603a45d7e336de668fe7329db (diff)
downloadframeworks_av-1cf9ad1abb599ce4057189e0db154cf00b4913f8.zip
frameworks_av-1cf9ad1abb599ce4057189e0db154cf00b4913f8.tar.gz
frameworks_av-1cf9ad1abb599ce4057189e0db154cf00b4913f8.tar.bz2
Merge "Pass resolution to Crypto plugin on format change" into lmp-mr1-dev
Diffstat (limited to 'media/libmedia')
-rw-r--r--media/libmedia/ICrypto.cpp22
1 files changed, 21 insertions, 1 deletions
diff --git a/media/libmedia/ICrypto.cpp b/media/libmedia/ICrypto.cpp
index 0d5f990..c26c5bf 100644
--- a/media/libmedia/ICrypto.cpp
+++ b/media/libmedia/ICrypto.cpp
@@ -33,6 +33,7 @@ enum {
DESTROY_PLUGIN,
REQUIRES_SECURE_COMPONENT,
DECRYPT,
+ NOTIFY_RESOLUTION,
};
struct BpCrypto : public BpInterface<ICrypto> {
@@ -149,6 +150,15 @@ struct BpCrypto : public BpInterface<ICrypto> {
return result;
}
+ virtual void notifyResolution(
+ uint32_t width, uint32_t height) {
+ Parcel data, reply;
+ data.writeInterfaceToken(ICrypto::getInterfaceDescriptor());
+ data.writeInt32(width);
+ data.writeInt32(height);
+ remote()->transact(NOTIFY_RESOLUTION, data, &reply);
+ }
+
private:
DISALLOW_EVIL_CONSTRUCTORS(BpCrypto);
};
@@ -290,10 +300,20 @@ status_t BnCrypto::onTransact(
return OK;
}
+ case NOTIFY_RESOLUTION:
+ {
+ CHECK_INTERFACE(ICrypto, data, reply);
+
+ int32_t width = data.readInt32();
+ int32_t height = data.readInt32();
+ notifyResolution(width, height);
+
+ return OK;
+ }
+
default:
return BBinder::onTransact(code, data, reply, flags);
}
}
} // namespace android
-