~ubuntu-branches/ubuntu/oneiric/avidemux/oneiric-proposed

« back to all changes in this revision

Viewing changes to plugins/ADM_videoFilters/Ass/ADM_libass/ass_utils.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2009-08-20 08:42:44 UTC
  • mfrom: (1.1.14 upstream)
  • Revision ID: james.westby@ubuntu.com-20090820084244-bhh15xxd7x2vbcuh
Tags: 1:2.5.1+repack-0ubuntu1
* New upstream bugfix release (LP: #416066):
  - Re-enabled several video and audio encoders (regression introduced
    in 2.5.0)
  - Updated the FFmpeg libraries
  - More video encoders are now plugins
  - DV video encoder now supports more profiles
  - Fixed loading and saving issues with LAME, x264 and Xvid options
    (regression introduced in 2.5.0)
  - Fraps video decoding support
  - Lowpass-5 mode added to libavcodec deinterlacer filter plugin
  - Fixed formatting of parameters for various filters on 64-bit platforms
  - Updated libass
  - Fixed sizing of the bitrate control on various video encoder configure
    windows (regression introduced in 2.5.0)
  - Improved filter dialog for GTK+ interface
  - New navigation icons for GTK+ interface
  - Fixed the behaviour of several GTK+ open/save dialogs (regression
    introduced in 2.5.0)
  - asharp filter's Block Adaptive mode can now be disabled using the Qt
    interface
  - Re-enabled the colour chooser dialog using the Qt interface (regression
    introduced in 2.5.0)
  - GCC 4.4 support
  - Fixed issues with CMake build scripts when using multiple make jobs
    (regression introduced in 2.5.0)
* Remove debian/patches dir and drop all patches, now applied by upstream.
* Drop quilt support.
* debian/libavidemux0.install: Also install missing libraries.
* Move debian/install to debian/avidemux.install.
* debian/rules:
  - Build the internal ffmpeg version properly (thanks to Christian Marillat).
  - A bit of cleanup.
* debian/control:
  - Bump Standards-Version.
  - Update Homepage field.
  - Adjust libavidemux0 short description.
  - gtk -> GTK, qt -> QT.
  - Set myself as Maintainer.
* Repack the tarball to remove the debian/ dir provided by upstream:
  - Create debian/README.source.
  - Update debian/watch.
  - Add get-orig-source target to debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// -*- c-basic-offset: 8; indent-tabs-mode: t -*-
2
 
// vim:ts=8:sw=8:noet:ai:
3
 
/*
4
 
  Copyright (C) 2006 Evgeniy Stepanov <eugeni.stepanov@gmail.com>
5
 
 
6
 
  This program is free software; you can redistribute it and/or modify
7
 
  it under the terms of the GNU General Public License as published by
8
 
  the Free Software Foundation; either version 2 of the License, or
9
 
  (at your option) any later version.
10
 
 
11
 
  This program is distributed in the hope that it will be useful,
12
 
  but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 
  GNU General Public License for more details.
15
 
 
16
 
  You should have received a copy of the GNU General Public License
17
 
  along with this program; if not, write to the Free Software
18
 
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19
 
*/
20
 
 
21
 
#ifndef ASS_UTILS_H
22
 
#define ASS_UTILS_H
23
 
 
24
 
int mystrtoi(char** p, int base, int* res);
25
 
int mystrtou32(char** p, int base, uint32_t* res);
26
 
int mystrtod(char** p, double* res);
27
 
int strtocolor(char** q, uint32_t* res);
28
 
 
29
 
static inline int d6_to_int(int x) {
30
 
        return (x + 32) >> 6;
31
 
}
32
 
static inline int d16_to_int(int x) {
33
 
        return (x + 32768) >> 16;
34
 
}
35
 
static inline int int_to_d6(int x) {
36
 
        return x << 6;
37
 
}
38
 
static inline int int_to_d16(int x) {
39
 
        return x << 16;
40
 
}
41
 
static inline int d16_to_d6(int x) {
42
 
        return (x + 512) >> 10;
43
 
}
44
 
static inline int d6_to_d16(int x) {
45
 
        return x << 10;
46
 
}
47
 
static inline double d6_to_double(int x) {
48
 
        return x / 64.;
49
 
}
50
 
static inline int double_to_d6(double x) {
51
 
        return (int)(x * 64);
52
 
}
53
 
static inline double d16_to_double(int x) {
54
 
        return ((double)x) / 0x10000;
55
 
}
56
 
static inline int double_to_d16(double x) {
57
 
        return (int)(x * 0x10000);
58
 
}
59
 
 
60
 
#endif
61