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

« back to all changes in this revision

Viewing changes to plugins/ADM_videoFilters/Ass/ADM_libAss/ass_bitmap.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
/*
 
2
 * Copyright (C) 2006 Evgeniy Stepanov <eugeni.stepanov@gmail.com>
 
3
 *
 
4
 * This file is part of libass.
 
5
 *
 
6
 * libass 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
 * libass 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 along
 
17
 * with libass; if not, write to the Free Software Foundation, Inc.,
 
18
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
19
 */
 
20
 
 
21
#ifndef LIBASS_BITMAP_H
 
22
#define LIBASS_BITMAP_H
 
23
 
 
24
#include <ft2build.h>
 
25
#include FT_GLYPH_H
 
26
 
 
27
#include "ass.h"
 
28
 
 
29
typedef struct ass_synth_priv ass_synth_priv_t;
 
30
 
 
31
ass_synth_priv_t *ass_synth_init(double);
 
32
void ass_synth_done(ass_synth_priv_t *priv);
 
33
 
 
34
typedef struct {
 
35
    int left, top;
 
36
    int w, h;                   // width, height
 
37
    unsigned char *buffer;      // w x h buffer
 
38
} bitmap_t;
 
39
 
 
40
/**
 
41
 * \brief perform glyph rendering
 
42
 * \param glyph original glyph
 
43
 * \param outline_glyph "border" glyph, produced from original by FreeType's glyph stroker
 
44
 * \param bm_g out: pointer to the bitmap of original glyph is returned here
 
45
 * \param bm_o out: pointer to the bitmap of outline (border) glyph is returned here
 
46
 * \param bm_g out: pointer to the bitmap of glyph shadow is returned here
 
47
 * \param be 1 = produces blurred bitmaps, 0 = normal bitmaps
 
48
 */
 
49
int glyph_to_bitmap(ass_library_t *library, ass_synth_priv_t *priv_blur,
 
50
                    FT_Glyph glyph, FT_Glyph outline_glyph,
 
51
                    bitmap_t **bm_g, bitmap_t **bm_o, bitmap_t **bm_s,
 
52
                    int be, double blur_radius, FT_Vector shadow_offset);
 
53
 
 
54
void ass_free_bitmap(bitmap_t *bm);
 
55
 
 
56
#endif                          /* LIBASS_BITMAP_H */