Skip to content

Formats conversion - #11714

Merged
Nir-Az merged 14 commits into
realsenseai:developmentfrom
OhadMeir:formats_conversion
May 11, 2023
Merged

Formats conversion#11714
Nir-Az merged 14 commits into
realsenseai:developmentfrom
OhadMeir:formats_conversion

Conversation

@OhadMeir

@OhadMeir OhadMeir commented Apr 20, 2023

Copy link
Copy Markdown
Contributor

Pull conversion code out of synthetic_sensor.

There was some refactoring of names and other small bits, but the logic remains the same.

IMO, this class needs major refactoring, in next PRs.
There are many code lines that are not related directly to the conversion, but rather fix behavior of other parts of the code. In addition there are assumptions on the call timing to the different functions, and some workarounds when calling functions without all the needed data.

@OhadMeir
OhadMeir marked this pull request as ready for review May 1, 2023 18:53
@OhadMeir
OhadMeir requested a review from Nir-Az May 1, 2023 18:53
Comment thread src/proc/formats-converter.cpp Outdated
Comment thread src/sensor.cpp
Comment thread src/proc/formats-converter.cpp
Comment thread src/proc/formats-converter.cpp
Comment thread src/proc/formats-converter.cpp
Comment thread src/proc/formats-converter.cpp
Comment thread src/proc/formats-converter.cpp
Comment thread src/proc/formats-converter.cpp
Comment thread src/proc/formats-converter.cpp
Comment thread src/proc/formats-converter.cpp
Comment thread src/proc/formats-converter.cpp
Comment thread src/proc/formats-converter.cpp
Comment thread src/proc/formats-converter.h Outdated
Comment thread src/proc/formats-converter.cpp
Comment thread src/proc/formats-converter.cpp Outdated
Comment thread src/sensor.cpp
const auto&& resolved_req = resolve_requests(requests);
_formats_converter.prepare_to_convert( requests );

const auto & resolved_req = _formats_converter.get_active_source_profiles();

@Nir-Az Nir-Az May 8, 2023

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I wonder if we should add a resolve_requests function that calls this 2 new functions.
IMO resolve_request is a well known function in the SDK.
I remember Evgeni always telling me Try debugging the resolve_request function.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

As discussed, no need for this function.

@OhadMeir
OhadMeir force-pushed the formats_conversion branch from f1b3fe9 to e9e33e0 Compare May 11, 2023 08:35

@Nir-Az Nir-Az left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@Nir-Az
Nir-Az merged commit 17b62e5 into realsenseai:development May 11, 2023
@OhadMeir
OhadMeir deleted the formats_conversion branch March 14, 2024 09:52
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.

2 participants