MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / rotate

Function rotate

dnn/src/armv7/rotate/opr_impl.cpp:252–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252void rotate(const Mat<uchar>& src, Mat<uchar>& dst, bool clockwise) {
253 megdnn_assert(src.rows() == dst.cols());
254 megdnn_assert(src.cols() == dst.rows());
255 megdnn_assert(src.channels() == dst.channels());
256 megdnn_assert(src.channels() == 1_z);
257 if (clockwise) {
258 rotate_8uc1_clockwise(
259 src.ptr(), dst.ptr(), src.rows(), src.cols(), src.step(), dst.step());
260 } else {
261 rotate_8uc1_counterclockwise(
262 src.ptr(), dst.ptr(), src.rows(), src.cols(), src.step(), dst.step());
263 }
264}
265
266} // namespace megcv
267

Callers 1

execMethod · 0.70

Calls 7

rotate_8uc1_clockwiseFunction · 0.70
rowsMethod · 0.45
colsMethod · 0.45
channelsMethod · 0.45
ptrMethod · 0.45
stepMethod · 0.45

Tested by

no test coverage detected