Skip to content

Commit

Permalink
Added a function to reset the image size
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammedzakikochargi committed Jan 31, 2024
1 parent 2991073 commit 8f9745d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions base/include/VirtualCameraSink.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class VirtualCameraSink : public Module
bool term();

void getImageSize(int &width, int &height);
void resetImageSize();

protected:
bool process(frame_container &frames);
Expand Down
5 changes: 5 additions & 0 deletions base/src/VirtualCameraSink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,4 +271,9 @@ bool VirtualCameraSink::processEOS(string &pinId)
void VirtualCameraSink::getImageSize(int &width, int &height)
{
mDetail->getImageSize(width, height);
}

void VirtualCameraSink::resetImageSize()
{
mDetail->imageSize = 0;
}

0 comments on commit 8f9745d

Please sign in to comment.