MCPcopy Create free account
hub / github.com/Aleksoid1978/VideoRenderer / GetCopyPlaneFunction

Function GetCopyPlaneFunction

Source/Helper.cpp:377–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375}
376
377CopyFrameDataFn GetCopyPlaneFunction(const FmtConvParams_t& params, const int vp)
378{
379 switch (params.cformat) {
380 case CF_V210:
381 return CopyFrameV210;
382 case CF_YV12:
383 if (vp == VP_DXVA2) {
384 return CopyFrameYV12;
385 }
386 break;
387 case CF_YUV420P10:
388 case CF_YUV422P10:
389 case CF_YUV444P10:
390 case CF_GBRP10:
391 case CF_Y10:
392 return CopyPlane10to16;
393 case CF_RGB24:
394 if (CPUInfo::HaveSSSE3()) {
395 return CopyFrameRGB24_SSSE3;
396 } else {
397 return CopyFrameRGB24;
398 }
399 case CF_r210:
400 return CopyFrameR210;
401 case CF_RGB48:
402 return CopyFrameRGB48;
403 case CF_BGR48:
404 return CopyFrameBGR48;
405 case CF_BGRA64:
406 return CopyFrameBGRA64;
407 case CF_B64A:
408 return CopyFrameB64A;
409 }
410
411 return CopyPlaneAsIs;
412}
413
414void CopyPlaneAsIs(const UINT lines, BYTE* dst, UINT dst_pitch, const BYTE* src, int src_pitch)
415{

Callers 4

InitializeD3D11VPMethod · 0.85
InitializeTexVPMethod · 0.85
InitializeDXVA2VPMethod · 0.85
InitializeTexVPMethod · 0.85

Calls 1

HaveSSSE3Function · 0.85

Tested by

no test coverage detected