-
Notifications
You must be signed in to change notification settings - Fork 131
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
Implement SDL 0323: Align video streaming parameters with VideoStreamingCapability #1576
Implement SDL 0323: Align video streaming parameters with VideoStreamingCapability #1576
Conversation
Codecov Report
@@ Coverage Diff @@
## integration/stable_frame_rate #1576 +/- ##
===================================================================
- Coverage 56.22% 53.88% -2.35%
+ Complexity 5034 5017 -17
===================================================================
Files 516 534 +18
Lines 22386 23263 +877
Branches 2797 2875 +78
===================================================================
- Hits 12587 12535 -52
- Misses 8846 9687 +841
- Partials 953 1041 +88
|
Hello @shiniwat, |
Hi @RHenigan, |
Hello @shiniwat have these changed been tested with both RAW and RTP formats? |
Also removed some debug noise.
…VideoStreamingParameter#update.
base/src/main/java/com/smartdevicelink/streaming/video/VideoStreamingParameters.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @shiniwat, I noticed that there are changes included that impact the rpc_spec, these changes should not be included in this PR and should be reverted.
These changes seem to be included already as part of this PR https://github.com/smartdevicelink/rpc_spec/pull/229/files
… into feature/issue-1569
Hi @RHenigan, sorry for the inconvenience. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @shiniwat, thank you for resolving the merge conflicts, I added a few more comments.
In regards to the rpc_spec changes, that commit should still be reverted for this PR.
android/sdl_android/src/main/java/com/smartdevicelink/encoder/VirtualDisplayEncoder.java
Show resolved
Hide resolved
base/src/main/java/com/smartdevicelink/streaming/video/VideoStreamingParameters.java
Show resolved
Hide resolved
Hello @shiniwat, can you please revert the rpc_spec changes? |
…elink/rpc_spec#229." This reverts commit 19e10a2.
Hi @RHenigan, I have reverted the rpc_spec submodule as you requested. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @shiniwat, per the proposal the update(VideoStreamingCapability capability, String vehicleMake)
method in VideoStreamingParameters should be updated to take the lower value for bitrate and preferredFPS
public void update(VideoStreamingCapability capability, String vehicleMake) {
...
if (capability.getMaxBitrate() != null) {
this.bitrate = Math.min(this.bitrate, capability.getMaxBitrate() * 1000);
} // NOTE: the unit of maxBitrate in getSystemCapability is kbps.
...
if (capability.getPreferredFPS() != null) {
this.frameRate = Math.min(this.frameRate, capability.getPreferredFPS());
}
...
}
Hi @RHenigan, thanks for pointing that out. That code path was anyhow overlooked, and fixed now. |
Fixes #1569
This PR is ready for review.
Risk
This PR makes no API changes.
Testing Plan
Unit Tests
This PR does not include additional Unit Tests.
Core Tests
Based on SDL 0274 enabled Core and HMI, verified that video streaming works correctly.
Core version / branch / commit hash / module tested against: Core feature/issue-3243 branch; commit #3934b0d8804fc658ccca96f5ce558b9987255f4e.
HMI name / version / branch / commit hash / module tested against: Xevo custom HMI
Summary
Implement SDL 0323: Align vide streaming parameters with VideoStreamingCapability
Changelog
Breaking Changes
Enhancements
Bug Fixes
Tasks Remaining:
None
CLA