Repo created
This commit is contained in:
parent
81b91f4139
commit
f8c34fa5ee
22732 changed files with 4815320 additions and 2 deletions
27
TMessagesProj/jni/rlottie/src/vector/vdrawhelper_neon.cpp
Executable file
27
TMessagesProj/jni/rlottie/src/vector/vdrawhelper_neon.cpp
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
#if defined(__ARM_NEON__) || defined(__ARM64_NEON__)
|
||||
|
||||
#include "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);
|
||||
}
|
||||
|
||||
void comp_func_solid_SourceOver_neon(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);
|
||||
}
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue