Skip to content

Add remote connectivity constructor to ZEDImageSensor #791

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

Merged
merged 3 commits into from
May 7, 2025
Merged

Conversation

ds58
Copy link
Contributor

@ds58 ds58 commented Apr 29, 2025

No description provided.

@ds58 ds58 requested a review from TomaszTB April 29, 2025 19:23
@@ -470,4 +497,10 @@ private String getZEDErrorName(int errorCode)
default -> "UNKNOWN";
};
}

private static int calculateBitrate(int width, int height, int fps)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

returns ~8000 for 1920x1080@30

Copy link
Contributor

@TomaszTB TomaszTB left a comment

Choose a reason for hiding this comment

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

One question/suggestion, but looks good to me

Comment on lines 110 to 111
if (slInputType != SL_INPUT_TYPE_STREAM)
throw new RuntimeException("Invalid SL_INPUT_TYPE for called constructor (must be SL_INPUT_TYPE_STREAM)");
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not just remove the parameter from the constructor?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, good idea. Ive done that

@ds58 ds58 merged commit 7086a31 into develop May 7, 2025
64 of 68 checks passed
@ds58 ds58 deleted the remote-zed branch May 7, 2025 21:39
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.

2 participants