Loading camera/CameraParameters.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -470,7 +470,7 @@ status_t CameraParameters::dump(int fd, const Vector<String16>& args) const const size_t SIZE = 256; char buffer[SIZE]; String8 result; snprintf(buffer, 255, "CameraParameters::dump: mMap.size = %d\n", mMap.size()); snprintf(buffer, 255, "CameraParameters::dump: mMap.size = %zu\n", mMap.size()); result.append(buffer); for (size_t i = 0; i < mMap.size(); i++) { String8 k, v; Loading cmds/stagefright/codec.cpp +4 −3 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ //#define LOG_NDEBUG 0 #define LOG_TAG "codec" #include <inttypes.h> #include <utils/Log.h> #include "SimplePlayer.h" Loading Loading @@ -291,13 +292,13 @@ static int decode( CHECK_EQ((status_t)OK, state->mCodec->release()); if (state->mIsAudio) { printf("track %d: %lld bytes received. %.2f KB/sec\n", printf("track %zu: %" PRId64 " bytes received. %.2f KB/sec\n", i, state->mNumBytesDecoded, state->mNumBytesDecoded * 1E6 / 1024 / elapsedTimeUs); } else { printf("track %d: %lld frames decoded, %.2f fps. %lld bytes " "received. %.2f KB/sec\n", printf("track %zu: %" PRId64 " frames decoded, %.2f fps. %" PRId64 " bytes received. %.2f KB/sec\n", i, state->mNumBuffersDecoded, state->mNumBuffersDecoded * 1E6 / elapsedTimeUs, Loading cmds/stagefright/muxer.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ //#define LOG_NDEBUG 0 #define LOG_TAG "muxer" #include <inttypes.h> #include <utils/Log.h> #include <binder/ProcessState.h> Loading Loading @@ -198,7 +199,7 @@ static int muxing( trackIndexMap.clear(); int64_t elapsedTimeUs = ALooper::GetNowUs() - muxerStartTimeUs; fprintf(stderr, "SUCCESS: muxer generate the video in %lld ms\n", fprintf(stderr, "SUCCESS: muxer generate the video in %" PRId64 " ms\n", elapsedTimeUs / 1000); return 0; Loading cmds/stagefright/recordvideo.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ #include "SineSource.h" #include <inttypes.h> #include <binder/ProcessState.h> #include <media/stagefright/foundation/ADebug.h> #include <media/stagefright/AudioPlayer.h> Loading Loading @@ -312,7 +313,7 @@ int main(int argc, char **argv) { fprintf(stderr, "record failed: %d\n", err); return 1; } fprintf(stderr, "encoding %d frames in %lld us\n", nFrames, (end-start)/1000); fprintf(stderr, "encoding %d frames in %" PRId64 " us\n", nFrames, (end-start)/1000); fprintf(stderr, "encoding speed is: %.2f fps\n", (nFrames * 1E9) / (end-start)); return 0; } cmds/stagefright/sf2.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ //#define LOG_NDEBUG 0 #define LOG_TAG "sf2" #include <inttypes.h> #include <utils/Log.h> #include <binder/ProcessState.h> Loading Loading @@ -183,11 +184,11 @@ protected: int64_t delayUs = ALooper::GetNowUs() - mStartTimeUs; if (mDecodeAudio) { printf("%lld bytes received. %.2f KB/sec\n", printf("%" PRId64 " bytes received. %.2f KB/sec\n", mTotalBytesReceived, mTotalBytesReceived * 1E6 / 1024 / delayUs); } else { printf("%d frames decoded, %.2f fps. %lld bytes " printf("%d frames decoded, %.2f fps. %" PRId64 " bytes " "received. %.2f KB/sec\n", mNumOutputBuffersReceived, mNumOutputBuffersReceived * 1E6 / delayUs, Loading Loading
camera/CameraParameters.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -470,7 +470,7 @@ status_t CameraParameters::dump(int fd, const Vector<String16>& args) const const size_t SIZE = 256; char buffer[SIZE]; String8 result; snprintf(buffer, 255, "CameraParameters::dump: mMap.size = %d\n", mMap.size()); snprintf(buffer, 255, "CameraParameters::dump: mMap.size = %zu\n", mMap.size()); result.append(buffer); for (size_t i = 0; i < mMap.size(); i++) { String8 k, v; Loading
cmds/stagefright/codec.cpp +4 −3 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ //#define LOG_NDEBUG 0 #define LOG_TAG "codec" #include <inttypes.h> #include <utils/Log.h> #include "SimplePlayer.h" Loading Loading @@ -291,13 +292,13 @@ static int decode( CHECK_EQ((status_t)OK, state->mCodec->release()); if (state->mIsAudio) { printf("track %d: %lld bytes received. %.2f KB/sec\n", printf("track %zu: %" PRId64 " bytes received. %.2f KB/sec\n", i, state->mNumBytesDecoded, state->mNumBytesDecoded * 1E6 / 1024 / elapsedTimeUs); } else { printf("track %d: %lld frames decoded, %.2f fps. %lld bytes " "received. %.2f KB/sec\n", printf("track %zu: %" PRId64 " frames decoded, %.2f fps. %" PRId64 " bytes received. %.2f KB/sec\n", i, state->mNumBuffersDecoded, state->mNumBuffersDecoded * 1E6 / elapsedTimeUs, Loading
cmds/stagefright/muxer.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ //#define LOG_NDEBUG 0 #define LOG_TAG "muxer" #include <inttypes.h> #include <utils/Log.h> #include <binder/ProcessState.h> Loading Loading @@ -198,7 +199,7 @@ static int muxing( trackIndexMap.clear(); int64_t elapsedTimeUs = ALooper::GetNowUs() - muxerStartTimeUs; fprintf(stderr, "SUCCESS: muxer generate the video in %lld ms\n", fprintf(stderr, "SUCCESS: muxer generate the video in %" PRId64 " ms\n", elapsedTimeUs / 1000); return 0; Loading
cmds/stagefright/recordvideo.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ #include "SineSource.h" #include <inttypes.h> #include <binder/ProcessState.h> #include <media/stagefright/foundation/ADebug.h> #include <media/stagefright/AudioPlayer.h> Loading Loading @@ -312,7 +313,7 @@ int main(int argc, char **argv) { fprintf(stderr, "record failed: %d\n", err); return 1; } fprintf(stderr, "encoding %d frames in %lld us\n", nFrames, (end-start)/1000); fprintf(stderr, "encoding %d frames in %" PRId64 " us\n", nFrames, (end-start)/1000); fprintf(stderr, "encoding speed is: %.2f fps\n", (nFrames * 1E9) / (end-start)); return 0; }
cmds/stagefright/sf2.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ //#define LOG_NDEBUG 0 #define LOG_TAG "sf2" #include <inttypes.h> #include <utils/Log.h> #include <binder/ProcessState.h> Loading Loading @@ -183,11 +184,11 @@ protected: int64_t delayUs = ALooper::GetNowUs() - mStartTimeUs; if (mDecodeAudio) { printf("%lld bytes received. %.2f KB/sec\n", printf("%" PRId64 " bytes received. %.2f KB/sec\n", mTotalBytesReceived, mTotalBytesReceived * 1E6 / 1024 / delayUs); } else { printf("%d frames decoded, %.2f fps. %lld bytes " printf("%d frames decoded, %.2f fps. %" PRId64 " bytes " "received. %.2f KB/sec\n", mNumOutputBuffersReceived, mNumOutputBuffersReceived * 1E6 / delayUs, Loading