gstreamer/gstreamer-sharp/ColorBalanceChannel.custom

15 lines
421 B
Text
Raw Normal View History

2009-05-08 15:24:26 +00:00
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 = GLib.Marshaller.StringToPtrGStrdup (label);
}
unsafe {
int* raw_ptr = (int*) ( ( (byte*) Handle) + min_value_offset);
*raw_ptr = min;
}
2009-05-08 15:24:26 +00:00
}