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

Efficiently handle 3-bytes pixel formats #743

Merged
merged 3 commits into from
Aug 19, 2021

Conversation

ahcorde
Copy link
Contributor

@ahcorde ahcorde commented Aug 16, 2021

Signed-off-by: ahcorde ahcorde@gmail.com

Related to this commit in RVIZ1 rhaschke/rviz@2b31dc4

Signed-off-by: ahcorde <ahcorde@gmail.com>
@ahcorde ahcorde self-assigned this Aug 16, 2021
Copy link
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

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

Minor changes, then I think this will be good for CI.

Comment on lines 272 to 273
for (unsigned int y = 0; y < h; y++) {
for (unsigned int x = 0; x < w; x++) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
for (unsigned int y = 0; y < h; y++) {
for (unsigned int x = 0; x < w; x++) {
for (uint32_t y = 0; y < h; y++) {
for (uint32_t x = 0; x < w; x++) {

(as far as I can tell, these are always uint32_t in https://github.com/OGRECave/ogre/blob/master/OgreMain/include/OgreCommon.h#L789-L791)

(it would also be awesome to use uint32_t for w and h above)

Signed-off-by: ahcorde <ahcorde@gmail.com>
@ahcorde
Copy link
Contributor Author

ahcorde commented Aug 17, 2021

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

Signed-off-by: ahcorde <ahcorde@gmail.com>
@ahcorde
Copy link
Contributor Author

ahcorde commented Aug 17, 2021

  • Windows Build Status

@ahcorde ahcorde merged commit 7226358 into ros2 Aug 19, 2021
@delete-merged-branch delete-merged-branch bot deleted the ahcorde/handle_3byte_pixel_format branch August 19, 2021 17:39
ahcorde added a commit that referenced this pull request Aug 23, 2021
* Efficiently handle 3-bytes pixel formats

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Added feedback

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Fixed windows warnings

Signed-off-by: ahcorde <ahcorde@gmail.com>
ahcorde added a commit that referenced this pull request Aug 23, 2021
* Efficiently handle 3-bytes pixel formats

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Added feedback

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Fixed windows warnings

Signed-off-by: ahcorde <ahcorde@gmail.com>
ahcorde added a commit that referenced this pull request Sep 13, 2021
* Efficiently handle 3-bytes pixel formats

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Added feedback

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Fixed windows warnings

Signed-off-by: ahcorde <ahcorde@gmail.com>
ahcorde added a commit that referenced this pull request Sep 13, 2021
[backport Foxy] Efficiently handle 3-bytes pixel formats (#743)
@ros-discourse
Copy link

This pull request has been mentioned on ROS Discourse. There might be relevant details there:

https://discourse.ros.org/t/ros-2-tsc-meeting-minutes-2021-9-16/22372/1

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.

3 participants