media_player_internal.h
上传用户:kjfoods
上传日期:2020-07-06
资源大小:29949k
文件大小:3k
源码类别:

midi

开发平台:

Unix_Linux

  1. /*****************************************************************************
  2.  * libvlc_internal.h : Definition of opaque structures for libvlc exported API
  3.  * Also contains some internal utility functions
  4.  *****************************************************************************
  5.  * Copyright (C) 2005-2009 the VideoLAN team
  6.  * $Id: 03678f656a4ff47b3867cc34e4664754b3d881f3 $
  7.  *
  8.  * Authors: Clément Stenac <zorglub@videolan.org>
  9.  *
  10.  * This program is free software; you can redistribute it and/or modify
  11.  * it under the terms of the GNU General Public License as published by
  12.  * the Free Software Foundation; either version 2 of the License, or
  13.  * (at your option) any later version.
  14.  *
  15.  * This program is distributed in the hope that it will be useful,
  16.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  18.  * GNU General Public License for more details.
  19.  *
  20.  * You should have received a copy of the GNU General Public License
  21.  * along with this program; if not, write to the Free Software
  22.  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  23.  *****************************************************************************/
  24. #ifndef _LIBVLC_MEDIA_PLAYER_INTERNAL_H
  25. #define _LIBVLC_MEDIA_PLAYER_INTERNAL_H 1
  26. #ifdef HAVE_CONFIG_H
  27. # include "config.h"
  28. #endif
  29. #include <vlc/vlc.h>
  30. #include <vlc/libvlc_structures.h>
  31. #include <vlc/libvlc_media.h>
  32. struct libvlc_media_player_t
  33. {
  34.     int                i_refcount;
  35.     vlc_mutex_t        object_lock;
  36.     input_thread_t *   p_input_thread;
  37.     struct libvlc_instance_t * p_libvlc_instance; /* Parent instance */
  38.     libvlc_media_t * p_md; /* current media descriptor */
  39.     libvlc_event_manager_t * p_event_manager;
  40.     struct
  41.     {
  42.         void *hwnd;
  43.         void *nsobject;
  44.         uint32_t xid;
  45.         uint32_t agl;
  46.     } drawable;
  47.     bool b_own_its_input_thread;
  48. };
  49. /* Media player - audio, video */
  50. input_thread_t *libvlc_get_input_thread(libvlc_media_player_t *, libvlc_exception_t * );
  51. libvlc_media_player_t * libvlc_media_player_new_from_input_thread(
  52.                                                                   struct libvlc_instance_t *p_libvlc_instance,
  53.                                                                   input_thread_t *p_input,
  54.                                                                   libvlc_exception_t *p_e );
  55. libvlc_track_description_t * libvlc_get_track_description(
  56.         libvlc_media_player_t *p_mi,
  57.         const char *psz_variable,
  58.         libvlc_exception_t *p_e );
  59. #endif