summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/Storage.java
Commit message (Collapse)AuthorAgeFilesLines
* SnapdraongCamera:Update HEIF thumbnailjunjiez2018-12-141-0/+1
| | | | | | | | | Update thumbnail from heic file, when it's taking HEIF image and ensure the orientation is correct. Change-Id: If84c274810100964e6b6b1c3fae05366802afa1f CRs-Fixed: 2355251
* SnapdraongCamera:HEIF surface modejunjiez2018-10-301-1/+6
| | | | | | | | Save all the images into one heic file when enable longshot. Change-Id: I24d1d7f6ff5b677499043bbfe966e10608a86ae3 CRs-Fixed: 2335370
* SnapdraongCamera:HEIF surface modejunjiez2018-10-291-23/+1
| | | | | | | | | | Add and remove the input sruface of HeifWriter dynamically to avoid restart session when we want to write data to a new heic file. Change-Id: Iafd9ea7e20d7e81f14bc1c6971168e476cf3ef44 CRs-Fixed: 2335370
* Merge "SnapdragonCamera:Fix location recording" into ↵Linux Build Service Account2018-09-241-5/+22
|\ | | | | | | camera-SnapdragonCamera.lnx.2.0
| * SnapdragonCamera:Fix location recordingjinwu2018-09-211-5/+22
| | | | | | | | | | | | | | | | Get location information from ExifInterface when location is not send to MediaSaveService Change-Id: I7bd49fc5cd303f5bc5b43edb8769156d693232df CRs-Fixed: 2279097
* | SnapdraongCamera:add HEIF supportjinwu2018-09-211-5/+61
|/ | | | | | | | add option to allow user to save captured image with HEIF format. Change-Id: I267b783bf7e4f41f523ef2ac4fbb734657b8e827 CRs-Fixed: 2312764
* Revert "SnapdragonCamera: Changes for SDM bringup"Jay Wang2017-07-071-1/+0
| | | | | | This reverts commit f245124ed851a0888dbced9b887d0db2f0135177. Change-Id: I4c9d787c5486c822a764f7b2551a87c2f924fbcd
* SnapdragonCamera: Changes for SDM bringupJack Yoo2017-06-131-0/+1
| | | | | | | | | | | | | | | | Changes to accomodate the SDM bringup 0. Image flow change to be compatible to early version of CAMX 1. Pseudo ZSL mode to capture as configuring requires to be done all at the same time. 2. Video recording starts from the beginning as well for same reason. 3. Adding Cameracharacteristc availability check as meta is not all available yet. 4. Adding persist to selectively enable 4K Video recording in which case snapshot is disabled. The default is 1080P. Change-Id: Ib808dd2fe25398c444b220d40693a0436e4f6db5
* SnapdragonCamera:Add Raw capture to developer optionjunjiez2017-01-061-0/+12
| | | | | | | | Add raving as Raw option to the developer options, and save both JPEG and RAW data when it't turned on Change-Id: Id2462d0bacc3f2acdf3610b2ca8054079dc40b85 CRs-Fixed: 1087490
* SnapdragonCamera: Enlarge the saving queue size to 60Mlikaid2015-07-231-1/+1
| | | | | | | | | | | | | | The picture would not be saved if the saving queue is full. Currently, the queue is very easy to reach 50M during continuous shot with the 13M pixel pictures, that caused many pictures lost during continuous shot. Change the saving queue max size to 60M will avoid this issue, mean while change the LOW_STORAGE_THRESHOLD_BYTES as the same value. CRs-Fixed: 851554 Change-Id: Ib93f05404371872f2b82d489378c01a6122ccb6b
* SnapdragonCamera: Add the real image size to media provider dblikaid2015-07-091-0/+5
| | | | | | | | | | | The image size may change after add the jpeg exif header. If the real file size was not match the _size column in media provider database, the picture will not be opened on PC via MTP mode. Get the real file size after add exif, and save it into provider db. Change-Id: I832d24f4e38e0fd2e2f0fa536bb94927c4ab442a CRS-Fixed: 854308
* Camera2: correct image size recorded in media provider dbLikai Ding2014-11-111-4/+6
| | | | | | | | | | | | | | | Photos taken in camcorder can't be previewed on PC via MTP mode. The root cause is that, the actual image file size does not always match the _size column in media provider database. During the saving process, EXIF data are rewritten, but the size sent to media provider is not updated accordingly. Record bytes written in ExifOutputStream and OrderedDataOutputStream so that after rewritting, the correct image size could be sent to media provider. Change-Id: I74d91e86d712c121eb50daecaf879ab4f5be97fc CRs-Fixed: 711522
* SnapdragonCamera: Switch to SD card when internal storage is fullkaiyiz2014-08-211-25/+44
| | | | | | | | | | | | | | | | When internal storage is full, switch to SD card for storage. Change the save path from internal storage to SD card when updateStorageSpace is called if: 1. Internal storage is the current save path and does not have enough space 2. SD card has enough space Display a toast message and update display of the save path menu item when the storage path is switched. CRs-Fixed: 687210 Change-Id: I6a9804e4f64e6d55c6aebd889ac2ce5e887cfa5a
* Camera2: add new mime type for panorama pictureFei Zhang2014-04-011-1/+3
| | | | | | | Add mime type 'image/jpeg', along with 'jpeg', So the DISPLAY_NAME of captured picture is correctly saved. Change-Id: I40a3c660311f1a3c69078ae3580dd74def9d69ba
* Camera: Add a feature to choose where to store the picture and videoSanthosh Kumar H E2014-02-271-21/+49
| | | | | | | | | | | | Add a feature to choose use SDcard or phone to store picture and video captured by camera and camcorder. Some of the changes are taken from: I987a691c93edc4250fe0366d0623c85ea0152117 CRs-Fixed: 619806 Change-Id: I009df4c70f0a1b49b20750f806c799f025bb6197
* Merge remote-tracking branch into merge_branchSanthosh Kumar H E2013-12-061-41/+92
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Delay onResume tasks to speed up lockscreen onResume->onPause->onResume launch sequence. Import translations. DO NOT MERGE gcam: Clean up placeholders, and add deletion robustness. Fix issue of focus indicator staying on without being hidden Ensure view size gets updated after phone decors change. Show the 100% state of the progress at least one frame. Add parameters and deduplicate parameter changes Revert parallel opening camera in photo mode. Differentiate the InProgressData from the normal PhotoData. Close mode menus if another control is touched Start gcam module directly when handling capture intent. Import translations. DO NOT MERGE Add a null check to fix NPE Add logging to various actions Ensure mOpenCameraThread has been setup before dereferencing. Add logging to various actions Ensure mOpenCameraThread has been setup before dereferencing. Add GCam progress indicator. hide preview cover on arrival of new preview data if hidden Fix photo mode is getting stuck in a single CameraState. ... Conflicts: res/layout/photo_module.xml res/values/arrays.xml src/com/android/camera/CameraActivity.java src/com/android/camera/PhotoUI.java src/com/android/camera/Storage.java src/com/android/camera/WideAnglePanoramaModule.java src/com/android/camera/ui/FilmStripView.java Change-Id: Ic41b4e7e07b2b0ed7936b78a6c5f05270d05985f
| * gcam: Clean up placeholders, and add deletion robustness.Ruben Brunk2013-11-181-15/+26
| | | | | | | | | | Bug: 11708734 Change-Id: I8a017a382f12165be27afbf78e733bcc1fc0ef6f
| * gcam: Add placeholder image.Ruben Brunk2013-10-281-22/+76
| | | | | | | | | | | | Bug: 11050749 Change-Id: I374c5919d6da0609fccd21c09775fa91894d5a24
* | Camera2: Adds support for longshot/burst modeAlok Kediya2013-11-071-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - The longshot/burst pipeline mode uses an optimized path for triggering 'takePicture()' on each shutter callback. This should improve the shot-2-shot time. In addition to this there is also support for jpeg callbacks that only contain a jpeg file path. The callback in this case will only move the file stored by the lower layers in the correct directory. - The longshot burst pipeline can be enabled via this property: "persist.camera.longshot.enable"<-"0/1" - This change will allow longshot mode to be triggered in non-zsl mode as well. (Cherry picked from: I693366a7d06d3b386a8d96f86ee9a0574749c50b) (Cherry picked from: Id630b2033f18d1c04a636597e910e695a8692ac8) Change-Id: Idda8d58fc6d889128c1812c9c5ddadca3993c246
* | Camera: Add support for raw snapshotAlok Kediya2013-10-311-9/+23
|/ | | | | | | | | | | | | Previously picture format only have option for jpeg and raw, but detailed raw image format is misssing from menu to choose. Also, changes to save raw image to coorect path are included. (cherrypicked from commit c0028f9dbe178c3fed1bcb4af96eb0db4d2e2973) Change-Id: Ifab7fd80e4a83370b2dc6932340005a06cc3552f (cherry picked from commit 27f9245f35d0284c17d8d2fdf5576ea3879e7d33) (cherry picked from commit 3c66703af119c06697f16303fadadbe956646cb3)
* Checks for low storage in wide-angle pano mode.Angus Kong2013-09-251-1/+1
| | | | | | | | | | 1. Storage.LOW_STORAGE_THRESHOLD -> Storage.LOW_STORAGE_THRESHOLD_BYTE. 2. Checks for low storage before start preview in wide-angle pano mode. 3. Add low storage warning message for debugging when in wide-angle pano mode. bug:10691367 Change-Id: Iffd96d322b33591c8f235fcf5680e86cf0f06571
* Add rotate support in Film Stripztenghui2013-08-281-2/+3
| | | | | | | | | Move the exif related code under src.com.android.camera.exif. Refactor the member variables under LocalMediaData.java. Refactor the LocalData to make sure they are immutables for thread safety. bug:10367037 Change-Id: I0e84bcc0097925b2be749fe016984177a68e0a4d
* Clean up Gallery codes.Angus Kong2013-08-091-1/+1
| | | | | | bug:10263696 Change-Id: I3a16dba3aabe52b8103a2c591cfa39907265a263
* This removes all non-Camera stuff from Camera2.Sascha Haeberling2013-08-061-4/+4
| | | | | | | Note: Camera2 is a clone of Gallery2 right now. Note 2: I will bring .mk files back later. Change-Id: Ida958654296f5ebaacb6bb0ff59d52a7c37ce6fc
* Add GPSDirection tag using ExifInterface.Angus Kong2013-03-261-4/+13
| | | | | bug:8115825 Change-Id: Iefcbbddbb7f9fed0c386214b428d4743f67d0dd9
* Move Camera Java/Native source into Gallery2Michael Kolb2013-01-291-0/+172
Change-Id: I968efe4d656e88a7760d3c0044f65b4adac2ddd1