third_party/libyuv/source/planar_functions.cc
// Get a blender that optimized for the CPU and pixel count.
// As there are 6 blenders to choose from, the caller should try to use
// the same blend function for all pixels if possible.
Get a blender that optimized for the CPU and pixel count.
As there are 6 blenders to choose from, the caller should try to use
the same blend function for all pixels if possible.
Get a blender that optimized for the CPU and pixel count . As there are 6 blenders to choose from the caller should try to use the same blend function for all pixels if possible .
LIBYUV_API
ARGBBlendRow GetARGBBlend() {
  void (*ARGBBlendRow)(const uint8_t* src_argb, const uint8_t* src_argb1,
                       uint8_t* dst_argb, int width) = ARGBBlendRow_C;
#if defined(HAS_ARGBBLENDROW_SSSE3)
  if (TestCpuFlag(kCpuHasSSSE3)) {
    ARGBBlendRow = ARGBBlendRow_SSSE3;
    return ARGBBlendRow;
  }
#endif
#if defined(HAS_ARGBBLENDROW_NEON)
  if (TestCpuFlag(kCpuHasNEON)) {
    ARGBBlendRow = ARGBBlendRow_NEON;
  }
#endif
#if defined(HAS_ARGBBLENDROW_MSA)
  if (TestCpuFlag(kCpuHasMSA)) {
    ARGBBlendRow = ARGBBlendRow_MSA;
  }
#endif
  return ARGBBlendRow;
}
LIBYUV_API ARGBBlendRow GetARGBBlend ( ) { void ( * ARGBBlendRow ) ( const uint8_t * src_argb , const uint8_t * src_argb1 , uint8_t * dst_argb , int width ) = ARGBBlendRow_C ; #if defined ( HAS_ARGBBLENDROW_SSSE3 ) if ( TestCpuFlag ( kCpuHasSSSE3 ) ) { ARGBBlendRow = ARGBBlendRow_SSSE3 ; return ARGBBlendRow ; } #endif #if defined ( HAS_ARGBBLENDROW_NEON ) if ( TestCpuFlag ( kCpuHasNEON ) ) { ARGBBlendRow = ARGBBlendRow_NEON ; } #endif #if defined ( HAS_ARGBBLENDROW_MSA ) if ( TestCpuFlag ( kCpuHasMSA ) ) { ARGBBlendRow = ARGBBlendRow_MSA ; } #endif return ARGBBlendRow ; }
Get a blender that optimized for the CPU and pixel count.
Get a blender that optimized for the CPU and pixel count .