started bandjoinconst

This commit is contained in:
John Cupitt 2015-11-06 14:58:32 +00:00
parent de65da85b9
commit 2f98f38d8a
2 changed files with 23 additions and 0 deletions

4
TODO
View File

@ -1,3 +1,7 @@
- started bandjoinconst
see also unaryconst.c
- looks like we have a race in tiled threadcache? see
https://github.com/jcupitt/libvips/issues/347

View File

@ -261,3 +261,22 @@ vips_bandjoin2( VipsImage *in1, VipsImage *in2, VipsImage **out, ... )
return( result );
}
typedef struct _VipsBandjoinConst {
VipsBandary parent_instance;
VipsImage *in;
VipsArrayDouble *c;
/* The constant expanded to in's format, ready to be appended to each
* pixel.
*/
int n;
VipsPel *c_ready;
} VipsBandjoinConst;
typedef VipsBandaryClass VipsBandjoinConstClass;
G_DEFINE_TYPE( VipsBandjoinConst, vips_bandjoin_const, VIPS_TYPE_BANDARY );