diff options
author | Glenn Kasten <gkasten@google.com> | 2014-02-07 19:55:54 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-02-07 19:55:54 +0000 |
commit | 19f420ea68424a608e982d39ab76676a05337685 (patch) | |
tree | 91f2c7b49994a6197962ce58f84285b7a41fd375 /media | |
parent | f74f213c0cd0612101e00a73704429dac1a92fe3 (diff) | |
parent | cc1e0e807ee9a9f163a4685cbd6efd6ae55849cf (diff) | |
download | frameworks_av-19f420ea68424a608e982d39ab76676a05337685.zip frameworks_av-19f420ea68424a608e982d39ab76676a05337685.tar.gz frameworks_av-19f420ea68424a608e982d39ab76676a05337685.tar.bz2 |
Merge "Add Format_isValid() and Format_isEqual() to NBAIO"
Diffstat (limited to 'media')
-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 |