/** call-seq: timestamp_real = bool Set the timestamping mode to realtime. You need to activate timestamping, and you need a timestamp-queue associated with the port to truly activate this. If not, this call is silently ignored. */ static VALUE wrap_snd_seq_port_info_set_timestamp_real(VALUE v_port_info, VALUE v_bool) { snd_seq_port_info_t *port_info; Data_Get_Struct(v_port_info, snd_seq_port_info_t, port_info); snd_seq_port_info_set_timestamp_real(port_info, BOOL2INT(v_bool)); return Qnil; }
/** call-seq: port_specified = bool Set the port-specified mode of a port_info container. This method is not required since setting the port will automatically set it. See RRTS::Driver::AlsaPortInfo_i#port= Parameters: [val] true if specifying the port id at creation. This also seems to be the default. */ static VALUE wrap_snd_seq_port_info_set_port_specified(VALUE v_port_info, VALUE v_bool) { snd_seq_port_info_t *port_info; Data_Get_Struct(v_port_info, snd_seq_port_info_t, port_info); const int b = BOOL2INT(v_bool); // fprintf(stderr, "snd_seq_port_info_set_port_specified(%d)\n", b); snd_seq_port_info_set_port_specified(port_info, b); return Qnil; }
/* * call-seq: * CvSURFParams.new(<i>hessian_threshold[,extended=false,n_octaves=3,n_octave_layers=4]</i>) -> cvsurfparams * * Create a CvSURFParams */ VALUE rb_initialize(int argc, VALUE *argv, VALUE self) { CvSURFParams *self_ptr = CVSURFPARAMS(self); VALUE h_thresh, ext, noct, noctl; rb_scan_args(argc, argv, "13", &h_thresh, &ext, &noct, &noctl); self_ptr->hessianThreshold = NUM2DBL(h_thresh); self_ptr->extended = NIL_P(ext) ? 0 : BOOL2INT(ext); self_ptr->nOctaves = NIL_P(noct) ? 3 : NUM2INT(noct); self_ptr->nOctaveLayers = NIL_P(noctl) ? 4 : NUM2INT(noctl); return self; }
/* * call-seq: * extended = <i>value</i> * Set the type of descripters * false: basic descriptors (64 elements each) * true : exteneded descriptors (128 elements each) */ VALUE rb_set_extended(VALUE self, VALUE value) { CVSURFPARAMS(self)->extended = BOOL2INT(value); return self; }