Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added width and height to EncodedFrame #1085

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Added width and height to EncodedFrame
  • Loading branch information
asahtik committed Nov 14, 2024
commit e17221e21048e0f2e7929e3ffc005ef5176b99c9
15 changes: 13 additions & 2 deletions src/pipeline/datatype/EncodedFrameBindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ void bind_encodedframe(pybind11::module &m, void *pCallstack) {
.def_readwrite("lossless", &RawEncodedFrame::lossless)
.def_readwrite("type", &RawEncodedFrame::type)
.def_readwrite("instanceNum", &RawEncodedFrame::instanceNum)
.def_readwrite("width", &RawEncodedFrame::width)
.def_readwrite("height", &RawEncodedFrame::height)
.def_readwrite("sequenceNum", &RawEncodedFrame::sequenceNum)
.def_property(
"ts",
Expand Down Expand Up @@ -85,10 +87,15 @@ void bind_encodedframe(pybind11::module &m, void *pCallstack) {
py::overload_cast<>(&EncodedFrame::Buffer::getTimestamp, py::const_),
DOC(dai, Buffer, getTimestamp))
.def("getTimestampDevice",
py::overload_cast<>(&EncodedFrame::Buffer::getTimestampDevice, py::const_),
py::overload_cast<>(&EncodedFrame::Buffer::getTimestampDevice,
py::const_),
DOC(dai, Buffer, getTimestampDevice))
.def("getInstanceNum", &EncodedFrame::getInstanceNum,
DOC(dai, EncodedFrame, getInstanceNum))
.def("getWidth", &EncodedFrame::getWidth,
DOC(dai, EncodedFrame, getWidth))
.def("getHeight", &EncodedFrame::getHeight,
DOC(dai, EncodedFrame, getHeight))
.def("getSequenceNum", &EncodedFrame::Buffer::getSequenceNum,
DOC(dai, Buffer, getSequenceNum))
.def("getExposureTime", &EncodedFrame::getExposureTime,
Expand All @@ -99,7 +106,7 @@ void bind_encodedframe(pybind11::module &m, void *pCallstack) {
DOC(dai, EncodedFrame, getColorTemperature))
.def("getLensPosition", &EncodedFrame::getLensPosition,
DOC(dai, EncodedFrame, getLensPosition))
.def("getLensPositionRaw", &EncodedFrame::getLensPositionRaw,
.def("getLensPositionRaw", &EncodedFrame::getLensPositionRaw,
DOC(dai, EncodedFrame, getLensPositionRaw))
.def("getQuality", &EncodedFrame::getQuality,
DOC(dai, EncodedFrame, getQuality))
Expand All @@ -119,6 +126,10 @@ void bind_encodedframe(pybind11::module &m, void *pCallstack) {
DOC(dai, EncodedFrame, setTimestampDevice))
.def("setSequenceNum", &EncodedFrame::setSequenceNum,
DOC(dai, EncodedFrame, setSequenceNum))
.def("setWidth", &EncodedFrame::setWidth,
DOC(dai, EncodedFrame, setWidth))
.def("setHeight", &EncodedFrame::setHeight,
DOC(dai, EncodedFrame, setHeight))
.def("setQuality", &EncodedFrame::setQuality,
DOC(dai, EncodedFrame, getQuality))
.def("setBitrate", &EncodedFrame::setBitrate,
Expand Down