GitHub/LineageOS/android_hardware_samsung_slsi_exynos5.git
12 years agoexynos5: libcsc: change CSC API for DMABUF support.
SeungBeom Kim [Fri, 20 Jul 2012 07:44:11 +0000 (16:44 +0900)]
exynos5: libcsc: change CSC API for DMABUF support.

Change csc_set_src_buffer and csc_set_dst_buffer API,

Change-Id: I6630ea3b11680b3a99c7610e5635d02c27ed6ccd
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
12 years agoexynos_omx: multi_thread: Change number of metadata buffer.
SeungBeom Kim [Thu, 19 Jul 2012 06:12:45 +0000 (15:12 +0900)]
exynos_omx: multi_thread: Change number of metadata buffer.

Change number of metadata buffer.
for storemetadata Video recording.

Change-Id: I7f9d0b1633341f185a25e869312995143782ff3c
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
12 years agoexynos_omx: multi_thread: Fix the bug of decode buffer Queuing.
SeungBeom Kim [Thu, 19 Jul 2012 04:18:00 +0000 (13:18 +0900)]
exynos_omx: multi_thread: Fix the bug of decode buffer Queuing.

The case of output Buffer Share,
Destination buffer Enqueue argument is wrong in all Decode Component.
Fix wrong argument.

Change-Id: I380ddd1d468bb130c78678a81d5fa401f2ecda7f
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
12 years agoexynos_omx: multi_thread: Fix the encoder input buffer scheme.
SeungBeom Kim [Wed, 18 Jul 2012 00:02:37 +0000 (09:02 +0900)]
exynos_omx: multi_thread: Fix the encoder input buffer scheme.

in the case of MetadataBufferType buffer,
Fix the bug of input buffer registration scheme.

Change-Id: I05ec601777e5aae6ec20e74c933f03b3cacd8958
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
12 years agoexynos_omx: multi_thread: Remove unused variable (cont.).
SeungBeom Kim [Tue, 17 Jul 2012 03:01:18 +0000 (12:01 +0900)]
exynos_omx: multi_thread: Remove unused variable (cont.).

Change-Id: I35030e0c4243f9cb0a216c941a242ab725b201f2
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
12 years agoexynos_omx: multi_thread: Modified Cache enable scheme.
SeungBeom Kim [Wed, 11 Jul 2012 10:00:42 +0000 (19:00 +0900)]
exynos_omx: multi_thread: Modified Cache enable scheme.

the case of Buffer copy, Cache enable.

Change-Id: Idd2f96f13b6fc8fa54bc50d3931e9a8c158e82dd
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
12 years agoexynos_omx: multi_thread: Modified AllocateBuffer & FreeBuffer.
SeungBeom Kim [Wed, 4 Jul 2012 06:32:04 +0000 (15:32 +0900)]
exynos_omx: multi_thread: Modified AllocateBuffer & FreeBuffer.

- Modified Exynos_OMX_AllocateBuffer in video decode.
- Modified Exynos_OMX_FreeBuffer in video decode.

Change-Id: Ic1c8577ac7befd59c3a6b5d1e96b6e01828027d0
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
12 years agoexynos_omx: multi_thread: input and output buffer struct Integration.
SeungBeom Kim [Wed, 4 Jul 2012 06:25:59 +0000 (15:25 +0900)]
exynos_omx: multi_thread: input and output buffer struct Integration.

- remove CODEC_DEC_INPUT_BUFFER
- remove CODEC_DEC_OUTPUT_BUFFER
- add new struct  CODEC_DEC_BUFFER

Change-Id: Ie4afaf5f41834606c9f5220a0f9b031f0d05b807
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
12 years agoexynos_omx: multi_thread: Video encoder supported ION fd.
SeungBeom Kim [Wed, 4 Jul 2012 06:01:54 +0000 (15:01 +0900)]
exynos_omx: multi_thread: Video encoder supported ION fd.

Video encode component supported ION fd.

Change-Id: Ib8dcb66eaf54371f69b5404cfdf3b954368386c0
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
12 years agoexynos_omx: multi_thread: support to DRM component.
SeungBeom Kim [Wed, 4 Jul 2012 05:31:23 +0000 (14:31 +0900)]
exynos_omx: multi_thread: support to DRM component.

- support H.264 DRM playback

Change-Id: I8b8e70b0202e28c983fa4497a699b92459fd3fe0
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
12 years agoexynos_omx: multi_thread: Modified Video Encode Scheme.
SeungBeom Kim [Wed, 4 Jul 2012 05:13:28 +0000 (14:13 +0900)]
exynos_omx: multi_thread: Modified Video Encode Scheme.

- Encode component setup scheme change.
- Add Encode component output port share.

Change-Id: Iaf145e41dd0f706cfb17fcc0fa34b1f8bf9113b7
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
12 years agoexynos_omx: multi_thread: Video decode component code clean-up.
SeungBeom Kim [Wed, 4 Jul 2012 04:08:54 +0000 (13:08 +0900)]
exynos_omx: multi_thread: Video decode component code clean-up.

- Use MFC_INPUT_BUFFER_PLANE.
- Use MFC_OUTPUT_BUFFER_PLANE.
- Remove Log message.

