1 /*! ========================================================================
3 ** Template Header File
4 ** $Id: trgt_jpeg.h,v 1.1.1.1 2005/01/04 01:23:11 darco Exp $
6 ** Copyright (c) 2002 Robert B. Quattlebaum Jr.
8 ** This software and associated documentation
9 ** are CONFIDENTIAL and PROPRIETARY property of
10 ** the above-mentioned copyright holder.
12 ** You may not copy, print, publish, or in any
13 ** other way distribute this software without
14 ** a prior written agreement with
15 ** the copyright holder.
17 ** === N O T E S ===========================================================
19 ** ========================================================================= */
21 /* === S T A R T =========================================================== */
23 #ifndef __SINFG_TRGT_JPEG_H
24 #define __SINFG_TRGT_JPEG_H
26 /* === H E A D E R S ======================================================= */
29 #include <sinfg/target_scanline.h>
30 #include <sinfg/string.h>
37 /* === M A C R O S ========================================================= */
39 /* === T Y P E D E F S ===================================================== */
41 /* === C L A S S E S & S T R U C T S ======================================= */
43 class jpeg_trgt : public sinfg::Target_Scanline
45 SINFG_TARGET_MODULE_EXT
49 struct jpeg_compress_struct cinfo;
50 struct jpeg_error_mgr jerr;
53 bool multi_image,ready;
55 sinfg::String filename;
56 unsigned char *buffer;
57 sinfg::Color *color_buffer;
59 jpeg_trgt(const char *filename);
62 virtual bool set_rend_desc(sinfg::RendDesc *desc);
63 virtual bool start_frame(sinfg::ProgressCallback *cb);
64 virtual void end_frame();
66 virtual sinfg::Color * start_scanline(int scanline);
67 virtual bool end_scanline();
70 /* === E N D =============================================================== */