diff --git a/cmake/Depthai/DepthaiDeviceSideConfig.cmake b/cmake/Depthai/DepthaiDeviceSideConfig.cmake index 855146052..393254a63 100644 --- a/cmake/Depthai/DepthaiDeviceSideConfig.cmake +++ b/cmake/Depthai/DepthaiDeviceSideConfig.cmake @@ -2,7 +2,7 @@ set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot") # "full commit hash of device side binary" -set(DEPTHAI_DEVICE_SIDE_COMMIT "30fe0b8eee71a49f5194cd3c056bf50db4e21502") +set(DEPTHAI_DEVICE_SIDE_COMMIT "97329ec22d4ef0bc4961e09c673d2c6a33bdc6d8") # "version if applicable" set(DEPTHAI_DEVICE_SIDE_VERSION "") diff --git a/include/depthai/pipeline/datatype/EncodedFrame.hpp b/include/depthai/pipeline/datatype/EncodedFrame.hpp index 13d5b1058..0244d12ad 100644 --- a/include/depthai/pipeline/datatype/EncodedFrame.hpp +++ b/include/depthai/pipeline/datatype/EncodedFrame.hpp @@ -36,6 +36,15 @@ class EncodedFrame : public Buffer { * Retrieves instance number */ unsigned int getInstanceNum() const; + /** + * Retrieves image width in pixels + */ + unsigned int getWidth() const; + + /** + * Retrieves image height in pixels + */ + unsigned int getHeight() const; /** * Retrieves exposure time */ @@ -111,6 +120,20 @@ class EncodedFrame : public Buffer { */ EncodedFrame& setInstanceNum(unsigned int instance); + /** + * Specifies frame width + * + * @param width frame width + */ + EncodedFrame& setWidth(unsigned int width); + + /** + * Specifies frame height + * + * @param height frame height + */ + EncodedFrame& setHeight(unsigned int height); + /** * Specifies the encoding quality * diff --git a/shared/depthai-shared b/shared/depthai-shared index be6009abc..e8d92d41d 160000 --- a/shared/depthai-shared +++ b/shared/depthai-shared @@ -1 +1 @@ -Subproject commit be6009abc3ea329877fb746532de0b6b4445842e +Subproject commit e8d92d41daa87edc2d44d53e9ccc42f152ac3db1 diff --git a/src/pipeline/datatype/EncodedFrame.cpp b/src/pipeline/datatype/EncodedFrame.cpp index a19d29be4..626ca6ff4 100644 --- a/src/pipeline/datatype/EncodedFrame.cpp +++ b/src/pipeline/datatype/EncodedFrame.cpp @@ -18,6 +18,12 @@ EncodedFrame::EncodedFrame(std::shared_ptr ptr) : Buffer(std::m unsigned int EncodedFrame::getInstanceNum() const { return frame.instanceNum; } +unsigned int EncodedFrame::getWidth() const { + return frame.width; +} +unsigned int EncodedFrame::getHeight() const { + return frame.height; +} std::chrono::microseconds EncodedFrame::getExposureTime() const { return std::chrono::microseconds(frame.cam.exposureTimeUs); } @@ -99,6 +105,14 @@ EncodedFrame& EncodedFrame::setInstanceNum(unsigned int instanceNum) { frame.instanceNum = instanceNum; return *this; } +EncodedFrame& EncodedFrame::setWidth(unsigned int width) { + frame.width = width; + return *this; +} +EncodedFrame& EncodedFrame::setHeight(unsigned int height) { + frame.height = height; + return *this; +} EncodedFrame& EncodedFrame::setQuality(unsigned int quality) { frame.quality = quality; return *this;