opencv / opencv

Open Source Computer Vision Library
https://opencv.org
Apache License 2.0
75.95k stars 55.61k forks source link

HAL mul8x8to16 added #25506

Open savuor opened 2 weeks ago

savuor commented 2 weeks ago

fixes #25034

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

vpisarev commented 2 days ago

Can we replace getMulTab(bool extended) function with getMulFunc(int src1depth, int src2depth, int dstdepth)? We can pass such a function into arithm_op. arithm_op will first try to get direct function for the original src1, src2 and dst depths and if it fails, it will make another try with normalized types (in the latter case the explicit conversion 8u->32f is done for each of the inputs in the case of 8u x 8u -> 32f op).