~ubuntu-branches/debian/sid/mjpegtools/sid

« back to all changes in this revision

Viewing changes to mplex/padstrm.hpp

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2012-09-02 16:29:46 UTC
  • Revision ID: package-import@ubuntu.com-20120902162946-i1zpl8cjngq9hd6w
Tags: upstream-2.0.0+debian
ImportĀ upstreamĀ versionĀ 2.0.0+debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/*
 
3
 *  padstrm.hpp:  Padding stream pseudo input-streamsin
 
4
 *
 
5
 *  Copyright (C) 2001 Andrew Stevens <andrew.stevens@philips.com>
 
6
 *
 
7
 *
 
8
 *  This program is free software; you can redistribute it and/or
 
9
 *  modify it under the terms of version 2 of the GNU General Public License
 
10
 *  as published by the Free Software Foundation.
 
11
 *
 
12
 *  This program is distributed in the hope that it will be useful,
 
13
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 *  GNU General Public License for more details.
 
16
 *
 
17
 *  You should have received a copy of the GNU General Public License
 
18
 *  along with this program; if not, write to the Free Software
 
19
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
20
 */
 
21
 
 
22
#ifndef __PADSTRM_H__
 
23
#define __PADSTRM_H__
 
24
 
 
25
#include "inputstrm.hpp"
 
26
 
 
27
 
 
28
class PaddingStream : public MuxStream
 
29
{
 
30
public:
 
31
        PaddingStream()
 
32
                {
 
33
                        MuxStream::Init( PADDING_STR, 0, 0,  0, false,false );
 
34
                }
 
35
 
 
36
        unsigned int ReadPacketPayload(uint8_t *dst, unsigned int to_read);
 
37
};
 
38
 
 
39
class VCDAPadStream : public MuxStream
 
40
{
 
41
public:
 
42
        VCDAPadStream()
 
43
                {
 
44
                        Init( PADDING_STR, 0, 0, 20, false, false );
 
45
 
 
46
                }
 
47
 
 
48
        unsigned int ReadPacketPayload(uint8_t *dst, unsigned int to_read);
 
49
};
 
50
 
 
51
class DVDPriv2Stream : public MuxStream
 
52
{
 
53
public:
 
54
        DVDPriv2Stream()
 
55
                {
 
56
                        Init( PRIVATE_STR_2, 0, 0, 0, false, false );
 
57
 
 
58
                }
 
59
 
 
60
        unsigned int ReadPacketPayload(uint8_t *dst, unsigned int to_read);
 
61
};
 
62
 
 
63
 
 
64
#endif // __PADSTRM_H__
 
65
 
 
66
 
 
67
/* 
 
68
 * Local variables:
 
69
 *  c-file-style: "stroustrup"
 
70
 *  tab-width: 4
 
71
 *  indent-tabs-mode: nil
 
72
 * End:
 
73
 */