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);
     }
 }
Exemplo n.º 3
0
 public static extern void libvlc_video_set_adjust_int(IntPtr p_mi, libvlc_video_adjust_option_t option, int value);
Exemplo n.º 4
0
 public static extern int libvlc_video_get_adjust_int(IntPtr p_mi, libvlc_video_adjust_option_t option);
Exemplo n.º 5
0
 public static extern void libvlc_video_set_adjust_float(IntPtr p_mi, libvlc_video_adjust_option_t option, float value);
Exemplo n.º 6
0
 public static extern float libvlc_video_get_adjust_float(IntPtr p_mi, libvlc_video_adjust_option_t option);