Commit Graph

53 Commits

Author SHA1 Message Date
Edwin Flores
adc564d791 Bug 998603 - Don't pass kClientNeedsFramebuffer flag into OMXCodec on devices with MediaTek chipsets r=cajbir 2014-05-07 12:02:43 +12:00
Edwin Flores
445387b970 Bug 990780 - Add more padding to MediaCodec::ReadOptions for HTC devices r=doublec
The HTC version of OMXCodec has extra fields in its ReadOptions class over the
AOSP version. We added padding in bug 932820, but it was apparently not enough.
This patch simply adds more padding to our version of the class.
2014-04-23 13:00:10 +12:00
Edwin Flores
bba0f61eee Bug 812881 - Ensure OMX plugins instantiate only one OMXClient instance r=sotaro
Samsung's OMX IL doesn't like being instantiated more than once, often leading
to crashes. This patch changes the OMX plugin so that we statically instantiate
one OMXClient to be shared between decoder instances.
2014-04-03 09:53:38 +13:00
Chris Peterson
fccb1effbe Bug 989203 - Fix and suppress some Android gcc warnings in media/omx-plugin/ directory. r=cajbir 2014-03-27 23:34:49 -04:00
Edwin Flores
8a0db32eaa Bug 963621 - Stop passing kClientNeedsFramebuffer into Qualcomm OMXCodec r=doublec
Qualcomm's OMXCodec implementation interprets the kClientNeedsFramebuffer flag
to mean that we only want a thumbnail. Thus, it returns only one frame and then
returns EOS.

This patch adds a Qualcomm-specific hack to not pass their decoder this flag.
2014-01-28 17:31:00 +13:00
Ryan VanderMeulen
77daaba4a8 Backed out changeset 15a8086a2431 (bug 963621) for Android bustage. 2014-01-30 14:01:58 -05:00
Edwin Flores
932b02e151 Bug 963621 - Stop passing kClientNeedsFramebuffer into Qualcomm OMXCodec. r=doublec
Qualcomm's OMXCodec implementation interprets the kClientNeedsFramebuffer flag
to mean that we only want a thumbnail. Thus, it returns only one frame and then
returns EOS.

This patch adds a Qualcomm-specific hack to not pass their decoder this flag.
2014-01-30 13:26:54 -05:00
Edwin Flores
2d1a78e80e Bug 932820 - Workaround for ABI changes in OMX interface on HTC devices r=doublec
On some devices, HTC has extended android::OMXCodec with their own HTCOMXCodec
which contains some extension that change the ABI.

