mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-18 07:18:34 +00:00
[libvpx] Update to v1.17.0-97-gd3335af9e
This commit is contained in:
1 parent
7481baed18
commit
a55111af58
615 files changed
+68654
-28912
No files matched your search
@@ -11,7 +11,7 @@
|
||||
#include <string.h>
|
||||
#include <tuple>
|
||||
|
||||
#include "third_party/googletest/src/include/gtest/gtest.h"
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
#include "./vp8_rtcd.h"
|
||||
#include "./vpx_config.h"
|
||||
@@ -33,9 +33,9 @@ namespace {
|
||||
const int kNumBlocks = 25;
|
||||
const int kNumBlockEntries = 16;
|
||||
|
||||
typedef void (*VP8Quantize)(BLOCK *b, BLOCKD *d);
|
||||
using VP8Quantize = void (*)(BLOCK *b, BLOCKD *d);
|
||||
|
||||
typedef std::tuple<VP8Quantize, VP8Quantize> VP8QuantizeParam;
|
||||
using VP8QuantizeParam = std::tuple<VP8Quantize, VP8Quantize>;
|
||||
|
||||
using libvpx_test::ACMRandom;
|
||||
using std::make_tuple;
|
||||
@@ -71,7 +71,7 @@ class QuantizeTestBase {
|
||||
// Copy macroblockd from the reference to get pre-set-up dequant values.
|
||||
macroblockd_dst_ = reinterpret_cast<MACROBLOCKD *>(
|
||||
vpx_memalign(32, sizeof(*macroblockd_dst_)));
|
||||
memcpy(macroblockd_dst_, &vp8_comp_->mb.e_mbd, sizeof(*macroblockd_dst_));
|
||||
*macroblockd_dst_ = vp8_comp_->mb.e_mbd;
|
||||
// Fix block pointers - currently they point to the blocks in the reference
|
||||
// structure.
|
||||
vp8_setup_block_dptrs(macroblockd_dst_);
|
||||
@@ -80,7 +80,7 @@ class QuantizeTestBase {
|
||||
void UpdateQuantizer(int q) {
|
||||
vp8_set_quantizer(vp8_comp_, q);
|
||||
|
||||
memcpy(macroblockd_dst_, &vp8_comp_->mb.e_mbd, sizeof(*macroblockd_dst_));
|
||||
*macroblockd_dst_ = vp8_comp_->mb.e_mbd;
|
||||
vp8_setup_block_dptrs(macroblockd_dst_);
|
||||
}
|
||||
|
||||
@@ -121,13 +121,13 @@ class QuantizeTest : public QuantizeTestBase,
|
||||
public ::testing::TestWithParam<VP8QuantizeParam>,
|
||||
public AbstractBench {
|
||||
protected:
|
||||
virtual void SetUp() {
|
||||
void SetUp() override {
|
||||
SetupCompressor();
|
||||
asm_quant_ = GET_PARAM(0);
|
||||
c_quant_ = GET_PARAM(1);
|
||||
}
|
||||
|
||||
virtual void Run() {
|
||||
void Run() override {
|
||||
asm_quant_(&vp8_comp_->mb.block[0], ¯oblockd_dst_->block[0]);
|
||||
}
|
||||
|
||||
@@ -228,7 +228,8 @@ INSTANTIATE_TEST_SUITE_P(
|
||||
#if HAVE_LSX
|
||||
INSTANTIATE_TEST_SUITE_P(
|
||||
LSX, QuantizeTest,
|
||||
::testing::Values(make_tuple(&vp8_regular_quantize_b_lsx,
|
||||
&vp8_regular_quantize_b_c)));
|
||||
::testing::Values(
|
||||
make_tuple(&vp8_fast_quantize_b_lsx, &vp8_fast_quantize_b_c),
|
||||
make_tuple(&vp8_regular_quantize_b_lsx, &vp8_regular_quantize_b_c)));
|
||||
#endif // HAVE_LSX
|
||||
} // namespace
|
||||
Reference in new issue
Block a user