Change-Id: Ia85646964b4167d7c6c36c1da78eaa981e7fb323
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
12 years agoexynos_omx: multi_thread: Modified calc_plane API
SeungBeom Kim [Wed, 4 Jul 2012 01:55:37 +0000 (10:55 +0900)]
exynos_omx: multi_thread: Modified calc_plane API

Modified calc_plane(for the MFC output buffer calculate) API.

Change-Id: I86e338f27ce352932a8176e0f7137084aeb884d4
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
12 years agoexynos_omx: multi_thread: Modified OMX_EventPortSettingsChanged scheme.
SeungBeom Kim [Wed, 4 Jul 2012 01:13:01 +0000 (10:13 +0900)]
exynos_omx: multi_thread: Modified OMX_EventPortSettingsChanged scheme.

this change is for crop clip decoding of "H.264 decode Component".

Change-Id: Iad50319d4cfc35d56b2720b8b75cb3db22c1c578
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
12 years agoexynos_omx: multi_thread: enhance the exception handling.
SeungBeom Kim [Wed, 4 Jul 2012 00:56:12 +0000 (09:56 +0900)]
exynos_omx: multi_thread: enhance the exception handling.

in case of first frame EOS, enhance the exception handling.

Change-Id: I72f74d4c5389119a499f74abb68f08bbe9cadd7a
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
12 years agoexynos_omx: multi_thread: Add error handling.
SeungBeom Kim [Wed, 4 Jul 2012 00:33:20 +0000 (09:33 +0900)]
exynos_omx: multi_thread: Add error handling.

Change-Id: I279d1e893589179a573224c383d414fbb165fc40
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
12 years agoexynos_omx: multi_thread: Code clean-up.
SeungBeom Kim [Tue, 3 Jul 2012 11:03:59 +0000 (20:03 +0900)]
exynos_omx: multi_thread: Code clean-up.

- remove tab & line.
- remove log message.

Change-Id: I0e21ff7da9b1d4e3533e340be276e98e82f6f6e7
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
12 years agoexynos_omx: multi_thread: Change variable name.
SeungBeom Kim [Tue, 3 Jul 2012 10:16:46 +0000 (19:16 +0900)]
exynos_omx: multi_thread: Change variable name.

- MAXDPBNum to maxDPBNum.

Change-Id: Ic522ca6f7f6d66495f72ab02911b1f382cda220f
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
12 years agoexynos_omx: multi_thread: Update Exynos Codec API.
SeungBeom Kim [Tue, 3 Jul 2012 09:31:30 +0000 (18:31 +0900)]
exynos_omx: multi_thread: Update Exynos Codec API.

- Change mutex lock & unlock position.
- Add error handling.
- Code clean-up.

Change-Id: Ia44cb1062fca16936411ea408a0ff1186dd0a296
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
12 years agoexynos_omx: multi_thread: Add New API.
SeungBeom Kim [Tue, 3 Jul 2012 05:46:02 +0000 (14:46 +0900)]
exynos_omx: multi_thread: Add New API.

- the case of buffer allocated outside OMX, need mapping for buffer use.
- API Name
   Exynos_OSAL_SharedMemory_Map
   Exynos_OSAL_SharedMemory_Unmap
EX)
   need this API. if using "StoreMetaDataBuffer & FD" in camera recording.

Change-Id: Ifb90d9faaf8c22c6379e273bf3e389e83b05bebc
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
12 years agoexynos_omx: multi_thread: Modifed the Exynos_OSAL_SharedMemory.c file.
SeungBeom Kim [Tue, 3 Jul 2012 05:05:07 +0000 (14:05 +0900)]
exynos_omx: multi_thread: Modifed the Exynos_OSAL_SharedMemory.c file.

- Change the check routine about return value of ion_map
- Struct name change
   SEC_OMX_SHAREDMEM_LIST to EXYNOS_SHAREDMEM_LIST
   EXYNOS_OMX_SHARE_MEMORY to EXYNOS_SHARED_MEMORY
- Compliance with coding rules

Change-Id: I589cb89231c704e8d8c2cf7a001a335c621fb6c3
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
12 years agoexynos_omx: multi_thread: Code clean-up.
SeungBeom Kim [Mon, 2 Jul 2012 08:41:35 +0000 (17:41 +0900)]
exynos_omx: multi_thread: Code clean-up.

remove tab & line.

Change-Id: I1486e8acf919657d4161b943f679bce3ffb5a90b
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
12 years agoexynos_omx: multi_thread: remove OMXComponentCapabilityFlagsType.
SeungBeom Kim [Mon, 2 Jul 2012 08:17:35 +0000 (17:17 +0900)]
exynos_omx: multi_thread: remove OMXComponentCapabilityFlagsType.

OMXComponentCapabilityFlagsType is code for opencore.
It don't need no more.

Change-Id: If85121b276147cd11abd44341044d380025df77c
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
12 years agoexynos_omx: multi_thread: Convert DOS to Unix.
SeungBeom Kim [Mon, 2 Jul 2012 06:07:19 +0000 (15:07 +0900)]
exynos_omx: multi_thread: Convert DOS to Unix.

Change-Id: I55ccef02a191e41a46442c11e57bf505130eca36
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
12 years agohwc: read vsync timestamps from sysfs
Greg Hackmann [Mon, 23 Jul 2012 22:31:10 +0000 (15:31 -0700)]
hwc: read vsync timestamps from sysfs

Change-Id: Ife094105b247f4cfd2edb148a1914c50f62873b4
Signed-off-by: Greg Hackmann <ghackmann@google.com>
12 years agoRevert "hwc: read vsync timestamps from sysfs"
Greg Hackmann [Tue, 24 Jul 2012 16:46:23 +0000 (09:46 -0700)]
Revert "hwc: read vsync timestamps from sysfs"

This reverts commit 34a653d2b78534ee5370a768eda9cad94c41b974.

12 years agohwc: read vsync timestamps from sysfs
Greg Hackmann [Mon, 23 Jul 2012 22:31:10 +0000 (15:31 -0700)]
hwc: read vsync timestamps from sysfs

Change-Id: Ia360211a8b944c362f9d564abac91c363cef49fb
Signed-off-by: Greg Hackmann <ghackmann@google.com>
12 years agoexynos_omx: multi_thread: Add argument for selection of memory type in initial time.
SeungBeom Kim [Thu, 5 Jul 2012 05:59:40 +0000 (14:59 +0900)]
exynos_omx: multi_thread: Add argument for selection of memory type in initial time.

void *MFC_Decoder_Init(void) to void *MFC_Decoder_Init(int nMemoryType)
void *MFC_Encoder_Init(void) to void *MFC_Encoder_Init(int nMemoryType)

Change-Id: I0e663bcf8ac111b205ac13f86fe614572ef92ee4
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
12 years agoexynos_omx: multi_thread: Add nMemoryType variable in struct ExynosVideoDecContext.
SeungBeom Kim [Tue, 3 Jul 2012 06:45:57 +0000 (15:45 +0900)]
exynos_omx: multi_thread: Add nMemoryType variable in struct ExynosVideoDecContext.

for the V4L2_MEMORY_DMABUF support &  manage.

Change-Id: If68c0963d7debaf2306fcefcad97cd8a933c2cef
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
12 years agoexynos_omx: multi_thread: Remove unused variable.
SeungBeom Kim [Tue, 17 Jul 2012 03:01:18 +0000 (12:01 +0900)]
exynos_omx: multi_thread: Remove unused variable.

Change-Id: I647070ce0264ed0de82a3cdbcccd81618ce3107c
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
12 years agolibhwc: don't link against libump_mali
Colin Cross [Thu, 19 Jul 2012 19:22:17 +0000 (12:22 -0700)]
libhwc: don't link against libump_mali

libump_mali is not available if vendor is not available, and is not
needed by libhwc.

Change-Id: I40a60eab895e249e2de3c0851bbb4bf09708259b

12 years agoexynos5: omx: always set buffers as shareable
Dima Zavin [Thu, 21 Jun 2012 06:11:57 +0000 (23:11 -0700)]
exynos5: omx: always set buffers as shareable

Change-Id: I162706dfc4672bacb8d5a9fc16d51283e9899f79
Signed-off-by: Dima Zavin <dima@android.com>
12 years agogralloc: reorder initializers to eliminate warnings
Greg Hackmann [Wed, 11 Jul 2012 16:53:55 +0000 (09:53 -0700)]
gralloc: reorder initializers to eliminate warnings

Change-Id: I5705972a85465697582530f5cc41891d78cb561f
Signed-off-by: Greg Hackmann <ghackmann@google.com>
12 years agohwc: fix formatting
Greg Hackmann [Mon, 16 Jul 2012 23:10:27 +0000 (16:10 -0700)]
hwc: fix formatting

Change-Id: I979a05d909528239c19cffcc8c0b419fbc0ac3fe
Signed-off-by: Greg Hackmann <ghackmann@google.com>
12 years agohwc: enable overlay support for all hardware windows
Greg Hackmann [Fri, 13 Jul 2012 20:23:11 +0000 (13:23 -0700)]
hwc: enable overlay support for all hardware windows

Change-Id: Ic154afc5e955275468f228a6a0a0f4cf02b99034
Signed-off-by: Greg Hackmann <ghackmann@google.com>
12 years agoexynos5 hwc: add blank operation
Colin Cross [Fri, 13 Jul 2012 00:54:17 +0000 (17:54 -0700)]
exynos5 hwc: add blank operation

Add a blank operation that will trigger the framebuffer blanking ioctl
when surfaceflinger blanks or unblanks the screen.

Change-Id: I4451317d882523ffaac39d107cfb5b5cad8b1bfa

12 years agolibhwc: The gscaler -> mixer local output only supports YCbCr
Benoit Goby [Wed, 11 Jul 2012 03:12:16 +0000 (20:12 -0700)]
libhwc: The gscaler -> mixer local output only supports YCbCr

Change-Id: I4e74b74b3b12fdcae2a1e0cd2b471e9d85c6b01a
Signed-off-by: Benoit Goby <benoit@android.com>
12 years agolibgscaler: Fix source pad mbus format
Benoit Goby [Wed, 11 Jul 2012 03:09:21 +0000 (20:09 -0700)]
libgscaler: Fix source pad mbus format

Should decide which mbus format to depending on dst_color_space, not src_color_space

Change-Id: I9fdaf044598b262bc5237838aac3fb6c3f885ce4
Signed-off-by: Benoit Goby <benoit@android.com>
12 years agolibhwc: Add support for hdmi mirroring
Benoit Goby [Mon, 9 Jul 2012 19:09:59 +0000 (12:09 -0700)]
libhwc: Add support for hdmi mirroring

Change-Id: If9ff86c113e14cc62e74daeea957f3c3ee84604f
Signed-off-by: Benoit Goby <benoit@android.com>
12 years agohardware: samsung_slsi: libcamera2: ion_alloc flags
Alex Ray [Mon, 9 Jul 2012 23:46:03 +0000 (16:46 -0700)]
hardware: samsung_slsi: libcamera2: ion_alloc flags

Change-Id: Ie9ebc0f3d0fbddfdc5fa20040b00e8a1d41ae6df

12 years agohardware: samsung_slsi: libcamera2: use DMABUF
Alex Ray [Wed, 27 Jun 2012 22:18:15 +0000 (15:18 -0700)]
hardware: samsung_slsi: libcamera2: use DMABUF

Change-Id: I82c52eac418c51b04cbb8a4eee50bdad1f35b1a4

12 years agohardware: samsung_slsi: Android.mk use camera v2
Alex Ray [Wed, 27 Jun 2012 22:17:51 +0000 (15:17 -0700)]
hardware: samsung_slsi: Android.mk use camera v2

Change-Id: I9c1f75f5fbc806c2f23a0e72fdd5f27091f10b7f

12 years agohardware: samsung_slsi: include: update camera header file
Jiyoung Shin [Fri, 1 Jun 2012 23:08:20 +0000 (16:08 -0700)]
hardware: samsung_slsi: include: update camera header file

for stabilization, update header file

Change-Id: I9e2accb97292dd68e49c465b781c8f010926437d
Signed-off-by: Jiyoung Shin <idon.shin@samsung.com>
12 years agohardware: samsung_slsi: update Android.mk to compile libcamera2
Jiyoung Shin [Tue, 5 Jun 2012 08:09:23 +0000 (01:09 -0700)]
hardware: samsung_slsi: update Android.mk to compile libcamera2

Signed-off-by: Jiyoung Shin <idon.shin@samsung.com>
Change-Id: I65b119e7eb863e7b2036d18fdf3798bcbf7381a4

12 years agohardware: samsung_slis: libcamera2: initial version of CameraHAL2
Jiyoung Shin [Tue, 5 Jun 2012 08:08:14 +0000 (01:08 -0700)]
hardware: samsung_slis: libcamera2: initial version of CameraHAL2

camera preview is only possible with initial version

Change-Id: I414366895955e902701c95737c4068987eb26c3b
Signed-off-by: Jiyoung Shin <idon.shin@samsung.com>
12 years agohardware: samsung_slsi: libhwjpeg: update JPEG library
Jiyoung Shin [Fri, 1 Jun 2012 23:11:04 +0000 (16:11 -0700)]
hardware: samsung_slsi: libhwjpeg: update JPEG library

for stabilization, update JPEG library

Change-Id: I29fb4854d8e694d8de20d1ef5d5ff5fd0b6b4bc3
Signed-off-by: Jiyoung Shin <idon.shin@samsung.com>
12 years agohardware: samsung_slsi: include: update JPEG header file
Jiyoung Shin [Fri, 1 Jun 2012 23:10:17 +0000 (16:10 -0700)]
hardware: samsung_slsi: include: update JPEG header file

for stabilization, update JPEG header file

Change-Id: I033e2280250ad1e891a088672aa4100c6fba6661
Signed-off-by: Jiyoung Shin <idon.shin@samsung.com>
12 years agolibgscaler: allow link for window 2
Greg Hackmann [Tue, 10 Jul 2012 19:10:42 +0000 (12:10 -0700)]
libgscaler: allow link for window 2

Change-Id: I394a698d2130a64d1eecf54069369be7911cf124
Signed-off-by: Greg Hackmann <ghackmann@google.com>
12 years agolibgscaler: support rgb buffers
Greg Hackmann [Tue, 10 Jul 2012 19:07:04 +0000 (12:07 -0700)]
libgscaler: support rgb buffers

Change-Id: I283493a52874622d33125f876f0bcb8e4132cf6c
Signed-off-by: Greg Hackmann <ghackmann@google.com>
12 years agolibgscaler: Use dmabuf instead of userptr
Benoit Goby [Sat, 30 Jun 2012 01:21:23 +0000 (18:21 -0700)]
libgscaler: Use dmabuf instead of userptr

Change-Id: I7ac3c05708b6d8e1c5e9fa1e98ce6feb9c9c65e2
Signed-off-by: Benoit Goby <benoit@android.com>
12 years agohwc: update to api version 1
Erik Gilling [Sat, 30 Jun 2012 00:35:13 +0000 (17:35 -0700)]
hwc: update to api version 1

Adds proper handling of sync fences.  Copies layer data on set() instead of
passing pointers to the callback.

Change-Id: I3149ca62836c157939712e69a630f69841f585a4
Signed-off-by: Erik Gilling <konkers@android.com>
12 years agohwc: enable overlay support for 2 hardware windows
Greg Hackmann [Wed, 27 Jun 2012 19:33:32 +0000 (12:33 -0700)]
hwc: enable overlay support for 2 hardware windows

Change-Id: I71c61bc99f7f2eddf3f04dd7acfae25e32ad6c01
Signed-off-by: Greg Hackmann <ghackmann@google.com>
12 years agohwc: fix handling excessive overlays
Greg Hackmann [Wed, 27 Jun 2012 19:30:44 +0000 (12:30 -0700)]
hwc: fix handling excessive overlays

Specifically, reserve a framebuffer window when all layers are otherwise
composable, but there aren't enough hardware windows to hold them

Change-Id: I37e776fe98fedb6b97e8af68ea869dc7517ac5b3
Signed-off-by: Greg Hackmann <ghackmann@google.com>
12 years agohwc: update s3c-fb.h
Greg Hackmann [Wed, 27 Jun 2012 18:52:53 +0000 (11:52 -0700)]
hwc: update s3c-fb.h

RGB_888 is actually RGBX_8888 (display controller requires padding), BGR
modes are not supported, and background layers require position + size

Change-Id: I2d80bbb95ef236f0859c3381aa2d6830615cb236
Signed-off-by: Greg Hackmann <ghackmann@google.com>
12 years agoSeveral fixes to ion
Rebecca Schultz Zavin [Mon, 11 Jun 2012 23:53:41 +0000 (16:53 -0700)]
Several fixes to ion

1- Use new argument to ion_allocate ioctl
2- Add ion sync ioctl to be called from gralloc unlock

Change-Id: Ia327c9f057613e8aba48bd58c1812e8c1fb13021
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
12 years agoAdd mode when open(O_CREAT) is used.
Nick Kralevich [Wed, 27 Jun 2012 20:27:50 +0000 (13:27 -0700)]
Add mode when open(O_CREAT) is used.

When creating a new file using open(..., O_CREAT), it is an error
to fail to specify a creation mode. If a mode is not specified, a
random stack provided value is used as the "mode".

This will become a compile error in a future Android change.

Change-Id: I8724bd9a29d57833a69b682733e53e4e4b74770a

12 years agoexynos5: omx: convert to using DMABUF to pass shared buffers
Dima Zavin [Wed, 13 Jun 2012 23:42:27 +0000 (16:42 -0700)]
exynos5: omx: convert to using DMABUF to pass shared buffers

Currently, h264/mpeg4/vp8 decoders have been updated and verified
to work.

The encode side has only been modified to make things compile. It
needs to be fixed to actually work.

Change-Id: I06d6942b5ea9ae5c09f480bfd7711a77c8feca74
Signed-off-by: Dima Zavin <dima@android.com>
12 years agoexynos5: osal: SharedMemory: clean up heap selection
Dima Zavin [Wed, 13 Jun 2012 23:32:36 +0000 (16:32 -0700)]
exynos5: osal: SharedMemory: clean up heap selection

Also, add SYSTEM_MEMORY that selects the standard ION system
heap.

Change-Id: Idea704235abd7f9b8fba92b7b5b88f69f24d7cbf
Signed-off-by: Dima Zavin <dima@android.com>
12 years agoexynos5: libv4l2: print correct error (and msg) on error
Dima Zavin [Wed, 13 Jun 2012 23:30:53 +0000 (16:30 -0700)]
exynos5: libv4l2: print correct error (and msg) on error

Change-Id: I8e0ca426c2a0826d914a30e2c66ba35839f7726a
Signed-off-by: Dima Zavin <dima@android.com>
12 years agohardware: samsung_slsi: exynos5: exynos_omx: added newly organized omx
Jiho Chang [Fri, 1 Jun 2012 20:58:55 +0000 (20:58 +0000)]
hardware: samsung_slsi: exynos5: exynos_omx: added newly organized omx

The new exynos omx support mfc output buffer sharing.
This version does not support the new fd mecahnism of ion.

Change-Id: Ie225227a5a5c88ee5275588a18ec6219077c6065
Signed-off-by: Jiho Chang <jiho04.chang@samsung.com>
12 years agohardware: samsung_slsi: exynos5: modified exynos omx package names
Jiho Chang [Fri, 1 Jun 2012 20:44:33 +0000 (20:44 +0000)]
hardware: samsung_slsi: exynos5: modified exynos omx package names

libOMX.Exynos5.M4V.Decoder -> libOMX.Exynos.MPEG4.Decoder
libOMX.Exynos5.AVC.Decoder -> libOMX.Exynos.AVC.Decoder
libOMX.Exynos5.VP8.Decoder -> libOMX.Exynos.VP8.Decoder
libOMX.Exynos5.AVC.Encoder -> libOMX.Exynos.AVC.Encoder

libOMX.Exynos.MPEG4.Encoder is newly added

Change-Id: I5b287f6ebc9c04a8ec75f8e9196a4837de3cf562
Signed-off-by: Jiho Chang <jiho04.chang@samsung.com>
12 years agohardware: samsung_slsi: exynos5: libcsc: modified source crop-size alignment
Jiho Chang [Fri, 1 Jun 2012 20:40:47 +0000 (20:40 +0000)]
hardware: samsung_slsi: exynos5: libcsc: modified source crop-size alignment