This patch merely adds padding to MediaSource::ReadOptions, as HTCOMXCodec::read
modifies an HTC-specific field in ReadOptions which doesn't exist in AOSP.
2014-01-22 09:59:54 +13:00
Edwin Flores
664090e3c9 Bug 953394 - Force OMXCodec to output a sane colour format on Android 4.4 and above r=doublec 2014-01-09 14:54:57 +13:00
Edwin Flores
eb341a9af3 Bug 866080 - Use Android I420ColorConverter in OMX plugin r=sotaro,doublec 2013-12-17 11:58:16 +13:00
Birunthan Mohanathas
0816e609ee Bug 784739 - Switch from NULL to nullptr in miscellaneous directories; r=ehsan
--HG--
extra : rebase_source : 8ace754e117a12e2599f5a90030f13a3a7064fed
2013-11-25 14:02:47 -05:00
Chris Double
05e2fb80be Bug 860599 - Use DataSource::CreateFromURI instead of MediaStreamSource - r=cpearce
--HG--
extra : rebase_source : da5a909d64ad903f86ad7fb76cb306252d8ccaad
2013-08-30 16:51:38 +12:00
Makoto Kato
2ded9e16c4 Bug 891239 - OmxPlugin.cpp:1027:35: error: expected ';' after top level declarator when using clang. r=doublec 2013-07-10 11:20:20 +09:00
Andrew Quartey
6346aadb9b Bug 827684 - Fix potential memory leak of OmxDecoder if Init fails on Android. r=doublec 2013-03-29 12:45:01 -04:00
Edwin Flores
f04dcb6e91 Bug 846465 - Fix OMX plugin crash on HTC One X r=doublec 2013-03-22 15:24:47 +13:00
Edwin Flores
0601321c3f Bug 829408 - Force stagefright to return readable video frames on Gingerbread on the Galaxy SII r=doublec 2013-02-25 12:03:55 +13:00
Edwin Flores
55451981e8 Bug 814296 - Fix infinite loop when trying to play a zero-length MPEG4 file in omx-plugin r=doublec 2013-01-08 11:03:47 +13:00
Chris Double
ce90dd7764 Bug 821160: Bustage fix for Froyo debug build - r=bustage
--HG--
extra : rebase_source : 12d0fa321c4e0a7d55d485ece6cb852fcd41bad2
2012-12-18 15:34:57 +13:00
Chris Double
793546e5c0 Bug 821160 - Part2: Add libomxplugin support for froyo - r=cpeterson 2012-12-18 14:44:17 +13:00
Edwin Flores
2f96a48ab0 Bug 803394 - Use Android ColorConverter class for video color conversion on Gingerbread r=doublec
--HG--
extra : rebase_source : c5253447416dd786c347c4e853a20ea011499c18
2012-12-13 11:54:21 +13:00
Edwin Flores
b039aaf798 Bug 803394 - Use Android ColorConverter class to convert video frames with unknown color formats from libstagefright r=doublec
--HG--
extra : rebase_source : 33633274c3ff303f07c8d269beb6f44752f3e95c
2012-12-13 11:54:13 +13:00
Edwin Flores
71779c6bff Bug 803394 - Provide a callback to media plugins to request video buffers owned by gecko r=doublec
--HG--
extra : rebase_source : e3cb97f3307b603bcdfcdbaeffd05a6e2af14097
2012-12-13 11:53:58 +13:00
Chris Double
4322a38e1f Bug 787228 - Part2: Add libomxplugin support for Gingerbread - r=cpeterson
--HG--
extra : rebase_source : 74ae723b5d5b64d913119ea1285da1fc175f9455
2012-11-30 15:37:34 +13:00
Anthony Jones
d15ea6b1d9 Bug 802787 - Work around misreported stride. r=cpeterson 2012-11-01 22:41:03 -04:00
Rafael Ávila de Espíndola
111917a5c3 Bug 807112 - change MOZ_EXPORT_API and MOZ_IMPORT_API to not take the type. r=Waldo. 2012-10-31 18:18:12 -04:00
Chris Peterson
cb919e2b28 Bug 794171 - Part 1: Add H.264 codecs that are commonly supported on Android. r=doublec f=hsivonen 2012-10-10 18:07:32 -07:00
Anthony Jones
0450e5bce5 Bug 785275 - Limit the slice height using the calculated buffer height. r=cpeterson 2012-10-10 21:11:15 -04:00
Chris Peterson
935be0e77f Bug 797225 - Part 2: Use software decoder for color formats we don't know how to convert. r=doublec
--HG--
extra : rebase_source : c9eaa385d187682bc31191ce091d8bbadb4e2a0a
2012-08-22 18:29:58 -07:00
Chris Peterson
d3c91ed284 Bug 797225 - Part 1: Add an OmxPlugin namespace so we can add local definitions of OMX_COLOR enums that are only defined by some toolchains. r=doublec
--HG--
extra : rebase_source : 5d001667b86b4d5f35928b9997d3672b1beb6ba5
2012-09-24 12:31:29 -07:00
Chris Jones
d382892f2e Bug 793229: Remove shadowed constant. r=cpeterson 2012-09-21 15:52:21 -07:00
Chris Jones
3cfcca9bd9 Bug 792988: Restore local defines of constants. r=gal 2012-09-20 14:04:20 -07:00
Chris Peterson
ec61a16de7 Bug 784329 - Part 7: Add sanity checking of video format metadata. r=doublec 2012-09-14 16:03:07 -07:00
Chris Peterson
844e100862 Bug 784329 - Part 6: Add color conversion function for OMX_TI_COLOR_FormatYUV420PackedSemiPlanar. r=doublec 2012-08-22 19:22:20 -07:00
Chris Peterson
90e85514e8 Bug 784329 - Part 5: Stagefright's kKeyWidth and kKeyHeight are actually the stride and slice height. r=doublec 2012-08-22 19:22:20 -07:00
Chris Peterson
8c04362c0c Bug 784329 - Part 4: Rename color conversion functions to use the standard OMX_COLOR enum names. r=doublec 2012-09-14 16:55:17 -07:00
Chris Peterson
9efbb33f12 Bug 784329 - Part 3: Simplify SetVideoFormat() by using local MetaData pointer. r=doublec 2012-09-13 18:51:54 -07:00
Chris Peterson
10132572a6 Bug 785340 - Part 2: OmxDecoder::ReadVideo() should fail if mVideoSource->read() fails. r=doublec
--HG--
extra : rebase_source : 4b54866b3b994148d0360d1cd814f86169f4a74b
2012-09-18 17:37:17 -07:00
Chris Peterson
451972bc32 Bug 785536 - Add PluginHost->GetPref() so platform decoders can query about:config prefs. r=doublec 2012-08-24 14:20:39 -07:00
Chris Peterson
a65f334d39 Bug 784329 - Part 1: Add some OmxPlugin error logging. r=doublec 2012-08-22 18:29:58 -07:00
Chris Double
6ff2da4e63 Bug 766395 - Enable hardware video decoding on Otoro B2G devices - r=edwin 2012-08-22 15:05:09 +12:00
Chris Double
90e10cebf3 Bug 783927 - Handle zero length audio reads in stagefright backend to fix audio issues - r=cpeterson 2012-08-21 17:03:21 +12:00
Chris Double
33e899a896 Bug 782508 - Enable hardware decoder usage in Android libstagefright OMX plugin - r=cpeterson 2012-08-21 15:25:13 +12:00
Chris Double
4e22a0f0ae Bug 759945 - Part 3: Android OS headers and stub files for software decoding using libstagefright on Android - r=cpearce
--HG--
extra : rebase_source : 0f5b9fed7dac3040a98af6dcc324407c4f8a9772
2012-08-10 20:15:20 +12:00
Gervase Markham
44a28dd9d7 Bug 774614 - Relicense Gonk/Gecko interface code to Apache License 2.0. 2012-07-20 10:10:44 +01:00
Ryan VanderMeulen
891e38e528 Revert c39d36167b99 due to a horribly munged backout. 2012-06-10 19:44:50 -04:00
Ryan VanderMeulen
f497d31a0a Backout the bug 754202 backout due to orange. 2012-06-10 19:37:47 -04:00
Chris Double
924d68600e Bug 762366 - Refactor omx plugin's ReadVideo method - r=edwin 2012-06-08 14:30:47 +12:00
Chris Double
f9b733dcd5 Bug 761762 - Fix reading of channel count and sample rate in stagefright decoder on b2g - r=edwin 2012-06-08 14:30:36 +12:00
Chris Double
b85319f3d0 Bug 761786 - fix media playback crash when using omx-plugin and reloading videos - r=edwin 2012-06-07 15:29:08 +12:00
Michael Wu
f2cadf4895 Bug 761808 - Fix OMX plugin build on OSX, r=doublec 2012-06-05 19:30:50 -04:00