jpeg.cpp
Go to the documentation of this file.
/*
CLAW - a C++ Library Absolutely Wonderful
CLAW is a free library without any particular aim but being useful to
anyone.
Copyright (C) 2005-2011 Julien Jorge
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
contact: julien.jorge@gamned.org
*/
#include <claw/jpeg.hpp>
/*----------------------------------------------------------------------------*/
claw::graphic::jpeg::jpeg( unsigned int w, unsigned int h )
: claw::graphic::image(w, h)
{
} // jpeg::jpeg() [constructor]
/*----------------------------------------------------------------------------*/
claw::graphic::jpeg::jpeg( const image& that )
: claw::graphic::image(that)
{
} // jpeg::jpeg() [copy constructor]
/*----------------------------------------------------------------------------*/
claw::graphic::jpeg::jpeg( std::istream& f )
{
reader(*this, f);
} // jpeg::jpeg() [constructor, from file]
/*----------------------------------------------------------------------------*/
void
claw::graphic::jpeg::save( std::ostream& f, const writer::options& opt ) const
{
writer( *this, f, opt );
} // jpeg::save()
claw::graphic::image::image
image()
Constructor. Creates an image without datas.
Definition image.cpp:106
claw::graphic::jpeg::reader
This class read data from a jpeg file and store it in an image.
Definition jpeg.hpp:81
claw::graphic::jpeg::writer
This class write an image in a jpeg file.
Definition jpeg.hpp:169
claw::graphic::jpeg::save
void save(std::ostream &os, const writer::options &opt=writer::options()) const
Save the image.
Definition jpeg.cpp:73
claw::graphic::jpeg::jpeg
jpeg(unsigned int w, unsigned int h)
Constructor. Creates an empty image.
Definition jpeg.cpp:39
jpeg.hpp
A class for jpeg pictures.
claw::graphic
Everything about image structures and processing.
Definition bitmap.hpp:43
claw
This is the main namespace.
Definition algorithm.hpp:34
claw::graphic::jpeg::writer::options
Parameters of the writing algorithm.
Definition jpeg.hpp:175