1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#include "config.h"
#if defined(USE_ARM_NEON)
#include "vector_vdrawhelper.h"
extern "C" void pixman_composite_src_n_8888_asm_neon(int32_t w, int32_t h,
uint32_t *dst,
int32_t dst_stride,
uint32_t src);
extern "C" void pixman_composite_over_n_8888_asm_neon(int32_t w, int32_t h,
uint32_t *dst,
int32_t dst_stride,
uint32_t src);
void memfill32(uint32_t *dest, uint32_t value, int length)
{
pixman_composite_src_n_8888_asm_neon(length, 1, dest, length, value);
}
static void color_SourceOver(uint32_t *dest, int length,
uint32_t color,
uint32_t const_alpha)
{
if (const_alpha != 255) color = BYTE_MUL(color, const_alpha);
pixman_composite_over_n_8888_asm_neon(length, 1, dest, length, color);
}
void RenderFuncTable::neon()
{
updateColor(BlendMode::Src , color_SourceOver);
}
#endif
|