mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:30:27 +00:00
0c01ffebb4
- Bug 1197669 - Part1 - 1.Enable the testcase on B2G. 2. fix the mimetype check in testcase. r=jwwang (9bbae092f) - Bug 1197669 - Part2 - 1. Ensure the EOS is sent to MediaCodec. 2. mEndOfStream should be protected by monitor. r=sotaro (62b8e66b7) - bug 1193922 skip SetIsOnlyNodeForContext after shutdown r=padenot (df991d0af) - Minor (1d695f7c4) - Bug 1197051 - Don't try to decode ahead while seeking - r=jya (7d8d877ad) - Bug 1197075: P1. Revert "Bug 1197051 - Don't try to decode ahead while seeking - r=jya". r=edwin (e837b12e3) - Bug 1143575. Push all available frames to the compositor. r=cpearce (109e54ae8) - partial of Bug 1197075: P2. Revert "Bug 1171257 - Add force decode ahead to MediaFormatReader r=jya,bholley". r=edwin (5f4859e47) - Minor (a841ca407) - Bug 1199155. Part 2 - fix includes and forward declarations. r=roc. (ca523595a) - Bug 1199155. Part 1 - move dom/media/DecodedStream.* to dom/media/mediasink/ and implement the interface of MediaSink. r=roc. (90b376a24) - Bug 1199155. Part 3 - rename mDecodedStream to mStreamSink. r=roc. (1aae54328) - Bug 1203374. Part 1 - extract the code of computing canplaythrough so it is reusable. r=jya. (acc5fc8c6) - Bug 1203374. Part 2 - duplicate the implementation of MediaDecoder::CanPlayThrough so MDSM can call its own CanPlayThrough() on its own thread. r=jya. (a042541a8) - Bug 1182928 - Disable dormant mode for EME videos in Firefox Beta and Release. r=sotaro (ea5964ae9) - Bug 1197022 - [EME] Disable dormant mode for EME videos on all channels. r=kentuckyfriedtakahe (742d00672) - Bug 1179110 - Fix ComputePlaybackRate. r=jww (a43272af5) - Bug 1178622 - Fix enum-to-string mismatch in MediaDecoder.cpp. r=jya. (b9da7ebf3) - Bug 1203418. Part 1 - cache the results of ComputePlaybackRate() so they can be mirrored by MDSM. r=cpearce. (95f7ac068) - Bug 1203418. Part 2 - duplicate the implementation of MediaDecoder::GetStatistics so MDSM can call it on its own thread. r=cpearce. (2755b85a7) - Bug 1203418. Part 3 - ensure MDSM::mPlaybackOffset and MediaDecoder::mPlaybackPosition are mono-increasing to avoid "jitter" in calculating playback statistics. r=cpearce. (54dcb6219) - Bug 1104616 - Proxy video capture access to the main process. r=jesup,glandium,mrbkap (cfdd08459) - Bug 1200614 - Protect the capture engines array from concurrent access (during shutdown). r=jesup (c4dbd6e10) - Bug 1200614 - Check whether engines are still alive when webrtc ops run. r=jesup (d42d3474f) - Bug 1194640 - add NSPR logging of camera capabilities, r=jesup (c7365b916) - Bug 1204413 - Make MediaDecoder::IsTransportSeekable run on the main thread. r=kinetik. (098868b0d) - Bug 1198202 - Increase hardware video decoding fallback threshold. r=ajones (1059f9b0f) - Bug 1201197 - add dedicated listener to enumerateDevices. r=jesup (a51477957) - Bug 1199562. Part 1 - rename mAudioSink to mMediaSink as well as related member names. r=roc. (c2db1b4d4) - Bug 1199562. Part 2 - replace usage of mStreamSink with mMediaSink in most cases. r=roc. (7aa0754c4) - Bug 1199562. Part 3 - remove unused code. r=roc. (343c5be2f) - Bug 1203877 - Remove MediaDecoder::UpdatePlaybackOffset. r=kinetik. (4476dd1f8) - Bug 1204430. Part 2 - mirror MediaDecoder::mMediaSeekable. r=kinetik. (51ca1197d) - Bug 1206576 - Dispatch some MDSM functions to hide its internal thread model. r=jya. (74b9a169c) - Bug 1206574 - Remove AbstractMediaDecoder::IsShutdown(). r=cpearce. (4ed17a27f) - Bug 1207017. Part 1 - fix coding styles. r=kinetik. (cc10a28c3) - Bug 1207017. Part 2 - remove duplicated GetStateMachine(). r=kinetik. (19b663098) - Bug 1200477 - Allow building with WebRTC disabled. r=glandium,mrbkap (56055c3c7)
145 lines
2.7 KiB
C++
145 lines
2.7 KiB
C++
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#include "BufferDecoder.h"
|
|
|
|
#include "nsISupports.h"
|
|
#include "MediaResource.h"
|
|
|
|
namespace mozilla {
|
|
|
|
extern PRLogModuleInfo* gMediaDecoderLog;
|
|
|
|
NS_IMPL_ISUPPORTS0(BufferDecoder)
|
|
|
|
BufferDecoder::BufferDecoder(MediaResource* aResource)
|
|
: mReentrantMonitor("BufferDecoder")
|
|
, mResource(aResource)
|
|
{
|
|
MOZ_ASSERT(NS_IsMainThread());
|
|
MOZ_COUNT_CTOR(BufferDecoder);
|
|
if (!gMediaDecoderLog) {
|
|
gMediaDecoderLog = PR_NewLogModule("MediaDecoder");
|
|
}
|
|
}
|
|
|
|
BufferDecoder::~BufferDecoder()
|
|
{
|
|
// The dtor may run on any thread, we cannot be sure.
|
|
MOZ_COUNT_DTOR(BufferDecoder);
|
|
}
|
|
|
|
void
|
|
BufferDecoder::BeginDecoding(TaskQueue* aTaskQueueIdentity)
|
|
{
|
|
MOZ_ASSERT(!mTaskQueueIdentity && aTaskQueueIdentity);
|
|
mTaskQueueIdentity = aTaskQueueIdentity;
|
|
}
|
|
|
|
ReentrantMonitor&
|
|
BufferDecoder::GetReentrantMonitor()
|
|
{
|
|
return mReentrantMonitor;
|
|
}
|
|
|
|
bool
|
|
BufferDecoder::OnStateMachineTaskQueue() const
|
|
{
|
|
// BufferDecoder doesn't have the concept of a state machine.
|
|
return true;
|
|
}
|
|
|
|
bool
|
|
BufferDecoder::OnDecodeTaskQueue() const
|
|
{
|
|
MOZ_ASSERT(mTaskQueueIdentity, "Forgot to call BeginDecoding?");
|
|
return mTaskQueueIdentity->IsCurrentThreadIn();
|
|
}
|
|
|
|
MediaResource*
|
|
BufferDecoder::GetResource() const
|
|
{
|
|
return mResource;
|
|
}
|
|
|
|
void
|
|
BufferDecoder::NotifyBytesConsumed(int64_t aBytes, int64_t aOffset)
|
|
{
|
|
// ignore
|
|
}
|
|
|
|
void
|
|
BufferDecoder::NotifyDecodedFrames(uint32_t aParsed, uint32_t aDecoded,
|
|
uint32_t aDropped)
|
|
{
|
|
// ignore
|
|
}
|
|
|
|
void
|
|
BufferDecoder::SetMediaSeekable(bool aMediaSeekable)
|
|
{
|
|
// ignore
|
|
}
|
|
|
|
VideoFrameContainer*
|
|
BufferDecoder::GetVideoFrameContainer()
|
|
{
|
|
// no video frame
|
|
return nullptr;
|
|
}
|
|
|
|
layers::ImageContainer*
|
|
BufferDecoder::GetImageContainer()
|
|
{
|
|
// no image container
|
|
return nullptr;
|
|
}
|
|
|
|
bool
|
|
BufferDecoder::IsTransportSeekable()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool
|
|
BufferDecoder::IsMediaSeekable()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
void
|
|
BufferDecoder::MetadataLoaded(nsAutoPtr<MediaInfo> aInfo, nsAutoPtr<MetadataTags> aTags, MediaDecoderEventVisibility aEventVisibility)
|
|
{
|
|
// ignore
|
|
}
|
|
|
|
void
|
|
BufferDecoder::FirstFrameLoaded(nsAutoPtr<MediaInfo> aInfo, MediaDecoderEventVisibility aEventVisibility)
|
|
{
|
|
// ignore
|
|
}
|
|
|
|
void
|
|
BufferDecoder::OnReadMetadataCompleted()
|
|
{
|
|
// ignore
|
|
}
|
|
|
|
void
|
|
BufferDecoder::NotifyWaitingForResourcesStatusChanged()
|
|
{
|
|
// ignore
|
|
}
|
|
|
|
MediaDecoderOwner*
|
|
BufferDecoder::GetOwner()
|
|
{
|
|
// unknown
|
|
return nullptr;
|
|
}
|
|
|
|
} // namespace mozilla
|