| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
Bug: 8580410
Change-Id: Ie88b9489c314cad95246be5b8f3ff3d0963cbb63
|
|\ |
|
| |
| |
| |
| |
| |
| | |
Change-Id: Ie023ac927321facc4ad7607a883f2b67f9af547e
Signed-off-by: Solaiyappan Saravanan <saravanan.s@ti.com>
Signed-off-by: Daniel Levin <dendy@ti.com>
|
|\ \
| |/
|/|
| |
| | |
Change-Id: I3feec53fce7f847398420b89e2e8cc2b1045cca3
Signed-off-by: Daniel Levin <dendy@ti.com>
|
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
[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>
|
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| | |
Fixes an issue with Ducati exeptions handling
Change-Id: I3508b846968191d0be0a606b3b02119ba6c06d42
Signed-off-by: Dimitar Borisov <x0152684@ti.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
|\ \
| |/
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- 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>
|
| |
| |
| |
| |
| |
| |
| | |
- In JB we are using buffer queue IDs.
Change-Id: I857dd3ad3d2309460ba72197e08535cbd272584d
Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- 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>
|
| |
| |
| |
| |
| |
| |
| |
| | |
- Added few presets to test the external gamma table
OMX interface.
Change-Id: I70ef87d75c334214a631f15913fedae6596434b0
Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
- 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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- '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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- 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>
|
| |
| |
| |
| |
| |
| |
| |
| | |
- Add ability to explicitly set image streaming mode on buffer
source thread.
Change-Id: I96ad1b7b2a72b4d4764b6fc292730de99e084bb6
Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
- 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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- 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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- 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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- 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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| | |
- To write to a buffer, one needs WRITE_OFTEN.
Change-Id: I44ade4551c5f133960e51e7cd540c3a9adf57da4
Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
- Tell Camera hardware to release buffer sources
befor sestroying them.
Change-Id: I2a7e1c801516b14c9277a415d377131cc4443f6a
Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
- The buffer source adapters should be re-created
if changed some parameters.
Change-Id: Ifd9e2c406adf8fbab11dcb530b87a8d01e490341
Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- 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>
|
| |
| |
| |
| |
| |
| |
| | |
- Will set burst frames to "1" if missing.
Change-Id: I3bf79a9d477b1e9a407b98b790258b85735655c0
Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- 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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| | |
Change-Id: Ia9e1381136a2479a5b230c31f97348fd982b3778
Signed-off-by: Daniel Levin <dendy@ti.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
|\ \
| |/
| |
| |
| |
| |
| |
| |
| | |
Conflicts:
camera/Android.mk
camera/MemoryManager.cpp
Change-Id: Ibe1f6706293903b50cc7d48d7de8dd9448b981e4
Signed-off-by: Daniel Levin <dendy@ti.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| | |
takePictureWithParameters() is now a separate method in Camera
interface.
Change-Id: I9cda61d2d1e80d193047cb4fceabdbbea27a5191
Signed-off-by: Daniel Levin <dendy@ti.com>
|