MCPcopy Create free account
hub / github.com/MegEngine/MegCC / CvtColorReg

Method CvtColorReg

compiler/lib/KernelGen/Arm/ArmCommon/CvtColor.cpp:414–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412 };
413
414 CvtColorReg() {
415 reg_map = {
416 {"RGB2YUV", {gen_rgb_yuv, "rgb2yuv"}},
417 {"YUV2BGR_NV21", {gen_yuv_bgr_nv21, "yuv2bgr_nv21"}},
418 {"RGB2BGR", {gen_rgb_bgr, "rgb2bgr"}}};
419 }
420
421 bool usable(const std::string& mode) { return reg_map.find(mode) != reg_map.end(); }
422 GenFunc get_func(const std::string& mode) { return reg_map[mode].func; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected