-
Notifications
You must be signed in to change notification settings - Fork 212
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
Conversation
Signed-off-by: ahcorde <ahcorde@gmail.com>
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.
Minor changes, then I think this will be good for CI.
for (unsigned int y = 0; y < h; y++) { | ||
for (unsigned int x = 0; x < w; x++) { |
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.
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>
Signed-off-by: ahcorde <ahcorde@gmail.com>
* 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>
* 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>
[backport Foxy] Efficiently handle 3-bytes pixel formats (#743)
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 |
Signed-off-by: ahcorde ahcorde@gmail.com
Related to this commit in RVIZ1 rhaschke/rviz@2b31dc4