Commit Graph
32 Commits
Author SHA1 Message Date
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 443f891377 Bug 1334061: P2. Fix Android coding style. r=gerald
MozReview-Commit-ID: C9IkiSoPxsA
2017-02-16 13:00:34 +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
Kilik Kuo 4a06d362fc Bug 1307818-[P2] Setup MediaCrypto for both in-process and out-of-process decode. r=cpearce,jchen
MozReview-Commit-ID: Ehbm2u8LeLg
2016-11-16 22:10:01 +08:00
John Lin 9ffb38fbbc Bug 1257777 - Part 6: Implement remote data decoders and enable/disable them with pref. r=snorp
MozReview-Commit-ID: 54ZEckQHsBI
2016-08-05 15:24:46 +08:00
John Lin b59908daa7 Bug 1257777 - Part 5: Seperate PDM and data decoders into different files. r=snorp
MozReview-Commit-ID: KP4hAZXLPAU
2016-08-05 15:24:06 +08:00
Jim Chen e8f534d407 Bug 1287946 - Update existing code to use mozilla::java; r=me 2016-07-21 13:49:04 -04:00
Carsten "Tomcat" Book 58f5467519 Backed out changeset 684888aeee81 (bug 1287946) 2016-07-21 08:07:12 +02:00
Jim Chen 0ea27022be Bug 1287946 - Update existing code to use mozilla::java; r=me 2016-07-21 00:42:26 -04: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
Ryan VanderMeulen a668852c77 Backed out changeset 0e4c5be816f3 (bug 1257107) for webm reftest failures.
CLOSED TREE
2016-05-19 10:39:07 -04:00
Alfredo Yang 2616966638 Bug 1257107 - Discard decoded data if its pts is smaller than seek time. r=jya 2016-05-17 21:46:00 -04:00
Eugen Sawin 1f6831c06b Bug 1273523 - [1.2] Don't process output if no duration is available. r=snorp 2016-05-18 22:08:36 +02: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
Eugen Sawin 2637083ff6 Bug 1262456 - [2.1] Replace queue adapter with deque. r=snorp 2016-04-18 22:12:11 +02:00
Eugen Sawin 55d46b4f5f Bug 1262456 - [1.1] Prevent interruption of the decoder shutdown procedure and early shutdown return. r=snorp 2016-04-12 22:21:51 +02:00
Eugen Sawin 199e92f77f Bug 1248792 - [1.2] Replace MediaRawData raw pointers with RefPtr. r=snorp 2016-02-26 17:57:52 +01:00
Sotaro Ikeda d4a38ab1b3 Bug 1251155 - Remove GLContext from VideoDataDecoder r=snorp 2016-02-25 17:11:55 -08:00
Jean-Yves Avenard 628bc4575e Bug 1241677: P1. Add MediaDataDecoder::GetDescriptionName() method. r=cpearce 2016-01-25 10:33:39 +11:00
Eugen Sawin c48e962365 Bug 1221991 - [4.2] Add AndroidDecoderModule logging. r=snorp 2015-11-17 20:50:29 +01:00
Eugen Sawin 10ae725597 Bug 1221991 - [3.1] Manage module state via accessor functions. r=snorp 2015-11-17 20:50:29 +01:00
Eugen Sawin 8092a8f817 Bug 1221991 - [2.3] Split DecoderLoop into functions, simplify decoding state and clean up style. r=snorp 2015-11-17 20:50:28 +01: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 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
Alfredo Yang 8c72dda1e5 Bug 1146086: use promise to Init() in PlatformDecoderModule. r=jya,r=cpearce 2015-08-11 14:09:12 +10:00
Bobby Holley 8fcb9d8c7b Bug 1184634 - Rename MediaTaskQueue to TaskQueue. r=gerald 2015-07-16 22:23:06 -07:00
Jean-Yves Avenard f12f1d4d95 Bug 1179094: Use TimeUnit in PlatformDecoderModule. r=cpearce 2015-07-08 10:56:16 +10:00
Jean-Yves Avenard bad2057a45 Bug 1163458: Part1. Move PlatformDecoderModule outside fmp4. r=kentukyfriedtakahe 2015-05-18 15:42:32 +10:00