diff options
author | Andy Hung <hunga@google.com> | 2014-05-01 18:47:58 -0700 |
---|---|---|
committer | Andy Hung <hunga@google.com> | 2014-05-05 17:41:58 -0700 |
commit | 0ae7801bd228025dc4941be086f88e34b70df90f (patch) | |
tree | 614f8799475721e3a1814fb9878aaf7da8be904c /cmds | |
parent | f4b0e603d3e27728ca19c02a44342607a54db7d4 (diff) | |
download | frameworks_av-0ae7801bd228025dc4941be086f88e34b70df90f.zip frameworks_av-0ae7801bd228025dc4941be086f88e34b70df90f.tar.gz frameworks_av-0ae7801bd228025dc4941be086f88e34b70df90f.tar.bz2 |
Remove warnings in recordvideo
Change-Id: I2ed72836210fd3a02c7bceeb5fccadf8dcb92fbc
Signed-off-by: Andy Hung <hunga@google.com>
Diffstat (limited to 'cmds')
-rw-r--r-- | cmds/stagefright/recordvideo.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/cmds/stagefright/recordvideo.cpp b/cmds/stagefright/recordvideo.cpp index 1d267f9..9f547c7 100644 --- a/cmds/stagefright/recordvideo.cpp +++ b/cmds/stagefright/recordvideo.cpp @@ -73,7 +73,7 @@ public: return meta; } - virtual status_t start(MetaData *params) { + virtual status_t start(MetaData *params __unused) { mNumFramesOutput = 0; return OK; } @@ -83,7 +83,7 @@ public: } virtual status_t read( - MediaBuffer **buffer, const MediaSource::ReadOptions *options) { + MediaBuffer **buffer, const MediaSource::ReadOptions *options __unused) { if (mNumFramesOutput % 10 == 0) { fprintf(stderr, "."); @@ -100,8 +100,12 @@ public: // We don't care about the contents. we just test video encoder // Also, by skipping the content generation, we can return from // read() much faster. - //char x = (char)((double)rand() / RAND_MAX * 255); - //memset((*buffer)->data(), x, mSize); +#if 0 + // iterate through solid planes of color. + static unsigned char x = 0x60; + memset((*buffer)->data(), x, mSize); + x = x >= 0xa0 ? 0x60 : x + 1; +#endif (*buffer)->set_range(0, mSize); (*buffer)->meta_data()->clear(); (*buffer)->meta_data()->setInt64( @@ -163,7 +167,7 @@ int main(int argc, char **argv) { int level = -1; // Encoder specific default int profile = -1; // Encoder specific default int codec = 0; - char *fileName = "/sdcard/output.mp4"; + const char *fileName = "/sdcard/output.mp4"; bool preferSoftwareCodec = false; android::ProcessState::self()->startThreadPool(); |