Skip to content

Commit

Permalink
Pipeline: add setImageManipCmxSizeAdjust
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-luxonis committed Sep 8, 2022
1 parent e5b462a commit 591a98b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
10 changes: 10 additions & 0 deletions include/depthai/pipeline/Pipeline.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class PipelineImpl {
Device::Config getDeviceConfig() const;
void setCameraTuningBlobPath(const dai::Path& path);
void setXLinkChunkSize(int sizeBytes);
void setImageManipCmxSizeAdjust(int sizeAdjustBytes);
void setBoardConfig(BoardConfig board);
BoardConfig getBoardConfig() const;

Expand Down Expand Up @@ -265,6 +266,15 @@ class Pipeline {
impl()->setXLinkChunkSize(sizeBytes);
}

/**
* Temporary, for adjusting (+/-) the CMX buffer size allocated to ImageManip nodes.
* Some configurations may require a larger size allocated,
* but too much may cause other nodes allocations to fail.
*/
void setImageManipCmxSizeAdjust(int sizeAdjustBytes) {
impl()->setImageManipCmxSizeAdjust(sizeAdjustBytes);
}

/// Checks whether a given OpenVINO version is compatible with the pipeline
bool isOpenVINOVersionCompatible(OpenVINO::Version version) const {
return impl()->isOpenVINOVersionCompatible(version);
Expand Down
2 changes: 1 addition & 1 deletion shared/depthai-shared
4 changes: 4 additions & 0 deletions src/pipeline/Pipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,10 @@ void PipelineImpl::setXLinkChunkSize(int sizeBytes) {
globalProperties.xlinkChunkSize = sizeBytes;
}

void PipelineImpl::setImageManipCmxSizeAdjust(int sizeAdjustBytes) {
globalProperties.imageManipAdjustCmxSize = sizeAdjustBytes;
}

void PipelineImpl::setBoardConfig(BoardConfig board) {
this->board = board;
}
Expand Down

0 comments on commit 591a98b

Please sign in to comment.