media_player_internal.h 2.35 KB
Newer Older
1
/*****************************************************************************
Pere Orga's avatar
Pere Orga committed
2
 * media_player_internal.h : Definition of opaque structures for libvlc exported API
3 4
 * Also contains some internal utility functions
 *****************************************************************************
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
5
 * Copyright (C) 2005-2009 VLC authors and VideoLAN
6 7 8 9
 * $Id$
 *
 * Authors: Clément Stenac <zorglub@videolan.org>
 *
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
10 11 12
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2.1 of the License, or
13 14 15 16
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
17 18
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
19
 *
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
20 21 22
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23 24 25 26 27 28 29 30 31 32 33
 *****************************************************************************/

#ifndef _LIBVLC_MEDIA_PLAYER_INTERNAL_H
#define _LIBVLC_MEDIA_PLAYER_INTERNAL_H 1

#ifdef HAVE_CONFIG_H
# include "config.h"
#endif

#include <vlc/vlc.h>
#include <vlc/libvlc_media.h>
34
#include <vlc_input.h>
35
#include <vlc_viewpoint.h>
36

Mark Lee's avatar
Mark Lee committed
37 38
#include "../modules/audio_filter/equalizer_presets.h"

39 40
struct libvlc_media_player_t
{
41 42
    VLC_COMMON_MEMBERS

43 44
    int                i_refcount;
    vlc_mutex_t        object_lock;
45 46 47 48 49 50 51 52

    struct
    {
        input_thread_t   *p_thread;
        input_resource_t *p_resource;
        vlc_mutex_t       lock;
    } input;

53 54
    struct libvlc_instance_t * p_libvlc_instance; /* Parent instance */
    libvlc_media_t * p_md; /* current media descriptor */
55
    libvlc_event_manager_t event_manager;
56
    libvlc_state_t state;
57
    vlc_viewpoint_t viewpoint;
58
    int selected_es[3];
59 60 61
};

/* Media player - audio, video */
62
input_thread_t *libvlc_get_input_thread(libvlc_media_player_t * );
63 64 65 66


libvlc_track_description_t * libvlc_get_track_description(
        libvlc_media_player_t *p_mi,
67
        const char *psz_variable );
68

Mark Lee's avatar
Mark Lee committed
69 70 71 72 73 74 75 76 77
/**
 * Internal equalizer structure.
 */
struct libvlc_equalizer_t
{
    float f_preamp;
    float f_amp[EQZ_BANDS_MAX];
};

78
#endif