| 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; } |
nothing calls this directly
no outgoing calls
no test coverage detected