-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Drop static from func signature #9379
Conversation
@@ -3430,3 +3431,213 @@ rs2_raw_data_buffer* rs2_terminal_parse_response(rs2_terminal_parser* terminal_p | |||
} | |||
HANDLE_EXCEPTIONS_AND_RETURN(nullptr, terminal_parser, command, response) | |||
|
|||
void rs2_project_point_to_pixel(float pixel[2], const struct rs2_intrinsics* intrin, const float point[3]) BEGIN_API_CALL |
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.
Why here? I suggest you move them to a new rsutil.cpp
.
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.
The implementation for all public APIs is in a single file
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.
If we see fit to separate in a header, we can separate in a different .cpp
remove redundant file
added empty line
Change-Id: Ibfba0dbdba960f3fac5fa1622f3bf3a5fe3a9d23
Change-Id: I1fa8a78f58fcb6c29ffe789e48897e4ef1df8c1b
…and removed from the other references Change-Id: I9b61c3bcdcee06187deb997182b195cb2c60598d
Change-Id: I11ff7a135f1d12d6d7f6964cb3126538c1857b3c
Change-Id: I10cf5ba856fac2dd22154de71f0ac6464d0475bd
@@ -3493,7 +3493,7 @@ void rs2_project_point_to_pixel(float pixel[2], const struct rs2_intrinsics* int | |||
pixel[0] = x * intrin->fx + intrin->ppx; | |||
pixel[1] = y * intrin->fy + intrin->ppy; | |||
} | |||
NOEXCEPT_RETURN(, intrin) | |||
NOEXCEPT_RETURN(, pixel) |
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.
Doesn't this mean only pixel
will get output on error?
NOEXCEPT_RETURN(, to_fov) | ||
|
||
/* Helper inner function (not part of the API) */ | ||
void next_pixel_in_line(float curr[2], const float start[2], const float end[2]) |
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.
These should probably be static
or in an unnamed namespace
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.
I still think we shouldn't have a monolithic rs.cpp, but up to you
Follow up on #9096. Addresses #6055
Tracked on: DSO-17046