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 a function to reset the image size #330

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mohammedzakikochargi
Copy link
Collaborator

IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).

Description

Added a function to reset the image size of the virtual cam device, so that processSos() hits in the next step to change the resolution of the virtual device.

Alternative(s) considered

Have you considered any alternatives? And if so, why have you chosen the approach in this PR?

Type

Type Choose one: (Feature)

Screenshots (if applicable)

Checklist

  • I have read the Contribution Guidelines
  • I have written Unit Tests
  • I have discussed my proposed solution with code owners in the linked issue(s) and we have agreed upon the general approach

Copy link

github-actions bot commented Jan 31, 2024

Test Results Linux

  1 files  ±0    1 suites  ±0   10m 22s ⏱️ -1s
303 tests ±0  230 ✅ ±0  73 💤 ±0  0 ❌ ±0 
230 runs  ±0  157 ✅ ±0  73 💤 ±0  0 ❌ ±0 

Results for commit 65c291a. ± Comparison against base commit 2991073.

♻️ This comment has been updated with latest results.

Copy link

Test Results Linux-CudaT

  1 files  ±0    1 suites  ±0   10m 24s ⏱️ ±0s
404 tests ±0  237 ✅ ±0  167 💤 ±0  0 ❌ ±0 
237 runs  ±0   70 ✅ ±0  167 💤 ±0  0 ❌ ±0 

Results for commit 8f9745d. ± Comparison against base commit 2991073.

Copy link

Test Results Win-nocuda

  1 files  ±0    1 suites  ±0   10m 30s ⏱️ -12s
299 tests ±0  230 ✅ ±0  69 💤 ±0  0 ❌ ±0 
230 runs  ±0  161 ✅ ±0  69 💤 ±0  0 ❌ ±0 

Results for commit 65c291a. ± Comparison against base commit 2991073.

Copy link
Collaborator

@joiskash joiskash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update submodule, everything else looks fine.

buf.type = V4L2_BUF_TYPE_VIDEO_OUTPUT;
if (ioctl(dev_fd, VIDIOC_DQBUF, &buf) == -1)
{
throw AIPException(AIP_FATAL, "cannot dqbuf video device<" + props.device);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
throw AIPException(AIP_FATAL, "cannot dqbuf video device<" + props.device);
throw AIPException(AIP_FATAL, "Cannot dqbuf video device<" + props.device);

}
if (close(dev_fd) == -1)
{
throw AIPException(AIP_FATAL, "cannot close video device<" + props.device);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
throw AIPException(AIP_FATAL, "cannot close video device<" + props.device);
throw AIPException(AIP_FATAL, "Cannot close video device<" + props.device);

// Query buffer state
if (ioctl(dev_fd, VIDIOC_QUERYBUF, &buf) == -1)
{
throw AIPException(AIP_FATAL, "cannot setup video device<" + props.device + ">");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
throw AIPException(AIP_FATAL, "cannot setup video device<" + props.device + ">");
throw AIPException(AIP_FATAL, "Cannot setup video device<" + props.device + ">");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants