mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2026-02-12 05:09:52 +08:00
scale test clipping code unused cpu parameters removed
fix unused arguments to scale clip test. TBR=kjellander@chromium.org BUG=libyuv:680 TEST= None Change-Id: Iae354bb5284781907569706adcf74fa2aa691997 Reviewed-on: https://chromium-review.googlesource.com/442011 Reviewed-by: Frank Barchard <fbarchard@google.com> Commit-Queue: Frank Barchard <fbarchard@google.com>
This commit is contained in:
parent
20ecb366ea
commit
3eccf7f1d2
@ -317,12 +317,12 @@ int YUVToARGBScaleReference2(const uint8* src_y,
|
|||||||
int src_stride_u,
|
int src_stride_u,
|
||||||
const uint8* src_v,
|
const uint8* src_v,
|
||||||
int src_stride_v,
|
int src_stride_v,
|
||||||
uint32 src_fourcc,
|
uint32 /* src_fourcc */, // TODO: Add support.
|
||||||
int src_width,
|
int src_width,
|
||||||
int src_height,
|
int src_height,
|
||||||
uint8* dst_argb,
|
uint8* dst_argb,
|
||||||
int dst_stride_argb,
|
int dst_stride_argb,
|
||||||
uint32 dst_fourcc,
|
uint32 /* dst_fourcc */, // TODO: Add support.
|
||||||
int dst_width,
|
int dst_width,
|
||||||
int dst_height,
|
int dst_height,
|
||||||
int clip_x,
|
int clip_x,
|
||||||
@ -368,9 +368,7 @@ static int YUVToARGBTestFilter(int src_width,
|
|||||||
int dst_width,
|
int dst_width,
|
||||||
int dst_height,
|
int dst_height,
|
||||||
FilterMode f,
|
FilterMode f,
|
||||||
int benchmark_iterations,
|
int benchmark_iterations) {
|
||||||
int disable_cpu_flags,
|
|
||||||
int benchmark_cpu_info) {
|
|
||||||
int64 src_y_plane_size = Abs(src_width) * Abs(src_height);
|
int64 src_y_plane_size = Abs(src_width) * Abs(src_height);
|
||||||
int64 src_uv_plane_size =
|
int64 src_uv_plane_size =
|
||||||
((Abs(src_width) + 1) / 2) * ((Abs(src_height) + 1) / 2);
|
((Abs(src_width) + 1) / 2) * ((Abs(src_height) + 1) / 2);
|
||||||
@ -434,18 +432,17 @@ static int YUVToARGBTestFilter(int src_width,
|
|||||||
}
|
}
|
||||||
|
|
||||||
TEST_F(LibYUVScaleTest, YUVToRGBScaleUp) {
|
TEST_F(LibYUVScaleTest, YUVToRGBScaleUp) {
|
||||||
int diff = YUVToARGBTestFilter(
|
int diff =
|
||||||
benchmark_width_, benchmark_height_, benchmark_width_ * 3 / 2,
|
YUVToARGBTestFilter(benchmark_width_, benchmark_height_,
|
||||||
benchmark_height_ * 3 / 2, libyuv::kFilterBilinear, benchmark_iterations_,
|
benchmark_width_ * 3 / 2, benchmark_height_ * 3 / 2,
|
||||||
disable_cpu_flags_, benchmark_cpu_info_);
|
libyuv::kFilterBilinear, benchmark_iterations_);
|
||||||
EXPECT_LE(diff, 10);
|
EXPECT_LE(diff, 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_F(LibYUVScaleTest, YUVToRGBScaleDown) {
|
TEST_F(LibYUVScaleTest, YUVToRGBScaleDown) {
|
||||||
int diff = YUVToARGBTestFilter(
|
int diff = YUVToARGBTestFilter(
|
||||||
benchmark_width_ * 3 / 2, benchmark_height_ * 3 / 2, benchmark_width_,
|
benchmark_width_ * 3 / 2, benchmark_height_ * 3 / 2, benchmark_width_,
|
||||||
benchmark_height_, libyuv::kFilterBilinear, benchmark_iterations_,
|
benchmark_height_, libyuv::kFilterBilinear, benchmark_iterations_);
|
||||||
disable_cpu_flags_, benchmark_cpu_info_);
|
|
||||||
EXPECT_LE(diff, 10);
|
EXPECT_LE(diff, 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user