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

« back to all changes in this revision

Viewing changes to avidemux/ADM_videoFilter/ADM_resizebis.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_resizebis.hxx  -  description
 
3
                             -------------------
 
4
    begin                : Sun Mar 24 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
 
 
18
#ifndef __RESIZE_B_SUPPORT
 
19
#define __RESIZE_B_SUPPORT
 
20
 
 
21
typedef struct {
 
22
    double (*f) (double x);
 
23
    double support;
 
24
} ResampleFunc;
 
25
 
 
26
INT *GetResamplingPattern(uint32_t original_width,
 
27
                              uint32_t target_width, ResampleFunc * func);
 
28
 
 
29
INT *GetResamplingPatternFIR4(uint32_t original_width,
 
30
                              uint32_t target_width, ResampleFunc * func);
 
31
                
 
32
static inline uint8_t PixelClip(int16_t in)
 
33
{
 
34
    if (in > 255)
 
35
        in = 255;
 
36
   if(in<0)
 
37
        in=0;
 
38
    return (uint8_t) in;
 
39
};
 
40
                                   
 
41
static inline unsigned char ScaledPixelClip(INT i)
 
42
{
 
43
    return PixelClip(((i +32768) >> 16)); //  + 32768
 
44
};
 
45
 
 
46
static inline unsigned char ScaledPixelClip8(int16_t i)
 
47
{
 
48
    return PixelClip(((i +256) >> 8)); //  + 32768
 
49
};
 
50
 
 
51
                                 
 
52
#endif