зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1272553. Part 2 - extract common code to the parent class. r=jya.
MozReview-Commit-ID: EhHLaIy9lyq
This commit is contained in:
Родитель
1f754c14d3
Коммит
b025e4dca1
|
@ -140,7 +140,7 @@ private:
|
|||
nsresult InitializeSession();
|
||||
|
||||
// Method to pass a frame to VideoToolbox for decoding.
|
||||
nsresult ProcessDecode(MediaRawData* aSample);
|
||||
virtual nsresult ProcessDecode(MediaRawData* aSample);
|
||||
CFDictionaryRef CreateDecoderSpecification();
|
||||
};
|
||||
|
||||
|
|
|
@ -75,25 +75,6 @@ AppleVTDecoder::ProcessShutdown()
|
|||
}
|
||||
}
|
||||
|
||||
nsresult
|
||||
AppleVTDecoder::Input(MediaRawData* aSample)
|
||||
{
|
||||
MOZ_ASSERT(mCallback->OnReaderTaskQueue());
|
||||
|
||||
LOG("mp4 input sample %p pts %lld duration %lld us%s %d bytes",
|
||||
aSample,
|
||||
aSample->mTime,
|
||||
aSample->mDuration,
|
||||
aSample->mKeyframe ? " keyframe" : "",
|
||||
aSample->Size());
|
||||
|
||||
mInputIncoming++;
|
||||
|
||||
mTaskQueue->Dispatch(NewRunnableMethod<RefPtr<MediaRawData>>(
|
||||
this, &AppleVTDecoder::ProcessDecode, aSample));
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
void
|
||||
AppleVTDecoder::ProcessFlush()
|
||||
{
|
||||
|
|
|
@ -21,7 +21,6 @@ public:
|
|||
layers::ImageContainer* aImageContainer);
|
||||
virtual ~AppleVTDecoder();
|
||||
RefPtr<InitPromise> Init() override;
|
||||
nsresult Input(MediaRawData* aSample) override;
|
||||
bool IsHardwareAccelerated(nsACString& aFailureReason) const override
|
||||
{
|
||||
return mIsHardwareAccelerated;
|
||||
|
@ -44,7 +43,7 @@ private:
|
|||
VTDecompressionSessionRef mSession;
|
||||
|
||||
// Method to pass a frame to VideoToolbox for decoding.
|
||||
nsresult ProcessDecode(MediaRawData* aSample);
|
||||
nsresult ProcessDecode(MediaRawData* aSample) override;
|
||||
// Method to set up the decompression session.
|
||||
nsresult InitializeSession();
|
||||
nsresult WaitForAsynchronousFrames();
|
||||
|
|
Загрузка…
Ссылка в новой задаче