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

Implement SDL 0179 - Pixel Density and Scale #1420

Merged
merged 116 commits into from Oct 9, 2019

Conversation

NicoleYarroch
Copy link
Contributor

@NicoleYarroch NicoleYarroch commented Sep 30, 2019

Fixes #1007

This PR is ready for review.

Risk

This PR makes minor API changes.

Testing Plan

Unit tests added for:

  • SDLStreamingVideoLifecycleManagerSpec
  • SDLVideoStreamingCapabilitySpec
  • SDLTouchManagerSpec
  • SDLHapticManagerSpec

Summary

  • New parameters, diagonalScreenSize, pixelPerInch, and scale, were added to SDLVideoStreamingCapability.
  • The SDLH264VideoEncoder's dimensions are now scaled in the SDLStreamingVideoLifecycleManager.
  • The view controller frame in SDLCarWindow is now set to the scaled video resolution sent by core in the videoStreamingCapability.
  • The SDLTouchManager now scales the touch event coordinates returned by core.
  • The SDLFocusableItemLocator now scales the haptic data sent to core.

Contributors

Based on PR #1401
Contributors: @lnafarrateluxoft, @yLeonid

CLA

lnafarrateluxoft and others added 30 commits July 23, 2019 14:53
…nges in the view controller's size to the accepted video resolution divided by the scale.
#1360 (comment)
#1360 (comment)
update CarWindow and TouchManager to use scale from StreamingVideoLifecycleManager in init
#1360 (comment)
#1360 (comment)
#1360 (comment)
update private property of tested class in test to meet its declaration
NicoleYarroch and others added 20 commits October 4, 2019 08:55
Co-Authored-By: Joel Fischer <joeljfischer@gmail.com>
Co-Authored-By: Joel Fischer <joeljfischer@gmail.com>
Co-Authored-By: Joel Fischer <joeljfischer@gmail.com>
…agerSpec.m

Co-Authored-By: Joel Fischer <joeljfischer@gmail.com>
Co-Authored-By: Joel Fischer <joeljfischer@gmail.com>
…agerSpec.m

Co-Authored-By: Joel Fischer <joeljfischer@gmail.com>
…agerSpec.m

Co-Authored-By: Joel Fischer <joeljfischer@gmail.com>
Changed FocusableItemLocator’s init from streamManager to videoScaleManager
SmartDeviceLink-iOS.podspec Show resolved Hide resolved
SmartDeviceLink/SDLTouchManager.h Outdated Show resolved Hide resolved
SmartDeviceLink/SDLStreamingVideoScaleManager.m Outdated Show resolved Hide resolved
SmartDeviceLinkTests/SDLStreamingVideoScaleManagerSpec.m Outdated Show resolved Hide resolved
v6.4 automation moved this from Review in progress to Reviewer approved Oct 9, 2019
@joeljfischer joeljfischer merged commit e968885 into develop Oct 9, 2019
v6.4 automation moved this from Reviewer approved to Done Oct 9, 2019
@joeljfischer joeljfischer deleted the feature/issue_1007_pixel_density_and_scale branch October 9, 2019 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal Accepted SDL Evolution Proposal
Projects
No open projects
v6.4
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants