+ register int mix;
+
+ for ( j = 0; j < width; j ++ )
+ {
+ mix = calculate_mix( luma, j, soft, weight, *alpha_b ++, step );
+ *dest = sample_mix( *dest, *src++, mix );
+ dest++;
+ *dest = sample_mix( *dest, *src++, mix );
+ dest++;
+ *alpha_a = ( mix >> 8 ) | *alpha_a;
+ alpha_a ++;
+ }
+}
+
+static void composite_line_yuv_or( uint8_t *dest, uint8_t *src, int width, uint8_t *alpha_b, uint8_t *alpha_a, int weight, uint16_t *luma, int soft, uint32_t step )
+{
+ register int j;
+ register int mix;
+
+ for ( j = 0; j < width; j ++ )
+ {
+ mix = calculate_mix( luma, j, soft, weight, *alpha_b ++ | *alpha_a, step );
+ *dest = sample_mix( *dest, *src++, mix );
+ dest++;
+ *dest = sample_mix( *dest, *src++, mix );
+ dest++;
+ *alpha_a ++ = mix >> 8;
+ }
+}
+
+static void composite_line_yuv_and( uint8_t *dest, uint8_t *src, int width, uint8_t *alpha_b, uint8_t *alpha_a, int weight, uint16_t *luma, int soft, uint32_t step )
+{
+ register int j;
+ register int mix;
+
+ for ( j = 0; j < width; j ++ )
+ {
+ mix = calculate_mix( luma, j, soft, weight, *alpha_b ++ & *alpha_a, step );
+ *dest = sample_mix( *dest, *src++, mix );
+ dest++;
+ *dest = sample_mix( *dest, *src++, mix );
+ dest++;
+ *alpha_a ++ = mix >> 8;
+ }
+}
+
+static void composite_line_yuv_xor( uint8_t *dest, uint8_t *src, int width, uint8_t *alpha_b, uint8_t *alpha_a, int weight, uint16_t *luma, int soft, uint32_t step )
+{
+ register int j;
+ register int mix;
+
+ for ( j = 0; j < width; j ++ )