diff options
author | Glenn Kasten <gkasten@google.com> | 2014-01-31 09:48:42 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2014-02-03 17:07:22 -0800 |
commit | cc1e0e807ee9a9f163a4685cbd6efd6ae55849cf (patch) | |
tree | 5defc52d8f1743923308ba7d970e1392c7866607 /media/libnbaio | |
parent | 51d53cd993043d9286e12cba884e6ee4d10b5fac (diff) | |
download | frameworks_av-cc1e0e807ee9a9f163a4685cbd6efd6ae55849cf.zip frameworks_av-cc1e0e807ee9a9f163a4685cbd6efd6ae55849cf.tar.gz frameworks_av-cc1e0e807ee9a9f163a4685cbd6efd6ae55849cf.tar.bz2 |
Add Format_isValid() and Format_isEqual() to NBAIO
This is in preparation for changing the typedef to a struct.
Change-Id: I8eb1c7d98fd12f997641e462359864fdb834abe6
Diffstat (limited to 'media/libnbaio')
-rw-r--r-- | media/libnbaio/NBAIO.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/media/libnbaio/NBAIO.cpp b/media/libnbaio/NBAIO.cpp index 8a8155d..cc12671 100644 --- a/media/libnbaio/NBAIO.cpp +++ b/media/libnbaio/NBAIO.cpp @@ -235,4 +235,14 @@ ssize_t NBAIO_Port::negotiate(const NBAIO_Format offers[], size_t numOffers, return (ssize_t) NEGOTIATE; } +bool Format_isValid(const NBAIO_Format& format) +{ + return format != Format_Invalid; +} + +bool Format_isEqual(const NBAIO_Format& format1, const NBAIO_Format& format2) +{ + return format1 == format2; +} + } // namespace android |