Ensure premultiply fast-path for RGBA is used.

Add A suffix to PRE_RGBA macro name to clarify use with 4 bands.
This commit is contained in:
Lovell Fuller 2016-04-11 18:31:35 +01:00
parent 511a0a7da5
commit 90780d96b8
1 changed files with 3 additions and 3 deletions

View File

@ -87,7 +87,7 @@ G_DEFINE_TYPE( VipsPremultiply, vips_premultiply, VIPS_TYPE_CONVERSION );
/* Special case for RGBA, it's very common.
*/
#define PRE_RGB( IN, OUT ) { \
#define PRE_RGBA( IN, OUT ) { \
IN * restrict p = (IN *) in; \
OUT * restrict q = (OUT *) out; \
\
@ -107,8 +107,8 @@ G_DEFINE_TYPE( VipsPremultiply, vips_premultiply, VIPS_TYPE_CONVERSION );
}
#define PRE( IN, OUT ) { \
if( bands == 3 ) { \
PRE_RGB( IN, OUT ); \
if( bands == 4 ) { \
PRE_RGBA( IN, OUT ); \
} \
else { \
PRE_MANY( IN, OUT ); \