summaryrefslogtreecommitdiffstats
path: root/cmds/screencap
Commit message (Collapse)AuthorAgeFilesLines
* ScreenCap : Add jpeg supportDanesh M2015-10-261-5/+17
| | | | | Change-Id: Ibd5050c79774d06f30b2f668160cdeca75f1bc58 (cherry picked from commit c1fd7edd8fc48f3308105df8cc845ec4b6652e17)
* screencap: Rotate images when display is rotatedDan Stoza2015-06-091-1/+28
| | | | | | | | | Changes screencap to read the display rotation and use it when capturing the screenshot so that the output image is oriented correctly. Bug: 8433742 Change-Id: I0f7db422399985a1ff17da3faa946ff0943e58f7
* SkStream is no longer a ref counted object.Leon Scroggins III2015-03-121-10/+5
| | | | | | | | | | | | | | | | | | | | With https://codereview.chromium.org/849103004/, SkStream is no longer ref counted. Change callers that currently unref() SkStreams to one of either: - delete the stream - pass ownership of the stream screencap.cpp: Call EncodeData directly, bypassing SkDynamicMemoryWStream and SkBitmap. Utils.cpp: Write directly to an SkData, and then use that to construct a new SkStream. Cherry-pick of a change that originally landed in master-skia and is dependent on a skia merge (ag/655422). Change-Id: Idc99ad7d5a70c893dc012d59915216f301ab3c9d
* Frameworks/base: Turn on -Wall -Werror in cmdsAndreas Gampe2014-11-072-9/+17
| | | | | | Fix small warnings, turn on -Wall -Werror. Change-Id: Iab1f01a7c7ebd6ba832b75067c5e395f380a1b8b
* am c840e31d: am fa436298: Merge "Broadcast an intent to mediascanner after ↵Marco Nelissen2014-09-221-1/+20
|\ | | | | | | | | | | | | executing screencap" * commit 'c840e31d0ee772373b1be7469b7bfbe28715d52e': Broadcast an intent to mediascanner after executing screencap
| * Broadcast an intent to mediascanner after executing screencapUmair Khan2014-06-121-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | PS2: Fix for spaces in file names After doing screencap /sdcard/test.png in shell the screenshot is captured but the gallery is not updated. So we should broadcast the intent android.intent.action.MEDIA_SCANNER_SCAN_FILE for the image to show up in gallery. Change-Id: I8e384865082c717842d70d376d5828d74a2ad780 Signed-off-by: Umair Khan <omerjerk@gmail.com>
* | stop using (deprecated) SkBitmap::ConfigMike Reed2014-06-201-5/+6
| | | | | | | | Change-Id: Ic75b5fc6996578e9d95bd3a220439ec1541d7c3b
* | SurfaceFlinger: Add sourceCrop to screenshotDan Stoza2014-05-231-1/+1
| | | | | | | | | | | | | | | | | | Adds a sourceCrop Rect parameter to screenshot commands, which allows clients to capture only a portion of the screen instead of the whole screen. Bug: 15137922 Change-Id: I629447573cd34ffb96334cde7ba02490b9ea06d8
* | Cleanup unnecessary includes for libskia.Derek Sollenberger2014-02-271-7/+0
| | | | | | | | | | | | | | The libskia target exports all of its public includes directories so redefining them here is redundant. Also this cleans up and makes it obvious where the framework is making using of private Skia headers. Change-Id: Ie7ecc9ddd3df780bed6b9af54ba58ca58274e043
* | Allow disabling layer rotation during screenshotsDan Stoza2014-02-141-1/+1
|/ | | | | | | | Add the ability to ignore layers' transformation matrices during screenshot capture, which will allow the window manager to capture unrotated images for recents during the device rotation animation. Bug: 11805195 Change-Id: I96e65506b198d34724eb3aa84815aae6f6de4935
* get rid of HAL pixelformats 5551 and 4444Mathias Agopian2013-07-261-2/+0
| | | | Change-Id: I6a6c4c656d80280eb85f90f99f35721ffca285df
* get rid of PIXEL_FORMAT_A_8Mathias Agopian2013-07-251-2/+0
| | | | Change-Id: Ia750811f08ddebdd5818da211fd03d61b75f8e97
* use the bitmap stride when encoding a screenshot as PNGMathias Agopian2013-03-211-1/+1
| | | | | Bug: 8444808 Change-Id: I47b74c22c940b40bd02634e9cd9dbff39b29a99f
* make sure screencap's data stream matches what adb expectsMathias Agopian2013-03-201-2/+10
| | | | | | | | adb assumes the stride is always equal to the width, so we make sure it's actually the case (screenshot don't always have this guarantee). Change-Id: I643b909f6542b7493a611afc6e3c86955b984352
* make sure to start the binder thread poolMathias Agopian2013-03-191-1/+4
| | | | Change-Id: I5c125a001936797489ebdcd0d4ccbde23adba282
* More changes to fix PDK build:Mike Lockwood2012-10-242-0/+221
| | | | | | | move screencap back to frameworks/base move libdiskusage to frameworks/native Change-Id: I8abe425c4bbf305bbe8650094c40c16df8c6d5e4
* Move non-Java commands to frameworks/nativeMike Lockwood2012-10-242-221/+0
| | | | | Change-Id: Id77c2cecb27cec500dfe066e4430f9e67802a433 Signed-off-by: Mike Lockwood <lockwood@google.com>
* Use new surface flinger API.Jeff Brown2012-08-271-4/+13
| | | | Change-Id: Ic888577408a59a36481a48010e19c5e77c24e211
* fix libgui header locationMathias Agopian2012-02-271-1/+1
| | | | Change-Id: Iec71706cdd4f29c6904993648ce873e83ef9cafe
* remove libui's dependency on libpixelflingerMathias Agopian2012-02-211-1/+0
| | | | | | this also remove support for unused pixelformats. Change-Id: I2c759a6d2daa740f3786ed62095def8047ae933d
* Skia API changes as a result of an update to the Skia library.Derek Sollenberger2012-01-311-1/+4
| | | | | | These changes are required to work with r3022 of Skia Change-Id: Ib7cebeb2eba6790bb38edfc2397b311cf419e17c
* merge libsurfaceflinger_client into libguiMathias Agopian2011-03-251-1/+1
| | | | | | | | | | | | this is the first step in unifying surfacetexture and surface. for this reason the header files were not moved, as most of them will eventually go away. NOTE: currently we keep libsurfaceflinger_client.so as an empty library to workaround prebuilt binaries wrongly linking against it. Change-Id: I130f0de2428e8579033dc41394d093f4e1431a00
* fix [3374821] Cannot take screenshot of HC previewMathias Agopian2011-02-081-26/+88
| | | | | | | the screencap tool will now fallback to /dev/graphics/fb0 is the screenshot API fails. Change-Id: I3f593847c72f4ca5429d4f64ca22bd5436dd2051
* make screencap able to save pngs.Joe Onorato2010-12-032-6/+94
| | | | Change-Id: Idf3542ff05670bc872bd91770810ed775266514f
* refactored screenshot codeMathias Agopian2010-09-291-18/+7
| | | | | | | | | | | the core screenshot function now can capture the screen at any lower resolution performing bilinear filtering. we also now have some client code to interface with the screenshot service. it's now possible to request a screenshot at a lower resolution. Change-Id: I5a3b0e431421800e3aad601d9af8f94adffbc71f
* new screencap commandMathias Agopian2010-09-262-0/+71
this captures the framebuffer via surfaceflinger APIs and outputs it to stdout. this is intended to be used by adbd. Change-Id: I0cfa6a47ec121edcd93f46b64870f9a553f653ff