diff options
author | Benoit Goby <benoit@android.com> | 2014-05-12 15:59:50 -0700 |
---|---|---|
committer | Benoit Goby <benoit@android.com> | 2014-05-13 16:17:21 -0700 |
commit | e32106fd5175afdf939ae397aece9caf378a4912 (patch) | |
tree | 4040ceee4a57c51fd17cd1a19c378bd683ed6e18 /cmds/screenrecord/FrameOutput.h | |
parent | 21bde57f0099fed5cca78d9357571dc015a63227 (diff) | |
download | frameworks_av-e32106fd5175afdf939ae397aece9caf378a4912.zip frameworks_av-e32106fd5175afdf939ae397aece9caf378a4912.tar.gz frameworks_av-e32106fd5175afdf939ae397aece9caf378a4912.tar.bz2 |
screenrecord: Add raw frames output format
This works like the frames output format but without a header so that
the output can be piped directly to mplayer:
adb shell screenrecord --output-format=raw-frames - | mplayer -demuxer
rawvideo -rawvideo w=320:h=240:format=rgb24 -
Change-Id: Ib5ed508fdca3a5d63e973c5189b3677c2d92b43f
Diffstat (limited to 'cmds/screenrecord/FrameOutput.h')
-rw-r--r-- | cmds/screenrecord/FrameOutput.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/screenrecord/FrameOutput.h b/cmds/screenrecord/FrameOutput.h index b8e9e68..4ac3e8a 100644 --- a/cmds/screenrecord/FrameOutput.h +++ b/cmds/screenrecord/FrameOutput.h @@ -48,7 +48,7 @@ public: // specified number of microseconds. // // Returns ETIMEDOUT if the timeout expired before we found a frame. - status_t copyFrame(FILE* fp, long timeoutUsec); + status_t copyFrame(FILE* fp, long timeoutUsec, bool rawFrames); // Prepare to copy frames. Makes the EGL context used by this object current. void prepareToCopy() { |