MCPcopy Create free account
hub / github.com/PRiME-project/PRiMEStereoMatch / imageChannelOrderToString

Function imageChannelOrderToString

DE_APP/src/common.cpp:501–534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

499//}
500
501string imageChannelOrderToString(cl_channel_order channelOrder)
502{
503 switch (channelOrder)
504 {
505 case CL_R:
506 return "CL_R";
507 case CL_A:
508 return "CL_A";
509 case CL_RG:
510 return "CL_RG";
511 case CL_RA:
512 return "CL_RA";
513 case CL_RGB:
514 return "CL_RGB";
515 case CL_RGBA:
516 return "CL_RGBA";
517 case CL_BGRA:
518 return "CL_BGRA";
519 case CL_ARGB:
520 return "CL_ARGB";
521 case CL_INTENSITY:
522 return "CL_INTENSITY";
523 case CL_LUMINANCE:
524 return "CL_LUMINANCE";
525 case CL_Rx:
526 return "CL_Rx";
527 case CL_RGx:
528 return "CL_RGx";
529 case CL_RGBx:
530 return "CL_RGBx";
531 default:
532 return "Unknown image channel order";
533 }
534}
535
536string imageChannelDataTypeToString(cl_channel_type channelDataType)
537{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected