Update ndi utilitities
This commit is contained in:
12
src/main.cpp
12
src/main.cpp
@@ -582,7 +582,7 @@ PYBIND11_MODULE(NDIlib, m) {
|
|||||||
py::arg("sample_rate") = 48000, py::arg("no_channels") = 2,
|
py::arg("sample_rate") = 48000, py::arg("no_channels") = 2,
|
||||||
py::arg("no_samples") = 0,
|
py::arg("no_samples") = 0,
|
||||||
py::arg("timecode") = NDIlib_send_timecode_synthesize,
|
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",
|
.def_readwrite("sample_rate",
|
||||||
&NDIlib_audio_frame_interleaved_16s_t::sample_rate)
|
&NDIlib_audio_frame_interleaved_16s_t::sample_rate)
|
||||||
.def_readwrite("no_channels",
|
.def_readwrite("no_channels",
|
||||||
@@ -601,7 +601,7 @@ PYBIND11_MODULE(NDIlib, m) {
|
|||||||
py::arg("sample_rate") = 48000, py::arg("no_channels") = 2,
|
py::arg("sample_rate") = 48000, py::arg("no_channels") = 2,
|
||||||
py::arg("no_samples") = 0,
|
py::arg("no_samples") = 0,
|
||||||
py::arg("timecode") = NDIlib_send_timecode_synthesize,
|
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",
|
.def_readwrite("sample_rate",
|
||||||
&NDIlib_audio_frame_interleaved_32s_t::sample_rate)
|
&NDIlib_audio_frame_interleaved_32s_t::sample_rate)
|
||||||
.def_readwrite("no_channels",
|
.def_readwrite("no_channels",
|
||||||
@@ -620,7 +620,7 @@ PYBIND11_MODULE(NDIlib, m) {
|
|||||||
py::arg("sample_rate") = 48000, py::arg("no_channels") = 2,
|
py::arg("sample_rate") = 48000, py::arg("no_channels") = 2,
|
||||||
py::arg("no_samples") = 0,
|
py::arg("no_samples") = 0,
|
||||||
py::arg("timecode") = NDIlib_send_timecode_synthesize,
|
py::arg("timecode") = NDIlib_send_timecode_synthesize,
|
||||||
py::arg("data") = NULL)
|
py::arg("p_data") = 0)
|
||||||
.def_readwrite("sample_rate",
|
.def_readwrite("sample_rate",
|
||||||
&NDIlib_audio_frame_interleaved_32f_t::sample_rate)
|
&NDIlib_audio_frame_interleaved_32f_t::sample_rate)
|
||||||
.def_readwrite("no_channels",
|
.def_readwrite("no_channels",
|
||||||
@@ -667,6 +667,12 @@ PYBIND11_MODULE(NDIlib, m) {
|
|||||||
&NDIlib_util_audio_from_interleaved_32f_v2, py::arg("src"),
|
&NDIlib_util_audio_from_interleaved_32f_v2, py::arg("src"),
|
||||||
py::arg("dst"));
|
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
|
// Processing.NDI.deprecated
|
||||||
// TODO
|
// TODO
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user