mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-07 01:06:46 +08:00
Fix for subsampling that caused a valgrind memcheck fail.
BUG=79 TEST=build bots should pass Review URL: https://webrtc-codereview.appspot.com/806005 git-svn-id: http://libyuv.googlecode.com/svn/trunk@358 16f28f9a-4ce2-e073-06de-1de4eb20be90
This commit is contained in:
parent
bc81e2dc05
commit
13f3894033
@ -1,6 +1,6 @@
|
|||||||
Name: libyuv
|
Name: libyuv
|
||||||
URL: http://code.google.com/p/libyuv/
|
URL: http://code.google.com/p/libyuv/
|
||||||
Version: 357
|
Version: 358
|
||||||
License: BSD
|
License: BSD
|
||||||
License File: LICENSE
|
License File: LICENSE
|
||||||
|
|
||||||
|
|||||||
@ -11,6 +11,6 @@
|
|||||||
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
|
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
|
||||||
#define INCLUDE_LIBYUV_VERSION_H_
|
#define INCLUDE_LIBYUV_VERSION_H_
|
||||||
|
|
||||||
#define LIBYUV_VERSION 357
|
#define LIBYUV_VERSION 358
|
||||||
|
|
||||||
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
|
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
|
||||||
|
|||||||
@ -41,8 +41,8 @@ TEST_F(libyuvTest, FMT_PLANAR##To##FMT_B##N##_OptVsC) { \
|
|||||||
for (int i = 0; i < kHeight; ++i) \
|
for (int i = 0; i < kHeight; ++i) \
|
||||||
for (int j = 0; j < kWidth; ++j) \
|
for (int j = 0; j < kWidth; ++j) \
|
||||||
src_y[(i * kWidth) + j] = (random() & 0xff); \
|
src_y[(i * kWidth) + j] = (random() & 0xff); \
|
||||||
for (int i = 0; i < kHeight / SUBSAMP_X; ++i) \
|
for (int i = 0; i < kHeight / SUBSAMP_Y; ++i) \
|
||||||
for (int j = 0; j < kWidth / SUBSAMP_Y; ++j) { \
|
for (int j = 0; j < kWidth / SUBSAMP_X; ++j) { \
|
||||||
src_u[(i * kWidth / SUBSAMP_X) + j] = (random() & 0xff); \
|
src_u[(i * kWidth / SUBSAMP_X) + j] = (random() & 0xff); \
|
||||||
src_v[(i * kWidth / SUBSAMP_X) + j] = (random() & 0xff); \
|
src_v[(i * kWidth / SUBSAMP_X) + j] = (random() & 0xff); \
|
||||||
} \
|
} \
|
||||||
@ -117,8 +117,8 @@ TEST_F(libyuvTest, FMT_PLANAR##To##FMT_B##N##_OptVsC) { \
|
|||||||
for (int i = 0; i < kHeight; ++i) \
|
for (int i = 0; i < kHeight; ++i) \
|
||||||
for (int j = 0; j < kWidth; ++j) \
|
for (int j = 0; j < kWidth; ++j) \
|
||||||
src_y[(i * kWidth) + j] = (random() & 0xff); \
|
src_y[(i * kWidth) + j] = (random() & 0xff); \
|
||||||
for (int i = 0; i < kHeight / SUBSAMP_X; ++i) \
|
for (int i = 0; i < kHeight / SUBSAMP_Y; ++i) \
|
||||||
for (int j = 0; j < kWidth / SUBSAMP_Y * 2; ++j) { \
|
for (int j = 0; j < kWidth / SUBSAMP_X * 2; ++j) { \
|
||||||
src_uv[(i * kWidth / SUBSAMP_X) * 2 + j] = (random() & 0xff); \
|
src_uv[(i * kWidth / SUBSAMP_X) * 2 + j] = (random() & 0xff); \
|
||||||
} \
|
} \
|
||||||
MaskCpuFlags(kCpuInitialized); \
|
MaskCpuFlags(kCpuInitialized); \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user