| 387 | } |
| 388 | |
| 389 | void 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 | |
| 403 | void VSVideoSource4::OutputAlphaFrame(const FFMS_Frame *Frame, int Plane, VSFrame *Dst, const VSAPI *vsapi) { |
| 404 | const VSVideoFormat *fi = vsapi->getVideoFrameFormat(Dst); |
nothing calls this directly
no outgoing calls
no test coverage detected