Removed source crop-size alignment.
Libcsc dose not calculate alignment, it is calculated in the gsc driver.

Change-Id: I59ba30af61d00007a003b0a5f18f627b0bcc9572
Signed-off-by: Jiho Chang <jiho04.chang@samsung.com>
12 years agohardware: samsung_slsi: exynos5: removed unused files
Jiho Chang [Fri, 1 Jun 2012 20:42:42 +0000 (20:42 +0000)]
hardware: samsung_slsi: exynos5: removed unused files

Change-Id: Ief3ba38cc5654e5ee602e2473be4a0a7ea38d9eb
Signed-off-by: Jiho Chang <jiho04.chang@samsung.com>
12 years agohwc: implement sync support
Greg Hackmann [Wed, 30 May 2012 16:28:52 +0000 (09:28 -0700)]
hwc: implement sync support

Change-Id: I8e16a70c73207a365f7a6e1c7cd2e02c2822dad6
Signed-off-by: Greg Hackmann <ghackmann@google.com>
12 years agohwc: implement hwcomposer HAL
Greg Hackmann [Wed, 30 May 2012 16:25:51 +0000 (09:25 -0700)]
hwc: implement hwcomposer HAL

This is a preliminary implementation which uses the proper ioctls to
talk to the display controller, but currently places every layer in a
framebuffer.

Change-Id: I2847d3ed69e348c763ad974b2f0ab8133dd5d6cc
Signed-off-by: Greg Hackmann <ghackmann@google.com>
12 years agohardware: exynos5: add s3c-fb.h
Greg Hackmann [Tue, 29 May 2012 20:14:45 +0000 (13:14 -0700)]
hardware: exynos5: add s3c-fb.h

Change-Id: I78712da63df4e70a4cf6bd68f9df2b68b82365ae
Signed-off-by: Greg Hackmann <ghackmann@google.com>
12 years agohardware: exynos5: allocate framebuffers using ion
Greg Hackmann [Wed, 23 May 2012 23:29:43 +0000 (16:29 -0700)]
hardware: exynos5: allocate framebuffers using ion

Instead of mapping fbdev's existing buffers

Change-Id: I36565036f15f06c4cb0c1f769b41919b4755e116
Signed-off-by: Greg Hackmann <ghackmann@google.com>
12 years agoHACK: hardware: exynos5: notify hwcomposer HAL in framebuffer post
Greg Hackmann [Thu, 3 May 2012 21:51:28 +0000 (14:51 -0700)]
HACK: hardware: exynos5: notify hwcomposer HAL in framebuffer post

Change-Id: I1bcb07b86bc59ade115a1a20340fdd5306a1ed60
Signed-off-by: Greg Hackmann <ghackmann@google.com>
12 years agoFix camera to work with dma_buf
Rebecca Schultz Zavin [Tue, 15 May 2012 23:49:56 +0000 (16:49 -0700)]
Fix camera to work with dma_buf

1. Switch camera to submig DMA_BUF buffers insetad
of userptr

2. Modify camera so that yuv buffers are now allocated
with one ion filedescriptor per plane
These file descriptors are now submitted to the camera
via v4l2 as dma_bufs

Change-Id: I31478143cb99329ab039cd7c39db8906a787cf65
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
12 years agoexynos5: camera: do not andvertise FOCUS_MODE_CONTINUOUS_PICTURE for now
Dima Zavin [Mon, 7 May 2012 18:07:38 +0000 (11:07 -0700)]
exynos5: camera: do not andvertise FOCUS_MODE_CONTINUOUS_PICTURE for now

If you do, the camera app will try to use focus move callbacks
and things will explode

Change-Id: I83dc60df7c1f344af5ab3ba92403c6312d0dc55c
Signed-off-by: Dima Zavin <dima@android.com>
12 years agoexynos5: build hwjpeg and camera libs
Dima Zavin [Wed, 2 May 2012 05:02:50 +0000 (22:02 -0700)]
exynos5: build hwjpeg and camera libs

Change-Id: If63ab23f733e04ef0c54c9a05e196312fb3b372e
Signed-off-by: Dima Zavin <dima@android.com>
12 years agoexynos5: fixup libcamera to build
Dima Zavin [Wed, 2 May 2012 04:49:24 +0000 (21:49 -0700)]
exynos5: fixup libcamera to build

Change-Id: I9914417bb193f7a611062416de1cf0625fa091e3
Signed-off-by: Dima Zavin <dima@android.com>
12 years agoexynos5: libhwjpeg: fixup make file
Dima Zavin [Wed, 2 May 2012 04:48:48 +0000 (21:48 -0700)]
exynos5: libhwjpeg: fixup make file

Change-Id: I99450e07ea795275f1120630941a969a8d2703c0
Signed-off-by: Dima Zavin <dima@android.com>
12 years agoexynos5: csc: export dir as include
Dima Zavin [Wed, 2 May 2012 04:46:53 +0000 (21:46 -0700)]
exynos5: csc: export dir as include

Change-Id: I05ab1bc848fb3df3bcfad18b3c3623bab372cbbf
Signed-off-by: Dima Zavin <dima@android.com>
12 years agohardware: exynos5: libgscaler: change plane number for NV16
Jiyoung Shin [Wed, 18 Apr 2012 01:03:44 +0000 (18:03 -0700)]
hardware: exynos5: libgscaler: change plane number for NV16

change plane number for NV16 from 2-plane to 1-plane

Change-Id: I52d15f7630d1212562695a86807c289bae705973
Signed-off-by: Jiyoung Shin <idon.shin@samsung.com>
12 years agohardware: exynos5: add initial libhwjpeg directory
Jiyoung Shin [Wed, 18 Apr 2012 01:01:11 +0000 (18:01 -0700)]
hardware: exynos5: add initial libhwjpeg directory

Change-Id: I33c474461e3ec54cbdb6658f97089ca21bdd820e
Signed-off-by: Jiyoung Shin <idon.shin@samsung.com>
12 years agohardware: eynos5: update include directory for JPEG
Jiyoung Shin [Wed, 18 Apr 2012 00:49:23 +0000 (17:49 -0700)]
hardware: eynos5: update include directory for JPEG

update ExynosJpegApi.h

Change-Id: I7a47a1fc354cd9b7f3c365207f2aa025e1787cf7
Signed-off-by: Jiyoung Shin <idon.shin@samsung.com>
12 years agohardware: exynos5: add initial libcamera directory
Jiyoung Shin [Mon, 2 Apr 2012 23:22:36 +0000 (16:22 -0700)]
hardware: exynos5: add initial libcamera directory

Change-Id: I29abd427ac0554019ce9f66a272ec214779cf87b
Signed-off-by: Jiyoung Shin <idon.shin@samsung.com>
12 years agohardware: exynos5: update include directory for camera
Jiyoung Shin [Mon, 2 Apr 2012 23:18:25 +0000 (16:18 -0700)]
hardware: exynos5: update include directory for camera

updates following:
videodev2_exynos_camera.h, ExynosCamera.h

Change-Id: Iaea4149d9b969fc5f9d6025911af4c6bb73cf080
Signed-off-by: Jiyoung Shin <idon.shin@samsung.com>
12 years agohardware: exynos5: update libv4l2 dir
Jiho Chang [Thu, 26 Apr 2012 22:55:33 +0000 (15:55 -0700)]
hardware: exynos5: update libv4l2 dir

Change-Id: Idfa2e403c3f8fb9bddedb34a57311a391eabbc0d
Signed-off-by: Dima Zavin <dima@android.com>
12 years agohardware: exynos5: update rotator dir
Jiho Chang [Thu, 26 Apr 2012 22:53:43 +0000 (15:53 -0700)]
hardware: exynos5: update rotator dir

Change-Id: I2abd157697bb7a3aae74c21e61278b20116cac2b
Signed-off-by: Dima Zavin <dima@android.com>
12 years agohardware: exynos5: update gscaler dir
Jiho Chang [Thu, 26 Apr 2012 22:51:38 +0000 (15:51 -0700)]
hardware: exynos5: update gscaler dir

Change-Id: If5ccd29f726cd72e22e8c90168141ae96d315b68
Signed-off-by: Dima Zavin <dima@android.com>
12 years agohardware: exynos5: update libexynosutils dir
Jiho Chang [Thu, 26 Apr 2012 20:52:52 +0000 (13:52 -0700)]
hardware: exynos5: update libexynosutils dir

Change-Id: I1ea6d1cac561b026b8597f918290d1f13b86a419
Signed-off-by: Dima Zavin <dima@android.com>
12 years agohardware: exynos5: update libcsc dir
Jiho Chang [Thu, 26 Apr 2012 20:39:20 +0000 (13:39 -0700)]
hardware: exynos5: update libcsc dir

Change-Id: Iea46c762197b3d6c4cc99db0a280dc5b1a4873fb
Signed-off-by: Dima Zavin <dima@android.com>
12 years agohardware: exynos5: update exynos_omx dir
Jiho Chang [Thu, 26 Apr 2012 20:25:31 +0000 (13:25 -0700)]
hardware: exynos5: update exynos_omx dir

Change-Id: Iff18ccb439407e68c8f898ac6499eb3669644716
Signed-off-by: Dima Zavin <dima@android.com>
12 years agohardware: exynos5: update include dir
Jiho Chang [Thu, 26 Apr 2012 19:59:36 +0000 (12:59 -0700)]
hardware: exynos5: update include dir

Change-Id: I97b9968ea37cb035b06d46676db334af48b3bc57
Signed-off-by: Dima Zavin <dima@android.com>
12 years agoexynos5/omx/osal: static libs should not depend on shared libs
Dima Zavin [Thu, 19 Apr 2012 17:07:49 +0000 (10:07 -0700)]
exynos5/omx/osal: static libs should not depend on shared libs

Change-Id: Idfe0c39bb46f100d2a9ef50884b5e61cc2a385a4
Signed-off-by: Dima Zavin <dima@android.com>
12 years agoexynos_omx: add exynos5.mk to pull in the needed dependencies
Dima Zavin [Wed, 11 Apr 2012 06:14:37 +0000 (23:14 -0700)]
exynos_omx: add exynos5.mk to pull in the needed dependencies

