~ubuntu-branches/ubuntu/hardy/avidemux/hardy

« back to all changes in this revision

Viewing changes to avidemux/ADM_libraries/ADM_mplex/stillsstream.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Matvey Kozhev
  • Date: 2007-12-18 13:53:04 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20071218135304-cdqec2lg2bglyz15
Tags: 1:2.4~preview3-0.0ubuntu1
* Upload to Ubuntu. (LP: #163287, LP: #126572)
* debian/changelog: re-added Ubuntu releases.
* debian/control:
  - Require debhelper >= 5.0.51 (for dh_icons) and imagemagick.
  - Build-depend on libsdl1.2-dev instead of libsdl-dev.
  - Build against newer libx264-dev. (LP: #138854)
  - Removed libamrnb-dev, not in Ubuntu yet.
* debian/rules:
  - Install all icon sizes, using convert (upstream installs none).
  - Added missing calls to dh_installmenu, dh_installman, dh_icons and
    dh_desktop.
* debian/menu, debian/avidemux-qt.menu:
  - Corrected package and executable names.
* debian/avidemux-common.install: Install icons.
* debian/avidemux.common.manpages: Install man/avidemux.1.
* debian/links, debian/avidemux-cli.links, debian/avidemux-gtk.links:
  - Link manpages to avidemux.1.gz.
* debian/install, debian/avidemux-qt.install, debian/avidemux-gtk.desktop,
  debian/avidemux-qt.desktop: Install desktop files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/*
 
3
 *  stillsstreams.c: Class for elemenary still video streams
 
4
 *                   Most functionality is inherited from VideoStream
 
5
 *
 
6
 *  Copyright (C) 2001 Andrew Stevens <andrew.stevens@philips.com>
 
7
 *
 
8
 *
 
9
 *  This program is free software; you can redistribute it and/or
 
10
 *  modify it under the terms of version 2 of the GNU General Public License
 
11
 *  as published by the Free Software Foundation.
 
12
 *
 
13
 *  This program is distributed in the hope that it will be useful,
 
14
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
 *  GNU General Public License for more details.
 
17
 *
 
18
 *  You should have received a copy of the GNU General Public License
 
19
 *  along with this program; if not, write to the Free Software
 
20
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
21
 */
 
22
 
 
23
 
 
24
#include "videostrm.hpp"
 
25
 
 
26
//
 
27
// Class for video stills sequence for (S)VCD non-mixed stills segment 
 
28
// item
 
29
//
 
30
 
 
31
class StillsStream : public VideoStream
 
32
{
 
33
public:
 
34
        StillsStream( IBitStream &ibs, 
 
35
                  StillsParams *parms,
 
36
                  Multiplexor &into) :
 
37
                VideoStream( ibs, parms, into ),
 
38
                current_PTS(0),
 
39
                current_DTS(0)
 
40
                {}
 
41
        void Init( );
 
42
private:
 
43
        virtual void NextDTSPTS( );
 
44
        clockticks current_PTS;
 
45
        clockticks current_DTS;
 
46
};
 
47
 
 
48
//
 
49
// Class for video stills sequence for VCD mixed stills Segment item.
 
50
// 
 
51
 
 
52
class VCDStillsStream : public StillsStream
 
53
{
 
54
public:
 
55
        VCDStillsStream( IBitStream &ibs,
 
56
                     StillsParams *vparms,
 
57
                     Multiplexor &into ) :
 
58
                StillsStream( ibs, vparms, into ),
 
59
                sibling( 0 ),
 
60
        stream_mismatch_warned( false )
 
61
                {}
 
62
        
 
63
        void SetSibling( VCDStillsStream * );
 
64
        virtual bool MuxPossible(clockticks currentSCR);
 
65
private:
 
66
        bool LastSectorLastAU();
 
67
        VCDStillsStream *sibling;
 
68
    bool stream_mismatch_warned;
 
69
        
 
70
};
 
71
        
 
72
 
 
73
 
 
74
 
 
75
/* 
 
76
 * Local variables:
 
77
 *  c-file-style: "stroustrup"
 
78
 *  tab-width: 4
 
79
 *  indent-tabs-mode: nil
 
80
 * End:
 
81
 */