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

« back to all changes in this revision

Viewing changes to avidemux/ADM_codecs/ADM_png.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:
3
3
                             -------------------
4
4
    copyright            : (C) 2005 by mean
5
5
    email                : fixounet@free.fr
6
 
 ***************************************************************************/
7
 
 
8
6
 
 
7
 ***************************************************************************/
 
8
 
 
9
 
9
10
/***************************************************************************
10
11
 *                                                                         *
11
12
 *   This program is free software; you can redistribute it and/or modify  *
16
17
#ifndef PNG_H_A
17
18
#define PNG_H_A
18
19
#ifdef USE_PNG
19
 
 
 
 
b'typedef struct memAccess '
20
 
{
21
 
  
 
 
b'int size;'
22
 
   
 
 
b'int cur;'
23
 
   
 
 
b'uint8_t * data;'
24
 
 
 
 
b'} memAccess;'
25
 
 
 
 
b'class decoderPng:public decoders '
26
 
{
27
 
 
 
 
b'protected:'
 
 
b'memAccess io;'
28
 
  
 
 
b'ADM_colorspace colorspace;'
29
 
  
 
 
b'void *png_ptr;'
30
 
  
 
 
b'void *info_ptr;'
31
 
  
 
 
b'void *end_info;'
32
 
  
 
 
b'uint8_t ** rows;'
33
 
  
 
 
b'uint8_t * decoded;'
34
 
  
 
 
b'void Init (void);'
35
 
  
 
 
b'void Cleanup (void);'
36
 
  
 
 
b'void recalc (void);'
37
 
 
 
 
b'public:'
 
 
b'decoderPng (uint32_t w, uint32_t h);'
38
 
  
 
 
b'virtual ~ decoderPng ();'
39
 
  
 
 
b'virtual uint8_t uncompress (uint8_t * in, ADMImage * out, uint32_t len,'
40
 
                               uint32_t * flag = NULL);
41
 
  
 
 
b'uint8_t dontcopy (void)'
42
 
  {
43
 
    return 1;
44
 
  }
45
 
 
 
 
b'};'
46
 
 
47
 
#endif /* 
48
20
*/
49
 
#endif /* 
50
21
*/
 
22
 
 
23
typedef struct memAccess 
 
24
{
 
25
  
 
26
int size;
 
27
   
 
28
int cur;
 
29
   
 
30
uint8_t * data;
 
31
 
 
32
 
 
33
} memAccess;
 
34
 
 
35
 
 
36
class decoderPng:public decoders 
 
37
{
 
38
 
 
39
protected:
 
40
memAccess io;
 
41
  
 
42
ADM_colorspace colorspace;
 
43
  
 
44
void *png_ptr;
 
45
  
 
46
void *info_ptr;
 
47
  
 
48
void *end_info;
 
49
  
 
50
 
 
51
uint8_t ** rows;
 
52
  
 
53
uint8_t * decoded;
 
54
  
 
55
void Init (void);
 
56
  
 
57
void Cleanup (void);
 
58
  
 
59
void recalc (void);
 
60
 
 
61
public:
 
62
decoderPng (uint32_t w, uint32_t h);
 
63
  
 
64
virtual ~ decoderPng ();
 
65
  
 
66
virtual uint8_t uncompress(ADMCompressedImage * in, ADMImage * out);
 
67
  
 
68
uint8_t dontcopy (void)
 
69
  {
 
70
    return 1;
 
71
  }
 
72
 
 
73
 
 
74
 
 
75
};
 
76
 
 
77
#endif /* 
 
78
 */
 
79
#endif /* 
 
80
 */