style: reformat C/C++ sources and headers with clang-format
Run clang-format over all project C/C++ source and header files (.c, .cpp, .cc, .h, .hpp, .hh, .m, .mm) under app/ and tests/. Non-source files (svg, qm, qrc, etc.) were not touched.
This commit is contained in:
@@ -9,7 +9,8 @@ extern "C" {
|
||||
#include <libavutil/channel_layout.h>
|
||||
}
|
||||
|
||||
namespace {
|
||||
namespace
|
||||
{
|
||||
|
||||
olive::core::AudioParams MakeMonoParams()
|
||||
{
|
||||
@@ -46,13 +47,11 @@ TEST(AudioWaveformSync, ExtractsRmsEnvelope)
|
||||
|
||||
TEST(AudioWaveformSync, EstimatesCandidateLag)
|
||||
{
|
||||
const QVector<float> reference_values = {
|
||||
0.0f, 0.0f, 0.8f, 0.8f, 0.1f, 0.1f, 0.6f, 0.6f, 0.0f, 0.0f
|
||||
};
|
||||
const QVector<float> candidate_values = {
|
||||
0.0f, 0.0f, 0.0f, 0.0f, 0.8f, 0.8f, 0.1f,
|
||||
0.1f, 0.6f, 0.6f, 0.0f, 0.0f
|
||||
};
|
||||
const QVector<float> reference_values = { 0.0f, 0.0f, 0.8f, 0.8f, 0.1f,
|
||||
0.1f, 0.6f, 0.6f, 0.0f, 0.0f };
|
||||
const QVector<float> candidate_values = { 0.0f, 0.0f, 0.0f, 0.0f,
|
||||
0.8f, 0.8f, 0.1f, 0.1f,
|
||||
0.6f, 0.6f, 0.0f, 0.0f };
|
||||
|
||||
const olive::AudioWaveformSync::OffsetResult result =
|
||||
olive::AudioWaveformSync::EstimateOffset(
|
||||
@@ -65,13 +64,11 @@ TEST(AudioWaveformSync, EstimatesCandidateLag)
|
||||
|
||||
TEST(AudioWaveformSync, EstimatesCandidateLead)
|
||||
{
|
||||
const QVector<float> reference_values = {
|
||||
0.0f, 0.0f, 0.0f, 0.0f, 0.9f, 0.9f, 0.3f,
|
||||
0.3f, 0.7f, 0.7f, 0.0f, 0.0f
|
||||
};
|
||||
const QVector<float> candidate_values = {
|
||||
0.9f, 0.9f, 0.3f, 0.3f, 0.7f, 0.7f, 0.0f, 0.0f
|
||||
};
|
||||
const QVector<float> reference_values = { 0.0f, 0.0f, 0.0f, 0.0f,
|
||||
0.9f, 0.9f, 0.3f, 0.3f,
|
||||
0.7f, 0.7f, 0.0f, 0.0f };
|
||||
const QVector<float> candidate_values = { 0.9f, 0.9f, 0.3f, 0.3f,
|
||||
0.7f, 0.7f, 0.0f, 0.0f };
|
||||
|
||||
const olive::AudioWaveformSync::OffsetResult result =
|
||||
olive::AudioWaveformSync::EstimateOffset(
|
||||
|
||||
Reference in New Issue
Block a user