Loading...
Searching...
No Matches
VConnection8.h
// VIPS connection wrapper
/*
This file is part of VIPS.
VIPS 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 of the License, or
(at your option) any later version.
This program 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 program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA
*/
/*
These files are distributed with VIPS - http://www.vips.ecs.soton.ac.uk
*/
#ifndef VIPS_VCONNECTION_H
#define VIPS_VCONNECTION_H
#include <vips/vips.h>
VIPS_NAMESPACE_START
class VSource : public VObject {
public:
explicit VSource(VipsSource *input, VSteal steal = STEAL)
: VObject((VipsObject *) input, steal)
{
}
static VSource
new_from_descriptor(int descriptor);
static VSource
new_from_file(const char *filename);
static VSource
new_from_blob(VipsBlob *blob);
static VSource
new_from_memory(const void *data, size_t size);
static VSource
new_from_options(const char *options);
VipsSource *
get_source() const
{
return (VipsSource *) VObject::get_object();
}
};
class VTarget : public VObject {
public:
explicit VTarget(VipsTarget *output, VSteal steal = STEAL)
: VObject((VipsObject *) output, steal)
{
}
static VTarget
new_to_descriptor(int descriptor);
static VTarget new_to_file(const char *filename);
static VTarget new_to_memory();
VipsTarget *
get_target() const
{
return (VipsTarget *) VObject::get_object();
}
};
VIPS_NAMESPACE_END
#endif /*VIPS_VCONNECTION_H*/
VObject::VObject
VObject(VipsObject *new_vobject, VSteal steal=STEAL)
Definition VImage8.h:79
VObject::get_object
VipsObject * get_object() const
Definition VImage8.h:170
VSource
Definition VConnection8.h:45
VSource::new_from_blob
static VSource new_from_blob(VipsBlob *blob)
Definition VConnection.cpp:73
VSource::new_from_options
static VSource new_from_options(const char *options)
Definition VConnection.cpp:100
VSource::new_from_file
static VSource new_from_file(const char *filename)
Definition VConnection.cpp:60
VSource::get_source
VipsSource * get_source() const
Definition VConnection8.h:90
VSource::new_from_memory
static VSource new_from_memory(const void *data, size_t size)
Definition VConnection.cpp:86
VSource::VSource
VSource(VipsSource *input, VSteal steal=STEAL)
Definition VConnection8.h:50
VSource::new_from_descriptor
static VSource new_from_descriptor(int descriptor)
Definition VConnection.cpp:47
VTarget
Definition VConnection8.h:104
VTarget::new_to_file
static VTarget new_to_file(const char *filename)
Definition VConnection.cpp:126
VTarget::get_target
VipsTarget * get_target() const
Definition VConnection8.h:136
VTarget::new_to_memory
static VTarget new_to_memory()
Definition VConnection.cpp:139
VTarget::new_to_descriptor
static VTarget new_to_descriptor(int descriptor)
Definition VConnection.cpp:113
VTarget::VTarget
VTarget(VipsTarget *output, VSteal steal=STEAL)
Definition VConnection8.h:109