2008-05-22 04:51:37 -07:00
|
|
|
// Copyright (C) 2002-2008 Nikolaus Gebhardt
|
2007-09-21 17:10:21 -07:00
|
|
|
// This file is part of the "Irrlicht Engine".
|
|
|
|
// For conditions of distribution and use, see copyright notice in irrlicht.h
|
|
|
|
|
2007-05-20 11:03:49 -07:00
|
|
|
#ifndef _C_IMAGE_WRITER_JPG_H_INCLUDED__
|
|
|
|
#define _C_IMAGE_WRITER_JPG_H_INCLUDED__
|
|
|
|
|
2007-09-21 17:10:21 -07:00
|
|
|
#include "IrrCompileConfig.h"
|
|
|
|
|
|
|
|
#ifdef _IRR_COMPILE_WITH_JPG_WRITER_
|
|
|
|
|
2007-05-20 11:03:49 -07:00
|
|
|
#include "IImageWriter.h"
|
|
|
|
|
|
|
|
namespace irr
|
|
|
|
{
|
|
|
|
namespace video
|
|
|
|
{
|
|
|
|
|
|
|
|
class CImageWriterJPG : public IImageWriter
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
//! constructor
|
|
|
|
CImageWriterJPG();
|
|
|
|
|
|
|
|
//! return true if this writer can write a file with the given extension
|
2007-09-16 16:41:55 -07:00
|
|
|
virtual bool isAWriteableFileExtension(const c8* fileName) const;
|
2007-05-20 11:03:49 -07:00
|
|
|
|
|
|
|
//! write image to file
|
2007-09-16 16:41:55 -07:00
|
|
|
virtual bool writeImage(io::IWriteFile *file, IImage *image, u32 param) const;
|
2007-05-20 11:03:49 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // _C_IMAGE_WRITER_JPG_H_INCLUDED__
|
2007-09-21 17:10:21 -07:00
|
|
|
#endif
|
2007-05-20 11:03:49 -07:00
|
|
|
|