Rebecca Schultz Zavin [Tue, 4 Sep 2012 16:44:10 +0000 (09:44 -0700)]
STOPSHIP: Turn back off exif data until we ship
Change-Id: I11da13c788ac3006ace68e80b047b2187075c6f2
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
Younghwan Joo [Thu, 30 Aug 2012 20:56:53 +0000 (13:56 -0700)]
hardware: smasung_slsi: libcamera2: add flash function
This patch is to enable flash operation for camera
The default flash mode may be disabled. Because Cameraservice can't
inform flash mode to cameraHAL. Changing flash UI is updated at
aa_aemode. but this field also includes AE_MODE_LOCKED value.
To capture image, CameraService always set this value to AE_MODE_LOCKED.
so cameraHAL can't recognize the current flash mode
Change-Id: Ic66dce38e460509669de293e7878d5b3fd86a891
Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>
Sungjoong Kang [Thu, 30 Aug 2012 06:14:17 +0000 (15:14 +0900)]
hardware: samsung_slsi: libcamera2: fix thumbnail size bug
1. default thumbnail size is 160*120
2. thumbnail size is decided from metadata
Change-Id: Iac6faec295f8df0fc55a400431596077381807b4
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
Sungjoong Kang [Wed, 29 Aug 2012 20:25:46 +0000 (13:25 -0700)]
hardware: samsung_slsi: libcamera2: Enable preview callback
Supprots preview callback using android YUV formats
Also fixes the issue that recorded images are all green
Change-Id: I96205cbb9c9249a4527654d419729a9d058d31ec
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
James Dong [Thu, 30 Aug 2012 22:30:35 +0000 (15:30 -0700)]
Merge "exynos_omx: multi_thread: Remove OMX Error log on init time." into jb-mr1-dev
SeungBeom Kim [Mon, 13 Aug 2012 17:58:21 +0000 (10:58 -0700)]
exynos_omx: multi_thread: Remove OMX Error log on init time.
It is not error.
this code is just for the check of OpenMAX component loading.
Change-Id: I159ef88d9e300c3fbeebf697547eecab609fd0d9
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
Greg Hackmann [Wed, 29 Aug 2012 16:58:45 +0000 (09:58 -0700)]
gralloc: add extra line of padding after aligning
Padding before aligning adds 15 unneeded lines. Also check that the
extra line is needed (i.e., the alignment didn't add padding of its
own).
Change-Id: Iefbf5f26d8f346ba487195a5973693ae871f843f
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Greg Hackmann [Wed, 29 Aug 2012 16:58:45 +0000 (09:58 -0700)]
gralloc: make sure rgb buffers have at least 1 line of padding
The display controller may read up to 1 line past the end of the image
Change-Id: Ibb6ed15d1c02d07fe955922249c71b7ce9bce0fc
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Sungjoong Kang [Tue, 28 Aug 2012 22:02:19 +0000 (15:02 -0700)]
hardware: samsung_slsi: libcamera2: Enable 4x digital zoom
Enables 4x digital zoom function
Requires matching version of driver
Change-Id: I1abbd2781fd3d47c162a68802d5b532c54e0dcb6
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
Sungjoong Kang [Tue, 28 Aug 2012 20:05:01 +0000 (13:05 -0700)]
hardware: samsung_slsi: libcamera2: Fix AF lockup
Fixed most of the cases of AF lockup
Change-Id: If5e190e916c4b1f4e0246ee953d55d1e5d8a4882
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
Sungjoong Kang [Tue, 28 Aug 2012 19:55:39 +0000 (12:55 -0700)]
hardware: samsung_slsi: libcamera2: Fix Night scene mode
When using night scnee mode, separate parameter will be appiled
for preview/capture operation.
Change-Id: I2875baa0d404fd92cc6df98f7c174bf86adbd9db
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
Sungjoong Kang [Tue, 28 Aug 2012 14:35:43 +0000 (23:35 +0900)]
hardware: samsung_slsi: libcamera2: add basic function for frame sync
1. add memory allocation for metadata which is used in frame sync
2. add one plane for meta data
Change-Id: I46858d3e408b5fcfc2a8fdaaba93ae9481675563
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
Sungjoong Kang [Tue, 28 Aug 2012 13:59:48 +0000 (22:59 +0900)]
hardware: samsung_slsi: libcamera2: remove unnessary signal
remove signal spam in sensor thread.
Change-Id: Id7b5d5e654ebc826e593433185bcf3101e131e6c
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
Sungjoong Kang [Tue, 28 Aug 2012 10:48:30 +0000 (03:48 -0700)]
hardware: samsung_slsi: libcamera2: Fix crash on back/front change
Fixed crash on camera back/front mode change.
Change-Id: Iae5f2a01fe4f1ccf2a7d32f92d212c05f8c2e830
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
Sungjoong Kang [Tue, 28 Aug 2012 08:29:11 +0000 (17:29 +0900)]
hardware: samsung_slsi: libcamera2: seperate stream thread functions
seperate stream thread functions from 1 to 3 for readibility and stability.
Change-Id: Iea0ec217df8ffb10ca92b76114a0679b58e58fda
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
Sungjoong Kang [Mon, 27 Aug 2012 07:29:28 +0000 (00:29 -0700)]
hardware: samsung_slsi: libcamera2: Protection for sensor failure
Added protection code for sensor H/W init failure
Change-Id: Id8f40bb3ac6a9ae61d2e0d9c2af3afa5df43ad87
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
Sungjoong Kang [Mon, 27 Aug 2012 07:02:22 +0000 (00:02 -0700)]
hardware: samsung_slsi: libcamera2: Enabled Touch Auto Focus
Touch Auto Focus is enabled.
Change-Id: I01f8475a874763561e74294d2d8bff9484faf536
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
Sungjoong Kang [Mon, 27 Aug 2012 00:44:25 +0000 (17:44 -0700)]
hardware: samsung_slsi: libcamera2: Enabled Face Detection
Face Detaction is enabled.
Change-Id: I3e004a10252cc2a4514951439203a1aae08e492b
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
Sungjoong Kang [Sat, 25 Aug 2012 06:08:06 +0000 (23:08 -0700)]
hardware: samsung_slsi: libcamera2: removing dummy qbuf to ISP
For efficiency, removed registering buffers to ISP by dummy qbuf.
Requires counterpart of Fimc-is-mc2 driver patch
Change-Id: I35e8344dea008c1b43be2cfcc598942ba3961a18
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
Alex Ray [Tue, 28 Aug 2012 00:23:41 +0000 (17:23 -0700)]
STOPSHIP libcamera2: remove device metadata
Change-Id: I358b77b8a18d8a7dc76823b905a0930df845f743
Signed-off-by: Alex Ray <aray@google.com>
Sungjoong Kang [Fri, 24 Aug 2012 00:38:20 +0000 (17:38 -0700)]
hardware: samsung_slsi: libcamera2: Modified CAF Algorithm
Modified CAF Algorithm and fixed lockup during operation.
Change-Id: I313171d13414825d3bce1e12c1b123a1922b2296
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
Sungjoong Kang [Thu, 23 Aug 2012 23:35:08 +0000 (16:35 -0700)]
hardware: samsung_slsi: libcamera2: Fixed JPEG related problems
1. Fixes crash after capturing multiple snapshots
2. Supports EXIF tags
3. Supports Thumbnails
Change-Id: I60fed4eb64ffbb2c49ceaafb44877d5e23da8562
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
Sungjoong Kang [Thu, 23 Aug 2012 23:16:44 +0000 (16:16 -0700)]
hardware: samsung_slsi: libcamera2: Stability Enhancement
Also added supported resolutions
Change-Id: Ie53adbbfd3b115811625ca85df05c370074107e6
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
James Dong [Tue, 28 Aug 2012 15:20:50 +0000 (08:20 -0700)]
Merge "exynos_omx: multi_thread: Change Log Message." into jb-mr1-dev
James Dong [Tue, 28 Aug 2012 15:20:34 +0000 (08:20 -0700)]
Merge "exynos_omx: multi_thread: Fix the bug of video recording I-frame interval." into jb-mr1-dev
James Dong [Tue, 28 Aug 2012 15:20:11 +0000 (08:20 -0700)]
Merge "exynos_omx: multi_thread: Fix wrong variable name." into jb-mr1-dev
Sanghee Kim [Thu, 9 Aug 2012 06:31:10 +0000 (23:31 -0700)]
hwc: support drm video play back.
In case of drm video play back, GSC's destination buffer
should be allocateed from reserved memory using protected flag
in gralloc.
If src buffer is protected buffer, dst buffer should be same.
Change-Id: I5eb2a698f2ca404a585c436d6536462580ca4ba6
Signed-off-by: Sanghee Kim <haya93@samsung.com>
Sanghee Kim [Thu, 9 Aug 2012 06:37:30 +0000 (23:37 -0700)]
libgscaler: support gsc's content protection ctrl.
In case of drm video play back, contents should be protected.
Added gsc's content protection control.
Change-Id: If724de5aaf5cadab8eada160211b1ab3ce1b758a
Signed-off-by: Sanghee Kim <haya93@samsung.com>
Sanghee Kim [Sat, 11 Aug 2012 07:24:03 +0000 (00:24 -0700)]
exynos5: include: vb2: added V4L2_CID_CONTENT_PROTECTION.
This flag is used in DRM play back to inform gscaler
that we are passing it protected content.
Change-Id: I41890bbe1e261b645b0ee501fa19fbc1f9bdf7ac
Signed-off-by: Sanghee Kim <haya93@samsung.com>
Sanghee Kim [Thu, 9 Aug 2012 05:59:55 +0000 (22:59 -0700)]
gralloc: add support to allocate protected buffers
Change-Id: I0c8cc054f5fa15544177a9b9042aca095c64eb82
Signed-off-by: Dima Zavin <dima@android.com>
Rebecca Schultz Zavin [Tue, 28 Aug 2012 04:31:22 +0000 (21:31 -0700)]
Fix whitespace in gralloc.cpp and mapper.cpp
Change-Id: Ia710e1f6aada45644f4b062cca1288b306f4c06c
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
Rebecca Schultz Zavin [Mon, 27 Aug 2012 22:23:32 +0000 (15:23 -0700)]
Add framework yv12 and nv21 formats to gralloc
Change-Id: I115f2511503bc6d9e638df23fe14758e7ab45c9d
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
Rebecca Schultz Zavin [Mon, 27 Aug 2012 17:58:52 +0000 (10:58 -0700)]
Import ion handles when registering buffers
Import ion handles from registerBuffer, this will allow us
to track ion buffers as they are passed between processes
for debug purposes.
Change-Id: I60f3b6c210c807c06dc312d3254644d2151c354f
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
SeungBeom Kim [Mon, 27 Aug 2012 21:14:07 +0000 (14:14 -0700)]
exynos_omx: multi_thread: Change Log Message.
Change Log Message in "Exynos_OMX_Venc.c".
Change-Id: I66c83024afda26a10c97d33e5ef8fd5f6dcbfe55
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
SeungBeom Kim [Mon, 27 Aug 2012 05:34:08 +0000 (22:34 -0700)]
exynos_omx: multi_thread: Fix the bug of video recording I-frame interval.
Before Fix, OpenGOP Recording.
(Return the I-Frame after each 10 frame.)
After Fix, Return the I-Frame after each 30 frame.
(Stagefright has set the I-frame interval 30 frame.)
Change-Id: I6089bdb5ae1b0cf2d999233f39a97c64884b6bb9
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
SeungBeom Kim [Mon, 27 Aug 2012 21:25:57 +0000 (14:25 -0700)]
exynos_omx: multi_thread: Fix wrong variable name.
Change-Id: I0d86bb3747c7e686e2b8ca013b08cc7b1ac4ea9f
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
Greg Hackmann [Thu, 23 Aug 2012 19:58:02 +0000 (12:58 -0700)]
hwc: implement dump() with last configuration accepted by fb driver
Change-Id: I592af8403d98a0d1a1907c44f7aa784e58a222b9
Signed-off-by: Greg Hackmann <ghackmann@google.com>
James Dong [Fri, 24 Aug 2012 21:42:26 +0000 (14:42 -0700)]
Reduce the number of advertised buffers needed from producer (hal) end
o related-to-bug:
7046065
Change-Id: I4fd2dcaaff1a2d89d004f9f7033256b8cef456c1
Rebecca Schultz Zavin [Thu, 23 Aug 2012 07:03:05 +0000 (00:03 -0700)]
Disambiguate framework formats from exynos formats
Previously exynos hal code was using the framework definitions
of YV12 and NV21 to describe custom exynos formats that are
similar but not the same. This patch defines new formats that
describe the custom formats that should be used instead.
Change-Id: I05f5c07d4ab77ef614c765f51fb7254b47005f79
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
Jesse Hall [Tue, 21 Aug 2012 19:12:55 +0000 (12:12 -0700)]
Update for cleanups in hwc interface
Change-Id: I8f43423df620bdeb1f7dd0a61d0222bf0c54f204
Greg Hackmann [Wed, 22 Aug 2012 18:27:38 +0000 (11:27 -0700)]
hwc: fix set() with zero layers
Initialization for the post callback should not be skipped, since set()
requires eglSwapBuffers() to be called even when there are zero layers
Change-Id: I624ef55e73b389aadf3516a6d2c541d67d398333
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Rebecca Schultz Zavin [Wed, 22 Aug 2012 07:55:29 +0000 (00:55 -0700)]
Turn off verbose logging
Change-Id: I57c76e879a8d5baf4180dfdf7e5fafa63e400349
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
Rebecca Zavin [Wed, 22 Aug 2012 06:48:20 +0000 (23:48 -0700)]
Merge changes I52e67161,I97547674,If04eb3af,I5e3dd4f1,I8dddc167 into jb-mr1-dev
* changes:
hardware: samsung_slsi: libcamera2: Add SceneMode support
hardware: samsung_slsi: libcamera2: Add AF/CAF Feature
hardware: samsung_slsi: libcamera2: 4th release of camera
hardware: samsung_slsi: libcamera2: Remove memcpy for JPEG output
hardware: samsung_slsi: libcamera2: Add support for metadata
Sungjoong Kang [Fri, 17 Aug 2012 22:47:56 +0000 (15:47 -0700)]
hardware: samsung_slsi: libcamera2: Add SceneMode support
This patch enables SceneMode feature.
Requires camera 4th release.
Change-Id: I52e67161f0b89b4d05147d04f4f4a68b54c4e89c
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
Sungjoong Kang [Fri, 17 Aug 2012 22:43:12 +0000 (15:43 -0700)]
hardware: samsung_slsi: libcamera2: Add AF/CAF Feature
This patch enables AF/CAF of camera.
Requires camera 4th release.
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
Change-Id: I97547674ee115f7a00fd9ceeebbd0456a37c25e4
Sungjoong Kang [Fri, 17 Aug 2012 19:34:33 +0000 (12:34 -0700)]
hardware: samsung_slsi: libcamera2: 4th release of camera
Redesigned HAL for increasing stability
Change-Id: If04eb3af7675e04fc9b59775e6e4ca396f1ed64a
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
Sungjoong Kang [Wed, 8 Aug 2012 18:13:48 +0000 (11:13 -0700)]
hardware: samsung_slsi: libcamera2: Remove memcpy for JPEG output
Remove memcpy by changing the destination of JPEG encoder
to the memory buffer provided by camera service.
Change-Id: I5e3dd4f1ecfc3371a0d4ee7c5291ebccc7b26208
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
Sungjoong Kang [Wed, 8 Aug 2012 20:38:09 +0000 (13:38 -0700)]
hardware: samsung_slsi: libcamera2: Add support for metadata
Added supports for metadata for both requests and frames.
AWB modes and scene modes are enabled on HAL side
Change-Id: I8dddc1676b45638eb6c554b8fc6c0a6bfef480a5
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
Greg Hackmann [Tue, 14 Aug 2012 23:10:05 +0000 (16:10 -0700)]
hwc: use vstride to determine gscaler support
Vertical stride was not exposed before, so height was used as a
pessimistic proxy.
Change-Id: I6b6aabbc45186905c7434fd1928a622cb126cc9a
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Greg Hackmann [Fri, 17 Aug 2012 22:41:29 +0000 (15:41 -0700)]
HACK: hwc: reserve gscalers 1 & 2 for camera
Change-Id: Ie278cfa6dbd53f6776297727f41b5ee7c8dcf47b
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Greg Hackmann [Fri, 17 Aug 2012 22:40:53 +0000 (15:40 -0700)]
Revert "HACK: hwc: reserve gscaler 2 for camera"
This reverts commit
49e5108eb6444e15edb323b957af9ae36c3e03b5.
Greg Hackmann [Fri, 17 Aug 2012 00:28:57 +0000 (17:28 -0700)]
hwc: fix source crop when using gscaler m2m
The source image has already been scaled and cropped, so adjust the
source crop accordingly
Change-Id: Ife09a8eecb4e20c60a8e8ef54164e1a14c5a2718
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Greg Hackmann [Thu, 16 Aug 2012 20:12:27 +0000 (13:12 -0700)]
hwc: remove SKIP_LAYER check when reserving windows
Fixes a case where the HWC does not skip a window to hold the
framebuffer, causing one of the other overlays to vanish.
Change-Id: I8f48547b145162a523a624d59b4d166cea2e0df7
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Greg Hackmann [Thu, 16 Aug 2012 23:02:27 +0000 (16:02 -0700)]
Merge "hwc: support blending" into jb-mr1-dev
Rebecca Schultz Zavin [Thu, 16 Aug 2012 00:03:47 +0000 (17:03 -0700)]
gralloc: Store the usage flags in the gralloc handles
Change-Id: I2e81eb98eb8d09e61ba53776cb35de0ad6e9e74a
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
Greg Hackmann [Fri, 3 Aug 2012 20:29:33 +0000 (13:29 -0700)]
hwc: support blending
Also remove support for RGBA-4444 surfaces, since the blending hardware
must be configured with the same alpha width across all windows
Change-Id: I0b011d309e760c52355a2d3e20828cc74640c4c4
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Rebecca Schultz Zavin [Wed, 15 Aug 2012 18:17:04 +0000 (11:17 -0700)]
gralloc: Add vstride to gralloc handles, pad rgb surfaces
If rgb surfaces are padded to nearest 16 pixels in height,
the gscalar can accept them. This change increases the number
of cases where the hardware composer can make use of the
gscalar.
Change-Id: Iffacbdb2637c8b80c5cd0a8a62d015e854950a43
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
Rebecca Schultz Zavin [Tue, 14 Aug 2012 23:08:04 +0000 (16:08 -0700)]
Move gralloc from vendor to here
Change-Id: I47bca624cfcbeaeb67321e17a2f755785da16aa5
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
Benoit Goby [Thu, 9 Aug 2012 23:11:22 +0000 (16:11 -0700)]
hwc: read hdmi resolution to properly configure gscaler
Change-Id: I3fb7741b3e51834206ee67ca3914bcaacad667b1
Greg Hackmann [Tue, 14 Aug 2012 22:51:40 +0000 (15:51 -0700)]
hwc: fix colors on YCrCb surfaces
Change-Id: Iafabe17735811fe815ad80ae1c145e1e75b63ca4
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Sungjoong Kang [Wed, 8 Aug 2012 18:49:43 +0000 (11:49 -0700)]
hardware: samsung_slsi: libcamera2: Reconstruct static info class
Reconstruct the class for providing static information of camera
Change-Id: I67d3dabdc96c980b9d3d0278112b05d7da59902c
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
Sungjoong Kang [Sun, 5 Aug 2012 17:36:19 +0000 (10:36 -0700)]
hardware: samsung_slsi: libcamera2: Change recording format to NV12M
Changed recording format from RGBA8888 to NV12M
Removed unnecessary memcpy and excessive logs.
Change-Id: Id047864dbe5468c86479c2648508a71294c00673
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
SeungBeom Kim [Tue, 7 Aug 2012 23:22:29 +0000 (16:22 -0700)]
exynos_omx: multi_thread: Add New Encode scheme for support input buffer shere.
The case of camera recording, input buffer shere.
If input is store metadata and color format is NV12M then, OpenMAX using Input buffer share scheme.
(Without CSC.)
If input color format is RGB then, OpenMAX using copy(RGB to NV12M CSC) scheme.
This Scheme is supported Dynamic change in the execute state.
(But, Can be changed only once in the time of first frame receive.)
each frame changes can not support.
Change-Id: Iba59e8c04fcea3916665ae86ece52c825ee13eec
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
SeungBeom Kim [Wed, 8 Aug 2012 17:54:12 +0000 (10:54 -0700)]
exynos_omx: multi_thread: Change shared memory allocator for DRM play.
The case of DRM play, OpenMAX need reserved memory.
Reserved memory means Exynos heap.
Change-Id: Ibc4e3b8e73b1a9e6e1dcfb48a52f1a551d428112
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
SeungBeom Kim [Tue, 7 Aug 2012 18:13:29 +0000 (11:13 -0700)]
exynos_omx: multi_thread: Fix the DRM play bug.
In case of DRM play, Registered input buffer address is incorrect.
Error log
01-01 13:38:30.755: E/ExynosVideoDecoder(99): MFC_Decoder_Enqueue_Inbuf: Failed to get index
01-01 13:38:30.755: E/EXYNOS_H264_DEC(99): Failed to enqueue input buffer for header parsing
Change-Id: Ic62914d4bb4f0a1275cdfbb6c65e9c99af87f29b
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
SeungBeom Kim [Fri, 10 Aug 2012 03:48:04 +0000 (20:48 -0700)]
hardware: samsung_slsi: V4L2 CID update.
For Equal to the kernel CID.
Change-Id: I6cfb837f155a2f0f586deec70b83bef13d44f009
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
Dima Zavin [Fri, 10 Aug 2012 07:05:54 +0000 (00:05 -0700)]
Merge changes I7936d6f4,Ide5a1370 into jb-mr1-dev
* changes:
exynos5: mobicore: cleanup of makefiles
manta: add MobiCore userspace daemon and libraries
SeungBeom Kim [Fri, 3 Aug 2012 00:03:11 +0000 (17:03 -0700)]
exynos_omx: multi_thread: Change output color format.
YUV420SP(NV12) to NV12T.
Change-Id: Idb863b5a7015775a9ebf59dc345714264b3e2028
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
Rebecca Zavin [Wed, 8 Aug 2012 18:19:55 +0000 (11:19 -0700)]
Merge "hardware: samsung_slsi: libcamera2: Stability Fix and code clean-up" into jb-mr1-dev
Dima Zavin [Tue, 7 Aug 2012 18:03:13 +0000 (11:03 -0700)]
exynos5: mobicore: cleanup of makefiles
Change-Id: I7936d6f4dbe88f73280deb2118915b46a8a3565c
Signed-off-by: Dima Zavin <dima@android.com>
DongJin Park [Wed, 1 Aug 2012 06:44:23 +0000 (15:44 +0900)]
manta: add MobiCore userspace daemon and libraries
Change-Id: Ide5a137050bf384a5409bec6806018ae84d34767
Signed-off-by: DongJin Park <djpax.park@samsung.com>
Sungjoong Kang [Sat, 4 Aug 2012 22:36:56 +0000 (15:36 -0700)]
hardware: samsung_slsi: libcamera2: Stability Fix and code clean-up
Clean-up unused codes and logs.
Resolves instability caused by frame sync error.
Unifies internal data structure.
Change-Id: I29a220e29b5856a42f0727427f9e8af10848500c
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
Jesse Hall [Tue, 31 Jul 2012 21:34:08 +0000 (14:34 -0700)]
Minimal changes to support multi-display HWC
Change-Id: I8d95065f70c18356672cb3f3e5151d38408d09c0
Sanghee Kim [Tue, 7 Aug 2012 06:55:48 +0000 (23:55 -0700)]
exynos5: libgscaler: modify set_format function.
Fixed the problem "stillshot always captures same image".
need to set_format always if someone request.
Change-Id: I2b1bb6bc83d62e8e3e5c3cbdb54e55f7ad2ed624
Signed-off-by: Sanghee Kim <haya93@samsung.com>
Dima Zavin [Mon, 6 Aug 2012 23:12:09 +0000 (16:12 -0700)]
Merge "HACK: exynos5: gscaler: do not skip s_fmt/reqbufs on gsc_convert path" into jb-mr1-dev
Dima Zavin [Sat, 4 Aug 2012 08:15:15 +0000 (01:15 -0700)]
HACK: exynos5: gscaler: do not skip s_fmt/reqbufs on gsc_convert path
This fixes the bug where still capture always captures the same
image and video recording only taking first image.
The issue is that reqbufs is reset to 0 and fmt is not set
when the buffers try to be enqueued and stremaing turned on in the path
from csc_convert().
This is temporary as the gscaler code really needs a huge cleanup.
Bug:
6925368
Change-Id: Ia8e3aee0e0b50c6a69e1eda219e484713088c042
Signed-off-by: Dima Zavin <dima@android.com>
Greg Hackmann [Fri, 3 Aug 2012 23:16:58 +0000 (16:16 -0700)]
hwc: enforce gscaler limitations on scaling factor
Change-Id: I1e21da41883ba7c3d28c5ca73e288cd75ca8381c
Signed-off-by: Greg Hackmann <ghackmann@google.com>
SeungBeom Kim [Fri, 3 Aug 2012 21:19:12 +0000 (14:19 -0700)]
exynos_omx: multi_thread: The case of "enable native buffer", Change the conditions of checking.
related-to-bug:
6923167
Change-Id: Ibdb5ad5deec3030743e99c4faff1cc20d9686f3e
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
James Dong [Thu, 2 Aug 2012 22:42:19 +0000 (15:42 -0700)]
Remove excessive logging
Change-Id: I16d15e6dc5a9b1144cd125465ab39738436d1ff9
Dima Zavin [Thu, 2 Aug 2012 23:18:49 +0000 (16:18 -0700)]
exynos5: metadata buffer contains a buffer handle, not anativewindow
Since it's a buffer handle, call LockANBHandle not LockANB.
Change-Id: Ib27dfe7884f084a96a636faa1eb9718fc281abd3
Signed-off-by: Dima Zavin <dima@android.com>
Yongbae Song [Fri, 29 Jun 2012 06:37:37 +0000 (15:37 +0900)]
exynos5: libgscaler: Add NV12 colorFormat
Add NV12 colorFormat.
Change-Id: I62e9cb2709f1bf42d889d46e520580b368c6c174
Signed-off-by: Yongbae Song <yb.song@samsung.com>
Yongbae Song [Fri, 29 Jun 2012 06:33:42 +0000 (15:33 +0900)]
exynos5: libgscaler: added the V4L2_PIX_FMT for YUV420P
V4L2_PIX_FMT for YUV420P is missed in the libgscaler code.
The missed V4L2_PIX_FMT code has been added.
Change-Id: I6db81a9ce3acbb44dc4fd10a767a679298f53e3b
Signed-off-by: Yongbae Song <yb.song@samsung.com>
SeungBeom Kim [Wed, 1 Aug 2012 16:58:24 +0000 (09:58 -0700)]
exynos_omx: multi_thread: Fix H.263 encoder.
for [Issue
6889100] h263 encoder produces unplayable output.
Change-Id: I2c0fa27329da85f4b9ae942bb2e780956b865630
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
Greg Hackmann [Tue, 31 Jul 2012 22:20:00 +0000 (15:20 -0700)]
hwc: set gscaler output to BGR32
Fixes swapped R/B colors on display
Change-Id: I030a653325ac1045efb13b07bb330a024317e994
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Jesse Hall [Tue, 31 Jul 2012 19:16:41 +0000 (12:16 -0700)]
Revert "Minimal changes to support multi-display HWC"
This reverts commit
57e4cb51f6a24378203e490888a3190cd744a264
Change-Id: Idc2e21c1e51f657284076a44b139f93431dc2772
Greg Hackmann [Tue, 31 Jul 2012 16:50:38 +0000 (09:50 -0700)]
HACK: hwc: reserve gscaler 2 for camera
Change-Id: Ic4a2e430849431212322d2cf6c1ae0cf588186c3
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Jesse Hall [Thu, 26 Jul 2012 05:16:17 +0000 (22:16 -0700)]
Minimal changes to support multi-display HWC
Change-Id: I05e56d287a658f1174104b81e1b5ee0b33944555
Greg Hackmann [Mon, 30 Jul 2012 21:53:04 +0000 (14:53 -0700)]
hwc: enable gscaler memory-to-memory
Performs color conversion, scaling, and translation for YUV surfaces.
To prevent allocating a new destination buffer every frame, buffers are
reused in alternate frames whenever the configuration in unchanged.
Change-Id: I9a9c1e64a6ffe156ed111265d7e44d9dac8cbdf3
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Greg Hackmann [Mon, 30 Jul 2012 21:54:59 +0000 (14:54 -0700)]
libgscaler: fix set_dst_addr() return value
Change-Id: Id1fd55bf9b1883b8dba7b58beb6e75157341e95b
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Yongbae Song [Fri, 29 Jun 2012 05:25:33 +0000 (14:25 +0900)]
exynos5: libgscaler: GSC m2m non-blocking feature is added
Added the GSC m2m non-blocking mode in libgscaler. By using this
feature, other tasks (like glDraw) can be parallelized to GSC
processing.
libgscaler provids 3 APIs for GSC frame processing
1)exynos_gsc_config_exclusive ==> GSC configuration
2)exynos_gsc_run_exclusive ==> Queue the buffer and streamon the
GSC.
3)exynos_gsc_stop_exclusive ==> Deque the buffer (wait for frame
done) & streamoff the GSC.
Change-Id: I86d2da0b9fb9284c2a2a135f1c36a50c876928a0
Signed-off-by: Yongbae Song <yb.song@samsung.com>
Alex Ray [Mon, 30 Jul 2012 23:55:15 +0000 (16:55 -0700)]
hardware: samsung_slsi: libcamera2: verbose log messages (again)
Turn down verbosity while camera is on, missed a couple
Change-Id: Ic58f1000a069a982b8ced2e3a327eb35a51f840b
Alex Ray [Mon, 30 Jul 2012 23:42:12 +0000 (16:42 -0700)]
hardware: samsung_slsi: libcamera2: verbose log messages
Turn down verbosity while camera is on.
Change-Id: I78d5f24caebb0f36c4d84c09464fbd199947714b
Alex Ray [Sat, 28 Jul 2012 00:19:48 +0000 (17:19 -0700)]
hardware: samsung_slsi: libcamera2: update DMABUF references
Change-Id: Id6f2a9aa4e91c766bc3047a3946c365723dc4224
Signed-off-by: Alex Ray <aray@google.com>
Sungjoong Kang [Fri, 20 Jul 2012 13:31:51 +0000 (22:31 +0900)]
hardware: samsung_slsi: libhwjpeg: support DMABUF
Change-Id: I4ca119dbc9c83a2c334b095cf305fc8df72e0207
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
Sungjoong Kang [Fri, 20 Jul 2012 13:30:40 +0000 (22:30 +0900)]
hardware: samsung_slsi: include: update header file for JPEG
To support DMABUF, update jpeg header file
Change-Id: Ib3b3fd3a1f8142c85a8ebf7217ab3cb6a17a8e56
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
Sungjoong Kang [Fri, 27 Jul 2012 19:03:29 +0000 (12:03 -0700)]
hardware: samsung_slsi: libcamera2: Fixed Front Camera Recording
This patch fixes lockup during front camera recording.
Change-Id: I8f308a763feabc414154bb9d372e559605275244
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
Sungjoong Kang [Fri, 27 Jul 2012 14:39:05 +0000 (07:39 -0700)]
hardware: samsung_slsi: libcamera2: Bug fixes and code cleanup
This patch resolves instability of last version.
With this patch and latest kernel patches,
failure on re-entering camera app has also been resolved.
Change-Id: I2acf3c659256798280c41869b9d84d72846f34af
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
Sungjoong Kang [Mon, 23 Jul 2012 15:25:51 +0000 (00:25 +0900)]
hardware: samsung_slsi: libcamera2: support front camera
This version also supports Video Recording.
Fixed file permission and front camera recording failure.
Change-Id: Ibad9f007107576ff25e3d189d4f3e96435b989c1
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
Sungjoong Kang [Thu, 26 Jul 2012 02:04:19 +0000 (19:04 -0700)]
hardware: samsung_slsi: libgscaler: Added support for NV21M
Added support for NV21M which means HAL_PIXEL_FORMAT_YCrCb_420_SP
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
Change-Id: Ibfdd3ba5781d2ad7eff6e6c1e2c0a61351de40fc
Sungjoong Kang [Fri, 20 Jul 2012 13:33:13 +0000 (22:33 +0900)]
hardware: samsung_slsi: libgscaler: bug fix for NV16
change plane count from 2 to 1 for NV16 format
Change-Id: Id8789ddb007c03cbf04c3a26e2094f4a15e0bbcc
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>