diff options
author | Glenn Kasten <gkasten@google.com> | 2014-02-07 21:49:24 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-02-07 21:49:24 +0000 |
commit | c99144dd2766c499701a7bd7db2d9d8697127186 (patch) | |
tree | 8b8e96c191387c4e1454945c2a5a31b2b4164c71 /include | |
parent | ddc0630dd80847dad5253bb285a16e3ed9cc0320 (diff) | |
parent | 4d7b3f876b21997680ae32a340d746ed1cae6ab1 (diff) | |
download | frameworks_av-c99144dd2766c499701a7bd7db2d9d8697127186.zip frameworks_av-c99144dd2766c499701a7bd7db2d9d8697127186.tar.gz frameworks_av-c99144dd2766c499701a7bd7db2d9d8697127186.tar.bz2 |
Merge "Change Format_frameBitShift() API for non-power-of-2 sizes"
Diffstat (limited to 'include')
-rw-r--r-- | include/media/nbaio/NBAIO.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/media/nbaio/NBAIO.h b/include/media/nbaio/NBAIO.h index cdeb4ca..56896b9 100644 --- a/include/media/nbaio/NBAIO.h +++ b/include/media/nbaio/NBAIO.h @@ -63,7 +63,8 @@ extern const NBAIO_Format Format_Invalid; size_t Format_frameSize(const NBAIO_Format& format); // Return the frame size of an NBAIO_Format as a bit shift -size_t Format_frameBitShift(const NBAIO_Format& format); +// or -1 if frame size is not a power of 2 +int Format_frameBitShift(const NBAIO_Format& format); // Convert a sample rate in Hz and channel count to an NBAIO_Format // FIXME The sample format is hard-coded to AUDIO_FORMAT_PCM_16_BIT |