small fixes for buffer save
This commit is contained in:
parent
a01c0dfe20
commit
5baf0dfdcd
2
TODO
2
TODO
@ -16,6 +16,8 @@
|
||||
|
||||
read object.c and see how close we are to this model now
|
||||
|
||||
- clean up foreign.c, there seems to be some cruft
|
||||
|
||||
|
||||
- use this for dzsave_buffer
|
||||
|
||||
|
@ -112,6 +112,7 @@ vips_foreign_save_jpeg_class_init( VipsForeignSaveJpegClass *class )
|
||||
{
|
||||
GObjectClass *gobject_class = G_OBJECT_CLASS( class );
|
||||
VipsObjectClass *object_class = (VipsObjectClass *) class;
|
||||
VipsForeignClass *foreign_class = (VipsForeignClass *) class;
|
||||
VipsForeignSaveClass *save_class = (VipsForeignSaveClass *) class;
|
||||
|
||||
gobject_class->set_property = vips_object_set_property;
|
||||
@ -120,6 +121,8 @@ vips_foreign_save_jpeg_class_init( VipsForeignSaveJpegClass *class )
|
||||
object_class->nickname = "jpegsave_base";
|
||||
object_class->description = _( "save jpeg" );
|
||||
|
||||
foreign_class->suffs = vips__jpeg_suffs;
|
||||
|
||||
save_class->saveable = VIPS_SAVEABLE_RGB_CMYK;
|
||||
save_class->format_table = bandfmt_jpeg;
|
||||
|
||||
@ -204,7 +207,6 @@ vips_foreign_save_jpeg_file_class_init( VipsForeignSaveJpegFileClass *class )
|
||||
{
|
||||
GObjectClass *gobject_class = G_OBJECT_CLASS( class );
|
||||
VipsObjectClass *object_class = (VipsObjectClass *) class;
|
||||
VipsForeignClass *foreign_class = (VipsForeignClass *) class;
|
||||
|
||||
gobject_class->set_property = vips_object_set_property;
|
||||
gobject_class->get_property = vips_object_get_property;
|
||||
@ -213,8 +215,6 @@ vips_foreign_save_jpeg_file_class_init( VipsForeignSaveJpegFileClass *class )
|
||||
object_class->description = _( "save image to jpeg file" );
|
||||
object_class->build = vips_foreign_save_jpeg_file_build;
|
||||
|
||||
foreign_class->suffs = vips__jpeg_suffs;
|
||||
|
||||
VIPS_ARG_STRING( class, "filename", 1,
|
||||
_( "Filename" ),
|
||||
_( "Filename to save to" ),
|
||||
|
@ -81,6 +81,7 @@ vips_foreign_save_webp_class_init( VipsForeignSaveWebpClass *class )
|
||||
{
|
||||
GObjectClass *gobject_class = G_OBJECT_CLASS( class );
|
||||
VipsObjectClass *object_class = (VipsObjectClass *) class;
|
||||
VipsForeignClass *foreign_class = (VipsForeignClass *) class;
|
||||
VipsForeignSaveClass *save_class = (VipsForeignSaveClass *) class;
|
||||
|
||||
gobject_class->set_property = vips_object_set_property;
|
||||
@ -89,6 +90,8 @@ vips_foreign_save_webp_class_init( VipsForeignSaveWebpClass *class )
|
||||
object_class->nickname = "webpsave_base";
|
||||
object_class->description = _( "save webp" );
|
||||
|
||||
foreign_class->suffs = vips__webp_suffs;
|
||||
|
||||
save_class->saveable = VIPS_SAVEABLE_RGBA;
|
||||
save_class->format_table = bandfmt_webp;
|
||||
|
||||
@ -151,7 +154,6 @@ vips_foreign_save_webp_file_class_init( VipsForeignSaveWebpFileClass *class )
|
||||
{
|
||||
GObjectClass *gobject_class = G_OBJECT_CLASS( class );
|
||||
VipsObjectClass *object_class = (VipsObjectClass *) class;
|
||||
VipsForeignClass *foreign_class = (VipsForeignClass *) class;
|
||||
|
||||
gobject_class->set_property = vips_object_set_property;
|
||||
gobject_class->get_property = vips_object_get_property;
|
||||
@ -160,8 +162,6 @@ vips_foreign_save_webp_file_class_init( VipsForeignSaveWebpFileClass *class )
|
||||
object_class->description = _( "save image to webp file" );
|
||||
object_class->build = vips_foreign_save_webp_file_build;
|
||||
|
||||
foreign_class->suffs = vips__webp_suffs;
|
||||
|
||||
VIPS_ARG_STRING( class, "filename", 1,
|
||||
_( "Filename" ),
|
||||
_( "Filename to save to" ),
|
||||
|
Loading…
Reference in New Issue
Block a user