summaryrefslogtreecommitdiffstats
path: root/cmds/screenrecord/EglWindow.h
diff options
context:
space:
mode:
authorAndy McFadden <fadden@android.com>2014-02-25 18:29:06 -0800
committerBenoit Goby <benoit@android.com>2014-05-12 16:14:25 -0700
commit21bde57f0099fed5cca78d9357571dc015a63227 (patch)
tree6c56f2e3103d52048afb01d0e5cab8c123b0c3d0 /cmds/screenrecord/EglWindow.h
parent2d11a2031b99db9b503a7ad7efd1f18606af4012 (diff)
downloadframeworks_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/EglWindow.h')
-rw-r--r--cmds/screenrecord/EglWindow.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmds/screenrecord/EglWindow.h b/cmds/screenrecord/EglWindow.h
index 02a2efc..69d0c31 100644
--- a/cmds/screenrecord/EglWindow.h
+++ b/cmds/screenrecord/EglWindow.h
@@ -44,6 +44,9 @@ public:
// Creates an EGL window for the supplied surface.
status_t createWindow(const sp<IGraphicBufferProducer>& surface);
+ // Creates an EGL pbuffer surface.
+ status_t createPbuffer(int width, int height);
+
// Return width and height values (obtained from IGBP).
int getWidth() const { return mWidth; }
int getHeight() const { return mHeight; }
@@ -65,7 +68,7 @@ private:
EglWindow& operator=(const EglWindow&);
// Init display, create config and context.
- status_t eglSetupContext();
+ status_t eglSetupContext(bool forPbuffer);
void eglRelease();
// Basic EGL goodies.