3
MediaTomb - http://www.mediatomb.cc/
5
mpegremux_processor.h - this file is part of MediaTomb.
7
Copyright (C) 2005 Gena Batyan <bgeradz@mediatomb.cc>,
8
Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>
10
Copyright (C) 2006-2009 Gena Batyan <bgeradz@mediatomb.cc>,
11
Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>,
12
Leonhard Wimmer <leo@mediatomb.cc>
14
MediaTomb is free software; you can redistribute it and/or modify
15
it under the terms of the GNU General Public License version 2
16
as published by the Free Software Foundation.
18
MediaTomb is distributed in the hope that it will be useful,
19
but WITHOUT ANY WARRANTY; without even the implied warranty of
20
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
GNU General Public License for more details.
23
You should have received a copy of the GNU General Public License
24
version 2 along with MediaTomb; if not, write to the Free Software
25
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
27
$Id: mpegremux_processor.h 2010 2009-01-11 19:10:43Z lww $
30
/// \file mpegremux_processor.h
32
#ifndef __MPEGREMUX_PROCESSOR_H__
33
#define __MPEGREMUX_PROCESSOR_H__
35
#define IOHC_NORMAL_SHUTDOWN 1
36
#define IOHC_FORCED_SHUTDOWN 2
37
#define IOHC_READ_ERROR 3
38
#define IOHC_WRITE_ERROR 4
39
#define IOHC_EXCEPTION 5
42
#include "thread_executor.h"
44
/// \brief gets a reader and writer fd, where input is assumed to be an
45
/// an MPEG PS stream, strips out unwanted streams and writes the remuxed
46
/// result to the output fd. Uses blocking read/write operations.
48
class MPEGRemuxProcessor : public ThreadExecutor
51
MPEGRemuxProcessor(int in_fd, int out_fd, unsigned char keep_audio_id);
52
virtual int getStatus() { return status; }
54
virtual void threadProc();
59
unsigned char keep_audio_id;
62
#endif // __MPEGREMUX_PROCESSOR_H__