private T GetVideoAdjustType <T>(libvlc_video_adjust_option_t adjustType) { if (typeof(int) == typeof(T)) { return((T)(object)LibVlcMethods.libvlc_video_get_adjust_int(m_hMediaPlayer, adjustType)); } else { return((T)(object)LibVlcMethods.libvlc_video_get_adjust_float(m_hMediaPlayer, adjustType)); } }
private void SetVideoAdjustType <T>(libvlc_video_adjust_option_t adjustType, T value) { if (typeof(int) == typeof(T)) { LibVlcMethods.libvlc_video_set_adjust_int(m_hMediaPlayer, adjustType, (int)(object)value); } else { LibVlcMethods.libvlc_video_set_adjust_float(m_hMediaPlayer, adjustType, (float)(object)value); } }
public static extern void libvlc_video_set_adjust_int(IntPtr p_mi, libvlc_video_adjust_option_t option, int value);
public static extern int libvlc_video_get_adjust_int(IntPtr p_mi, libvlc_video_adjust_option_t option);
public static extern void libvlc_video_set_adjust_float(IntPtr p_mi, libvlc_video_adjust_option_t option, float value);
public static extern float libvlc_video_get_adjust_float(IntPtr p_mi, libvlc_video_adjust_option_t option);