mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-06 08:46:47 +08:00
Remove duplicate code in planar_functions.h
The declarations of ARGBAffineRow_C and ARGBAffineRow_SSE2 and the code to support those declarations are duplicated in planar_functions.h. They are already in row.h, so we can simply remove them. Change-Id: I9b522fdd201ca530f1268bf4200cd2e18b806ba5 Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/6434733 Reviewed-by: Frank Barchard <fbarchard@chromium.org> Commit-Queue: Wan-Teh Chang <wtc@google.com>
This commit is contained in:
parent
6cc603a8cf
commit
8c48036d15
@ -22,37 +22,6 @@ namespace libyuv {
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
// TODO(fbarchard): Move cpu macros to row.h
|
||||
#if defined(__pnacl__) || defined(__CLR_VER) || \
|
||||
(defined(__native_client__) && defined(__x86_64__)) || \
|
||||
(defined(__i386__) && !defined(__SSE__) && !defined(__clang__))
|
||||
#define LIBYUV_DISABLE_X86
|
||||
#endif
|
||||
// MemorySanitizer does not support assembly code yet. http://crbug.com/344505
|
||||
#if defined(__has_feature)
|
||||
#if __has_feature(memory_sanitizer)
|
||||
#if !defined(LIBYUV_DISABLE_NEON)
|
||||
#define LIBYUV_DISABLE_NEON
|
||||
#endif
|
||||
#if !defined(LIBYUV_DISABLE_SME)
|
||||
#define LIBYUV_DISABLE_SME
|
||||
#endif
|
||||
#if !defined(LIBYUV_DISABLE_SVE)
|
||||
#define LIBYUV_DISABLE_SVE
|
||||
#endif
|
||||
#if !defined(LIBYUV_DISABLE_X86)
|
||||
#define LIBYUV_DISABLE_X86
|
||||
#endif
|
||||
#endif // __has_feature(memory_sanitizer)
|
||||
#endif // defined(__has_feature)
|
||||
// The following are available on all x86 platforms:
|
||||
#if !defined(LIBYUV_DISABLE_X86) && \
|
||||
(defined(_M_IX86) || \
|
||||
(defined(__x86_64__) && !defined(LIBYUV_ENABLE_ROWWIN)) || \
|
||||
defined(__i386__))
|
||||
#define HAS_ARGBAFFINEROW_SSE2
|
||||
#endif
|
||||
|
||||
// Copy a plane of data.
|
||||
LIBYUV_API
|
||||
void CopyPlane(const uint8_t* src_y,
|
||||
@ -1105,22 +1074,6 @@ int I420Interpolate(const uint8_t* src0_y,
|
||||
int height,
|
||||
int interpolation);
|
||||
|
||||
// Row function for copying pixels from a source with a slope to a row
|
||||
// of destination. Useful for scaling, rotation, mirror, texture mapping.
|
||||
LIBYUV_API
|
||||
void ARGBAffineRow_C(const uint8_t* src_argb,
|
||||
int src_argb_stride,
|
||||
uint8_t* dst_argb,
|
||||
const float* uv_dudv,
|
||||
int width);
|
||||
// TODO(fbarchard): Move ARGBAffineRow_SSE2 to row.h
|
||||
LIBYUV_API
|
||||
void ARGBAffineRow_SSE2(const uint8_t* src_argb,
|
||||
int src_argb_stride,
|
||||
uint8_t* dst_argb,
|
||||
const float* uv_dudv,
|
||||
int width);
|
||||
|
||||
// Shuffle ARGB channel order. e.g. BGRA to ARGB.
|
||||
// shuffler is 16 bytes.
|
||||
LIBYUV_API
|
||||
|
||||
@ -1517,6 +1517,7 @@ TEST_F(LibYUVPlanarTest, I420Blend_Invert) {
|
||||
disable_cpu_flags_, benchmark_cpu_info_, -1, 0);
|
||||
}
|
||||
|
||||
#ifdef ENABLE_ROW_TESTS
|
||||
TEST_F(LibYUVPlanarTest, TestAffine) {
|
||||
SIMD_ALIGNED(uint8_t orig_pixels_0[1280][4]);
|
||||
SIMD_ALIGNED(uint8_t interpolate_pixels_C[1280][4]);
|
||||
@ -1550,6 +1551,7 @@ TEST_F(LibYUVPlanarTest, TestAffine) {
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#endif // ENABLE_ROW_TESTS
|
||||
|
||||
static int TestCopyPlane(int benchmark_width,
|
||||
int benchmark_height,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user