1
//========================================================================
5
// This file is licensed under the GPLv2 or later
7
// Copyright (C) 2009 Stefan Thomas <thomas@eload24.com>
8
// Copyright (C) 2010 Adrian Johnson <ajohnson@redneon.com>
9
// Copyright (C) 2010 Jürg Billeter <j@bitron.ch>
10
// Copyright (C) 2010 Harry Roberts <harry.roberts@midnight-labs.org>
11
// Copyright (C) 2010 Brian Cameron <brian.cameron@oracle.com>
13
//========================================================================
22
#include <sys/types.h>
23
#include "ImgWriter.h"
29
class JpegWriter : public ImgWriter
32
JpegWriter(int quality, bool progressive);
36
bool init(FILE *f, int width, int height, int hDPI, int vDPI);
38
bool writePointers(unsigned char **rowPointers, int rowCount);
39
bool writeRow(unsigned char **row);
46
struct jpeg_compress_struct cinfo;
47
struct jpeg_error_mgr jerr;