Change-Id: I87a6e1788155acc0011681d4d05bf323310357c6
Signed-off-by: Dima Zavin <dima@android.com>
12 years agoexynos_omx: do not override format in set portDefinition for ANB
Dima Zavin [Thu, 19 Apr 2012 00:19:05 +0000 (17:19 -0700)]
exynos_omx: do not override format in set portDefinition for ANB

If using AndroidNativeBuffer, do not override the color format
during the SetParameter(OMX_IndexParamPortDefinition) call as
the GetParameter call would have faked a HAL format.

This seems to be a general problem with abusing the eColorFormat field
for nativewindow specific information. We should fix this.

Change-Id: I9e2bd74f53fabaef23782e034fce7c11b098ea1e
Signed-off-by: Dima Zavin <dima@android.com>
12 years agoomx_vdec: if using AndroidNativeBuffer, map OMX color format to HAL
Dima Zavin [Wed, 11 Apr 2012 05:15:43 +0000 (22:15 -0700)]
omx_vdec: if using AndroidNativeBuffer, map OMX color format to HAL

If the use of ANB was enabled by stagefright, we have to report a
HAL format in GetParameter(PortDefinition). However, the actual port
definition stores an OMX format. Also, lot's of other places in this
OMX implementation rely on everything being in OMX color format. So,
we don't actually change the internal format info to a HAL format but
rather fake a HAL format in the return value of the GetParameter call.

Change-Id: I24afb4dd4275b8594eb24d473fde6c35e57cbd54
Signed-off-by: Dima Zavin <dima@android.com>
12 years agoexynos5: libcsc: add simple helper library for hal<->omx format conversions
Dima Zavin [Mon, 16 Apr 2012 23:25:38 +0000 (16:25 -0700)]
exynos5: libcsc: add simple helper library for hal<->omx format conversions

Change-Id: Ie687a485ab3538dc8cb60fdc5bf57a5d7be5c297
Signed-off-by: Dima Zavin <dima@android.com>
12 years agoexynos5: rename all libOMX.SEC components to libOMX.Exynos5
Dima Zavin [Fri, 6 Apr 2012 22:16:32 +0000 (15:16 -0700)]
exynos5: rename all libOMX.SEC components to libOMX.Exynos5

Change-Id: I6db3cd80619fe72a690551ecfc4a45eb241b4a6b
Signed-off-by: Dima Zavin <dima@android.com>
12 years agoHACK: add the "board_use" configurations to makefile
Dima Zavin [Fri, 6 Apr 2012 20:49:33 +0000 (13:49 -0700)]
HACK: add the "board_use" configurations to makefile

Should remove all of these and make the actual makefiles
do the right thing.

Change-Id: I60ac581de5ecb1ffba0d38e002d36848b019b352
Signed-off-by: Dima Zavin <dima@android.com>
12 years agoexynos_omx: get rid of copy headers rules
Dima Zavin [Fri, 6 Apr 2012 19:38:15 +0000 (12:38 -0700)]
exynos_omx: get rid of copy headers rules

Change-Id: Ic2c4c331c9c1f9a38d4bdfe457b9bb5af63ea1e3
Signed-off-by: Dima Zavin <dima@android.com>
12 years agoexynos_omx: Make it build
Rebecca Schultz Zavin [Wed, 4 Apr 2012 23:14:34 +0000 (16:14 -0700)]
exynos_omx: Make it build

Change-Id: Id630523f4dac69dfa70ff96c4de93976673c7587
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
12 years agofix libstagefrighthw to build
Dima Zavin [Tue, 3 Apr 2012 07:52:31 +0000 (00:52 -0700)]
fix libstagefrighthw to build

Change-Id: I1c175c79cf6118b49907a8cd1e08dac8972c4b46
Signed-off-by: Dima Zavin <dima@android.com>
12 years agolibcsc: fix android.mk
Dima Zavin [Tue, 3 Apr 2012 07:35:47 +0000 (00:35 -0700)]
libcsc: fix android.mk

Change-Id: I6de150f545ba3aa953cadbcdfa2bf20bc1ce3980
Signed-off-by: Dima Zavin <dima@android.com>
12 years agolibv4l2: LOG* -> ALOG*
Dima Zavin [Tue, 3 Apr 2012 06:45:46 +0000 (23:45 -0700)]
libv4l2: LOG* -> ALOG*

Change-Id: Ib1fcd8daf8aadb0a1cc9d82d262734a28d340d94
Signed-off-by: Dima Zavin <dima@android.com>
12 years agolibrotator: LOG* -> ALOG*
Dima Zavin [Tue, 3 Apr 2012 06:45:36 +0000 (23:45 -0700)]
librotator: LOG* -> ALOG*

Change-Id: I7c6db7428c624c8e5dea4e4017bb8e5c23fd1f6e
Signed-off-by: Dima Zavin <dima@android.com>
12 years agolibgscaler: LOG* -> ALOG*
Dima Zavin [Tue, 3 Apr 2012 06:45:03 +0000 (23:45 -0700)]
libgscaler: LOG* -> ALOG*

Change-Id: I750b4ba3a230b570b8ca1c61e77798cb28bc3e1c
Signed-off-by: Dima Zavin <dima@android.com>