Matthew Gregan
353d10342c
Bug 801512 - Remove remaining printfs from content/media. r=roc
2012-10-15 16:49:07 +13:00
Nicolas Silva
b55038bbf2
Bug 794747 - add a pref for the default size of the VideoQueue. r=kinetik
2012-09-28 13:34:03 -04:00
Isaac Aggrey
997db4d142
Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan
2012-09-28 01:57:33 -05:00
foudfou
d72827c0aa
Bug 785542 - Convert usages of PR_MIN and PR_MAX to NS_MIN and NS_MAX; r=ehsan
...
Occurences of PR_MAX in layout/style/nsCSSProps.cpp and xpcom/glue/nsTArray.h
can not be converted without C++11 support (constexpr).
--HG--
extra : rebase_source : 3b4f7e26690fad487dd11594449948411d4e79bc
2012-09-27 23:44:47 +02:00
Edwin Flores
78ee3c2d6c
Bug 759506 - Add support for zero-copy OMX hardware decoding to B2G r=doublec
2012-09-27 16:33:43 +12:00
Paul Adenot
78d5ebb082
Bug 792274 - Don't setup mediastreams in RecreateDecodedStream() if we did not have a mediastream before. r=roc
2012-09-18 22:23:35 -07:00
Paul Adenot
a67963120d
Bug 791344 - Properly log skipped frames in the NSPR log. r=kinetik
2012-09-18 11:27:32 -07:00
Paul Adenot
81434b8034
Bug 791344 - Use the right method to build a timestamp from microseconds and properly convert between units. r=kinetik
2012-09-18 11:23:59 -07:00
Steve Workman
5d7a8842cc
Bug 734546: Changes to nsBuiltinDecoder etc. in prep for nsDASHDecoder etc. r=cpearce
2012-09-17 16:45:38 -04:00
Robert O'Callahan
727fa86a21
Bug 779715. Part 6: Rework capturing MediaStreams from media elements to use TrackUnionStreams. r=cpearce,jesup
...
Moves to a new setup where a decoder manages a single SourceMediaStream internally. Each stream
returned from mozCaptureStream(UntilEnded) is a TrackUnionStream which is fed by the
decoder's SourceMediaStream.
We want the captured streams to be blocked while the media element is not playing. We do that
by blocking any captured stream that has no SourceMediaStream feeding into it, and blocking
any SourceMediaStream while its decoder is not playing.
We arrange for the decoders's PlaybackEnded to be delayed until its SourceMediaStream has
finished according to the media stream graph. This ensures the state of captured media streams
corresponds more closely to the media element state.
--HG--
extra : rebase_source : 3324ff0e9bdce9c71a23c0f5f2032815e9046081
2012-08-01 00:17:22 +12:00
Ehsan Akhgari
0fd9123eac
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Paul Adenot
9670c86dc2
Bug 775319 - Determine the sample format at compile time for all media code. r=kinetik
2012-08-16 18:10:36 -07:00
David Zbarsky
fbb04700b6
Bug 784004 - Don't include Layers.h everywhere Part 3 r=nical
2012-08-21 00:06:46 -04:00
Robert O'Callahan
cdb5480e47
Backing out parts 6 and 7 of bug 779715 (5a87f1d1807d, 5a87f1d1807d) due to crashtest orange.
...
--HG--
extra : rebase_source : bb7acb9958452850bd9d36f8e58f956d065d4935
2012-08-21 00:44:32 +12:00
Robert O'Callahan
bcd9f63ad8
Bug 779715. Part 6: Rework capturing MediaStreams from media elements to use TrackUnionStreams. r=cpearce,jesup
...
Moves to a new setup where a decoder manages a single SourceMediaStream internally. Each stream
returned from mozCaptureStream(UntilEnded) is a TrackUnionStream which is fed by the
decoder's SourceMediaStream.
We want the captured streams to be blocked while the media element is not playing. We do that
by blocking any captured stream that has no SourceMediaStream feeding into it, and blocking
any SourceMediaStream while its decoder is not playing.
We arrange for the decoders's PlaybackEnded to be delayed until its SourceMediaStream has
finished according to the media stream graph. This ensures the state of captured media streams
corresponds more closely to the media element state.
--HG--
extra : rebase_source : a301714fad57a3b7c963530a3da99c54bc8ac436
2012-08-01 00:17:22 +12:00
Matthew Gregan
70f8167360
Bug 783179 - Remove unused mCbCrSize and mCbCrBuffer members from nsBuiltinDecoderStateMachine. r=doublec
2012-08-16 18:07:26 +12:00
Chris Double
2e4abce09a
Backed out changeset dcb9299974a0 due to audio issues on android and b2g
...
--HG--
extra : rebase_source : 7e2b937487c3df9a40406eadf250e6596b89664f
2012-08-10 17:30:01 +12:00
Paul Adenot
0f3392ee19
Bug 775319 - Determine the sample format at compile time for all media code. r=kinetik
...
--HG--
extra : rebase_source : 4e8a2a4544895c9234ccd3992e1cafe82b8cf365
2012-08-07 16:01:02 -07:00
Ralph Giles
f63a794f44
Bug 763010 - Expose media element metadata. r=cpearce
...
Implements a media.mozGetMetadata() method returning a new javascript object whose properties are key value pairs respresenting metadata tags from the media resource. This data is available after readystate enters METADATA_LOADED.
Currently this is only implemented for Ogg Vorbis streams.
Media format metadata is parsed out by the media decoders. In the nsCodecStateMachine::ReadMetadata subclasses we fill in an nsDataHashtable pointer using the format-specifc api.
The hash pointer is passed up to the media element as part of the MetadataLoaded event.
The hash is deleted if the load is aborted. The audio metadata is also reset to zero (as in the constructor), resolving a todo comment.
2012-07-30 20:14:29 -04:00
Aryeh Gregor
e806eeab4f
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Matthew Gregan
68e63d3ddc
Bug 775170 - Use naming convention from coding style guide for static member of StateMachineTracker. r=doublec
...
--HG--
extra : rebase_source : 4dacfc1e600fe1ba00c16a235032f7e52a1cd10a
2012-07-18 13:26:24 -04:00
David Zbarsky
88371b030a
[Bug 774505] Don't include Layers.h everywhere r=cjones
2012-07-18 12:31:40 -04:00
Honza Bambas
41779e1714
Bug 720778 - Important threads should have a name for better debugability, r=bsmith, sr=bsmedberg+glandium
2012-06-12 19:06:20 +02:00
Paul Adenot
8558f22925
Bug 760336 - Set nsBuiltinDecoderStateMachine::mBufferingWait to be seconds instead of milliseconds r=chris.double
2012-06-07 11:43:25 +12:00
Matthew Gregan
263b3b467b
Bug 760364 - Fix comments referring to long-removed audio monitor. r=roc
2012-06-01 18:44:38 +12:00
Robert O'Callahan
ddf43b9099
Bug 750769. Prevent mCurrentFrameTime from advancing during DecodeSeek. r=cpearce
2012-05-22 21:56:02 +12:00
Gervase Markham
ca171eec44
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Ms2ger
3d92167c95
Bug 754643 - Enable FAIL_ON_WARNINGS in content/media; r=cpearce f=roc
2012-05-18 10:29:38 +02:00
Landry Breuil
5013c7f815
Bug 732875 - use stdint.h types instead of PRtypes, fixes build on OpenBSD - r=Ms2ger
2012-05-17 10:07:26 -04:00
Dão Gottwald
eef4562580
Backed out changeset ee527adf9d44
2012-05-17 16:47:36 +02:00
Landry Breuil
781da02081
Bug 732875 - use stdint.h types instead of PRtypes, fixes build on OpenBSD - r=Ms2ger
2012-05-17 10:07:26 -04:00
Benoit Jacob
17b0e7f92d
Bug 732875 - 8/8 - move CheckedInt to MFBT, enable unit tests in mfbt/tests - r=jwalden
...
--HG--
rename : xpcom/ds/CheckedInt.h => mfbt/CheckedInt.h
2012-05-14 15:50:20 -04:00
Robert O'Callahan
ea9226410e
Bug 750769. Add more logging. r=cpearce
2012-05-15 17:57:29 +12:00
Ed Morley
8b2dbc3dca
Backout 345ae68f15f4, b3b40121ac8d, 0d18b7a246d7, 9dbb6064ab58, dee9d7fa8eb6, 63eec6bfa948, 323c6be7cfe8 & f4aac7523a48 (bug 732875) for compilation failures
2012-05-14 21:05:24 +01:00
Benoit Jacob
8fbc0a34da
Bug 732875 - 8/8 - move CheckedInt to MFBT, enable unit tests in mfbt/tests - r=jwalden
...
--HG--
rename : xpcom/ds/CheckedInt.h => mfbt/CheckedInt.h
2012-05-14 15:50:20 -04:00
Robert O'Callahan
cc41b328ac
Bug 752784. Don't mess with tracks we haven't initialized yet. r=cpearce
2012-05-10 15:30:34 +12:00
Chris Pearce
d8ae112372
Bug 752141 - Release media decoder monitor when finishing audio stream. r=kinetik
2012-05-07 17:12:52 +12:00
Robert O'Callahan
233d852e79
Bug 664918. Part 12: Finish SourceMediaStreams when the media decoder is destroyed, to avoid late low-audio/low-video notifications and issues when multiple decoders write to the same stream. r=cpearce,rjesup
2012-04-30 15:13:42 +12:00
Robert O'Callahan
0fab284fc7
Bug 664918. Part 8: Add mozCaptureStream()/mozCaptureStreamUntilEnded() APIs to HTML media elements, returning a MediaStream representing the contents of the media element. r=cpearce,jesup
...
This is currently not fully functional. The MediaStream always ends when the underlying resource ends. You can't use these APIs on a media element
whose src is a MediaStream. Seeking or pausing the resource will cause problems. The media element does not play back in sync with the MediaStream.
2012-04-30 15:12:42 +12:00
Paul ADENOT
c3d69642e4
Bug 480376 - Implement mozHasAudio to indicate when there's no audio track available. r=cpearce
2012-04-28 11:01:10 -04:00
Alessandro Decina
efe31886e6
Bug 422540 - GStreamer backend for audio/video decoding. r=cdouble, a=npotb
2012-04-18 18:33:13 -04:00
Chris Pearce
a976665feb
Bug 736342 - Add AsyncBlockWriter, which defers file writes to another thread. r=roc
2012-03-28 13:04:20 +13:00
Nathan Froyd
3816c12d35
Bug 739962 - fix -Wunused-but-set-variable warnings in content; r=bent
2012-03-28 09:14:33 -04:00
Matthew Gregan
825732279c
Bug 693021 - Bail from AdvanceFrame early if no longer playing. r=cpearce
2012-03-05 15:27:49 +13:00
Justin Lebar
b682bbe4a5
Bug 731789 - Rename mfbt/StdInt.h to mfbt/StandardInteger.h, so stdint types work from cpp files inside mfbt. r=waldo
2012-02-29 22:56:43 -05:00
Ching Wei Tseng
d2d97ed00b
Bug 601535 - content/media should use CheckedInt.h. r=doublec
2012-02-22 13:28:06 +01:00
Ms2ger
bfbd442bda
Bug 726416 - Fix some content/ build warnings; r=mounir
2012-02-21 10:34:01 +01:00
Robert O'Callahan
4840bbe976
Bug 726889. Rename nsMediaStream/nsMediaChannelStream/nsMediaFileStream to mozilla::MediaResource/ChannelMediaResource/FileMediaResource. Also rename nsByteRange to mozilla::MediaByteRange and nsChannelStatistics to mozilla::MediaChannelStatistics. Rename GetStream to GetResource and various other mentions of 'stream' to 'resource'. r=cpearce
...
--HG--
rename : content/media/nsMediaStream.cpp => content/media/MediaResource.cpp
rename : content/media/nsMediaStream.h => content/media/MediaResource.h
2012-02-15 17:35:01 +13:00
Robert O'Callahan
1e90444bb6
Bug 708116. Factor out logic for updating the current frame of a video element into a helper object. r=doublec
2012-02-15 17:35:01 +13:00
Chris DeCairos
6a271f929d
Bug 715323 - Make offset paramater in NotifyDataArrived PRInt64 r=cpearce
2012-02-01 11:05:51 +13:00