MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / GoodStorageForFrame

Function GoodStorageForFrame

Telegram/SourceFiles/ffmpeg/ffmpeg_utility.cpp:729–735  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

727}
728
729bool GoodStorageForFrame(const QImage &storage, QSize size) {
730 return !storage.isNull()
731 && (storage.format() == kImageFormat)
732 && (storage.size() == size)
733 && storage.isDetached()
734 && IsAlignedImage(storage);
735}
736
737// Create a QImage of desired size where all the data is properly aligned.
738QImage CreateFrameStorage(QSize size) {

Callers 5

renderFrameMethod · 0.85
ConvertFrameFunction · 0.85
PrepareByRequestFunction · 0.85
renderCurrentMethod · 0.85
UnPremultiplyFunction · 0.85

Calls 4

IsAlignedImageFunction · 0.85
isNullMethod · 0.45
formatMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected