Commit Graph

58 Commits

Author SHA1 Message Date
Eugen Sawin
b9fda9d611 Bug 1221991 - [1.3] Make SupportsMimeType a const function. r=jya 2015-11-17 20:50:28 +01:00
sajitk
1fe7d9c5ea Bug 1219480 - Replace PRLogModuleInfo with LazyLogModule in the media directory. r=rillian 2015-11-15 14:49:01 +01:00
Wes Kocher
5df00b60d3 Backed out changeset 1e5f3d1151d6 (bug 1219480) for cpp unittest bustage CLOSED TREE 2015-11-11 09:36:56 -08:00
sajitk
aec22fe652 Bug 1219480 - Replace PRLogModuleInfo with LazyLogModule in the media directory. r=rillian 2015-11-11 06:52:00 +01:00
Sotaro Ikeda
1a62fde7f0 Bug 1214997 - Use MozPromise in MediaCodecProxy and OMXCodecProxy r=bwu 2015-11-10 05:42:42 -08:00
John Lin
a8ce8d6207 Bug 1222919 - Make ProcessFlush() virtual. r=jya 2015-11-09 18:59:00 +01:00
John Lin
fcfc10ac8c Bug 1216895 - assert that decoder methods are run on correct thread. r=jya 2015-11-09 18:58:00 +01:00
John Lin
40d92dc5b9 Bug 1217220 - use output timestamp to decide which item needs to be removed from waiting list. r=jya 2015-11-06 01:38:00 +01:00
Mike Hommey
ab61f03e7f Bug 1221453 - Use AbsolutePaths with LOCAL_INCLUDES instead of manual -I in CXXFLAGS. r=gps 2015-11-06 09:59:21 +09:00
John Lin
0f2eae2e1b Bug 1199809 - Make a copy of output buffer after flush(). r=sotaro 2015-11-01 23:25:00 +01:00
John Lin
781c5a2cf8 Bug 1199809 - Refactor: use RAII to help manage output buffer lifecycle. r=sotaro 2015-10-29 21:14:00 +01:00
John Lin
c89902ffe1 Bug 1199809 - Don't schedule decoder I/O task when there will be more input. r=bwu 2015-10-29 21:14:00 +01:00
John Lin
08ea9e5c8a Bug 1199809 - Create native window early to avoid race condition. r=jya
If AsyncAllocateVideoMediaCodec() run faster enough, mNativeWindow will be created after codecReserved() is called and we'll configure decoder w/o native window.
2015-10-29 21:14:00 +01:00
John Lin
e751c356f0 Bug 1199809 - Reset last decoded frame time on looper thread to avoid race condition. r=jya 2015-10-29 21:14:00 +01:00
John Lin
b51e90794b Bug 1199809 - Remove all references to unused task queue. r=jya 2015-10-29 21:14:00 +01:00
Sotaro Ikeda
142144fbf0 Bug 1219140 - Remove AskMediaCodecAndWait() r=bwu 2015-10-28 05:30:12 -07:00
Benjamin Chen
145d238239 Bug 1174721 - Use AudioCompactor for GonkAudioDecoderManager. r=sotaro 2015-10-21 10:09:39 +08:00
John Lin
220018d697 Bug 1207214 - Assert decoder attaches EOS flag to final output buffer. r=sotaro 2015-10-16 00:45:00 -04:00
Alfredo Yang
783598152a Bug 1215441 - Skip flush before Init() is completed. r=sotaro 2015-10-16 01:02:00 -04:00
Nathan Froyd
9c5965b035 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
Nathan Froyd
e504437747 Bug 1207245 - part 3 - switch all uses of mozilla::RefPtr<T> to nsRefPtr<T>; r=ehsan
This commit was generated using the following script, executed at the
top level of a typical source code checkout.

 # Don't modify select files in mfbt/ because it's not worth trying to
 # tease out the dependencies currently.
 #
 # Don't modify anything in media/gmp-clearkey/0.1/ because those files
 # use their own RefPtr, defined in their own RefCounted.h.
find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    grep -v 'mfbt/RefPtr.h' | \
    grep -v 'mfbt/nsRefPtr.h' | \
    grep -v 'mfbt/RefCounted.h' | \
    grep -v 'media/gmp-clearkey/0.1/' | \
    xargs perl -p -i -e '
 s/mozilla::RefPtr/nsRefPtr/g; # handle declarations in headers
 s/\bRefPtr</nsRefPtr</g; # handle local variables in functions
 s#mozilla/RefPtr.h#mozilla/nsRefPtr.h#; # handle #includes
 s#mfbt/RefPtr.h#mfbt/nsRefPtr.h#;       # handle strange #includes
'

 # |using mozilla::RefPtr;| is OK; |using nsRefPtr;| is invalid syntax.
find . -name '*.cpp' -o -name '*.mm' | xargs sed -i -e '/using nsRefPtr/d'

 # RefPtr.h used |byRef| for dealing with COM-style outparams.
 # nsRefPtr.h uses |getter_AddRefs|.
 # Fixup that mismatch.
