Commit Graph
41 Commits
Author SHA1 Message Date
Andreas Pehrson 7773d024e5 Bug 1296531 - Add gtests for starting a video track at t > 0. r=jesup
MozReview-Commit-ID: 4Nt4Ldcy4I6
2017-05-16 13:25:02 +02:00
Andreas Pehrson 5cdacf8c90 Bug 1296531 - Change track encoder gtests to better mimic Gecko usage. r=jesup
MozReview-Commit-ID: 3VwqUBip33u
2017-05-16 13:29:43 +02:00
Andreas Pehrson 1e7c4d659a Bug 1296531 - Refactor MediaRecorder. r=jesup,SingingTree
The main purpose of this patch is to make the TrackEncoders run in a TaskQueue
to avoid multi-threaded access to members, and to change to track listeners to
allow for recording all kinds of tracks (the description of bug 1296531).

MozReview-Commit-ID: EtLXaDDBPdy
2017-05-24 18:51:47 +02:00
Andreas Pehrson 201992cc2c Bug 1296531 - Add gtest for an encoding that ends before all pushed data has been consumed. r=jesup
MozReview-Commit-ID: HmHZcMlQRrM
2017-01-30 18:56:24 +01:00
Andreas Pehrson e2c2a1d435 Bug 1296531 - Add gtest for encoding where suspend/resume timestamps happen in the middle of frame durations. r=jesup
MozReview-Commit-ID: H2UPEC2OTxQ
2017-01-30 18:26:48 +01:00
Andreas Pehrson f60e198f02 Bug 1296531 - Add gtest for an encoding that is suspended in the beginning. r=jesup
MozReview-Commit-ID: HZeQW4Z01CR
2017-01-30 18:26:08 +01:00
Andreas Pehrson 41a237dccc Bug 1296531 - Add gtest for a VideoTrackEncoder suspended throughout the entire recording. r=jesup
MozReview-Commit-ID: DrUOijuqlVu
2017-01-30 18:11:08 +01:00
Andreas Pehrson caf6bf307d Bug 1296531 - Add gtest for a VideoTrackEncoder suspended until the end. r=jesup
MozReview-Commit-ID: 3oT4aNxkpMs
2017-01-30 18:10:41 +01:00
Andreas Pehrson a94dac663c Bug 1296531 - Add gtest for suspending the video encoder. r=jesup
MozReview-Commit-ID: IRdlWPt2QhZ
2017-01-30 17:58:35 +01:00
Andreas Pehrson 55e73227d4 Bug 1296531 - Add gtest checking that we encode by timestamp. r=jesup
MozReview-Commit-ID: CLdizoBKI9j
2017-01-30 17:48:26 +01:00
Bryce Van Dyk ca96290075 Bug 1382718 - Update video encoder gtest to use appropriate image objects. r=jesup
The image objects used in the TestVideoTrackEncoder.cpp for NV12 and NV21 were
not suitable for storage of these formats. As such the new format detection
code introduced in previous changesets was not correctly be exercised.

MozReview-Commit-ID: 9Tn7Ub4GfeG
2017-07-25 10:04:57 +12:00
JW Wang f1ae66b766 Bug 1316211. P16 - remove MediaDecoderReader completely and fix includes. r=gerald
MozReview-Commit-ID: AGNyyh4kt3e
2017-07-20 09:56:08 +08:00
Andreas Pehrson 08d6432667 Bug 1333341 - Add gtest for per-frame rounding error. r=jesup
MozReview-Commit-ID: KEG3ewlMmTN
2017-01-24 09:26:51 +01:00
Andreas Pehrson 6787643430 Bug 1332619 - Add gtest for skipped frames. r=jesup
MozReview-Commit-ID: G5BkNVayJOV
2017-01-23 15:32:24 +01:00
Ryan VanderMeulen 1ed171f11d Backed out 2 changesets (bug 1332619) by request.
Backed out changeset 08d0dccfb2c3 (bug 1332619)
Backed out changeset a406da1d258c (bug 1332619)
2017-01-23 11:25:11 -05:00
Andreas Pehrson 47d05c373f Bug 1332619 - Add gtest for skipped frames. r=jesup
MozReview-Commit-ID: G5BkNVayJOV
2017-01-23 15:32:24 +01:00
Phil Ringnalda e2ca36f827 Backed out 2 changesets (bug 1332619) for frequent Win8 gtest failures in VP8VideoTrackEncoder.SkippedFrames
Backed out changeset 9ea8e4f2edae (bug 1332619)
Backed out changeset 123099d23df5 (bug 1332619)
2017-01-20 20:02:57 -08:00
Andreas Pehrson fa97617a00 Bug 1332619 - Add gtest for skipped frames. r=jesup
MozReview-Commit-ID: G5BkNVayJOV
2017-01-20 15:30:29 +01:00
Andreas Pehrson 77b364188e Bug 1332585 - Add gtest for starting a track with null frames. r=jesup
MozReview-Commit-ID: FxJUFNZ3TDn
2017-01-20 12:27:32 +01:00
Andreas Pehrson 632885259a Bug 1332585 - Add gtest for passing multiple instances of one frame to the vp8 encoder. r=jesup
MozReview-Commit-ID: ellNhSDWGh
2017-01-20 12:26:56 +01:00
Andreas Pehrson f5a140ba0c Bug 1332585 - Check that encoder completed after EOS in existing test. r=jesup
MozReview-Commit-ID: FFLyGhggDyM
2017-01-20 12:25:48 +01:00
Andreas Pehrson ffabe7acb5 Bug 1332585 - Add gtest for encoding a single frame. r=jesup
MozReview-Commit-ID: DAEG4hO34G6
2017-01-20 12:24:36 +01:00
Andreas Pehrson 505b1039f2 Bug 1332585 - Make VP8TrackEncoderTest's buffer generator more explicit. r=jesup
MozReview-Commit-ID: DZbF6vRMug6
2017-01-20 11:48:59 +01:00
Andreas Pehrson e66158c079 Bug 1330918 - Set timestamp in VP8TrackEncoder GTest. r=jesup
MozReview-Commit-ID: 4LeR1iUZBgs
2017-01-19 10:51:52 +01:00
Chia-hung Tai 20d1a85033 Bug 1201363 - MediaStreamVideoSink for MediaRecorder case. r=jesup
Add MediaStreamVideoRecorderSink into MediaEncorder. In this patch, I still keep use duration to pass to TrackEncoders. Don't want to make this bug too big and out of control. We can file a new bug to change TrackEncoders use TimeStamp only.

MozReview-Commit-ID: KGftzulZynj
2016-06-15 16:48:44 +01:00
Sebastian Hengst 4f60b78e4f Backed out changeset 64b256cf2807 (bug 1201363) 2016-08-03 19:33:24 +02:00
Chia-hung Tai 598c3502ee Bug 1201363 - MediaStreamVideoSink for MediaRecorder case. r=jesup
Add MediaStreamVideoRecorderSink into MediaEncorder. In this patch, I still keep use duration to pass to TrackEncoders. Don't want to make this bug too big and out of control. We can file a new bug to change TrackEncoders use TimeStamp only.

MozReview-Commit-ID: KGftzulZynj
2016-06-15 16:48:44 +01:00
Carsten "Tomcat" Book d9ddef2b28 Backed out changeset 5b926a6a6e4e (bug 1201363) 2016-08-02 12:53:49 +02:00
Chia-hung Tai f28c928029 Bug 1201363 - MediaStreamVideoSink for MediaRecorder case. r=jesup
Add MediaStreamVideoRecorderSink into MediaEncorder. In this patch, I still keep use duration to pass to TrackEncoders. Don't want to make this bug too big and out of control. We can file a new bug to change TrackEncoders use TimeStamp only.

MozReview-Commit-ID: KGftzulZynj
2016-06-15 16:48:44 +01:00
Chris Peterson 19f61f589e Bug 1289989 - Remove VS2013 workaround for VP8 test crash. r=cku 2016-07-27 23:52:09 -07:00
ctai 247106d0a0 Bug 1266646 - Move group of MediaStreamListener to a new header file. r=pehrsons
This can reduce the include header dependency. MediaStreamVideoSink will inherit from DirectMediaStreamTrackListener. But we can't use forward declaration on MediaStreamListener because the usage of nsTArray<RefPtr<MediaStreamVideoSink>>.

MozReview-Commit-ID: 328s4Kw9NvW
2016-06-30 15:07:48 +08:00
Sotaro Ikeda 97cfe9b1a4 Bug 1262278 - Rename PlanarYCbCrImage::SetData and PlanarYCbCrImage::SetDataNoCopy r=nical 2016-04-18 20:12:41 -07:00
Andreas Pehrson 87553a4818 Bug 1208371 - Add PrincipalHandle to MediaChunks. r=mt,jesup
PrincipalHandle is a thread safe pointer to a holder of (the main-thread-only
nsIPrincipal) that can be passed around the MSG.

A MediaStreamTrack whose source has just updated its principal, sets the new
principal aside (as its "pending principal"), and combines the new principal
into its current principal.

Then the source starts passing the new principal to the MediaStreamGraph as
a PrincipalHandle.

Changes to a track's PrincipalHandle on the MSG will be surfaced through the
MediaStreamTrackListener API. These changes are dispatched to main thread
and compared to a MediaStreamTrack's pending principal. In case of a match
the track knows the correct principal is flowing and can move the pending
principal to be the current principal and update any main thread principal
observers.

MozReview-Commit-ID: D0JXGWhQFFU
2016-04-06 14:56:44 +02:00
Jeff Muizelaar b1a5f2f67c Bug 1217080. Move recycling functionality into RecyclingPlanarYCbCrImage. r=nical
This makes PlanarYCbCrImage abstract and moves the recycling functionality
into RecyclingPlanarYCbCrImage. This decreases the size of
SharedPlanarYCbCrImage and makes it possible for us to do part 3 of bug
1216644.
2015-11-06 13:55:31 -05:00
Wes Kocher c96690bed9 Backed out changeset 722e121f6ce6 (bug 1217080) for b2g build failures 2015-11-04 15:39:35 -08:00
Jeff Muizelaar e71ffed1a7 Bug 1217080. Move recycling functionality into RecyclingPlanarYCbCrImage. r=nical
This makes PlanarYCbCrImage abstract and moves the recycling functionality
into RecyclingPlanarYCbCrImage. This decreases the size of
SharedPlanarYCbCrImage and makes it possible for us to do part 3 of bug
1216644.
2015-11-04 17:40:02 -05: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
Andreas Pehrson d860bfea93 Bug 1182426 - Set PlanarYCbCrImage's size in VP8TrackEncoder GTest. r=roc 2015-10-02 13:59:18 +08:00
Robert O'Callahan d9dae40392 Bug 1061046. Part 19: Eliminate TrackTicks in favour of StreamTime. r=karlt 2014-09-18 17:20:43 +12:00
Robert O'Callahan 462ddb84f9 Bug 1061046. Part 11: Remove callback rate parameters. r=karlt 2014-09-18 11:51:13 +12:00
Birunthan Mohanathas 417b400d55 Bug 946065 - Part 10: Move content/media/ to dom/. r=peterv 2014-10-25 20:24:36 +03:00