diff options
author | Andy McFadden <fadden@android.com> | 2014-02-25 18:29:06 -0800 |
---|---|---|
committer | Benoit Goby <benoit@android.com> | 2014-05-12 16:14:25 -0700 |
commit | 21bde57f0099fed5cca78d9357571dc015a63227 (patch) | |
tree | 6c56f2e3103d52048afb01d0e5cab8c123b0c3d0 /cmds/screenrecord/Program.h | |
parent | 2d11a2031b99db9b503a7ad7efd1f18606af4012 (diff) | |
download | frameworks_av-21bde57f0099fed5cca78d9357571dc015a63227.zip frameworks_av-21bde57f0099fed5cca78d9357571dc015a63227.tar.gz frameworks_av-21bde57f0099fed5cca78d9357571dc015a63227.tar.bz2 |
Add frame dump output
This adds the ability to dump frames as RGB data with a minimal
frame header. Only recommended for devices with small displays.
Enable with "--output-format=frames".
The "--raw" option is now selected with "--output-format=h264".
Change-Id: I18d3d4a87cd056d7acf0658985a90dc5895dbfb6
Diffstat (limited to 'cmds/screenrecord/Program.h')
-rw-r--r-- | cmds/screenrecord/Program.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cmds/screenrecord/Program.h b/cmds/screenrecord/Program.h index e47bc0d..558be8d 100644 --- a/cmds/screenrecord/Program.h +++ b/cmds/screenrecord/Program.h @@ -51,9 +51,11 @@ public: // Release the program and associated resources. void release(); - // Blit the specified texture to { x, y, x+w, y+h }. + // Blit the specified texture to { x, y, x+w, y+h }. Inverts the + // content if "invert" is set. status_t blit(GLuint texName, const float* texMatrix, - int32_t x, int32_t y, int32_t w, int32_t h) const; + int32_t x, int32_t y, int32_t w, int32_t h, + bool invert = false) const; // Draw a number of triangles. status_t drawTriangles(GLuint texName, const float* texMatrix, @@ -67,7 +69,7 @@ private: // Common code for draw functions. status_t beforeDraw(GLuint texName, const float* texMatrix, - const float* vertices, const float* texes) const; + const float* vertices, const float* texes, bool invert) const; status_t afterDraw() const; // GLES 2 shader utilities. |