| 62 | } |
| 63 | |
| 64 | ImageBatchVarShape VarShapeRotateInto(ImageBatchVarShape &output, ImageBatchVarShape &input, Tensor &angleDeg, |
| 65 | Tensor &shift, NVCVInterpolationType interpolation, std::optional<Stream> pstream) |
| 66 | { |
| 67 | if (!pstream) |
| 68 | { |
| 69 | pstream = Stream::Current(); |
| 70 | } |
| 71 | |
| 72 | auto rotate = CreateOperator<cvcuda::Rotate>(input.capacity()); |
| 73 | |
| 74 | ResourceGuard guard(*pstream); |
| 75 | guard.add(LockMode::LOCK_MODE_READ, {input, angleDeg, shift}); |
| 76 | guard.add(LockMode::LOCK_MODE_WRITE, {output}); |
| 77 | guard.add(LockMode::LOCK_MODE_READWRITE, {*rotate}); |
| 78 | |
| 79 | rotate->submit(pstream->cudaHandle(), input, output, angleDeg, shift, interpolation); |
| 80 | |
| 81 | return output; |
| 82 | } |
| 83 | |
| 84 | ImageBatchVarShape VarShapeRotate(ImageBatchVarShape &input, Tensor &angleDeg, Tensor &shift, |
| 85 | NVCVInterpolationType interpolation, std::optional<Stream> pstream) |
no test coverage detected