~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to tests/poppler/goo/ImgWriter.h

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-05-02 13:11:51 UTC
  • Revision ID: package-import@ubuntu.com-20130502131151-q8dvteqr1ef2x7xz
Tags: upstream-1.4.1~20130504~adb56cb
ImportĀ upstreamĀ versionĀ 1.4.1~20130504~adb56cb

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//========================================================================
 
2
//
 
3
// ImgWriter.h
 
4
//
 
5
// This file is licensed under the GPLv2 or later
 
6
//
 
7
// Copyright (C) 2009 Stefan Thomas <thomas@eload24.com>
 
8
// Copyright (C) 2009 Albert Astals Cid <aacid@kde.org>
 
9
// Copyright (C) 2010 Adrian Johnson <ajohnson@redneon.com>
 
10
// Copyright (C) 2010 Brian Cameron <brian.cameron@oracle.com>
 
11
//
 
12
//========================================================================
 
13
 
 
14
#ifndef IMGWRITER_H
 
15
#define IMGWRITER_H
 
16
 
 
17
#include <config.h>
 
18
#include <stdio.h>
 
19
        
 
20
class ImgWriter
 
21
{
 
22
        public:
 
23
                virtual ~ImgWriter();
 
24
                virtual bool init(FILE *f, int width, int height, int hDPI, int vDPI) = 0;
 
25
                
 
26
                virtual bool writePointers(unsigned char **rowPointers, int rowCount) = 0;
 
27
                virtual bool writeRow(unsigned char **row) = 0;
 
28
                
 
29
                virtual bool close() = 0;
 
30
};
 
31
 
 
32
#endif