jpegload_stream registers
This commit is contained in:
parent
387cafa738
commit
3a2bebdffb
@ -380,9 +380,9 @@ vips_foreign_load_jpeg_stream_class_init(
|
|||||||
load_class->header = vips_foreign_load_jpeg_stream_header;
|
load_class->header = vips_foreign_load_jpeg_stream_header;
|
||||||
load_class->load = vips_foreign_load_jpeg_stream_load;
|
load_class->load = vips_foreign_load_jpeg_stream_load;
|
||||||
|
|
||||||
VIPS_ARG_BOXED( class, "input", 1,
|
VIPS_ARG_OBJECT( class, "input", 1,
|
||||||
_( "Input" ),
|
_( "Input" ),
|
||||||
_( "Input stream to load from" ),
|
_( "Stream to load from" ),
|
||||||
VIPS_ARGUMENT_REQUIRED_INPUT,
|
VIPS_ARGUMENT_REQUIRED_INPUT,
|
||||||
G_STRUCT_OFFSET( VipsForeignLoadJpegStream, input ),
|
G_STRUCT_OFFSET( VipsForeignLoadJpegStream, input ),
|
||||||
VIPS_TYPE_STREAM_INPUT );
|
VIPS_TYPE_STREAM_INPUT );
|
||||||
|
@ -112,11 +112,11 @@ VIPS_ARGUMENT_OPTIONAL_OUTPUT Eg. the x pos of the image minimum
|
|||||||
pspec, (VipsArgumentFlags) (FLAGS), (PRIORITY), (OFFSET) ); \
|
pspec, (VipsArgumentFlags) (FLAGS), (PRIORITY), (OFFSET) ); \
|
||||||
}
|
}
|
||||||
|
|
||||||
#define VIPS_ARG_INTERPOLATE( CLASS, NAME, PRIORITY, LONG, DESC, FLAGS, OFFSET ) { \
|
#define VIPS_ARG_OBJECT( CLASS, NAME, PRIORITY, LONG, DESC, FLAGS, OFFSET, TYPE ) { \
|
||||||
GParamSpec *pspec; \
|
GParamSpec *pspec; \
|
||||||
\
|
\
|
||||||
pspec = g_param_spec_object( (NAME), (LONG), (DESC), \
|
pspec = g_param_spec_object( (NAME), (LONG), (DESC), \
|
||||||
VIPS_TYPE_INTERPOLATE, \
|
TYPE, \
|
||||||
(GParamFlags) (G_PARAM_READWRITE) ); \
|
(GParamFlags) (G_PARAM_READWRITE) ); \
|
||||||
g_object_class_install_property( G_OBJECT_CLASS( CLASS ), \
|
g_object_class_install_property( G_OBJECT_CLASS( CLASS ), \
|
||||||
vips_argument_get_id(), pspec ); \
|
vips_argument_get_id(), pspec ); \
|
||||||
@ -124,6 +124,9 @@ VIPS_ARGUMENT_OPTIONAL_OUTPUT Eg. the x pos of the image minimum
|
|||||||
pspec, (VipsArgumentFlags) (FLAGS), (PRIORITY), (OFFSET) ); \
|
pspec, (VipsArgumentFlags) (FLAGS), (PRIORITY), (OFFSET) ); \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define VIPS_ARG_INTERPOLATE( CLASS, NAME, PRIORITY, LONG, DESC, FLAGS, OFFSET ) \
|
||||||
|
VIPS_ARG_OBJECT( CLASS, NAME, PRIORITY, LONG, DESC, FLAGS, OFFSET, VIPS_TYPE_INTERPOLATE )
|
||||||
|
|
||||||
#define VIPS_ARG_BOOL( CLASS, NAME, PRIORITY, LONG, DESC, \
|
#define VIPS_ARG_BOOL( CLASS, NAME, PRIORITY, LONG, DESC, \
|
||||||
FLAGS, OFFSET, VALUE ) { \
|
FLAGS, OFFSET, VALUE ) { \
|
||||||
GParamSpec *pspec; \
|
GParamSpec *pspec; \
|
||||||
|
@ -330,6 +330,8 @@ vips_init( const char *argv0 )
|
|||||||
extern GType write_thread_state_get_type( void );
|
extern GType write_thread_state_get_type( void );
|
||||||
extern GType sink_memory_thread_state_get_type( void );
|
extern GType sink_memory_thread_state_get_type( void );
|
||||||
extern GType render_thread_state_get_type( void );
|
extern GType render_thread_state_get_type( void );
|
||||||
|
extern GType vips_stream_input_get_type( void );
|
||||||
|
extern GType vips_stream_output_get_type( void );
|
||||||
|
|
||||||
static gboolean started = FALSE;
|
static gboolean started = FALSE;
|
||||||
static gboolean done = FALSE;
|
static gboolean done = FALSE;
|
||||||
@ -444,6 +446,8 @@ vips_init( const char *argv0 )
|
|||||||
(void) write_thread_state_get_type();
|
(void) write_thread_state_get_type();
|
||||||
(void) sink_memory_thread_state_get_type();
|
(void) sink_memory_thread_state_get_type();
|
||||||
(void) render_thread_state_get_type();
|
(void) render_thread_state_get_type();
|
||||||
|
(void) vips_stream_input_get_type();
|
||||||
|
(void) vips_stream_output_get_type();
|
||||||
vips__meta_init_types();
|
vips__meta_init_types();
|
||||||
vips__interpolate_init();
|
vips__interpolate_init();
|
||||||
im__format_init();
|
im__format_init();
|
||||||
|
@ -297,13 +297,16 @@ static void
|
|||||||
vips_stream_input_class_init( VipsStreamInputClass *class )
|
vips_stream_input_class_init( VipsStreamInputClass *class )
|
||||||
{
|
{
|
||||||
GObjectClass *gobject_class = G_OBJECT_CLASS( class );
|
GObjectClass *gobject_class = G_OBJECT_CLASS( class );
|
||||||
VipsObjectClass *vobject_class = VIPS_OBJECT_CLASS( class );
|
VipsObjectClass *object_class = VIPS_OBJECT_CLASS( class );
|
||||||
|
|
||||||
gobject_class->finalize = vips_stream_input_finalize;
|
gobject_class->finalize = vips_stream_input_finalize;
|
||||||
gobject_class->set_property = vips_object_set_property;
|
gobject_class->set_property = vips_object_set_property;
|
||||||
gobject_class->get_property = vips_object_get_property;
|
gobject_class->get_property = vips_object_get_property;
|
||||||
|
|
||||||
vobject_class->build = vips_stream_input_build;
|
object_class->nickname = "input";
|
||||||
|
object_class->description = _( "input stream" );
|
||||||
|
|
||||||
|
object_class->build = vips_stream_input_build;
|
||||||
|
|
||||||
class->read = vips_stream_input_read_real;
|
class->read = vips_stream_input_read_real;
|
||||||
class->rewind = vips_stream_input_rewind_real;
|
class->rewind = vips_stream_input_rewind_real;
|
||||||
@ -609,13 +612,16 @@ static void
|
|||||||
vips_stream_output_class_init( VipsStreamOutputClass *class )
|
vips_stream_output_class_init( VipsStreamOutputClass *class )
|
||||||
{
|
{
|
||||||
GObjectClass *gobject_class = G_OBJECT_CLASS( class );
|
GObjectClass *gobject_class = G_OBJECT_CLASS( class );
|
||||||
VipsObjectClass *vobject_class = VIPS_OBJECT_CLASS( class );
|
VipsObjectClass *object_class = VIPS_OBJECT_CLASS( class );
|
||||||
|
|
||||||
gobject_class->finalize = vips_stream_input_finalize;
|
gobject_class->finalize = vips_stream_input_finalize;
|
||||||
gobject_class->set_property = vips_object_set_property;
|
gobject_class->set_property = vips_object_set_property;
|
||||||
gobject_class->get_property = vips_object_get_property;
|
gobject_class->get_property = vips_object_get_property;
|
||||||
|
|
||||||
vobject_class->build = vips_stream_output_build;
|
object_class->nickname = "output";
|
||||||
|
object_class->description = _( "output stream" );
|
||||||
|
|
||||||
|
object_class->build = vips_stream_output_build;
|
||||||
|
|
||||||
VIPS_ARG_BOXED( class, "blob", 1,
|
VIPS_ARG_BOXED( class, "blob", 1,
|
||||||
_( "Blob" ),
|
_( "Blob" ),
|
||||||
|
@ -188,7 +188,7 @@ func_exec_program ()
|
|||||||
|
|
||||||
if test -f "$progdir/$program"; then
|
if test -f "$progdir/$program"; then
|
||||||
# Add our own library path to LD_LIBRARY_PATH
|
# Add our own library path to LD_LIBRARY_PATH
|
||||||
LD_LIBRARY_PATH="/home/john/GIT/libvips/libvips/.libs:/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH"
|
LD_LIBRARY_PATH="/home/john/GIT/libvips/libvips/.libs:/home/john/vips/lib:$LD_LIBRARY_PATH"
|
||||||
|
|
||||||
# Some systems cannot cope with colon-terminated LD_LIBRARY_PATH
|
# Some systems cannot cope with colon-terminated LD_LIBRARY_PATH
|
||||||
# The second colon is a workaround for a bug in BeOS R4 sed
|
# The second colon is a workaround for a bug in BeOS R4 sed
|
||||||
|
Loading…
Reference in New Issue
Block a user