/usr/include/xine/demux.h is in libxine-dev 1.1.21-2ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 | /*
* Copyright (C) 2000-2003 the xine project
*
* This file is part of xine, a free video player.
*
* xine is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* xine is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*/
#ifndef HAVE_DEMUX_H
#define HAVE_DEMUX_H
#ifdef XINE_COMPILE
# include "input/input_plugin.h"
# include "buffer.h"
# include "xine_internal.h"
#else
# include <xine/input_plugin.h>
# include <xine/buffer.h>
# include <xine/xine_internal.h>
#endif
#define DEMUXER_PLUGIN_IFACE_VERSION 26
#define DEMUX_OK 0
#define DEMUX_FINISHED 1
#define DEMUX_CANNOT_HANDLE 0
#define DEMUX_CAN_HANDLE 1
#define METHOD_BY_CONTENT 1
#define METHOD_BY_EXTENSION 2
#define METHOD_EXPLICIT 3
typedef struct demux_class_s demux_class_t ;
typedef struct demux_plugin_s demux_plugin_t;
struct demux_class_s {
/*
* open a new instance of this plugin class
*/
demux_plugin_t* (*open_plugin) (demux_class_t *this, xine_stream_t *stream, input_plugin_t *input);
/*
* return human readable (verbose = 1 line) description for this plugin
*/
const char* (*get_description) (demux_class_t *this);
/*
* return human readable identifier for this plugin
*/
const char* (*get_identifier) (demux_class_t *this);
/*
* return MIME types supported for this plugin
*/
const char* (*get_mimetypes) (demux_class_t *this);
/*
* return ' ' seperated list of file extensions this
* demuxer is likely to handle
* (will be used to filter media files in
* file selection dialogs)
*/
const char* (*get_extensions) (demux_class_t *this);
/*
* close down, free all resources
*/
void (*dispose) (demux_class_t *this);
};
/*
* any demux plugin must implement these functions
*/
struct demux_plugin_s {
/*
* send headers, followed by BUF_CONTROL_HEADERS_DONE down the
* fifos, then return. do not start demux thread (yet)
*/
void (*send_headers) (demux_plugin_t *this);
/*
* ask demux to seek
*
* for seekable streams, a start position can be specified
*
* start_pos : position in input source (0..65535)
* this is defined as most convenient to demuxer, can be
* either time or offset based.
* start_time : position measured in miliseconds from stream start
* playing : true if this is a new seek within an already playing stream
* false if playback of this stream has not started yet
*
* if both parameters are !=0 start_pos will be used
* for non-seekable streams both values will be ignored
*
* returns the demux status (like get_status, but immediately after
* starting the demuxer)
*/
int (*seek) (demux_plugin_t *this,
off_t start_pos, int start_time, int playing );
/*
* send a chunk of data down to decoder fifos
*
* the meaning of "chunk" is specific to every demux, usually
* it involves parsing one unit of data from stream.
*
* this function will be called from demux loop and should return
* the demux current status
*/
int (*send_chunk) (demux_plugin_t *this);
/*
* free resources
*/
void (*dispose) (demux_plugin_t *this) ;
/*
* returns DEMUX_OK or DEMUX_FINISHED
*/
int (*get_status) (demux_plugin_t *this) ;
/*
* gets stream length in miliseconds (might be estimated)
* may return 0 for non-seekable streams
*/
int (*get_stream_length) (demux_plugin_t *this);
/*
* return capabilities of demuxed stream
*/
uint32_t (*get_capabilities) (demux_plugin_t *this);
/*
* request optional data from input plugin.
*/
int (*get_optional_data) (demux_plugin_t *this, void *data, int data_type);
/*
* "backwards" link to plugin class
*/
demux_class_t *demux_class;
void *node; /* used by plugin loader */
} ;
/*
* possible capabilites a demux plugin can have:
*/
#define DEMUX_CAP_NOCAP 0x00000000
/*
* DEMUX_CAP_AUDIOLANG:
* DEMUX_CAP_SPULANG:
* demux plugin knows something about audio/spu languages,
* e.g. knows that audio stream #0 is english,
* audio stream #1 is german, ... Same bits as INPUT
* capabilities .
*/
#define DEMUX_CAP_AUDIOLANG 0x00000008
#define DEMUX_CAP_SPULANG 0x00000010
/*
* DEMUX_CAP_CHAPTERS:
* The media streams provided by this plugin have an internal
* structure dividing it into segments usable for navigation.
* For those plugins, the behaviour of the skip button in UIs
* should be changed from "next MRL" to "next chapter" by
* sending XINE_EVENT_INPUT_NEXT.
* Same bits as INPUT capabilities.
*/
#define DEMUX_CAP_CHAPTERS 0x00000080
#define DEMUX_OPTIONAL_UNSUPPORTED 0
#define DEMUX_OPTIONAL_SUCCESS 1
#define DEMUX_OPTIONAL_DATA_AUDIOLANG 2
#define DEMUX_OPTIONAL_DATA_SPULANG 3
#endif
|