From 35f1898d7e10ce6fe21b4e5926ebdc857d00ebaf Mon Sep 17 00:00:00 2001 From: Naoto Kondo Date: Sat, 25 Apr 2020 03:32:57 +0900 Subject: [PATCH] Update ndi utilitities --- src/main.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index d1c259c..73d0f0a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -582,7 +582,7 @@ PYBIND11_MODULE(NDIlib, m) { py::arg("sample_rate") = 48000, py::arg("no_channels") = 2, py::arg("no_samples") = 0, py::arg("timecode") = NDIlib_send_timecode_synthesize, - py::arg("reference_level") = 0, py::arg("data") = NULL) + py::arg("reference_level") = 0, py::arg("p_data") = 0) .def_readwrite("sample_rate", &NDIlib_audio_frame_interleaved_16s_t::sample_rate) .def_readwrite("no_channels", @@ -601,7 +601,7 @@ PYBIND11_MODULE(NDIlib, m) { py::arg("sample_rate") = 48000, py::arg("no_channels") = 2, py::arg("no_samples") = 0, py::arg("timecode") = NDIlib_send_timecode_synthesize, - py::arg("reference_level") = 0, py::arg("data") = NULL) + py::arg("reference_level") = 0, py::arg("p_data") = 0) .def_readwrite("sample_rate", &NDIlib_audio_frame_interleaved_32s_t::sample_rate) .def_readwrite("no_channels", @@ -620,7 +620,7 @@ PYBIND11_MODULE(NDIlib, m) { py::arg("sample_rate") = 48000, py::arg("no_channels") = 2, py::arg("no_samples") = 0, py::arg("timecode") = NDIlib_send_timecode_synthesize, - py::arg("data") = NULL) + py::arg("p_data") = 0) .def_readwrite("sample_rate", &NDIlib_audio_frame_interleaved_32f_t::sample_rate) .def_readwrite("no_channels", @@ -667,6 +667,12 @@ PYBIND11_MODULE(NDIlib, m) { &NDIlib_util_audio_from_interleaved_32f_v2, py::arg("src"), py::arg("dst")); + m.def("util_V210_to_P216", &NDIlib_util_V210_to_P216, py::arg("src_v210"), + py::arg("dst_p216")); + + m.def("util_P216_to_V210", &NDIlib_util_P216_to_V210, py::arg("src_p216"), + py::arg("dst_v210")); + // Processing.NDI.deprecated // TODO