summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/colorconversion
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'cm-13.0' of ↵Wolfgang Wiedmeyer2016-12-121-0/+6
|\ | | | | | | https://github.com/CyanogenMod/android_frameworks_av into replicant-6.0
| * stagefright: Correct Exynos4 stride alignmentCaio Schnepper2016-05-231-0/+6
| | | | | | | | | | | | | | | | For the OMX_COLOR_FormatYUV420Planar color format case, Google's VP9 codec is used, in that case the colors were shifting 16 bytes per horizontal line, causing green lines to appear on video playback. Change-Id: I4cf0fd40b79e53882d99f1c3f263c8a98fff1f30
* | colorconversion: not only check for the emulator, but also for a device that ↵Wolfgang Wiedmeyer2015-12-211-1/+6
|/ | | | | | | only has software rendering Change-Id: I895cc30e6ed47629442b4cd949089fc940a8382c Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
* libstagefright: squash exynos4 supportSimon Shields2015-12-081-1/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit e41cc838b6212f8711c550522e8cefc95f003a67 Author: rINanDO <drjisakh@gmail.com> Date: Mon Aug 10 13:56:56 2015 +0200 stagefright: Exynos4 MPEG4 decoder should set native color format. Change-Id: I41bee77d48fc0b35691b94585de10269579ae789 commit a50263c53a1ecd0f75688f7042dd5e5d9badbc39 Author: Caio Schnepper <caioschnepper@gmail.com> Date: Wed Jun 10 22:26:07 2015 -0300 libstagefright: back off exynos4_enhancements HWC_HWOVERLAY usage The open source hwc doesn't support the GRALLOC_USAGE_HW_FIMC1 | GRALLOC_USAGE_HWC_HWOVERLAY combination. Removing HWC_HWOVERLAY allows FIMC1 to do decode/color conversion. Change-Id: Ibdfa9e5dd170e99e0d994540979e88e519931641 commit 63286a333bde1aa047de4e2fde8da1b59e42a16d Author: Ricardo Cerqueira <cyanogenmod@cerqueira.org> Date: Sun Nov 3 02:45:19 2013 +0000 exynos4: libstragefright: add support for samsung colorformat/omx/mfc Source: http://git.insignal.co.kr/samsung/exynos/android/platform/frameworks/av/commit/?h=exynos-jb&id=1614612f7ca2a00473d202dbedcb135fadc608ad Conflicts: media/libstagefright/ACodec.cpp media/libstagefright/OMXCodec.cpp cherry pick from 906eba9f Change-Id: I1c174f8e9fa9bd3ed16a0399f070b6680f6a331c Change-Id: I47f5b09b37ea5376a45c80c9dd91a7fbd0c3361a
* fix soft renderer rotationChong Zhang2015-07-171-3/+5
| | | | | bug: 13222807 Change-Id: I6f6f417422d3a18117b594670bb23e3019d449bb
* stagefright: add support for output frame rendered callbackLajos Molnar2015-06-091-11/+28
| | | | | | | | | | | - Added FRAME_RENDERED event in OMX, used by tunneled video decoders to signal rendered event timing - Track buffers sent for rendering in ACodec and in SoftwareRenderer, and determine when they have rendered - Propagate render times to MediaCodec Bug: 20503131 Change-Id: Idf0a8714d5368b237c2285dd39fa82db847c232f
* SoftwareRenderer: sanity check buffer size before copying data.Wei Jia2015-06-081-1/+17
| | | | | Bug: 21443020 Change-Id: I63cf86217b8201fb41809c23e4b752b845a93ee2
* stagefright: warnings be gone, some are now errors, use clangLajos Molnar2015-04-171-0/+3
| | | | Change-Id: I81f438ae444f04c12ae27ae4ef6d073033de172c
* resolved conflicts for merge of ca509506 to masterLajos Molnar2015-02-061-2/+3
|\ | | | | | | Change-Id: I93a81bf167407307f209cf46249a8d65d26589f3
| * stagefright: add software renderer support to OMX_COLOR_YUV420SemiPlanarLajos Molnar2015-02-051-4/+5
| | | | | | | | | | Bug: 19179927 Change-Id: I3accaa655e9bad2b0efcac98c5dd95a23f8d6671
* | am 2b0fc07a: am c5a6db8d: am 5a52a060: stagefright: set consumer usage flags ↵Lajos Molnar2015-02-061-0/+1
|\ \ | |/ | | | | | | | | | | and desribe YV12 HAL format * commit '2b0fc07a5f87d15ef9ccb7f682a811bf7121c636': stagefright: set consumer usage flags and desribe YV12 HAL format
| * stagefright: set consumer usage flags and desribe YV12 HAL formatLajos Molnar2015-02-051-0/+1
| | | | | | | | | | | | | | Bug: 17906609 Bug: 19179288 Bug: 19179927 Change-Id: I3713d4e894d3350d46e25dc0206b21c0ff3b9009
* | am f2b68be8: am 98d59462: Merge "stagefright: add adaptive playback support ↵Ronghua Wu2014-09-131-2/+2
|\ \ | |/ | | | | | | | | | | to SoftMPEG decoder." into lmp-dev * commit 'f2b68be88f6b892539e232170091722935ae369a': stagefright: add adaptive playback support to SoftMPEG decoder.
| * stagefright: add adaptive playback support to SoftMPEG decoder.Ronghua Wu2014-09-111-2/+2
| | | | | | | | | | | | | | This covers both MPEG4 and H263 adaptive playback. Bug: 17326758 Change-Id: I80a67b7f3ceab05e792f0a459439a8274bd78e20
* | stagefright: SoftwareRenderer support for RGBA8888David Smith2014-09-041-0/+10
| | | | | | | | | | Bug: 17203044 Change-Id: Iba8709b4977720cd2ec18cfc2aecdc2e6939999d
* | stagefright: SoftwareRenderer support ARGB, RGB888David Smith2014-08-221-28/+67
|/ | | | | Bug: 17203044 Change-Id: Id56688bb4f63dd701e4c621ef6c2bec725e6304d
* stagefright: Fix race condition between MediaCodec and SoftwareRendererRonghua Wu2014-08-151-40/+74
| | | | | | | | | | | * Set the buffer's format info when it's returned from OMX component. * Move frame format meta from SoftwareRenderer's ctor to the render call. I.e. each frame sent to the renderer carries the format info. * Reset renderer with the new format instead of re-creating SoftwareRenderer when incoming frame's format is changed. Bug: 13842676 Change-Id: Ibab46f109200bcbdeab13a4cc1bcd0870f2a99fb
* stagefright: set crop rect in SoftwareRendererLajos Molnar2014-08-081-0/+11
| | | | | Bug: 9563986 Change-Id: Id66a21ef8cdd8350e3eb95d6359fe9c1b94c4f98
* stagefright: set PTS for SoftwareRendererLajos Molnar2014-05-071-1/+6
| | | | Change-Id: I08661a9eae09f919149aa5a58aa514d848de50a1
* fix the OS X builds until we can fix compiler warnings that apparentlyAndreas Huber2014-02-111-2/+0
| | | | | | trigger only on that platform... Change-Id: I9555d7e2efbe3e349e8af60528b7b9d131a257e3
* warnings be gone.Andreas Huber2014-02-111-0/+2
| | | | Change-Id: Ie3bae3f037730e316d7fca12e7a3527973f752ef
* 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