static VALUE segment_done_initialize(VALUE self, VALUE src, VALUE format, VALUE position) { G_INITIALIZE(self, gst_message_new_segment_done(RVAL2GST_OBJ(src), RVAL2GST_FORMAT(format), NUM2LL(position))); return Qnil; }
static VALUE duration_initialize(VALUE self, VALUE src, VALUE format, VALUE duration) { G_INITIALIZE(self, gst_message_new_duration(RVAL2GST_OBJ(src), RVAL2GST_FORMAT(format), NUM2LL(duration))); return Qnil; }
static VALUE position_initialize(VALUE self, VALUE format) { GstQuery *query; query = gst_query_new_position(RVAL2GST_FORMAT(format)); G_INITIALIZE(self, query); return Qnil; }
static VALUE convert_parse(VALUE self) { GstFormat src_format, dest_format; gint64 src_value, dest_value; gst_query_parse_convert(RVAL2GST_QUERY(self), &src_format, &src_value, &dest_format, &dest_value); return rb_ary_new3(4, GST_FORMAT2RVAL(src_format), LL2NUM(src_value), RVAL2GST_FORMAT(dest_format), LL2NUM(dest_value)); }
static VALUE buffersize_initialize(VALUE self, VALUE format, VALUE minsize, VALUE maxsize, VALUE async) { GstEvent *event; event = gst_event_new_buffer_size(RVAL2GST_FORMAT(format), NUM2LL(minsize), NUM2LL(maxsize), RVAL2CBOOL(async)); G_INITIALIZE(self, event); return Qnil; }
static VALUE seek_initialize(VALUE self, VALUE rate, VALUE format, VALUE flags, VALUE start_type, VALUE start, VALUE stop_type, VALUE stop) { GstEvent *event; event = gst_event_new_seek(NUM2DBL(rate), RVAL2GST_FORMAT(format), RVAL2GFLAGS(flags, GST_TYPE_SEEK_FLAGS), RVAL2GENUM(start_type, GST_TYPE_SEEK_TYPE), NUM2ULL(start), RVAL2GENUM(stop_type, GST_TYPE_SEEK_TYPE), NUM2ULL(stop)); G_INITIALIZE(self, event); return Qnil; }
static VALUE newsegment_initialize(VALUE self, VALUE update, VALUE rate, VALUE applied_rate, VALUE format, VALUE start, VALUE stop, VALUE position) { GstEvent *event; event = gst_event_new_new_segment_full(RVAL2CBOOL(update), NUM2DBL(rate), NUM2DBL(applied_rate), RVAL2GST_FORMAT(format), NUM2LL(start), NUM2LL(stop), NUM2LL(position)); G_INITIALIZE(self, event); return Qnil; }