| 47 | using PrivateImpl = priv::Image; |
| 48 | |
| 49 | static Image Create(nvcv::Size2D size, nvcv::ImageFormat fmt, int rowAlign = 0) |
| 50 | { |
| 51 | PyObject *oimg = capi().Image_Create(size.w, size.h, static_cast<NVCVImageFormat>(fmt), rowAlign); |
| 52 | CheckCAPIError(); |
| 53 | NVCV_ASSERT(oimg != nullptr); |
| 54 | py::object pyimg = py::reinterpret_steal<py::object>(oimg); |
| 55 | |
| 56 | return Image(pyimg); |
| 57 | } |
| 58 | |
| 59 | private: |
| 60 | friend struct py::detail::type_caster<Image>; |
nothing calls this directly
no test coverage detected