diff options
author | Glenn Kasten <gkasten@google.com> | 2013-07-10 17:03:19 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2013-07-10 17:08:15 -0700 |
commit | fb1fdc9d6603aa228362e7349451f6455c9849c2 (patch) | |
tree | 1caac6c881db81bcfedb596b292ce62ecbaf6a2c /include/media/nbaio | |
parent | 551ababe67ce31778000d52958e53e1c56e1a294 (diff) | |
download | frameworks_av-fb1fdc9d6603aa228362e7349451f6455c9849c2.zip frameworks_av-fb1fdc9d6603aa228362e7349451f6455c9849c2.tar.gz frameworks_av-fb1fdc9d6603aa228362e7349451f6455c9849c2.tar.bz2 |
Add comments
Change-Id: Ifbf3a46a4183c8abc0feee1c588953ab10303cc1
Diffstat (limited to 'include/media/nbaio')
-rw-r--r-- | include/media/nbaio/NBLog.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/media/nbaio/NBLog.h b/include/media/nbaio/NBLog.h index 107ba66..6d59ea7 100644 --- a/include/media/nbaio/NBLog.h +++ b/include/media/nbaio/NBLog.h @@ -90,6 +90,8 @@ public: virtual ~Timeline(); #endif + // Input parameter 'size' is the desired size of the timeline in byte units. + // Returns the size rounded up to a power-of-2, plus the constant size overhead for indices. static size_t sharedSize(size_t size); #if 0 @@ -110,8 +112,12 @@ private: class Writer : public RefBase { public: Writer(); // dummy nop implementation without shared memory + + // Input parameter 'size' is the desired size of the timeline in byte units. + // The size of the shared memory must be at least Timeline::sharedSize(size). Writer(size_t size, void *shared); Writer(size_t size, const sp<IMemory>& iMemory); + virtual ~Writer() { } virtual void log(const char *string); @@ -165,8 +171,12 @@ private: class Reader : public RefBase { public: + + // Input parameter 'size' is the desired size of the timeline in byte units. + // The size of the shared memory must be at least Timeline::sharedSize(size). Reader(size_t size, const void *shared); Reader(size_t size, const sp<IMemory>& iMemory); + virtual ~Reader() { } void dump(int fd, size_t indent = 0); |