summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/colorconversion
Commit message (Collapse)AuthorAgeFilesLines
* Rename ISurfaceTexture and SurfaceTextureAndy McFadden2012-12-181-1/+1
| | | | | | | | | | The C++ class names don't match what the classes do, so rename ISurfaceTexture to IGraphicBufferProducer, and SurfaceTexture to GLConsumer. Bug 7736700 Change-Id: I64520a55f8c09fe6215382ea361c539a9940cba5
* Update ANativeWindow client code for syncJamie Gennis2012-06-211-4/+4
| | | | | | | This change updates all the uses of ANativeWindow to use the new ANW functions that accept and return Sync HAL fence file descriptors. Change-Id: Id7db42d8d6380f8b440d88476ce9211c6225fb16
* Add NOTICE and MODULE_LICENSE_APACH2 to libs build under /frameworks/av/James Dong2012-06-132-0/+190
| | | | | Change-Id: I0a3af3e2abdedebd5934f3d941d01c32cfc75e26 related-to-bug: 6647465
* Until we have emulator support for YUV12 rendering do software color conversion.Andreas Huber2012-05-041-4/+14
| | | | | Change-Id: Id2e118cae224facad7077f2f62c62cd21e95e749 related-to-bug: 6444358
* Switched to use the header files in /frameworks/nativeJames Dong2012-03-121-1/+1
| | | | | | | | and deleted the duplicate header files in /frameworks/base o related-to-bug: 6044887 Change-Id: I17e0692d9a9b5c8796ded36677c833ca8ab36795
* remove dependency on unneeded headersMathias Agopian2012-02-271-2/+0
| | | | Change-Id: I890f40c430beca055bedd95c878eb68b42f232c2
* fix libgui header locationMathias Agopian2012-02-271-1/+0
| | | | Change-Id: Iec71706cdd4f29c6904993648ce873e83ef9cafe
* remove dependency on android_native{s_priv|buffer}.hMathias Agopian2012-02-241-1/+1
| | | | Change-Id: Ie4b95f7061c240f37c504414259f92d72c4ffc89
* Move away from MediaDebug and use ADebug insteadJames Dong2012-02-101-1/+1
| | | | Change-Id: I963a3b6f79a7292891973cbeeaf3378b38629f08
* Remove the restriction that the width must be a multiple of 4 or 2 for ↵James Dong2012-02-011-22/+35
| | | | | | | | | thumbnail generation o simply applying the change in commit a161af9d1e2baa3f23e32634ef7dd9b4bbce9a6c to other formats o related-to-bug: 5947196 Change-Id: I95de10263b8ad9ec941f1d6b907fca6aeff0a90f
* Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGESteve Block2012-01-061-2/+2
| | | | | | | See https://android-git.corp.google.com/g/157065 Bug: 5449033 Change-Id: I00a4b904f9449e6f93b7fd35eac28640d7929e69
* use SurfaceTexture new scaling mode in SFMathias Agopian2011-07-191-0/+5
| | | | | | | SF now obeys SurfaceTexture's scaling mode instead of inferring it from the buffer's size Change-Id: I4d50e9851abedd7e64bfcfc8af9eefb9fb668529
* Fix the new color converter to respect the destination crop rect.Andreas Huber2011-06-272-78/+82
| | | | | | Also fixes the SoftwareRenderer to request blitting the correct crop rectangles. Change-Id: I38706cf9b42d96c6d5b35a9380f006ea4fbbf1ea
* Integrating TI OMAP4 Video DecoderAnu Sundararajan2011-06-231-0/+101
| | | | | | | | | | | | Added the video decoder component name to kDecoderInfo. Set the quirks for the video decoder. Add a new color format to OMX_IVCommon.h to denote TI OMAP4 NV12 color format. Added a color conversion routine [ from NV12 to RGB ] for thumbnail generation. Change-Id: I6b23c36441645ef65ec7406ba262d19f89cf64fd Signed-off-by: Devaraj Rangasamy <dev@ti.com> Signed-off-by: Sreenidhi Koti <sreenidhi@ti.com> Signed-off-by: Anu Sundararajan <sanuradha@ti.com>
* This device-specific workaround is no longer necessary.Andreas Huber2011-06-082-11/+1
| | | | | | | We can now enable yuv->yuv blitting instead of converting to RGB565. Change-Id: Ia6a94b706f20a0c9e6ef78a7325cff4f5bb216b8 related-to-bug: 4394005
* Move OMX_QCOM_COLOR_FormatYVU420SemiPlanar definition to OMX_IVCommon.hJames Dong2011-06-031-2/+0
| | | | Change-Id: I5cbc7246a63301fa7ff735fa3d6512e940608d2b
* Disable yuv->yuv mode and external display support until various driver ↵Andreas Huber2011-05-162-1/+11
| | | | | | fixes are in. Change-Id: Ib3838f779afc87caca7d78e18a5d72d2971ee306
* Merge "Instead of using an RGB surface and conversion yuv420->rgb565"Andreas Huber2011-05-161-7/+58
|\
| * Instead of using an RGB surface and conversion yuv420->rgb565Andreas Huber2011-05-051-7/+58
| | | | | | | | | | | | | | convert from OMX_COLOR_FormatYUV420Planar to HAL_PIXEL_FORMAT_YV12 instead. Change-Id: I8c4fc3c54c963f0d4ba6377f3c4ab4e0013152e5 related-to-bug: 4394005
* | Leave the number of output buffers up to surface flinger and friends.Andreas Huber2011-05-101-2/+0
| | | | | | | | Change-Id: Iebb90f45793793aeb08d1cf9706e29a7cefae792
* | Color conversion now supports YUV420p->RGB565 conversion even if the width ↵Andreas Huber2011-05-051-6/+9
|/ | | | | | | is odd. Change-Id: I1ef3ead94eab3811ead8830e104a9dad211ae3fd related-to-bug: 4363071
* frameworks/base: android_native_buffer_t -> ANativeWindowBufferIliyan Malchev2011-05-031-1/+1
| | | | | Change-Id: Idc2eabaa805bb6d308ebb315872623f28d428417 Signed-off-by: Iliyan Malchev <malchev@google.com>
* Merge "The color conversion from YUV420Planar to RGB only requires the image ↵James Dong2011-02-281-1/+1
|\ | | | | | | width to be a multiple of 2, not 4."
| * The color conversion from YUV420Planar to RGB only requires the image width ↵James Dong2011-02-111-1/+1
| | | | | | | | | | | | | | | | to be a multiple of 2, not 4. bug - 3379293 Change-Id: I8960737f0604b54ce90dfc26137f1582073b4ab2
* | Bug 3438258 Add SurfaceTexture as MediaPlayer sinkGlenn Kasten2011-02-231-10/+11
|/ | | | | | | | | | | | | | This change enables the use of a SurfaceTexture in place of a Surface as the video sink for an android.media.MediaPlayer. The new API MediaPlayer.setTexture is currently hidden. This includes: - New Java and C++ interfaces - C++ plumbing and implementation (JNI, Binder) - Stagefright AwesomePlayer and NuPlayer use ANativeWindow (either Surface or SurfaceTextureClient) Change-Id: I2b568bee143d9eaf3dfc6cc4533c1bebbd5afc51
* Colorconverter may not support some src/dst bitmap configurations.Andreas Huber2011-01-061-26/+49
| | | | | | | Let it return an appropriate error code instead of asserting. Change-Id: I801131610ad9801b935f7b700d61f9b62733fbca related-to-bug: 3328212
* Squashed commit of the following:Andreas Huber2010-11-223-196/+159
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 0870f7bdd10a7cd36087d723d1957d8e1b967ca7 Author: Andreas Huber <andih@google.com> Date: Mon Nov 22 12:57:04 2010 -0800 set_surface_crop doesn't seem to work right yet, stop using it in the SoftwareRenderer. Change-Id: If0a24f78b7810a6cecaa82eb4f23d0f90c22cc42 commit 4767b52bee3a54ae117a8708d6832276a44e6a6a Author: Andreas Huber <andih@google.com> Date: Mon Nov 22 11:14:57 2010 -0800 info->mMediaBuffer may still be NULL at this point... Change-Id: I25a71569015b1bb87f1ea7efff7588958774426f commit 0cef79874e1f1ddb10b7402177a87d3cffc7de92 Author: Andreas Huber <andih@google.com> Date: Mon Nov 22 10:55:12 2010 -0800 QCOM's YVU420 color format conversion has now been tested. Change-Id: I7fef4b642a928af15d42f006f7cdc107d5ff1d67 commit 84fe05a6c969ede0ce8a85a530e110afca07c7a7 Author: Andreas Huber <andih@google.com> Date: Mon Nov 22 09:59:50 2010 -0800 Removed remaining traces of suspend/resume. Proper reporting of video dimensions based on cropping rectangle. Change-Id: Ib238b80cbc1f19e7d312f2422eb5e9ab6b06b1bc commit 50970cdc837c5c498bcf0cb61b436196ca9e2ef7 Author: Andreas Huber <andih@google.com> Date: Fri Nov 19 16:11:06 2010 -0800 Revamped Software Renderer respects the crop rectangle. Removed obsolete ADRENO support code. Change-Id: I984cbc8a99c4d97e09e7d1b1292099c88b9ae535 commit 8abbc6a5608bff650f968540f24a2eab75f254ed Author: Andreas Huber <andih@google.com> Date: Fri Nov 19 16:10:41 2010 -0800 The metadata retriever now respects the crop rectangle while capturing a video frame. Change-Id: Id3377176060086d16717f62c77ce26fabe899050 commit 2d42e4466609d304e88bd2cdd6eb7b297340cc21 Author: Andreas Huber <andih@google.com> Date: Fri Nov 19 16:09:50 2010 -0800 Changed ColorConverter APIs to be more general. Clients can now refer to crop rectangles in both source and destination. Change-Id: Ief151d736818396d0389ec04e7df5650e3ad7c04 commit 273184303d54a54febd3e9c3dd4df30507ea78b5 Author: Andreas Huber <andih@google.com> Date: Fri Nov 19 15:04:06 2010 -0800 The stagefright commandline tool now writes the extracted video frame to /sdcard/out.jpg Change-Id: Ieb2ab3fda7a7cd9294beccb8db0eed75096eeef4 commit 2d43390328cadf4ba94c1c3c02e4fb30baa29690 Author: Andreas Huber <andih@google.com> Date: Fri Nov 19 14:36:55 2010 -0800 The AVC software decoder now properly advertises the cropping rectangle. Change-Id: Idb7a8a7e2fde5740f0fc34b7e8c92eca2577104b commit 9a7ed23c2fac8ce19dce7a34a603acee945a89f6 Author: Andreas Huber <andih@google.com> Date: Fri Nov 19 13:40:39 2010 -0800 OMXCodec now signals a format change if the cropping rectangle changes. ...and puts the cropping info into its output format. Change-Id: I3ffbd8e877ba286fe06a82c536ef20d92548d2e2 commit efe0323947029df1c502599ccc288c8d676dfd31 Author: Andreas Huber <andih@google.com> Date: Fri Nov 19 11:29:39 2010 -0800 Stagefright's MetaData object now supports rectangle items. Change-Id: I5667bb5ee6622c76104b99fb57f60abb802a8504 Change-Id: I27cb78f2c5e0353f95fdfc5cb53991949ed75b70
* Set the external display usage bit in Stagefright.Jamie Gennis2010-11-181-1/+1
| | | | Change-Id: Ie18fa773fdb83508d96300dd7e4e4c7c3cdc4540
* Support post-decode video rotation.Andreas Huber2010-11-161-1/+16
| | | | Change-Id: I9ac90871269c5e132e98a9bf3ad8cae00f329f17
* Fix build (bad merge)Jean-Baptiste Queru2010-10-181-1/+1
| | | | | Bug: 3101573 Change-Id: I2c0518e31f39c9a6e88d86cc468653bbcb5be05e
* Merge fb474872 from gingerbread-plus-aospJean-Baptiste Queru2010-10-181-1/+1
|\ | | | | | | Change-Id: I1bbb845a86a7b7df44ea175df3af22e5f47c44e3
| * Include the framework copy of the OpenMAX headers instead of referencing ↵Andreas Huber2010-10-151-1/+1
| | | | | | | | | | | | | | external/opencore. Change-Id: I762f59acf5e1f770e4d7c2d89af362bfffebefa6 related-to-bug: 3101573
* | Some instrumentation of OMXCodec for future investigation and a possibly ↵Andreas Huber2010-10-071-0/+3
| | | | | | | | | | | | | | temporary fix for the green tinge on video playback. Change-Id: Iee9cd7b0c326bac96382007b4ea077d4368d7d01 related-to-bug: 3051572
* | Don't assert on unexpected surface flinger dequeue/enqueueBuffer errors, log ↵Andreas Huber2010-09-071-2/+9
| | | | | | | | | | | | | | a warning and ignore them instead. Change-Id: Ia45887df82d66f393520e5a4308f430010402d5e related-to-bug: 2976248
* | Account for the _ADRENO constant being moved.Jamie Gennis2010-08-232-1/+5
| | | | | | | | Change-Id: I443e2028c06f8b03e864525365c5c38de79314fe
* | Squashed commit of the following:Andreas Huber2010-08-232-33/+142
|/ | | | | | | | | | | | | | | | | | | | | | commit 35cc68814a9537c31fde146e171e7b0bbdfe211e Author: Andreas Huber <andih@google.com> Date: Mon Aug 16 08:48:42 2010 -0700 Only enable support for yuv to yuv conversion on passion, where it's available, use the slower yuv->rgb565 path everywhere else. commit d8ac5a8814103e60d11d2acf61997fc31a1dc58d Author: Andreas Huber <andih@google.com> Date: Fri Aug 13 13:56:44 2010 -0700 The software renderer takes over all rendering, converting from yuv to yuv if possible and rgb565 otherwise. commit 684972074b74318bdcb826ed9b5b0864d2d2e273 Author: Andreas Huber <andih@google.com> Date: Fri Aug 13 09:34:35 2010 -0700 A first shot at supporting the new rendering APIs. Change-Id: Iea9b32856da46950501f1a700f616b5feac710fd
* Support for vanilla YUV420sp => RGB565 color conversion.Andreas Huber2010-06-301-0/+68
| | | | Change-Id: I22e5b554909e169eaf153d1f25b636f6f04a1871
* For issue #2651381, allow library prelinking.Dan Bornstein2010-05-051-2/+0
| | | | Change-Id: I119348b55ad0015a286e9c94709977cd1973a7e1
* Apparently a MemoryHeapPMem must be slap()ed for SurfaceFlinger to use the ↵Andreas Huber2010-03-081-1/+3
| | | | | | | contained buffers. Change-Id: I86916a14c6cf9e65145711c6ded433b864f84456 related-to-bug: 2474091
* split libsurfaceflinger_client and libcamera_client out of libuiMathias Agopian2010-02-112-2/+4
|
* Support for rendering through an overlay on the droid even if a software ↵Andreas Huber2010-02-111-1/+0
| | | | renderer is active.
* Use physical memory for software rendering to take a fast path through ↵Andreas Huber2010-02-011-1/+10
| | | | | | surface flinger if possible. related-to-bug: 2386023
* AwesomePlayer now renders either remote (IOMXRenderer) or locally depending ↵Andreas Huber2009-12-143-0/+395
on what kind of decoder was instantiated. Split off color conversion code into its own shared library.