find . -name '*.cpp' -o -name '*.h'| \
    xargs perl -p -i -e 's/byRef/getter_AddRefs/g'
2015-10-18 00:40:10 -04:00
John Lin
02014309d7 Bug 1170589 - Force decoder to use all allocated buffers. r=bwu 2015-10-14 14:12:25 +08:00
Sotaro Ikeda
a19859f64a Bug 1210045 - Fix GonkVideoDecoderManager shutdown during initialization r=bwu 2015-10-15 22:25:57 -07:00
John Lin
145f4343f1 Bug 1198664 - Use looper to process decoder tasks. r=bwu 2015-10-07 00:32:00 +02:00
John Lin
4aec628c96 Bug 1198664 - Refactor: move common behaviors to base class. r=bwu,jya 2015-10-06 02:18:00 +02:00
Nigel Babu
10bcfd4470 Backed out changeset abaadd5361ad (bug 1198664) for B2G build bustage ON A CLOSED TREE 2015-10-07 12:33:08 +05:30
Nigel Babu
2ac2c1cdad Backed out changeset 3a4fb0ededfd (bug 1198664) for B2G build bustage ON A CLOSED TREE 2015-10-07 12:32:01 +05:30
John Lin
4bb44dc24d Bug 1198664 - Part 2 - Use looper to process decoder tasks. r=bwu 2015-10-06 02:20:00 +02:00
John Lin
e0f219352e Bug 1198664 - Part 1 - Refactor: move common behaviors to base class. r=bwu,jya 2015-10-06 02:18:00 +02:00
Alfredo Yang
8f3c92d85b Bug 1204622 - release codec listener at reader task queue. r=jya 2015-10-01 00:43:00 +02:00
Jean-Yves Avenard
ae89c81f63 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
Jean-Yves Avenard
a0aa04c947 Bug 1204776: P1. Have the PlatformDecoderModules use their own log. r=cpearce
Stop using MP4Demuxer.
2015-09-16 12:26:03 +10:00
Ralph Giles
ac29910072 Bug 1204672 - Fix a log comment typo. r=gerald 2015-09-14 14:22:55 -07:00
Nicholas Nethercote
10d95cca57 Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.
2015-08-27 20:44:53 -07:00
Munro Chiang
675dd2618d Bug 1178214 - Return INIT_ERROR when video resolution exceeds hw codec capability. r=sotaro 2015-08-24 17:39:34 +08:00
Alfredo Yang
aa1341c858 Bug 1197151 - Correct TaskQueue asertion. r=jya 2015-08-23 19:36:00 -04:00
Alfredo Yang
7369e9e20c Bug 1179667 - Use MozPromise to initialize Gonk PlatformDecodeModule. r=jya 2015-08-17 23:05:00 -04:00
Alfredo Yang
df30a6a272 Bug 1146086: use promise to Init() in PlatformDecoderModule. r=jya,r=cpearce 2015-08-11 14:09:12 +10:00
Jean-Yves Avenard
0375d28fb1 Bug 1190258: P1. Use getter to access MediaRawData mData and mSize member. r=cpearce 2015-08-06 18:48:44 +10:00
Benjamin Chen
6fad5d8676 Bug 1097498 - Wait fence for the graphic buffer. r=sotaro 2015-07-23 17:54:08 +08:00
Benjamin Chen
ade5a8d7be Bug 1178682 - Reject the decoded sample if timestamp is revert. r=sotaro 2015-07-17 16:18:42 +08:00
Bobby Holley
13ff5c37f3 Bug 1184634 - Rename MediaTaskQueue to TaskQueue. r=gerald 2015-07-16 22:23:06 -07:00
Birunthan Mohanathas
e52329c788 Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Sotaro Ikeda
0782cc9b9f Bug 1112219 - Implement platform independent MediaResourceManager r=cpearce,bwu,nical 2015-07-05 11:56:04 -07:00
Blake Wu
c5de90fd22 Bug 1175071 - Remove those codes which handles ADTS. r=jya. 2015-06-18 17:39:23 +08:00
Blake Wu
1533a2377c Bug 1174623 - Support mp3 in Gonk PDM. r=sotaro 2015-06-15 21:20:30 +08:00
Blake Wu
5b0b275f48 Bug 1174166 - Support H.263 in Gonk PDM. r=sotaro 2015-06-12 22:23:33 +08:00
Munro Chiang
d8e8da6a14 Bug 1166760 - Query audio sampling rate & channel number from codec. r=sotaro 2015-06-05 09:42:33 +08:00
Eric Rahm
29f00ac208 Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-03 15:25:57 -07:00
Milan Sreckovic
a5295afcda Bug 1131463 - Report AtomicRefCounterWithFinalize doing the wrong thing with AddRef and Release in release build as well. r=sotaro 2015-05-29 16:41:28 -04:00