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

« back to all changes in this revision

Viewing changes to avidemux/ADM_inputs/ADM_ogm/ADM_ogmpages.h

  • 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
                          ADM_ompages.h  -  description
 
3
                             -------------------
 
4
 
 
5
                        Low level page handler
 
6
 
 
7
    begin                : Tue Apr 28 2003
 
8
    copyright            : (C) 2003 by mean
 
9
    email                : fixounet@free.fr
 
10
 ***************************************************************************/
 
11
 
 
12
/***************************************************************************
 
13
 *                                                                         *
 
14
 *   This program is free software; you can redistribute it and/or modify  *
 
15
 *   it under the terms of the GNU General Public License as published by  *
 
16
 *   the Free Software Foundation; either version 2 of the License, or     *
 
17
 *   (at your option) any later version.                                   *
 
18
 *                                                                         *
 
19
 ***************************************************************************/
 
20
#ifndef __OPAGES__
 
21
#define __OPAGES__
 
22
class OGMDemuxer
 
23
{
 
24
        protected:
 
25
                        FILE            *_fd;
 
26
                        OG_Header               _page;
 
27
                        uint32_t                _payload;
 
28
                        uint64_t                _hdrpos;
 
29
                        uint64_t                _filesize;
 
30
                        uint8_t                 _lace[255];
 
31
                        uint32_t                _nbLace;
 
32
                        uint32_t                _nbFrag;
 
33
 
 
34
        public:
 
35
 
 
36
                                                OGMDemuxer(void);
 
37
                                                ~OGMDemuxer();
 
38
                        uint8_t         dumpHeaders(uint8_t *ptr,uint32_t *size);
 
39
                        uint8_t                 open(char *file);                       
 
40
                        uint8_t         setPos( uint64_t pos );
 
41
                        uint8_t         readHeader(uint32_t *paySize, uint32_t *flag,uint64_t *frame,
 
42
                                                        uint8_t *id);
 
43
                        uint8_t         readHeaderOfType(uint8_t type,uint32_t *paySize, uint32_t *flag,
 
44
                                                        uint64_t *frame);
 
45
                        uint8_t         readPayload(uint8_t *data);
 
46
                        uint8_t         readBytes(uint32_t size, uint8_t *data);
 
47
                        uint8_t         skipBytes(uint32_t off);
 
48
                        uint64_t                getPos( void );
 
49
                        uint64_t                getFileSize( void );
 
50
                        uint32_t                getLace(uint8_t *lace,uint8_t **laces)
 
51
                                                        {
 
52
                                                                                        *lace=_nbLace;
 
53
                                                                                        *laces=_lace;
 
54
                                                                                        return 1;
 
55
                                                        }
 
56
                        uint32_t                getFrag( void ) { return _nbFrag;}
 
57
};
 
58
#endif
 
59