summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* fix hardware/ti/omap4xxx referencesHashcode2015-02-032-2/+2
|
* Add liblogYing Wang2015-02-021-0/+2
| | | | | Bug: 8580410 Change-Id: Ie88b9489c314cad95246be5b8f3ff3d0963cbb63
* Merge "Skia: Test application" into p-jb-mr1-releaseRoman Shaposhnikov2012-12-103-0/+4003
|\
| * Skia: Test applicationSaravanan Solaiyappan2012-12-053-0/+4003
| | | | | | | | | | | | Change-Id: Ie023ac927321facc4ad7607a883f2b67f9af547e Signed-off-by: Solaiyappan Saravanan <saravanan.s@ti.com> Signed-off-by: Daniel Levin <dendy@ti.com>
* | Merge branch 'd-jb-mr0-release-camera' into p-jb-mr1-releaseDaniel Levin2012-12-052-12/+41
|\ \ | |/ |/| | | | | Change-Id: I3feec53fce7f847398420b89e2e8cc2b1045cca3 Signed-off-by: Daniel Levin <dendy@ti.com>
| * camera_test: Fix for crash with video recoring in 1080pDimitar Borisov2012-12-051-0/+3
| | | | | | | | | | | | | | When in portrait mode height is changed form 1080 to 1088 because 1080 is not supported. Change-Id: I40531d58c206b4682c1fbed58d21c4f08550f3a7 Signed-off-by: Dimitar Borisov <x0152684@ti.com>
| * camera_test: Fix for disconnect and reconnect to cameraDimitar Borisov2012-12-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [Problem] Currently when try to disconnect and reconnect to camera using "@" command, segmentation fault is seen. This is happening because when open camera, some of the parameters are not set to valid valiues when setParameters function is called. [Solution] When get parameters form capabilities, initDefaults() function is called to set all the parameters to the default values and then setParameters is called. Change-Id: Icd49ca6286b92badec9c302c966263139aa204f3 Signed-off-by: Dimitar Borisov <x0152684@ti.com>
| * camera_test: Iteration count for all scriptsDimitar Borisov2012-12-052-0/+17
| | | | | | | | | | | | | | Iteration counter is added that is incremented on every new line form the script. Change-Id: Ie5d5cf63c326aa781bf5d2edc95f1ad57f32feb3 Signed-off-by: Dimitar Borisov <x0152684@ti.com>
| * camera_test: Camera test handling of Ducati exceptionsDimitar Borisov2012-12-051-4/+3
| | | | | | | | | | | | | | Fixes an issue with Ducati exeptions handling Change-Id: I3508b846968191d0be0a606b3b02119ba6c06d42 Signed-off-by: Dimitar Borisov <x0152684@ti.com>
| * camera_test: Return status of scripts executionDimitar Borisov2012-12-051-8/+17
| | | | | | | | | | | | | | | | | | | | | | If a script being executed complete successfully, main function return 0. If not, main function returns different form 0. When executing script and get mmu fault from ducati, camera is restarted and if the mmu fault is still present camera will be restarted 3 more times and will return status different from 0. Change-Id: I07820f90b15d950c1e8dfd7f40726881ac7af9ac Signed-off-by: Dimitar Borisov <x0152684@ti.com>
* | Merge branch 'd-jb-mr0-release-camera' into p-jb-mr1-releaseDaniel Levin2012-12-046-246/+930
|\ \ | |/ | | | | | | | | | | | | | | | | Conflicts: camera/OMXCameraAdapter/OMXCameraAdapter.cpp test/CameraHal/camera_test_bufferqueue.h test/CameraHal/camera_test_surfacetexture.cpp Change-Id: I1f13c6a5b6369e943773d04a650406a79eb95750 Signed-off-by: Daniel Levin <dendy@ti.com>
| * Camera_test: Free all previously added buffer slotsEmilian Peev2012-11-262-1/+4
| | | | | | | | | | | | | | | | | | | | - Incrementally adding new buffer slots to a 'BufferQueue' will eventually hit the limit of available buffer slots. To avoid that before adding new ones, we reset the buffer count, which should free all previously added slots. Change-Id: I6f466baf49e03be977a63dd75a2ab6168dbc9add Signed-off-by: Emilian Peev <epeev@mm-sol.com>
| * Camera_test: JB: Don't call get ID OPS on ANativeWindowVladimir Petrov2012-11-261-0/+2
| | | | | | | | | | | | | | - In JB we are using buffer queue IDs. Change-Id: I857dd3ad3d2309460ba72197e08535cbd272584d Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
| * Camera: Add missing reprocess codeVladimir Petrov2012-11-261-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Code cleanup - check crop rentagle for validity in surface texture write and copy functions. - Set gralloc GRALLOC_USAGE_PRIVATE_0 usage flag on native window if UYVY format is allocated. - Fill offset buffer info data. - Add buffer slot to the list of returned buffers. This should fix reprocessing. Change-Id: I3d739d1a677dfe606ebf11e659d2fb8e45f40a97 Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
| * Camera_test: Add external gamma table presetsVladimir Petrov2012-11-262-8/+124
| | | | | | | | | | | | | | | | - Added few presets to test the external gamma table OMX interface. Change-Id: I70ef87d75c334214a631f15913fedae6596434b0 Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
| * Camera_test: Add support for UYVY reprocessingEmilian Peev2012-11-261-2/+44
| | | | | | | | | | | | | | | | - Added format HAL_PIXEL_FORMAT_TI_UYVY. Change-Id: I444eb6239fc3eb19acdf2620db53efc52dafbc51 Signed-off-by: Emilian Peev <epeev@mm-sol.com> Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
| * Camera_test: Bayer reprocessing fixesVladimir Petrov2012-11-261-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | - 'pixformat' inside 'setInput()' was not correctly initialized. It has to hold the pixelformat of the incoming buffer. - Bayer buffers should not be aligned. - Updates the copying of the incoming Bayer buffers. Change-Id: I5e47daa7f783158bb60d756d08fe121078970ead Signed-off-by: Emilian Peev <epeev@mm-sol.com> Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
| * Camera_test: Reprocessing related updatesEmilian Peev2012-11-262-2/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | - Disable stream capture when reprocess starts. This was causing a deadlock when trying to access the tap-out. - Allows picture format configuration during stream capture which is needed when the client needs to select a different one before reprocess. Change-Id: Ie94ed7ee03c5c21e4e5b56aa60479cddc51f5ce8 Signed-off-by: Emilian Peev <epeev@mm-sol.com> Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
| * Camera_test: Add mechanism to explicitly set image streamingVladimir Petrov2012-11-263-71/+78
| | | | | | | | | | | | | | | | - Add ability to explicitly set image streaming mode on buffer source thread. Change-Id: I96ad1b7b2a72b4d4764b6fc292730de99e084bb6 Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
| * Camera: Set minimum undequeuable on tap-inVladimir Petrov2012-11-261-1/+5
| | | | | | | | | | | | | | | | - Will set the minimum undequeuable count on tap-in instead of setting "1", which in most cases is incorrect value. Change-Id: I145b12f86d410415f6ed67a058392c89adb6d3c6 Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
| * Camera_test: BQ: Always write cropped NV12Vladimir Petrov2012-11-261-1/+1
| | | | | | | | | | | | | | | | | | - Write cropped NV12 regardless of offset to handle cases where image is cropped and both top and left are zero. Change-Id: Id8789b2d9745a67916295819303ba7fa399e8826 Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
| * Camera_test: Fixes crop handling, locking of buffersDavid Schleef2012-11-262-45/+123
| | | | | | | | | | | | | | | | | | | | - SurfaceTextureMapper->lock() writes an array of pointers. Providing just one causes stack corruption with NV12 buffers. - Fixes handling of buffers with crop. Change-Id: Ie792a31bc034d49d13f0ed7384e480c1ab945c08 Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
| * Camera_test: BQ: Add support for writing croppedTyler Luu2012-11-264-9/+159
| | | | | | | | | | | | | | | | | | | | | | | | - Add support for writing cropped buffers in camera_test return from surface texture. Camera_test needs to calculate the crop rectangle from the transform matrix. Using the calculated values camera_test will write the buffer accordingly. Change-Id: I8884f06a98ddf404343424a4bec4a82a22dc01fe Signed-off-by: Tyler Luu <tluu@ti.com> Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
| * Camera_test: Changes to NV12 and BAYER allocationTyler Luu2012-11-261-8/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Adapting NV12 and BAYER system heap allocations to gralloc changes. - NV12-1D format is no longer supported. Instead, we are using existing NV12 format with the GRALLOC_USAGE_PRIVATE_0 usage flag to signal to gralloc we want allocations to come from the system heap. The same flag we are using for BAYER format also. Change-Id: Id47a8da1a5c0bde6e39125a8e0f243386cadabd5 Signed-off-by: Tyler Luu <tluu@ti.com> Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
| * Camera_test: Set SurfaceTexture flags correctlyDavid Schleef2012-11-261-2/+2
| | | | | | | | | | | | | | - To write to a buffer, one needs WRITE_OFTEN. Change-Id: I44ade4551c5f133960e51e7cd540c3a9adf57da4 Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
| * Camera_test: Add support to release tap in/outsVladimir Petrov2012-11-264-24/+25
| | | | | | | | | | | | | | | | - Tell Camera hardware to release buffer sources befor sestroying them. Change-Id: I2a7e1c801516b14c9277a415d377131cc4443f6a Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
| * Camera_test: Re-arrange creation of buffer sourcesVladimir Petrov2012-11-263-36/+60
| | | | | | | | | | | | | | | | - The buffer source adapters should be re-created if changed some parameters. Change-Id: Ifd9e2c406adf8fbab11dcb530b87a8d01e490341 Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
| * Camera_test: Pre-set buffer sourceTyler Luu2012-11-266-13/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Change camera_test to pre-set all buffer sources during start preview instead of during takePicture/reprocess. - Omit pre-setting tap-in/-outs if the client doesn't use raw picture format. Depends on frameworks/native change I20c0f4a8: http://review.omapzoom.org/#/c/28901/ Change-Id: I8c0d29ffc5b21c56a2d79bc80cab910f55c7ca21 Signed-off-by: Tyler Luu <tluu@ti.com> Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
| * Camera_test: Set burst frames for streamingVladimir Petrov2012-11-261-0/+1
| | | | | | | | | | | | | | - Will set burst frames to "1" if missing. Change-Id: I3bf79a9d477b1e9a407b98b790258b85735655c0 Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
| * Camera_test: Video mode fixDimitar Borisov2012-11-261-1/+5
| | | | | | | | | | | | | | | | | | | | When start recoding camera is not in video mode but in HQ mode. This is because the width and height are different for preview and video recording. Preview is restarted and in this case the mode is lost and the default HQ mode is set. To prevent this behaviour width and height for the preview are set the same as for video recording. Change-Id: I72df65f7732b3f4067cd4b3e9b5047081a0b0dd7 Signed-off-by: Dimitar Borisov <x0152684@ti.com>
| * camera_test: SDCARD_PATH is not added when OTC is usedDimitar Borisov2012-11-261-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | - When camera_test script is executed using the OTC SDCARD_PATH should not be added to the output directory. - The command that is send to the OTC for the first script with primary sensor is camera_test -s /mnt/sdcard/L_CAMERAHAL_0001 -c 0. - If SDCARD_PATH in this case is not removed the output directory will be: /sdcard//mnt/sdcard/L_CAMERAHAL_0001 and the script will not start. Change-Id: I10cf9ee9972b6bb619460afc4a80ff4f4d96ddb5 Signed-off-by: Dimitar Borisov <x0152684@ti.com>
| * camera_test: rotation fixes for image capture and videoDimitar Borisov2012-11-262-6/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently when capture video preview orientation is correct but captured video is rotated. This is fixed when change preview sufrace orientation. capture mode: - display orientation = 90 degrees for both primary and secondary - sensor orientation = 0 degrees for both primary and secondary - capature rotation = 90 degrees for primary, 270 degrees for secondary video mode: - sensor orientation = 270 degrees for primary, 90 degrees for secondary - display orientation = 0 degrees Keys: KEY_SENSOR_ORIENTATION - sensor orientation KEY_ROTATION - capature rotation CAMERA_CMD_SET_DISPLAY_ORIENTATION - display orientation Change-Id: Id001140b68f002ccfbe6f2255a3a0ab2a29e99bf Signed-off-by: Dimitar Borisov <x0152684@ti.com>
| * camera_test: Fix for temporal bracketing modeDimitar Borisov2012-11-261-1/+1
| | | | | | | | | | | | | | | | Temporal bracketing is enabled with "true" and disabled with "false", not with "enable" and "disable". Change-Id: Iff182e15deb02c13028bc72eabff24cb74782861 Signed-off-by: Dimitar Borisov <x0152684@ti.com>
| * camera_test: capture mode fixDimitar Borisov2012-11-262-1/+28
| | | | | | | | | | | | | | | | When capture mode is changed supported parameters are dumped. Framerate and capture size are set form the supported onces. Change-Id: Idc6b1280d1fcefda17ea0bed5f4ed6cafdbd9eea Signed-off-by: Dimitar Borisov <x0152684@ti.com>
| * camera_test: Fixed Burst mode and Exposure brack modeDimitar Borisov2012-11-262-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | Issue: When capture images in Burst mode and Exposure bracketing mode we get only one image. This is happening because of preview restart after every jpeg callback. Solution: Perview is restarted when all the images in burst or exposure bracketing mode are captured. Change-Id: I6bd28d1fabb466ec34b1c68d001971e4fc0aa9c1 Signed-off-by: Dimitar Borisov <x0152684@ti.com>
| * camera_test: Fix for returning results of face detectionDimitar Borisov2012-11-261-2/+9
| | | | | | | | | | | | | | | | Currently results of face detection are not displayed with the scripts. Tha patch is fixing the issue. Change-Id: If049a16458524ca643f4668d24ff6dfa92547d5c Signed-off-by: Dimitar Borisov <x0152684@ti.com>
| * camera_test: Remove start preview in data cb'sTyler Luu2012-11-261-4/+8
| | | | | | | | | | | | | | | | | | Remove automatic start preview call in jpeg and raw data callbacks in CP-CAM capture mode. Change-Id: I5f34d30c5814dd4fd505a7b2a40d9a4e66b9b634 Signed-off-by: Tyler Luu <tluu@ti.com> Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
| * camera_test: reprocess: Use tap-out surfaceTyler Luu2012-11-263-10/+8
| | | | | | | | | | | | | | | | | | | | Add support for using a surface for the tap-out for the reprocess pipe. Change-Id: I4e1262f247aca4050b49330ba515bfa841f8e4f2 Signed-off-by: Tyler Luu <tluu@ti.com> Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com> Signed-off-by: Daniel Levin <dendy@ti.com>
| * camera_test: Queue tap-out directly to tap-inTyler Luu2012-11-261-32/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support to queue tap-out buffer directly to tap-in surface. This is only possible if the stride of the tap-out buffer is aligned properly for ISS. We will fall back to previous method of copying the tap-out buffer to tap-in if this condition is not met. Depends on system/core change Ic65652a5: http://review.omapzoom.org/#/c/24869/ Depends on frameworks/native change Ia5f695b3: http://review.omapzoom.org/#/c/25509/ Change-Id: I186bd7e7a41074cb7fcfe1961b709b96e5187b2c Signed-off-by: Tyler Luu <tluu@ti.com> Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com> Signed-off-by: Daniel Levin <dendy@ti.com>
| * camera_test: reprocess: Use format from menu/scriptTyler Luu2012-11-262-10/+2
| | | | | | | | | | | | | | | | | | | | | | Use picture format from the menu or script for reprocess command. The format was previously just hard-coded to JPEG. Now user can change the format before issues reprocessing command. Change-Id: Idac384126cecc555943fdd31ff8c616502c4d51d Signed-off-by: Tyler Luu <tluu@ti.com> Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
| * camera_test: Different folder names for different sensorsDimitar Borisov2012-11-262-0/+7
| | | | | | | | | | | | | | | | | | | | | | When executing scripts with secondary and S3D sensor at the end of the folders are added _SEC and _S3D. Created folder for primary, secondary and S3D sensor after executing script L_CAMERAHAL_0001 will be: L_CAMERAHAL_0001, L_CAMERAHAL_0001_SEC, L_CAMERAHAL_0001_S3D Change-Id: If4b3871eea9810e3455f5b2b47f9c20adae5a432 Signed-off-by: Dimitar Borisov <x0152684@ti.com>
| * camera_test: scripts: Fix WxH pic resolution inputVladimir Petrov2012-11-262-0/+15
| | | | | | | | | | | | | | | | | | | | | | This patch fixes an issue with specifying picture resolution by WxH instead of by name. captureSizeIDX was not being set properly, so the script specified resolution was being overridden somewhere else in camera_test. Change-Id: I24cd349d8371a14964d081c3f01dcdf77b7cda80 Signed-off-by: Tyler Luu <tluu@ti.com> Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
| * Camera_test: Fix typo in absolute exposure settingsVladimir Petrov2012-11-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | There is a typo in setSingleExpGainPreset(). When in absolute exp. bracketing modes, the address of the abs() math function is used as value to configure the exposure time, instead of the exposure time argument. After applying this patch, the absolute exposure time in streaming shot mode will be set correctly. Change-Id: I244dd6869f2b69bf5d7c087c694001e7b64d032d Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
| * Camera_test: Update capabilities with capture modeVladimir Petrov2012-11-261-1/+4
| | | | | | | | | | | | | | | | | | Ducati has particular capabilities for different capture modes. So, we update the capabilities in camera test accordingly. Change-Id: I2fb79d119864145a0e97ee0beccc035841452ace Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
| * Camera_test: Check bracketing index array rangeVladimir Petrov2012-11-261-1/+5
| | | | | | | | | | | | | | | | | | Checks the index passed to setDefaultExpGainPreset() before to use, to avoid memory corruption if script contains index which is out of range. Change-Id: I93c29b5da6e9d77232a7e45b56ad55be1481b90b Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
* | Camera: Fix JB MR1 API changes in VTC testsDaniel Levin2012-11-227-5/+107
| | | | | | | | | | Change-Id: Ia9e1381136a2479a5b230c31f97348fd982b3778 Signed-off-by: Daniel Levin <dendy@ti.com>
* | Camera: Fix the camera_test code for new ANW APIDaniel Levin2012-11-225-3/+47
| | | | | | | | | | | | | | | | Source compatibility with JB MR0 ANW API is preserved by using the ANDROID_API_JB_MR1_OR_LATER conditional build. Change-Id: Ic67af4cf31a058e3cbddafb44b5c33fd8ab9d348 Signed-off-by: Daniel Levin <dendy@ti.com>
* | Merge branch 'p-jb-mr0-release-camera' into p-jb-mr1-releaseDaniel Levin2012-11-2218-975/+10374
|\ \ | |/ | | | | | | | | | | | | | | Conflicts: camera/Android.mk camera/MemoryManager.cpp Change-Id: Ibe1f6706293903b50cc7d48d7de8dd9448b981e4 Signed-off-by: Daniel Levin <dendy@ti.com>
| * Camera: Link to libcpcamcamera_clientDaniel Levin2012-10-101-0/+5
| | | | | | | | | | | | | | | | The ShotParameters is now a part of separate static library libcpcamcamera_client to preserve HAL binary compatibility. Change-Id: Iacbe28e0b6e30ab1c18de89f51497632cbb68033 Signed-off-by: Daniel Levin <dendy@ti.com>
| * Camera: Take picture with parameters in camera_testDaniel Levin2012-10-103-3/+3
| | | | | | | | | | | | | | | | takePictureWithParameters() is now a separate method in Camera interface. Change-Id: I9cda61d2d1e80d193047cb4fceabdbbea27a5191 Signed-off-by: Daniel Levin <dendy@ti.com>