gstreamer/gstreamer-sharp/ColorBalanceChannel.custom
Sebastian Dröge aa7bb8fa1c Use internal glib-sharp copy everywhere and make it work side-by-side with real glib-sharp
glib-sharp will only get a new release with the new API that we need for
3.0 in a year or something. Instead of waiting a year before we can release
something we now have our own internal copy of glib-sharp trunk that will
be dropped once glib-sharp 3.0 is released.

Everything is now compilable and working without any additional patches.
2009-08-05 16:57:20 +02:00

15 lines
425 B
Plaintext

public ColorBalanceChannel (string label, int min, int max) : this () {
unsafe {
int* raw_ptr = (int*) ( ( (byte*) Handle) + max_value_offset);
*raw_ptr = max;
}
unsafe {
IntPtr* raw_ptr = (IntPtr*) ( ( (byte*) Handle) + label_offset);
*raw_ptr = Gst.GLib.Marshaller.StringToPtrGStrdup (label);
}
unsafe {
int* raw_ptr = (int*) ( ( (byte*) Handle) + min_value_offset);
*raw_ptr = min;
}
}