Commit 0e82bd7e authored by fbarchard@google.com's avatar fbarchard@google.com

respect subsample in planar unittest

BUG=289
TESTED=drmemory on YUY2ToI420_Opt with odd width
R=tpsiaki@google.com

Review URL: https://webrtc-codereview.appspot.com/4709004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@881 16f28f9a-4ce2-e073-06de-1de4eb20be90
parent c2295807
......@@ -579,7 +579,8 @@ TESTBIPLANARTOB(NV21, 2, 2, RGB565, 2, 9)
TEST_F(libyuvTest, FMT_A##To##FMT_PLANAR##N) { \
const int kWidth = ((W1280) > 0) ? (W1280) : 1; \
const int kHeight = ALIGNINT(benchmark_height_, YALIGN); \
const int kStride = (kWidth * 8 * BPP_A + 7) / 8; \
const int kStride = \
(SUBSAMPLE(kWidth, SUBSAMP_X) * SUBSAMP_X * 8 * BPP_A + 7) / 8; \
align_buffer_64(src_argb, kStride * kHeight + OFF); \
align_buffer_64(dst_y_c, kWidth * kHeight); \
align_buffer_64(dst_u_c, \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment