MCPcopy Create free account
hub / github.com/FFMS/ffms2 / OutputFrame

Method OutputFrame

src/vapoursynth/vapoursource4.cpp:389–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

387}
388
389void VSVideoSource4::OutputFrame(const FFMS_Frame *Frame, VSFrame *Dst, const VSAPI *vsapi) {
390 const int RGBPlaneOrder[3] = { 2, 0, 1 };
391 const VSVideoFormat *fi = vsapi->getVideoFrameFormat(Dst);
392 if (fi->colorFamily == cfRGB) {
393 for (int i = 0; i < fi->numPlanes; i++)
394 vsh::bitblt(vsapi->getWritePtr(Dst, i), vsapi->getStride(Dst, i), Frame->Data[RGBPlaneOrder[i]], Frame->Linesize[RGBPlaneOrder[i]],
395 vsapi->getFrameWidth(Dst, i) * fi->bytesPerSample, vsapi->getFrameHeight(Dst, i));
396 } else {
397 for (int i = 0; i < fi->numPlanes; i++)
398 vsh::bitblt(vsapi->getWritePtr(Dst, i), vsapi->getStride(Dst, i), Frame->Data[i], Frame->Linesize[i],
399 vsapi->getFrameWidth(Dst, i) * fi->bytesPerSample, vsapi->getFrameHeight(Dst, i));
400 }
401}
402
403void VSVideoSource4::OutputAlphaFrame(const FFMS_Frame *Frame, int Plane, VSFrame *Dst, const VSAPI *vsapi) {
404 const VSVideoFormat *fi = vsapi->getVideoFrameFormat(Dst);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected