зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1223270: P4. Remove extra copy of YUV buffer for Theora. r=mattwoodrow
MozReview-Commit-ID: FnhPObcv4U3 --HG-- extra : rebase_source : 01a14de6f4de864ec38311549867f95f48b5b2a3
This commit is contained in:
Родитель
de2ba98442
Коммит
e52d3b5eaa
|
@ -38,7 +38,8 @@ ogg_packet InitTheoraPacket(const unsigned char* aData, size_t aLength,
|
|||
}
|
||||
|
||||
TheoraDecoder::TheoraDecoder(const CreateDecoderParams& aParams)
|
||||
: mImageContainer(aParams.mImageContainer)
|
||||
: mImageAllocator(aParams.mKnowsCompositor)
|
||||
, mImageContainer(aParams.mImageContainer)
|
||||
, mTaskQueue(aParams.mTaskQueue)
|
||||
, mTheoraSetupInfo(nullptr)
|
||||
, mTheoraDecoderContext(nullptr)
|
||||
|
@ -178,7 +179,8 @@ TheoraDecoder::ProcessDecode(MediaRawData* aSample)
|
|||
aSample->mKeyframe,
|
||||
aSample->mTimecode,
|
||||
mInfo.ScaledImageRect(mTheoraInfo.frame_width,
|
||||
mTheoraInfo.frame_height));
|
||||
mTheoraInfo.frame_height),
|
||||
mImageAllocator);
|
||||
if (!v) {
|
||||
LOG(
|
||||
"Image allocation error source %ux%u display %ux%u picture %ux%u",
|
||||
|
|
|
@ -38,6 +38,7 @@ private:
|
|||
|
||||
RefPtr<DecodePromise> ProcessDecode(MediaRawData* aSample);
|
||||
|
||||
RefPtr<layers::KnowsCompositor> mImageAllocator;
|
||||
RefPtr<layers::ImageContainer> mImageContainer;
|
||||
RefPtr<TaskQueue> mTaskQueue;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче