00001 /***************************************************************************** 00002 * mpegdemux * 00003 *****************************************************************************/ 00004 00005 /***************************************************************************** 00006 * File name: mpegdemux.h * 00007 * Created: 2003-02-01 by Hampa Hug <hampa@hampa.ch> * 00008 * Last modified: 2004-04-08 by Hampa Hug <hampa@hampa.ch> * 00009 * Copyright: (C) 2003-2004 Hampa Hug <hampa@hampa.ch> * 00010 *****************************************************************************/ 00011 00012 /***************************************************************************** 00013 * This program is free software. You can redistribute it and / or modify it * 00014 * under the terms of the GNU General Public License version 2 as published * 00015 * by the Free Software Foundation. * 00016 * * 00017 * This program is distributed in the hope that it will be useful, but * 00018 * WITHOUT ANY WARRANTY, without even the implied warranty of * 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General * 00020 * Public License for more details. * 00021 *****************************************************************************/ 00022 00023 /* $Id: mpegdemux.h 78 2004-04-08 18:57:31Z hampa $ */ 00024 00025 // The code has been modified to use file descriptors instead of FILE streams. 00026 // Only functionality needed in MediaTomb remains, all extra features are 00027 // stripped out. 00028 00029 00030 #ifndef MPEGDEMUX_INTERNAL_H 00031 #define MPEGDEMUX_INTERNAL_H 1 00032 00033 00034 #define PAR_STREAM_EXCLUDE 1 00035 00036 #define PAR_MODE_SCAN 0 00037 #define PAR_MODE_LIST 1 00038 #define PAR_MODE_REMUX 2 00039 #define PAR_MODE_DEMUX 3 00040 00041 00042 extern unsigned char par_stream[256]; 00043 extern unsigned char par_substream[256]; 00044 extern unsigned char par_invalid[256]; 00045 extern int par_empty_pack; 00046 extern int par_drop; 00047 extern int par_dvdac3; 00048 00049 char *mpeg_get_name (const char *base, unsigned sid); 00050 int mpeg_stream_excl (unsigned char sid, unsigned char ssid); 00051 int mpeg_packet_check (mpeg_demux_t *mpeg); 00052 int mpeg_copy (mpeg_demux_t *mpeg, int fd, unsigned n); 00053 00054 00055 #endif
1.6.1