~ubuntu-branches/ubuntu/trusty/compiz/trusty

« back to all changes in this revision

Viewing changes to plugins/imgpng/src/imgpng.h

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release
  • Date: 2013-08-22 06:58:07 UTC
  • mto: This revision was merged to the branch mainline in revision 3352.
  • Revision ID: package-import@ubuntu.com-20130822065807-17nlzez0d30y09so
Tags: upstream-0.9.10+13.10.20130822
ImportĀ upstreamĀ versionĀ 0.9.10+13.10.20130822

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
    public PluginClassHandler<PngScreen, CompScreen>
42
42
{
43
43
    public:
 
44
 
44
45
        PngScreen (CompScreen *screen);
45
46
        ~PngScreen ();
46
47
 
47
 
        bool fileToImage (CompString &path, CompSize &size,
48
 
                          int &stride, void *&data);
49
 
        bool imageToFile (CompString &path, CompString &format,
50
 
                          CompSize &size, int stride, void *data);
 
48
        bool fileToImage (CompString &path,
 
49
                          CompSize   &size,
 
50
                          int        &stride,
 
51
                          void       *&data);
 
52
 
 
53
        bool imageToFile (CompString &path,
 
54
                          CompString &format,
 
55
                          CompSize   &size,
 
56
                          int        stride,
 
57
                          void       *data);
51
58
 
52
59
    private:
 
60
 
53
61
        CompString fileNameWithExtension (CompString &path);
54
62
 
55
 
        bool readPngData (png_struct *png, png_info *info,
56
 
                          void *&data, CompSize &size);
57
 
        bool readPng (std::ifstream &file, CompSize &size, void *& data);
58
 
        bool writePng (unsigned char *buffer, std::ostream &file,
59
 
                       CompSize &size, int stride);
 
63
        bool readPngData (png_struct *png,
 
64
                          png_info   *info,
 
65
                          void       *&data,
 
66
                          CompSize   &size);
 
67
 
 
68
        bool readPng (std::ifstream &file,
 
69
                      CompSize      &size,
 
70
                      void          *&data);
 
71
 
 
72
        bool writePng (unsigned char *buffer,
 
73
                       std::ostream  &file,
 
74
                       CompSize      &size,
 
75
                       int           stride);
60
76
};
61
77
 
62
78
class PngPluginVTable :
63
79
    public CompPlugin::VTableForScreen<PngScreen>
64
80
{
65
81
    public:
 
82
 
66
83
        bool init ();
67
84
};
68
 
 
69
85
#endif