mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-06 16:56:55 +08:00
MMI ifdef guards and add source to various build files.
Bug: libyuv:810,libyuv:811 Test: cmake . && make Change-Id: I521b45ccb6e49ff70823e415efa99fc5b9daad99 Reviewed-on: https://chromium-review.googlesource.com/1162503 Reviewed-by: Johann Koenig <johannkoenig@google.com>
This commit is contained in:
parent
6703fe2876
commit
57de382902
@ -11,6 +11,7 @@ cc_library {
|
|||||||
"source/compare_gcc.cc",
|
"source/compare_gcc.cc",
|
||||||
"source/compare_neon.cc",
|
"source/compare_neon.cc",
|
||||||
"source/compare_neon64.cc",
|
"source/compare_neon64.cc",
|
||||||
|
"source/compare_mmi.cc",
|
||||||
"source/compare_msa.cc",
|
"source/compare_msa.cc",
|
||||||
"source/convert.cc",
|
"source/convert.cc",
|
||||||
"source/convert_argb.cc",
|
"source/convert_argb.cc",
|
||||||
@ -25,12 +26,14 @@ cc_library {
|
|||||||
"source/rotate_argb.cc",
|
"source/rotate_argb.cc",
|
||||||
"source/rotate_common.cc",
|
"source/rotate_common.cc",
|
||||||
"source/rotate_gcc.cc",
|
"source/rotate_gcc.cc",
|
||||||
|
"source/rotate_mmi.cc",
|
||||||
"source/rotate_msa.cc",
|
"source/rotate_msa.cc",
|
||||||
"source/rotate_neon.cc",
|
"source/rotate_neon.cc",
|
||||||
"source/rotate_neon64.cc",
|
"source/rotate_neon64.cc",
|
||||||
"source/row_any.cc",
|
"source/row_any.cc",
|
||||||
"source/row_common.cc",
|
"source/row_common.cc",
|
||||||
"source/row_gcc.cc",
|
"source/row_gcc.cc",
|
||||||
|
"source/row_mmi.cc",
|
||||||
"source/row_msa.cc",
|
"source/row_msa.cc",
|
||||||
"source/row_neon.cc",
|
"source/row_neon.cc",
|
||||||
"source/row_neon64.cc",
|
"source/row_neon64.cc",
|
||||||
@ -39,6 +42,7 @@ cc_library {
|
|||||||
"source/scale_argb.cc",
|
"source/scale_argb.cc",
|
||||||
"source/scale_common.cc",
|
"source/scale_common.cc",
|
||||||
"source/scale_gcc.cc",
|
"source/scale_gcc.cc",
|
||||||
|
"source/scale_mmi.cc",
|
||||||
"source/scale_msa.cc",
|
"source/scale_msa.cc",
|
||||||
"source/scale_neon.cc",
|
"source/scale_neon.cc",
|
||||||
"source/scale_neon64.cc",
|
"source/scale_neon64.cc",
|
||||||
|
|||||||
@ -9,6 +9,7 @@ LOCAL_SRC_FILES := \
|
|||||||
source/compare.cc \
|
source/compare.cc \
|
||||||
source/compare_common.cc \
|
source/compare_common.cc \
|
||||||
source/compare_gcc.cc \
|
source/compare_gcc.cc \
|
||||||
|
source/compare_mmi.cc \
|
||||||
source/compare_msa.cc \
|
source/compare_msa.cc \
|
||||||
source/compare_neon.cc \
|
source/compare_neon.cc \
|
||||||
source/compare_neon64.cc \
|
source/compare_neon64.cc \
|
||||||
@ -25,12 +26,14 @@ LOCAL_SRC_FILES := \
|
|||||||
source/rotate_argb.cc \
|
source/rotate_argb.cc \
|
||||||
source/rotate_common.cc \
|
source/rotate_common.cc \
|
||||||
source/rotate_gcc.cc \
|
source/rotate_gcc.cc \
|
||||||
|
source/rotate_mmi.cc \
|
||||||
source/rotate_msa.cc \
|
source/rotate_msa.cc \
|
||||||
source/rotate_neon.cc \
|
source/rotate_neon.cc \
|
||||||
source/rotate_neon64.cc \
|
source/rotate_neon64.cc \
|
||||||
source/row_any.cc \
|
source/row_any.cc \
|
||||||
source/row_common.cc \
|
source/row_common.cc \
|
||||||
source/row_gcc.cc \
|
source/row_gcc.cc \
|
||||||
|
source/row_mmi.cc \
|
||||||
source/row_msa.cc \
|
source/row_msa.cc \
|
||||||
source/row_neon.cc \
|
source/row_neon.cc \
|
||||||
source/row_neon64.cc \
|
source/row_neon64.cc \
|
||||||
@ -39,6 +42,7 @@ LOCAL_SRC_FILES := \
|
|||||||
source/scale_argb.cc \
|
source/scale_argb.cc \
|
||||||
source/scale_common.cc \
|
source/scale_common.cc \
|
||||||
source/scale_gcc.cc \
|
source/scale_gcc.cc \
|
||||||
|
source/scale_mmi.cc \
|
||||||
source/scale_msa.cc \
|
source/scale_msa.cc \
|
||||||
source/scale_neon.cc \
|
source/scale_neon.cc \
|
||||||
source/scale_neon64.cc \
|
source/scale_neon64.cc \
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
Name: libyuv
|
Name: libyuv
|
||||||
URL: http://code.google.com/p/libyuv/
|
URL: http://code.google.com/p/libyuv/
|
||||||
Version: 1714
|
Version: 1715
|
||||||
License: BSD
|
License: BSD
|
||||||
License File: LICENSE
|
License File: LICENSE
|
||||||
|
|
||||||
|
|||||||
@ -11,6 +11,6 @@
|
|||||||
#ifndef INCLUDE_LIBYUV_VERSION_H_
|
#ifndef INCLUDE_LIBYUV_VERSION_H_
|
||||||
#define INCLUDE_LIBYUV_VERSION_H_
|
#define INCLUDE_LIBYUV_VERSION_H_
|
||||||
|
|
||||||
#define LIBYUV_VERSION 1714
|
#define LIBYUV_VERSION 1715
|
||||||
|
|
||||||
#endif // INCLUDE_LIBYUV_VERSION_H_
|
#endif // INCLUDE_LIBYUV_VERSION_H_
|
||||||
|
|||||||
@ -11,6 +11,7 @@
|
|||||||
# Can be enabled if your jpeg has GYP support.
|
# Can be enabled if your jpeg has GYP support.
|
||||||
'libyuv_disable_jpeg%': 1,
|
'libyuv_disable_jpeg%': 1,
|
||||||
'mips_msa%': 0, # Default to msa off.
|
'mips_msa%': 0, # Default to msa off.
|
||||||
|
'mips_mmi%': 0, # Default to mmi off.
|
||||||
},
|
},
|
||||||
'targets': [
|
'targets': [
|
||||||
{
|
{
|
||||||
|
|||||||
4
linux.mk
4
linux.mk
@ -13,6 +13,7 @@ LOCAL_OBJ_FILES := \
|
|||||||
source/compare.o \
|
source/compare.o \
|
||||||
source/compare_common.o \
|
source/compare_common.o \
|
||||||
source/compare_gcc.o \
|
source/compare_gcc.o \
|
||||||
|
source/compare_mmi.o \
|
||||||
source/compare_msa.o \
|
source/compare_msa.o \
|
||||||
source/compare_neon64.o \
|
source/compare_neon64.o \
|
||||||
source/compare_neon.o \
|
source/compare_neon.o \
|
||||||
@ -33,6 +34,7 @@ LOCAL_OBJ_FILES := \
|
|||||||
source/rotate.o \
|
source/rotate.o \
|
||||||
source/rotate_common.o \
|
source/rotate_common.o \
|
||||||
source/rotate_gcc.o \
|
source/rotate_gcc.o \
|
||||||
|
source/rotate_mmi.o \
|
||||||
source/rotate_msa.o \
|
source/rotate_msa.o \
|
||||||
source/rotate_neon64.o \
|
source/rotate_neon64.o \
|
||||||
source/rotate_neon.o \
|
source/rotate_neon.o \
|
||||||
@ -40,6 +42,7 @@ LOCAL_OBJ_FILES := \
|
|||||||
source/row_any.o \
|
source/row_any.o \
|
||||||
source/row_common.o \
|
source/row_common.o \
|
||||||
source/row_gcc.o \
|
source/row_gcc.o \
|
||||||
|
source/row_mmi.o \
|
||||||
source/row_msa.o \
|
source/row_msa.o \
|
||||||
source/row_neon64.o \
|
source/row_neon64.o \
|
||||||
source/row_neon.o \
|
source/row_neon.o \
|
||||||
@ -49,6 +52,7 @@ LOCAL_OBJ_FILES := \
|
|||||||
source/scale.o \
|
source/scale.o \
|
||||||
source/scale_common.o \
|
source/scale_common.o \
|
||||||
source/scale_gcc.o \
|
source/scale_gcc.o \
|
||||||
|
source/scale_mmi.o \
|
||||||
source/scale_msa.o \
|
source/scale_msa.o \
|
||||||
source/scale_neon64.o \
|
source/scale_neon64.o \
|
||||||
source/scale_neon.o \
|
source/scale_neon.o \
|
||||||
|
|||||||
@ -17,6 +17,7 @@ namespace libyuv {
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// This module is for Mips MMI.
|
||||||
#if !defined(LIBYUV_DISABLE_MMI) && defined(_MIPS_ARCH_LOONGSON3A)
|
#if !defined(LIBYUV_DISABLE_MMI) && defined(_MIPS_ARCH_LOONGSON3A)
|
||||||
|
|
||||||
// Hakmem method for hamming distance.
|
// Hakmem method for hamming distance.
|
||||||
@ -113,7 +114,8 @@ uint32_t SumSquareError_MMI(const uint8_t* src_a,
|
|||||||
|
|
||||||
return sse;
|
return sse;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
#endif // !defined(LIBYUV_DISABLE_MMI) && defined(_MIPS_ARCH_LOONGSON3A)
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
} // extern "C"
|
} // extern "C"
|
||||||
|
|||||||
@ -16,6 +16,7 @@ namespace libyuv {
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// This module is for Mips MMI.
|
||||||
#if !defined(LIBYUV_DISABLE_MMI) && defined(_MIPS_ARCH_LOONGSON3A)
|
#if !defined(LIBYUV_DISABLE_MMI) && defined(_MIPS_ARCH_LOONGSON3A)
|
||||||
|
|
||||||
void TransposeWx8_MMI(const uint8_t* src,
|
void TransposeWx8_MMI(const uint8_t* src,
|
||||||
@ -282,7 +283,7 @@ void TransposeUVWx8_MMI(const uint8_t* src,
|
|||||||
: "memory");
|
: "memory");
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif // !defined(LIBYUV_DISABLE_MMI) && defined(_MIPS_ARCH_LOONGSON3A)
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
} // extern "C"
|
} // extern "C"
|
||||||
|
|||||||
@ -20,6 +20,9 @@ namespace libyuv {
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// This module is for Mips MMI.
|
||||||
|
#if !defined(LIBYUV_DISABLE_MMI) && defined(_MIPS_ARCH_LOONGSON3A)
|
||||||
|
|
||||||
void RGB24ToARGBRow_MMI(const uint8_t* src_rgb24,
|
void RGB24ToARGBRow_MMI(const uint8_t* src_rgb24,
|
||||||
uint8_t* dst_argb,
|
uint8_t* dst_argb,
|
||||||
int width) {
|
int width) {
|
||||||
@ -5966,6 +5969,8 @@ void ARGBCopyYToAlphaRow_MMI(const uint8_t* src, uint8_t* dst, int width) {
|
|||||||
: "memory");
|
: "memory");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // !defined(LIBYUV_DISABLE_MMI) && defined(_MIPS_ARCH_LOONGSON3A)
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
} // extern "C"
|
} // extern "C"
|
||||||
} // namespace libyuv
|
} // namespace libyuv
|
||||||
|
|||||||
@ -23,6 +23,7 @@ namespace libyuv {
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// This module is for Mips MMI.
|
||||||
#if !defined(LIBYUV_DISABLE_MMI) && defined(_MIPS_ARCH_LOONGSON3A)
|
#if !defined(LIBYUV_DISABLE_MMI) && defined(_MIPS_ARCH_LOONGSON3A)
|
||||||
|
|
||||||
// CPU agnostic row functions
|
// CPU agnostic row functions
|
||||||
@ -1120,7 +1121,7 @@ void ScaleRowUp2_16_MMI(const uint16_t* src_ptr,
|
|||||||
: "memory");
|
: "memory");
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif // !defined(LIBYUV_DISABLE_MMI) && defined(_MIPS_ARCH_LOONGSON3A)
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
} // extern "C"
|
} // extern "C"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user