-
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
Playback realtime fix #2360
Merged
ev-mp
merged 12 commits into
IntelRealSense:development
from
matkatz:playback_realtime_fix
Sep 17, 2018
Merged
Playback realtime fix #2360
Changes from 11 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
432ae2b
single_consumer_frame_queue added
matkatz a2bf999
use single_consumer_frame_queue
matkatz 87550b3
blocking invoke added to the dispatcher
matkatz 83215d6
non-realtime playback enabled
matkatz 5e6028b
playback - fix pause resume
matkatz 0a9a7a1
playback - fix seek on pause
matkatz 32f7ce7
remove is_realtime from frame interface
matkatz 5670e7d
copy frmae blocking state on frame allocation
matkatz c5b8e21
non realtime playback - fix linuc compilation
matkatz 9f924f9
frame is_blocking state moved to additional_data
matkatz ddbd4f4
add comments to playback's handle_frame method
matkatz 06b1a38
rs-convert - remove pause/resume
matkatz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -111,12 +111,54 @@ namespace librealsense | |
|
||
virtual void mark_fixed() = 0; | ||
virtual bool is_fixed() const = 0; | ||
virtual void set_blocking(bool state) = 0; | ||
virtual bool is_blocking() const = 0; | ||
|
||
virtual void keep() = 0; | ||
|
||
virtual ~frame_interface() = default; | ||
}; | ||
|
||
struct frame_holder | ||
{ | ||
frame_interface* frame; | ||
|
||
frame_interface* operator->() | ||
{ | ||
return frame; | ||
} | ||
|
||
operator bool() const { return frame != nullptr; } | ||
|
||
operator frame_interface*() const { return frame; } | ||
|
||
frame_holder(frame_interface* f) | ||
{ | ||
frame = f; | ||
} | ||
|
||
~frame_holder(); | ||
|
||
frame_holder(frame_holder&& other) | ||
: frame(other.frame) | ||
{ | ||
other.frame = nullptr; | ||
} | ||
|
||
frame_holder() : frame(nullptr) {} | ||
|
||
|
||
frame_holder& operator=(frame_holder&& other); | ||
|
||
frame_holder clone() const; | ||
|
||
bool is_blocking() const { return frame->is_blocking(); }; | ||
|
||
private: | ||
frame_holder& operator=(const frame_holder& other) = delete; | ||
frame_holder(const frame_holder& other); | ||
}; | ||
|
||
using on_frame = std::function<void(frame_interface*)>; | ||
using stream_profiles = std::vector<std::shared_ptr<stream_profile_interface>>; | ||
|
||
|
@@ -221,7 +263,7 @@ namespace librealsense | |
|
||
MAP_EXTENSION(RS2_EXTENSION_DEPTH_STEREO_SENSOR, librealsense::depth_stereo_sensor); | ||
|
||
class depth_stereo_sensor_snapshot : public depth_stereo_sensor, public depth_sensor_snapshot | ||
class depth_stereo_sensor_snapshot : public depth_stereo_sensor, public depth_sensor_snapshot | ||
{ | ||
public: | ||
depth_stereo_sensor_snapshot(float depth_units, float stereo_bl_mm) : | ||
|
@@ -256,4 +298,4 @@ namespace librealsense | |
private: | ||
float m_stereo_baseline_mm; | ||
}; | ||
} | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add empty line |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
can be const