static VALUE convert_initialize(VALUE self, VALUE src_format, VALUE value, VALUE dest_format) { GstQuery *query; query = gst_query_new_convert(GST_FORMAT2RVAL(src_format), NUM2LL(value), GST_FORMAT2RVAL(dest_format)); G_INITIALIZE(self, query); return Qnil; }
ConvertQueryPtr ConvertQuery::create(Format sourceFormat, qint64 value, Format destinationFormat) { return ConvertQueryPtr::wrap(gst_query_new_convert(static_cast<GstFormat>(sourceFormat), value, static_cast<GstFormat>(destinationFormat)), false); }