Commit Graph
49 Commits
Author SHA1 Message Date
Jean-Yves Avenard 6a03444cb6 Bug 1223270: P3. Remove extra copy of YUV buffer on Windows. r=mattwoodrow,nical
MozReview-Commit-ID: JgbAwtLNr9e
2017-05-03 23:25:54 +02:00
Carsten "Tomcat" Book 9bb0317224 Backed out changeset c79b6d337d04 (bug 1223270) 2017-06-20 09:41:39 +02:00
Jean-Yves Avenard 5605af724a Bug 1223270: P3. Remove extra copy of YUV buffer on Windows. r=mattwoodrow,nical
MozReview-Commit-ID: JgbAwtLNr9e
2017-05-03 23:25:54 +02:00
Jean-Yves Avenard b5da334d23 Bug 1342645: Rename low latency preference. r=gerald
Make it available if either FFmpeg or FFVPX is configured

MozReview-Commit-ID: 7VTWQ7km4tV
2017-02-25 23:53:53 +01:00
Jean-Yves Avenard a4d8c4f9e0 Bug 1322739: P3. Add low-latency option to FFmpeg. r=gerald
ContentPrefs.cpp line ending was incorrectly set to CRLF.

MozReview-Commit-ID: LIcZNnNzFd8
2017-02-22 13:02:59 +01:00
Jean-Yves Avenard 3366dcbc57 Bug 1339748: P2. Let the MediaDataDecoder tells the format it wants. r=cpearce
MozReview-Commit-ID: 22GEUnwEacd
2017-02-17 22:19:55 +01:00
Sebastian Hengst 71be4ca6aa Backed out changeset f508a675e8dc (bug 1339748) 2017-02-18 17:36:21 +01:00
Jean-Yves Avenard ebfd56f8ba Bug 1339748: P2. Let the MediaDataDecoder tells the format it wants. r=cpearce
MozReview-Commit-ID: 22GEUnwEacd
2017-02-17 22:19:55 +01:00
Jean-Yves Avenard f466c5434b Bug 1336947: P2. Fix coding style. r=gerald
MozReview-Commit-ID: 74OQ6GxSFWX
2017-02-07 23:27:56 +01:00
Jean-Yves Avenard d6b004c4a8 Bug 1319987: P5. Promisify MediaDataDecoder. r=cpearce,gerald,mattwoodrow,snorp
This is a big change, and unfortunately impossible to break down with independently functional commits.

There are four main changes being applied here:

* Code cleanup, including making all MediaDataDecoder related code mozilla coding style compliant
* Make MediaDataDecoder use MozPromise
* Making Flush and Shutdown processes fully asynchronous
* Fixing few data races encountered across the code, in particular in the Android PDM

MozReview-Commit-ID: DpiZucGofJT
2017-01-26 13:56:46 +01:00
karo 69043ca5e0 Bug 1321076 - PDMFactory defaults to using VPXDecoder when alpha is present. r=jya
FFmpegDecoderModule and AndroidDecoderModule returns nullptr if alpha is
present, then PDMFactory rolls over to using VPXDecoder.

MozReview-Commit-ID: H2JaolEfJgR
2016-12-21 15:00:17 +13:00
Jean-Yves Avenard 42c92f11c5 Bug 1270016: P2. Make the FFVPX PDM work with FLAC. r=kentuckyfriedtakahe
MozReview-Commit-ID: BmwtZF3NSEI
2016-08-02 22:54:26 +10:00
Wes Kocher 494be38a74 Backed out 3 changesets (bug 1270016) for various media test failures/unexpected-passes a=backout
Backed out changeset 9178e6e14a5a (bug 1270016)
Backed out changeset 8359b182bb99 (bug 1270016)
Backed out changeset 8a0f3231b43e (bug 1270016)
2016-08-22 10:07:57 -07:00
Jean-Yves Avenard cb23b0fbf0 Bug 1270016: P2. Make the FFVPX PDM work with FLAC. r=kentuckyfriedtakahe
MozReview-Commit-ID: BmwtZF3NSEI
2016-08-02 22:54:26 +10:00
James Cheng e976e06310 Bug 1295920 - Replace enum with enum class in PlatformDecoderModule.h. r=jya
MozReview-Commit-ID: lDjsTI82pV
2016-08-17 17:24:13 +08:00
Dan Glastonbury e63172cab6 Bug 1281632 - P1: Extract creation parameters and pass via struct. r=gerald
Extract all the parameters passed to CreateAudioDecoder/CreateVideoDecoder and
place them into a structure that is passed down to the creation of the actual
decoder, where the relevant parameters can be extracted.

This makes it easier to add more arguments to the Create*Decoder calls in future.

MozReview-Commit-ID: 9LZlcfRVz6A
2016-06-28 17:56:55 +12:00
JW Wang cbe7f99505 Bug 1274216 - remove use of FlushableTaskQueue from PlatformDecoderModule. r=jya.
MozReview-Commit-ID: E3DG84yKRmw
2016-05-19 17:50:31 +08:00
Gerald Squelart ba02e820af Bug 1248507 - p1. Pass DecoderDoctorDiagnostics to PDMs&more - r=jya
Pass declared-but-yet-undefined DecoderDoctorDiagnostics pointer to various
routines that contribute to deciding if a media format can be played, and
those that create decoders.

Points where a DecoderDoctorDiagnostics can be injected are currently marked
with "/* DecoderDoctorDiagnostics* */ nullptr", and some will be used in
following patches.

MozReview-Commit-ID: 7u37bvY4CpW
2016-04-19 17:36:19 +10:00
Bogdan Postelnicu 59d676193b Bug 1242465 - when defined USING_MOZFFVPX use by default videoCodec in FindAVCodec. r=jya 2016-01-26 11:24:59 +02:00
Jean-Yves Avenard dc46b6fd6c Bug 1240995: [ffmpeg] P1. Refactor FFmpeg PDM. r=kentuckyfriedtakahe
This greatly simplify how the external libavcodec and libavutil are linked.
2016-01-23 01:35:52 +11:00
Jean-Yves Avenard 151531f4ce Bug 1240630: [ffmpeg] P4. Rename FFmpegH264Decoder into FFmpegVideoDecoder. r=kentuckyfriedtakahe
The days we used to only be able to use the FFmpeg decoder for H264 are long gone. It can do H264, VP6, VP8 and VP9.
2016-01-19 22:20:01 +11:00
Jean-Yves Avenard b32324d95a Bug 1240630: [ffvpx] P1. Add a FFVPX PDM. r=kentuckyfriedtakahe
This allows support for linking to two different version of libavcodec: our own and the system one if found.
ffvpx symbols are loaded within the namespace mozilla::ffvpx.
2016-01-19 17:29:19 +11:00
Wes Kocher 7004fb81c7 Backed out 4 changesets (bug 1240630) for asan failures in mochitest(2) and mochitest(oth) CLOSED TREE
Backed out changeset dc949ca1e1ec (bug 1240630)
Backed out changeset 06abea99a292 (bug 1240630)
Backed out changeset 9d90d4b0b928 (bug 1240630)
Backed out changeset 6162c46b32ff (bug 1240630)
2016-01-20 13:47:41 -08:00
Wes Kocher aa6606894d Backed out changeset 8b78eccf2c29 (bug 1240995) for asan failures in mochitest(2) and mochitest(oth) CLOSED TREE 2016-01-20 13:47:13 -08:00
Jean-Yves Avenard 7af9163691 Bug 1240995: [ffmpeg] Refactor FFmpeg PDM. r=kentuckyfriedtakahe
This greatly simplify how the external libavcodec and libavutil are linked.
2016-01-20 20:22:43 +11:00
Jean-Yves Avenard 4b68f0505e Bug 1240630: [ffmpeg] P4. Rename FFmpegH264Decoder into FFmpegVideoDecoder. r=kentuckyfriedtakahe
The days we used to only be able to use the FFmpeg decoder for H264 are long gone. It can do H264, VP6, VP8 and VP9.
2016-01-19 22:20:01 +11:00
Jean-Yves Avenard acb371b446 Bug 1240630: [ffvpx] P1. Add a FFVPX PDM. r=kentuckyfriedtakahe
This allows support for linking to two different version of libavcodec: our own and the system one if found.
ffvpx symbols are loaded within the namespace mozilla::ffvpx.
2016-01-19 17:29:19 +11:00
Carsten "Tomcat" Book b865b52699 Backed out changeset 07e06fefa4c7 (bug 1240630) for webgl leaks 2016-01-20 16:11:05 +01:00
Carsten "Tomcat" Book 847c39d65f Backed out changeset 2360ccbf3aaa (bug 1240630) 2016-01-20 16:10:48 +01:00
Carsten "Tomcat" Book f2ce22a6ee Backed out changeset 4ab338518d02 (bug 1240995) 2016-01-20 16:10:46 +01:00
Carsten "Tomcat" Book 7aac62400b Backed out changeset 2213b8ad2dce (bug 1240995) 2016-01-20 16:10:45 +01:00
Jean-Yves Avenard 109017e570 Bug 1240995: [ffmpeg] P2. Mark constructor explicit. r=me 2016-01-21 00:20:46 +11:00
Jean-Yves Avenard d3cc076d5e Bug 1240995: [ffmpeg] Refactor FFmpeg PDM. r=kentuckyfriedtakahe
This greatly simplify how the external libavcodec and libavutil are linked.
2016-01-20 23:55:37 +11:00
Jean-Yves Avenard 221462f9fb Bug 1240630: [ffmpeg] P4. Rename FFmpegH264Decoder into FFmpegVideoDecoder. r=kentuckyfriedtakahe
The days we used to only be able to use the FFmpeg decoder for H264 are long gone. It can do H264, VP6, VP8 and VP9.
2016-01-20 23:55:37 +11:00
Jean-Yves Avenard c4ffe86614 Bug 1240630: [ffvpx] P1. Add a FFVPX PDM. r=kentuckyfriedtakahe
This allows support for linking to two different version of libavcodec: our own and the system one if found.
ffvpx symbols are loaded within the namespace mozilla::ffvpx.
2016-01-20 23:55:35 +11:00
Jean-Yves Avenard 070d179ee4 Bug 1223333: [ffmpeg] Do not rely on library name to determine the libavcodec's version. r=kentuckyfriedtakahe
Also uses portable way to dynamically open libraries.
2015-11-19 10:32:21 +11:00
Eugen Sawin 9f99218ae1 Bug 1221991 - [1.3] Make SupportsMimeType a const function. r=jya 2015-11-17 20:50:28 +01:00
Nathan Froyd 4e6d8f6705 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Jean-Yves Avenard 2199e7e4dd Bug 1213173: Always use FFmpeg regardless of version. r=kentuckyfriedtakahe
We don't need to prevent using FFmpegDecoderModule on older version anymore
2015-10-12 10:00:04 +11:00
Jean-Yves Avenard 49d1980675 Bug 1206977: P2. Wrap PDM creation in a new PDMFactory class. r=cpearce
There is no change of behaviour from the original PlatformDecoderModule.
2015-10-08 00:34:42 +11:00
Jean-Yves Avenard 53db64bf42 Bug 1211335: Have FFMpegDecoderModule properly return if a codec is supported. r=cpearce 2015-10-08 00:34:41 +11:00
Nigel Babu 86234cab2d Backed out 16 changesets (bug 1206977, bug 1211652, bug 1211335) for linux bc7 bustage ON A CLOSED TREE
Backed out changeset 51b1b076a386 (bug 1206977)
Backed out changeset dec7c35469d1 (bug 1206977)
Backed out changeset bf9ddc78b394 (bug 1206977)
Backed out changeset 08f5cff5aa12 (bug 1206977)
Backed out changeset e4e91de99867 (bug 1206977)
Backed out changeset 696ecf2e2947 (bug 1206977)
Backed out changeset ab2d524a9b35 (bug 1206977)
Backed out changeset d66be0e4547f (bug 1206977)
Backed out changeset 64c58afbd6c1 (bug 1206977)
Backed out changeset eb10d09015e1 (bug 1206977)
Backed out changeset 042959216393 (bug 1206977)
Backed out changeset 7e0de7f62202 (bug 1206977)
Backed out changeset 3d095569f6ba (bug 1206977)
Backed out changeset 041418a07ae5 (bug 1206977)
Backed out changeset 654970da23e4 (bug 1211335)
Backed out changeset 8ba8e24a84d3 (bug 1211652)
2015-10-07 13:43:39 +05:30
Jean-Yves Avenard c134dc74ec Bug 1206977: P2. Wrap PDM creation in a new PDMFactory class. r=cpearce
There is no change of behaviour from the original PlatformDecoderModule.
2015-10-07 16:40:24 +11:00
Jean-Yves Avenard 8c2f0f46f9 Bug 1211335: Have FFMpegDecoderModule properly return if a codec is supported. r=cpearce 2015-10-07 16:40:22 +11:00
Jean-Yves Avenard 1c63631f76 Bug 1207429: P2. Enable FFmpeg by default if available. r=kentuckyfriedtakahe
By default we only use libav 9 or FFmpeg 1.2 if found on the system.

If media.fragmented-mp4.ffmpeg.enabled is set, will allow use of libav 0.7 and ffmpeg 0.8 or later.
2015-09-27 15:19:28 +10:00
Jean-Yves Avenard ae9cb7cb96 Bug 1206979: P1. Add method to determine which version of libavcodec is available. r=edwin 2015-09-23 12:59:27 +10:00
Jean-Yves Avenard 4ac7df5582 Bug 1206568: P2. Clean up header declarations. r=cpearce
Make it consistent across the use of virtual/override
2015-09-23 12:59:26 +10:00
Bobby Holley 8fcb9d8c7b Bug 1184634 - Rename MediaTaskQueue to TaskQueue. r=gerald 2015-07-16 22:23:06 -07:00
Jean-Yves Avenard bad2057a45 Bug 1163458: Part1. Move PlatformDecoderModule outside fmp4. r=kentukyfriedtakahe 2015-05-18 15:42:32 +10:00