forked from IntelRealSense/librealsense
-
Notifications
You must be signed in to change notification settings - Fork 0
/
recorder.m
33 lines (31 loc) · 1.23 KB
/
recorder.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
% Wraps librealsense2 recorder class
classdef recorder < realsense.device
methods
% Constructor
function this = recorder(device, other)
narginchk(2, 2);
validateattributes(device, {'uint64', 'realsense.device'}, 'scalar');
if isa(device, 'realsense.device')
validateattributes(other, {'string', 'char'}, {'scalartext', 'nonempty'});
out = realsense.librealsense_mex('rs2::recorder', 'new#string_device', other, device.objectHandle);
this = this@realsense.device(out{:});
else
this = this@realsense.device(handle, other);
end
end
% Destructor (uses base class destructor)
% Functions
function pause(this)
this.do_init();
realsense.librealsense_mex('rs2::recorder', 'pause', this.objectHandle);
end
function resume(this)
this.do_init();
realsense.librealsense_mex('rs2::recorder', 'resume', this.objectHandle);
end
function fname = filename(this)
this.do_init();
fname = realsense.librealsense_mex('rs2::recorder', 'filename', this.objectHandle);
end
end
end