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

« back to all changes in this revision

Viewing changes to avidemux/ADM_videoFilter/ADM_vidConvolution.hxx

  • 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_vidConvolution.hxx  -  description
 
3
                             -------------------
 
4
    begin                : Wed Apr 10 2002
 
5
    copyright            : (C) 2002 by mean
 
6
    email                : fixounet@free.fr
 
7
 ***************************************************************************/
 
8
 
 
9
/***************************************************************************
 
10
 *                                                                         *
 
11
 *   This program is free software; you can redistribute it and/or modify  *
 
12
 *   it under the terms of the GNU General Public License as published by  *
 
13
 *   the Free Software Foundation; either version 2 of the License, or     *
 
14
 *   (at your option) any later version.                                   *
 
15
 *                                                                         *
 
16
 ***************************************************************************/
 
17
 #ifndef __CONVPARAM__
 
18
 #define __CONVPARAM__
 
19
 typedef struct CONV_PARAM
 
20
 {
 
21
        uint32_t luma;
 
22
        uint32_t chroma;
 
23
  }CONV_PARAM;
 
24
 #endif
 
25
 
 
26
//---------------------------------------------------------
 
27
 class  AVDMFastVideoConvolution:public AVDMGenericVideoStream
 
28
 {
 
29
 
 
30
 protected:
 
31
 
 
32
        virtual uint8_t doLine(uint8_t *pred, uint8_t *cur, uint8_t *next, uint8_t *out, uint32_t w)
 
33
                      { UNUSED_ARG(pred); UNUSED_ARG(cur); UNUSED_ARG(next); UNUSED_ARG(out); UNUSED_ARG(w); return 0;}
 
34
        
 
35
                CONV_PARAM      *_param;
 
36
 public:
 
37
#warning FIXME: string constants cannot be used as char
 
38
                      virtual char     *printConf(void) { return const_cast<char*>("ERROR");};
 
39
 
 
40
                                         AVDMFastVideoConvolution(  AVDMGenericVideoStream *in,CONFcouple *setup);
 
41
                      virtual           ~AVDMFastVideoConvolution();
 
42
                      virtual uint8_t   getFrameNumberNoAlloc(uint32_t frame, uint32_t *len,
 
43
                                                      ADMImage *data,uint32_t *flags);
 
44
                      virtual uint8_t   configure( AVDMGenericVideoStream *instream) ;
 
45
 
 
46
                      virtual uint8_t   getCoupledConf( CONFcouple **couples);
 
47
}     ;
 
48
 
 
49
 class    AVDMFastVideoMean: public AVDMFastVideoConvolution
 
50
 {
 
51
        protected:
 
52
            virtual uint8_t doLine(uint8_t  *pred,
 
53
                                  uint8_t *cur,
 
54
                                  uint8_t *next,
 
55
                                  uint8_t *out,
 
56
                                  uint32_t w)   ;
 
57
 
 
58
        public:
 
59
 
 
60
                              AVDMFastVideoMean(  AVDMGenericVideoStream *in,CONFcouple *setup) :
 
61
                              AVDMFastVideoConvolution(  in,setup) {};
 
62
              virtual char      *printConf(void);
 
63
 
 
64
        }      ;
 
65
 
 
66
 
 
67
   class    AVDMFastVideoGauss: public AVDMFastVideoConvolution
 
68
 {
 
69
    protected:
 
70
              virtual uint8_t           doLine(uint8_t  *pred,
 
71
                                              uint8_t *cur,
 
72
                                              uint8_t *next,
 
73
                                              uint8_t *out,
 
74
                                              uint32_t w)   ;
 
75
  
 
76
                public:
 
77
 
 
78
                                    AVDMFastVideoGauss(  AVDMGenericVideoStream *in,CONFcouple *setup) :
 
79
                                    AVDMFastVideoConvolution(  in,setup) {};
 
80
                    virtual char        *printConf(void);
 
81
 
 
82
        }      ;
 
83
     class    AVDMFastVideoSharpen: public AVDMFastVideoConvolution
 
84
 {
 
85
        protected:
 
86
            virtual uint8_t             doLine(uint8_t  *pred,
 
87
                                                uint8_t *cur,
 
88
                                                uint8_t *next,
 
89
                                                uint8_t *out,
 
90
                                                uint32_t w)   ;
 
91
 
 
92
          public:
 
93
 
 
94
                                      AVDMFastVideoSharpen(  AVDMGenericVideoStream *in,CONFcouple *setup) :
 
95
                                      AVDMFastVideoConvolution(  in,setup) {};
 
96
                              virtual char              *printConf(void);       
 
97
                      
 
98
  }      ;
 
99
 
 
100
  class    AVDMFastVideoMedian: public AVDMFastVideoConvolution
 
101
 {
 
102
        protected:
 
103
          virtual uint8_t       doLine(uint8_t  *pred,
 
104
                                        uint8_t *cur,
 
105
                                        uint8_t *next,
 
106
                                        uint8_t *out,
 
107
                                        uint32_t w)   ;
 
108
 
 
109
        public:
 
110
 
 
111
                                AVDMFastVideoMedian(  AVDMGenericVideoStream *in,CONFcouple *setup) :
 
112
                                AVDMFastVideoConvolution(  in,setup) {};
 
113
                  virtual char  *printConf(void);
 
114
 }      ;
 
115
 
 
116
//EOF
 
117