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

« back to all changes in this revision

Viewing changes to avidemux/ADM_mplex/buffer.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
 
 *  buffer.hpp:  Classes for decoder buffer models for mux despatch
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
 
 
23
 
#ifndef __BUFFER_H__
24
 
#define __BUFFER_H__
25
 
 
26
 
#include "aunit.hpp"
27
 
 
28
 
class BufferQueue
29
 
{
30
 
public:
31
 
        unsigned int size       ;       /* als verkettete Liste implementiert   */
32
 
    clockticks DTS      ;
33
 
    BufferQueue *next   ;
34
 
};
35
 
    
36
 
 
37
 
class BufferModel
38
 
{
39
 
public:
40
 
  BufferModel() : max_size(0),first(0) {}
41
 
  void Init( unsigned int size);
42
 
  
43
 
  void Cleaned(  clockticks timenow);
44
 
  clockticks NextChange();
45
 
  void Flushed( );
46
 
  unsigned int Space();
47
 
  void Queued( unsigned int bytes, clockticks removaltime);
48
 
  inline unsigned int Size() { return max_size; }
49
 
private:
50
 
  unsigned int max_size;
51
 
  BufferQueue *first;
52
 
};
53
 
 
54
 
 
55
 
 
56
 
#endif // __BUFFER_H__
57
 
 
58
 
 
59
 
/* 
60
 
 * Local variables:
61
 
 *  c-file-style: "gnu"
62
 
 *  tab-width: 4
63
 
 *  indent-tabs-mode: nil
64
 
 * End:
65
 
 */