Beispiel #1
0
void rs_enable_stream(rs_device * device, rs_stream stream, int width, int height, rs_format format, int framerate, rs_error ** error) try
{
    VALIDATE_NOT_NULL(device);
    VALIDATE_NATIVE_STREAM(stream);
    VALIDATE_RANGE(width, 0, INT_MAX);
    VALIDATE_RANGE(height, 0, INT_MAX);
    VALIDATE_ENUM(format);
    VALIDATE_RANGE(framerate, 0, INT_MAX);
    device->enable_stream(stream, width, height, format, framerate);
}
Beispiel #2
0
 //Stream type and format
 void enable_stream(rs2_stream stream_type, int stream_index, rs2_format format, int framerate = 0)
 {
     enable_stream(stream_type, stream_index, 0, 0, format, framerate);
 }
Beispiel #3
0
 //Stream type and resolution, and possibly format and frame rate
 void enable_stream(rs2_stream stream_type, int width, int height, rs2_format format = RS2_FORMAT_ANY, int framerate = 0)
 {
     enable_stream(stream_type, -1, width, height, format, framerate);
 }
Beispiel #4
0
 //Stream type and format
 void enable_stream(rs2_stream stream_type, rs2_format format, int framerate = 0)
 {
     enable_stream(stream_type, -1, 0, 0, format, framerate);
 }
Beispiel #5
0
 //Stream type and possibly also stream index
 void enable_stream(rs2_stream stream_type, int stream_index = -1)
 {
     enable_stream(stream_type, stream_index, 0, 0, RS2_FORMAT_ANY, 0);
 }