diff options
author | rileya@chromium.org <rileya@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-04 01:05:51 +0000 |
---|---|---|
committer | rileya@chromium.org <rileya@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-04 01:05:51 +0000 |
commit | 6be9232bbdf56b40bbb107923827de925d34049a (patch) | |
tree | f434fce4139c781ed5386b2594636896e81a8850 /media/base/yuv_convert_perftest.cc | |
parent | 9630731e7c4bec5722917760a04b56d34da460da (diff) | |
download | chromium_src-6be9232bbdf56b40bbb107923827de925d34049a.zip chromium_src-6be9232bbdf56b40bbb107923827de925d34049a.tar.gz chromium_src-6be9232bbdf56b40bbb107923827de925d34049a.tar.bz2 |
Re-land: Add correct support for videos with YUVJ420P color format, in the software conversion path (https://codereview.chromium.org/242643011/).
Fixes media_perftests on linux-clang-dbg.
BUG=172898
TBR=scherkus
Review URL: https://codereview.chromium.org/267933005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268091 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/yuv_convert_perftest.cc')
-rw-r--r-- | media/base/yuv_convert_perftest.cc | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/media/base/yuv_convert_perftest.cc b/media/base/yuv_convert_perftest.cc index 0188ce6..0f30beb 100644 --- a/media/base/yuv_convert_perftest.cc +++ b/media/base/yuv_convert_perftest.cc @@ -76,7 +76,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, + GetLookupTable(YV12)); } } double total_time_seconds = @@ -100,7 +101,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, + GetLookupTable(YV12)); } } double total_time_seconds = @@ -126,7 +128,8 @@ TEST_F(YUVConvertPerfTest, ScaleYUVToRGB32Row_MMX) { yuv_bytes_.get() + kSourceVOffset + (chroma_row * kSourceWidth / 2), rgb_bytes_converted_.get(), kWidth, - kSourceDx); + kSourceDx, + GetLookupTable(YV12)); } } double total_time_seconds = @@ -152,7 +155,8 @@ TEST_F(YUVConvertPerfTest, ScaleYUVToRGB32Row_SSE) { yuv_bytes_.get() + kSourceVOffset + (chroma_row * kSourceWidth / 2), rgb_bytes_converted_.get(), kWidth, - kSourceDx); + kSourceDx, + GetLookupTable(YV12)); } } double total_time_seconds = @@ -178,7 +182,8 @@ TEST_F(YUVConvertPerfTest, LinearScaleYUVToRGB32Row_MMX) { yuv_bytes_.get() + kSourceVOffset + (chroma_row * kSourceWidth / 2), rgb_bytes_converted_.get(), kWidth, - kSourceDx); + kSourceDx, + GetLookupTable(YV12)); } } double total_time_seconds = @@ -204,7 +209,8 @@ TEST_F(YUVConvertPerfTest, LinearScaleYUVToRGB32Row_SSE) { yuv_bytes_.get() + kSourceVOffset + (chroma_row * kSourceWidth / 2), rgb_bytes_converted_.get(), kWidth, - kSourceDx); + kSourceDx, + GetLookupTable(YV12)); } } double total_time_seconds = |