mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 15:27:32 +09:00
Issue #2311 - Part 3 - Add accessor for ffvpx real DFT functions
This commit is contained in:
parent
289020a670
commit
0e796b1dcd
4 changed files with 35 additions and 0 deletions
|
|
@ -48,6 +48,7 @@ FFVPXRuntimeLinker::Init()
|
|||
return sLinkStatus == LinkStatus_SUCCEEDED;
|
||||
}
|
||||
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
sLinkStatus = LinkStatus_FAILED;
|
||||
|
||||
// We retrieve the path of the lgpllibs library as this is where mozavcodec
|
||||
|
|
@ -109,4 +110,20 @@ FFVPXRuntimeLinker::CreateDecoderModule()
|
|||
return FFmpegDecoderModule<FFVPX_VERSION>::Create(&sFFVPXLib);
|
||||
}
|
||||
|
||||
/* static */ void
|
||||
FFVPXRuntimeLinker::GetRDFTFuncs(FFmpegRDFTFuncs* aOutFuncs)
|
||||
{
|
||||
MOZ_ASSERT(sLinkStatus != LinkStatus_INIT);
|
||||
if (sFFVPXLib.av_rdft_init &&
|
||||
sFFVPXLib.av_rdft_calc &&
|
||||
sFFVPXLib.av_rdft_end) {
|
||||
aOutFuncs->init = sFFVPXLib.av_rdft_init;
|
||||
aOutFuncs->calc = sFFVPXLib.av_rdft_calc;
|
||||
aOutFuncs->end = sFFVPXLib.av_rdft_end;
|
||||
} else {
|
||||
NS_WARNING("RDFT functions expected but not found");
|
||||
*aOutFuncs = FFmpegRDFTFuncs(); // zero
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace mozilla
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue