Win32: generate crashdumps everytime except if a debugger is present
[vlc/solaris.git] / src / input / decoder.h
blobd47119de59c81bcdbfe681073337fcebdc7ed3fa
1 /*****************************************************************************
2 * decoder.h: Input decoder functions
3 *****************************************************************************
4 * Copyright (C) 1998-2008 the VideoLAN team
5 * Copyright (C) 2008 Laurent Aimar
6 * $Id$
8 * Authors: Laurent Aimar <fenrir@via.ecp.fr>
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.
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.
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 *****************************************************************************/
25 #if defined(__PLUGIN__) || defined(__BUILTIN__) || !defined(__LIBVLC__)
26 # error This header file can only be included from LibVLC.
27 #endif
29 #ifndef _INPUT_DECODER_H
30 #define _INPUT_DECODER_H 1
32 #include <vlc_common.h>
33 #include <vlc_codec.h>
35 #define BLOCK_FLAG_CORE_FLUSH (1 <<BLOCK_FLAG_CORE_PRIVATE_SHIFT)
37 /**
38 * This function changes the pause state.
39 * The date parameter MUST hold the exact date at wich the change has been
40 * done for proper vout/aout pausing.
42 void input_DecoderChangePause( decoder_t *, bool b_paused, mtime_t i_date );
44 /**
45 * This function changes the delay.
47 void input_DecoderChangeDelay( decoder_t *, mtime_t i_delay );
49 /**
50 * This function starts the buffering mode.
52 void input_DecoderStartBuffering( decoder_t * );
54 /**
55 * This function waits for the decoder to have buffered sufficient data.
57 void input_DecoderWaitBuffering( decoder_t * );
59 /**
60 * This function stops the buffering mode.
62 void input_DecoderStopBuffering( decoder_t * );
64 /**
65 * This function returns true if the decoder fifo is empty and false otherwise.
67 bool input_DecoderIsEmpty( decoder_t * );
69 /**
70 * This function activates the request closed caption channel.
72 int input_DecoderSetCcState( decoder_t *, bool b_decode, int i_channel );
74 /**
75 * This function returns an error if the requested channel does not exist and
76 * set pb_decode to the channel status(active or not) otherwise.
78 int input_DecoderGetCcState( decoder_t *, bool *pb_decode, int i_channel );
80 /**
81 * This function set each pb_present entry to true if the corresponding channel
82 * exists or false otherwise.
84 void input_DecoderIsCcPresent( decoder_t *, bool pb_present[4] );
86 /**
87 * This function force the display of the next picture and fills the stream
88 * time consumed.
90 void input_DecoderFrameNext( decoder_t *p_dec, mtime_t *pi_duration );
92 /**
93 * This function will return true if the ES format or meta data have changed since
94 * the last call. In which case, it will do a copy of the current es_format_t if p_fmt
95 * is not NULL and will do a copy of the current description if pp_meta is non NULL.
96 * The es_format_t MUST be freed by es_format_Clean and *pp_meta MUST be freed by
97 * vlc_meta_Delete.
98 * Otherwise it will return false and will not initialize p_fmt and *pp_meta.
100 bool input_DecoderHasFormatChanged( decoder_t *p_dec, es_format_t *p_fmt, vlc_meta_t **pp_meta );
102 #endif