Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1145)

Unified Diff: media/base/yuv_convert_perftest.cc

Issue 242643011: Add correct support for videos with YUVJ420P color format, in the software conversion path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@yuvnopic
Patch Set: YUVJ browsertest now passes, update expectation Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/yuv_convert.cc ('k') | media/base/yuv_convert_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/yuv_convert_perftest.cc
diff --git a/media/base/yuv_convert_perftest.cc b/media/base/yuv_convert_perftest.cc
index 0188ce6e33f6ece840477ad83d2804dc4874993c..7ff9041be19ee1b61f98584c702025ec625a878b 100644
--- a/media/base/yuv_convert_perftest.cc
+++ b/media/base/yuv_convert_perftest.cc
@@ -9,6 +9,7 @@
#include "base/path_service.h"
#include "base/time/time.h"
#include "media/base/simd/convert_yuv_to_rgb.h"
+#include "media/base/simd/yuv_to_rgb_table.h"
#include "media/base/yuv_convert.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/perf/perf_test.h"
@@ -76,7 +77,8 @@ TEST_F(YUVConvertPerfTest, ConvertYUVToRGB32Row_MMX) {
yuv_bytes_.get() + kSourceUOffset + (chroma_row * kSourceWidth / 2),
yuv_bytes_.get() + kSourceVOffset + (chroma_row * kSourceWidth / 2),
rgb_bytes_converted_.get(),
- kWidth);
+ kWidth,
+ kCoefficientsRgbY);
}
}
double total_time_seconds =
@@ -100,7 +102,8 @@ TEST_F(YUVConvertPerfTest, ConvertYUVToRGB32Row_SSE) {
yuv_bytes_.get() + kSourceUOffset + (chroma_row * kSourceWidth / 2),
yuv_bytes_.get() + kSourceVOffset + (chroma_row * kSourceWidth / 2),
rgb_bytes_converted_.get(),
- kWidth);
+ kWidth,
+ kCoefficientsRgbY);
}
}
double total_time_seconds =
@@ -126,7 +129,8 @@ TEST_F(YUVConvertPerfTest, ScaleYUVToRGB32Row_MMX) {
yuv_bytes_.get() + kSourceVOffset + (chroma_row * kSourceWidth / 2),
rgb_bytes_converted_.get(),
kWidth,
- kSourceDx);
+ kSourceDx,
+ kCoefficientsRgbY);
}
}
double total_time_seconds =
@@ -152,7 +156,8 @@ TEST_F(YUVConvertPerfTest, ScaleYUVToRGB32Row_SSE) {
yuv_bytes_.get() + kSourceVOffset + (chroma_row * kSourceWidth / 2),
rgb_bytes_converted_.get(),
kWidth,
- kSourceDx);
+ kSourceDx,
+ kCoefficientsRgbY);
}
}
double total_time_seconds =
@@ -178,7 +183,8 @@ TEST_F(YUVConvertPerfTest, LinearScaleYUVToRGB32Row_MMX) {
yuv_bytes_.get() + kSourceVOffset + (chroma_row * kSourceWidth / 2),
rgb_bytes_converted_.get(),
kWidth,
- kSourceDx);
+ kSourceDx,
+ kCoefficientsRgbY);
}
}
double total_time_seconds =
@@ -204,7 +210,8 @@ TEST_F(YUVConvertPerfTest, LinearScaleYUVToRGB32Row_SSE) {
yuv_bytes_.get() + kSourceVOffset + (chroma_row * kSourceWidth / 2),
rgb_bytes_converted_.get(),
kWidth,
- kSourceDx);
+ kSourceDx,
+ kCoefficientsRgbY);
}
}
double total_time_seconds =
« no previous file with comments | « media/base/yuv_convert.cc ('k') | media/base/yuv_convert_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698