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

« back to all changes in this revision

Viewing changes to avidemux/oplug_ogm/op_ogsave.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
 
// C++ Interface: op_ogsave
3
 
//
4
 
// Description: 
5
 
//
6
 
//
7
 
// Author: mean <fixounet@free.fr>, (C) 2004
8
 
//
9
 
// Copyright: See COPYING file that comes with this distribution
10
 
//
11
 
//
12
 
#ifndef OP_OGSAVE
13
 
#define OP_OGSAVE
14
 
 
15
 
#include "ADM_dialog/DIA_encoding.h"
16
 
#include "oplug_ogm/op_ogpage.h"
17
 
#include "ADM_encoder/adm_encoder.h"
18
 
// Some little / big endian stuff
19
 
extern void memcpyswap(uint8_t *dest, uint8_t *src, uint32_t size);
20
 
#ifdef ADM_BIG_ENDIAN   
21
 
         #define MEMCPY(a,b,c) memcpyswap((uint8_t *)a, (uint8_t *)b,c)
22
 
#else
23
 
        #define MEMCPY memcpy
24
 
#endif  
25
 
//
26
 
class ADM_ogmWrite
27
 
{
28
 
        protected:
29
 
                        char                    *TwoPassLogFile;        
30
 
        
31
 
                        uint32_t                _audioTarget,_audioCurrent;
32
 
                        
33
 
                        
34
 
                        uint32_t                _togo;
35
 
                        uint64_t                _packet;                        
36
 
                        FILE                    *_fd;
37
 
                        uint32_t                _fps1000;
38
 
                        uint8_t                 *_audioBuffer;
39
 
                        uint8_t                 *_videoBuffer;
40
 
                        DIA_encoding            *encoding_gui;
41
 
                        ogm_page                *videoStream;
42
 
                        ogm_page                *audioStream;
43
 
                        
44
 
                                uint8_t         initAudio(void);
45
 
                                uint8_t         writeAudio(uint32_t j);
46
 
                                uint8_t         endAudio( void);
47
 
                                uint32_t        putAC3( uint32_t j );
48
 
                                uint32_t        putMP3( uint32_t j );
49
 
                                
50
 
                                AVDMGenericAudioStream  *audioFilter;
51
 
                                
52
 
                        virtual uint8_t         initVideo(const char *name);
53
 
                        virtual uint8_t         writeVideo(uint32_t frame);
54
 
                                        
55
 
        public:
56
 
                                        ADM_ogmWrite(void);                             
57
 
                                        ~ADM_ogmWrite(void);
58
 
                        uint8_t         save(const char *name);
59
 
};
60
 
 
61
 
class ADM_ogmWriteCopy : public ADM_ogmWrite
62
 
{
63
 
protected:
64
 
                        
65
 
                        virtual uint8_t         initVideo(const char *name);                    
66
 
                        virtual uint8_t         writeVideo(uint32_t frame);
67
 
                        uint32_t                searchForward(uint32_t startframe);
68
 
                        uint32_t                _lastIPFrameSent;       
69
 
public:
70
 
                                                ADM_ogmWriteCopy(void);
71
 
                                                ~ADM_ogmWriteCopy(void);
72
 
};
73
 
 
74
 
class ADM_ogmWriteProcess : public ADM_ogmWrite
75
 
{
76
 
protected:
77
 
                        AVDMGenericVideoStream  *_incoming;
78
 
                        Encoder                 *_encode;
79
 
                        virtual uint8_t initVideo(const char *name);                    
80
 
                        virtual uint8_t writeVideo(uint32_t frame);     
81
 
public:
82
 
                        ADM_ogmWriteProcess(void);
83
 
                        ~ADM_ogmWriteProcess(void);
84
 
 
85
 
 
86
 
};
87
 
 
88
 
 
89
 
#endif