00001 /***************************************************************************** 00002 * input_interface.h: Input functions usable outside input code. 00003 ***************************************************************************** 00004 * Copyright (C) 1998-2008 the VideoLAN team 00005 * $Id: 1e2e7c8dab514a497bd4ed0542e37cb22503f142 $ 00006 * 00007 * Authors: Laurent Aimar < fenrir _AT_ videolan _DOT_ org > 00008 * 00009 * This program is free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation; either version 2 of the License, or 00012 * (at your option) any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. 00022 *****************************************************************************/ 00023 00024 #if defined(__PLUGIN__) || defined(__BUILTIN__) || !defined(__LIBVLC__) 00025 # error This header file can only be included from LibVLC. 00026 #endif 00027 00028 #ifndef _INPUT_INTERFACE_H 00029 #define _INPUT_INTERFACE_H 1 00030 00031 #include <vlc_input.h> 00032 #include <libvlc.h> 00033 00034 /********************************************************************** 00035 * Item metadata 00036 **********************************************************************/ 00037 void input_item_SetPreparsed( input_item_t *p_i, bool b_preparsed ); 00038 void input_item_SetArtNotFound( input_item_t *p_i, bool b_not_found ); 00039 void input_item_SetArtFetched( input_item_t *p_i, bool b_art_fetched ); 00040 void input_item_SetEpg( input_item_t *p_item, const vlc_epg_t *p_epg ); 00041 void input_item_SetEpgOffline( input_item_t * ); 00042 00043 int input_Preparse( vlc_object_t *, input_item_t * ); 00044 00045 /* misc/stats.c 00046 * FIXME it should NOT be defined here or not coded in misc/stats.c */ 00047 input_stats_t *stats_NewInputStats( input_thread_t *p_input ); 00048 00049 /** 00050 * This function deletes the current sout in the resources. 00051 */ 00052 void input_resource_TerminateSout( input_resource_t *p_resource ); 00053 00054 /** 00055 * This function return true if there is at least one vout in the resources. 00056 * 00057 * It can only be called on detached resources. 00058 */ 00059 bool input_resource_HasVout( input_resource_t *p_resource ); 00060 00061 /* input.c */ 00062 00063 /* */ 00064 typedef enum 00065 { 00066 INPUT_STATISTIC_DECODED_VIDEO, 00067 INPUT_STATISTIC_DECODED_AUDIO, 00068 INPUT_STATISTIC_DECODED_SUBTITLE, 00069 00070 /* Use them only if you do not goes through a access_out module */ 00071 INPUT_STATISTIC_SENT_PACKET, 00072 INPUT_STATISTIC_SENT_BYTE, 00073 00074 } input_statistic_t; 00075 /** 00076 * It will update internal input statistics from external sources. 00077 * XXX For now, the only one allowed to do it is stream_out and input core. 00078 */ 00079 void input_UpdateStatistic( input_thread_t *, input_statistic_t, int i_delta ); 00080 00081 #endif
1.5.6