mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-13 09:20:29 -07:00
fix(#30): one concurrent thread by default
This commit is contained in:
parent
6dbab52dbd
commit
e111d875e7
3 changed files with 32 additions and 9 deletions
11
vips.h
11
vips.h
|
|
@ -14,7 +14,7 @@ enum types {
|
|||
typedef struct {
|
||||
const char *Text;
|
||||
const char *Font;
|
||||
} watermarkTextOptions;
|
||||
} WatermarkTextOptions;
|
||||
|
||||
typedef struct {
|
||||
int Width;
|
||||
|
|
@ -23,7 +23,7 @@ typedef struct {
|
|||
int NoReplicate;
|
||||
float Opacity;
|
||||
double Background[3];
|
||||
} watermarkOptions;
|
||||
} WatermarkOptions;
|
||||
|
||||
int
|
||||
vips_affine_interpolator(VipsImage *in, VipsImage **out, double a, double b, double c, double d, VipsInterpolate *interpolator)
|
||||
|
|
@ -187,7 +187,7 @@ vips_watermark_replicate(VipsImage *orig, VipsImage *in, VipsImage **out)
|
|||
};
|
||||
|
||||
int
|
||||
vips_watermark(VipsImage *in, VipsImage **out, watermarkTextOptions *to, watermarkOptions *o)
|
||||
vips_watermark(VipsImage *in, VipsImage **out, WatermarkTextOptions *to, WatermarkOptions *o)
|
||||
{
|
||||
double ones[3] = { 1, 1, 1 };
|
||||
|
||||
|
|
@ -244,3 +244,8 @@ vips_watermark(VipsImage *in, VipsImage **out, watermarkTextOptions *to, waterma
|
|||
return 0;
|
||||
};
|
||||
|
||||
void
|
||||
vips_enable_cache_set_trace()
|
||||
{
|
||||
vips_cache_set_trace(TRUE);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue