mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-07 17:26:49 +08:00
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
This commit is contained in:
parent
c2295807bd
commit
0e82bd7e9f
@ -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, \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user