File: fmt_image.H.stub

package info (click to toggle)
xjig 2.4-14.1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 892 kB
  • sloc: cpp: 10,177; makefile: 1,142; perl: 23
file content (26 lines) | stat: -rw-r--r-- 707 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef __fmt_image_h
#define __fmt_image_h

#include "base_image.H"

class fmtImage : public Image {
	public:
		fmtImage( const char *filename, int autocrop=1 );
		fmtImage();
		~fmtImage();

		/* This function may be omitted if the file format doesn't support it.
		 * Just delete the following line and the function definition in the
		 * corresponding .C file */
		const char *GetExtensionData( unsigned char code );

	protected:
		/* OPTION 1: The fmt class loader takes a FILE* */
		int LoadImageFile(FILE *fp);
		int LoadImageFile(const char *fname) {return Image::LoadImageFile(fname);}

		/* OPTION 2: The fmt class loader takes a filename */
		/*int LoadImageFile(const char *fname);*/
};

#endif