mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 01:26:58 +00:00
update libyuv to hash 5a699df5 from https://chromium.googlesource.com/libyuv/libyuv/
This commit is contained in:
committed by
Andrey Volk
parent
a714dacd7f
commit
5a924d5ef3
@@ -12,11 +12,11 @@
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "../unit_test/unit_test.h"
|
||||
#include "libyuv/basic_types.h"
|
||||
#include "libyuv/cpu_id.h"
|
||||
#include "libyuv/scale.h"
|
||||
#include "libyuv/scale_row.h"
|
||||
#include "../unit_test/unit_test.h"
|
||||
|
||||
namespace libyuv {
|
||||
|
||||
@@ -65,8 +65,8 @@ TEST_F(LibYUVBaseTest, TestFixedDiv) {
|
||||
}
|
||||
EXPECT_EQ(123 * 65536, libyuv::FixedDiv(123, 1));
|
||||
|
||||
MemRandomize(reinterpret_cast<uint8*>(&num[0]), sizeof(num));
|
||||
MemRandomize(reinterpret_cast<uint8*>(&div[0]), sizeof(div));
|
||||
MemRandomize(reinterpret_cast<uint8_t*>(&num[0]), sizeof(num));
|
||||
MemRandomize(reinterpret_cast<uint8_t*>(&div[0]), sizeof(div));
|
||||
for (int j = 0; j < 1280; ++j) {
|
||||
if (div[j] == 0) {
|
||||
div[j] = 1280;
|
||||
@@ -90,8 +90,8 @@ TEST_F(LibYUVBaseTest, TestFixedDiv_Opt) {
|
||||
int result_opt[1280];
|
||||
int result_c[1280];
|
||||
|
||||
MemRandomize(reinterpret_cast<uint8*>(&num[0]), sizeof(num));
|
||||
MemRandomize(reinterpret_cast<uint8*>(&div[0]), sizeof(div));
|
||||
MemRandomize(reinterpret_cast<uint8_t*>(&num[0]), sizeof(num));
|
||||
MemRandomize(reinterpret_cast<uint8_t*>(&div[0]), sizeof(div));
|
||||
for (int j = 0; j < 1280; ++j) {
|
||||
num[j] &= 4095; // Make numerator smaller.
|
||||
div[j] &= 4095; // Make divisor smaller.
|
||||
@@ -124,8 +124,8 @@ TEST_F(LibYUVBaseTest, TestFixedDiv1_Opt) {
|
||||
int result_opt[1280];
|
||||
int result_c[1280];
|
||||
|
||||
MemRandomize(reinterpret_cast<uint8*>(&num[0]), sizeof(num));
|
||||
MemRandomize(reinterpret_cast<uint8*>(&div[0]), sizeof(div));
|
||||
MemRandomize(reinterpret_cast<uint8_t*>(&num[0]), sizeof(num));
|
||||
MemRandomize(reinterpret_cast<uint8_t*>(&div[0]), sizeof(div));
|
||||
for (int j = 0; j < 1280; ++j) {
|
||||
num[j] &= 4095; // Make numerator smaller.
|
||||
div[j] &= 4095; // Make divisor smaller.
|
||||
|
Reference in New Issue
Block a user