コード例 #1
0
ファイル: bool_dispatch.c プロジェクト: aturcotte/libvips
/* Call im_orimage_vec via arg vector.
 */
static int
orimage_vec_vec( im_object *argv )
{
	im_doublevec_object *rv = (im_doublevec_object *) argv[2];

	return( im_orimage_vec( argv[0], argv[1], rv->n, rv->vec ) );
}
コード例 #2
0
ファイル: rename.c プロジェクト: sepastian/libvips
int 
im_or_vec( IMAGE *in, IMAGE *out, int n, double *c )
{
	return( im_orimage_vec( in, out, n, c ) ); 
}
コード例 #3
0
ファイル: boolean.c プロジェクト: aturcotte/libvips
/**
 * im_orimageconst:
 * @in: input #IMAGE 1
 * @out: output #IMAGE
 * @c: constant
 *
 * This operation calculates @in | @c (bitwise or of image pixels with
 * constant
 * @c) and writes the result to @out. 
 *
 * See also: im_andimage(), im_orimage_vec().
 *
 * Returns: 0 on success, -1 on error
 */
int 
im_orimageconst( IMAGE *in, IMAGE *out, double c )
{
	return( im_orimage_vec( in, out, 1, &c ) );
}