adopt some clang 5.0.0 formatting

At least the changes that don't conflict with 4.0.1

Change-Id: I9b6a7c14dadc0738cd0f628a10ece90fc7ee89fd
This commit is contained in:
Johann 2017-12-28 14:57:02 -08:00
parent 1633786bfb
commit f5b2dd2a66
23 changed files with 92 additions and 92 deletions

View File

@ -28,8 +28,8 @@
using libvpx_test::ACMRandom; using libvpx_test::ACMRandom;
using libvpx_test::Buffer; using libvpx_test::Buffer;
using std::tr1::tuple;
using std::tr1::make_tuple; using std::tr1::make_tuple;
using std::tr1::tuple;
namespace { namespace {
typedef void (*PartialFdctFunc)(const int16_t *in, tran_low_t *out, int stride); typedef void (*PartialFdctFunc)(const int16_t *in, tran_low_t *out, int stride);

View File

@ -28,8 +28,8 @@
using libvpx_test::ACMRandom; using libvpx_test::ACMRandom;
using libvpx_test::Buffer; using libvpx_test::Buffer;
using std::tr1::tuple;
using std::tr1::make_tuple; using std::tr1::make_tuple;
using std::tr1::tuple;
namespace { namespace {
typedef void (*FdctFunc)(const int16_t *in, tran_low_t *out, int stride); typedef void (*FdctFunc)(const int16_t *in, tran_low_t *out, int stride);

View File

@ -174,4 +174,4 @@ INSTANTIATE_TEST_CASE_P(MSA, IDCTTest,
INSTANTIATE_TEST_CASE_P(MMI, IDCTTest, INSTANTIATE_TEST_CASE_P(MMI, IDCTTest,
::testing::Values(vp8_short_idct4x4llm_mmi)); ::testing::Values(vp8_short_idct4x4llm_mmi));
#endif // HAVE_MMI #endif // HAVE_MMI
} } // namespace

View File

@ -27,8 +27,8 @@
namespace { namespace {
using std::string;
using libvpx_test::ACMRandom; using libvpx_test::ACMRandom;
using std::string;
#if CONFIG_WEBM_IO #if CONFIG_WEBM_IO

View File

@ -6,7 +6,7 @@
* tree. An additional intellectual property rights grant can be found * tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may * in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree. * be found in the AUTHORS file in the root of the source tree.
*/ */
#ifndef VP8_COMMON_DEFAULT_COEF_PROBS_H_ #ifndef VP8_COMMON_DEFAULT_COEF_PROBS_H_
#define VP8_COMMON_DEFAULT_COEF_PROBS_H_ #define VP8_COMMON_DEFAULT_COEF_PROBS_H_

View File

@ -6,7 +6,7 @@
* tree. An additional intellectual property rights grant can be found * tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may * in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree. * be found in the AUTHORS file in the root of the source tree.
*/ */
#ifndef VP8_COMMON_VP8_ENTROPYMODEDATA_H_ #ifndef VP8_COMMON_VP8_ENTROPYMODEDATA_H_
#define VP8_COMMON_VP8_ENTROPYMODEDATA_H_ #define VP8_COMMON_VP8_ENTROPYMODEDATA_H_

View File

@ -9,12 +9,12 @@
*/ */
/**************************************************************************** /****************************************************************************
* *
* Module Title : boolhuff.h * Module Title : boolhuff.h
* *
* Description : Bool Coder header file. * Description : Bool Coder header file.
* *
****************************************************************************/ ****************************************************************************/
#ifndef VP8_ENCODER_BOOLHUFF_H_ #ifndef VP8_ENCODER_BOOLHUFF_H_
#define VP8_ENCODER_BOOLHUFF_H_ #define VP8_ENCODER_BOOLHUFF_H_

View File

@ -1,12 +1,12 @@
/* /*
* Copyright (c) 2016 The WebM project authors. All Rights Reserved. * Copyright (c) 2016 The WebM project authors. All Rights Reserved.
* *
* Use of this source code is governed by a BSD-style license * Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source * that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found * tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may * in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree. * be found in the AUTHORS file in the root of the source tree.
*/ */
#include <math.h> #include <math.h>
#include <assert.h> #include <assert.h>
@ -24,8 +24,8 @@ double vpx_sse_to_psnr(double samples, double peak, double sse) {
} }
/* TODO(yaowu): The block_variance calls the unoptimized versions of variance() /* TODO(yaowu): The block_variance calls the unoptimized versions of variance()
* and highbd_8_variance(). It should not. * and highbd_8_variance(). It should not.
*/ */
static void encoder_variance(const uint8_t *a, int a_stride, const uint8_t *b, static void encoder_variance(const uint8_t *a, int a_stride, const uint8_t *b,
int b_stride, int w, int h, unsigned int *sse, int b_stride, int w, int h, unsigned int *sse,
int *sum) { int *sum) {

View File

@ -1,12 +1,12 @@
/* /*
* Copyright (c) 2016 The WebM project authors. All Rights Reserved. * Copyright (c) 2016 The WebM project authors. All Rights Reserved.
* *
* Use of this source code is governed by a BSD-style license * Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source * that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found * tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may * in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree. * be found in the AUTHORS file in the root of the source tree.
*/ */
#ifndef VPX_DSP_PSNR_H_ #ifndef VPX_DSP_PSNR_H_
#define VPX_DSP_PSNR_H_ #define VPX_DSP_PSNR_H_
@ -28,13 +28,13 @@ typedef struct {
// TODO(dkovalev) change vpx_sse_to_psnr signature: double -> int64_t // TODO(dkovalev) change vpx_sse_to_psnr signature: double -> int64_t
/*!\brief Converts SSE to PSNR /*!\brief Converts SSE to PSNR
* *
* Converts sum of squared errros (SSE) to peak signal-to-noise ratio (PNSR). * Converts sum of squared errros (SSE) to peak signal-to-noise ratio (PNSR).
* *
* \param[in] samples Number of samples * \param[in] samples Number of samples
* \param[in] peak Max sample value * \param[in] peak Max sample value
* \param[in] sse Sum of squared errors * \param[in] sse Sum of squared errors
*/ */
double vpx_sse_to_psnr(double samples, double peak, double sse); double vpx_sse_to_psnr(double samples, double peak, double sse);
int64_t vpx_get_y_sse(const YV12_BUFFER_CONFIG *a, const YV12_BUFFER_CONFIG *b); int64_t vpx_get_y_sse(const YV12_BUFFER_CONFIG *a, const YV12_BUFFER_CONFIG *b);
#if CONFIG_VP9_HIGHBITDEPTH #if CONFIG_VP9_HIGHBITDEPTH

View File

@ -12,8 +12,8 @@
#include "vpx_scale/vpx_scale.h" #include "vpx_scale/vpx_scale.h"
#include "vpx_mem/vpx_mem.h" #include "vpx_mem/vpx_mem.h"
/**************************************************************************** /****************************************************************************
* Imports * Imports
****************************************************************************/ ****************************************************************************/
/**************************************************************************** /****************************************************************************
* *

View File

@ -17,8 +17,8 @@
***************************************************************************/ ***************************************************************************/
/**************************************************************************** /****************************************************************************
* Header Files * Header Files
****************************************************************************/ ****************************************************************************/
#include "./vpx_scale_rtcd.h" #include "./vpx_scale_rtcd.h"
#include "vpx_mem/vpx_mem.h" #include "vpx_mem/vpx_mem.h"
#include "vpx_scale/vpx_scale.h" #include "vpx_scale/vpx_scale.h"

View File

@ -16,8 +16,8 @@
#include "vpx_ports/mem.h" #include "vpx_ports/mem.h"
/**************************************************************************** /****************************************************************************
* Exports * Exports
****************************************************************************/ ****************************************************************************/
/**************************************************************************** /****************************************************************************
* *

View File

@ -130,8 +130,8 @@ static int y4m_parse_tags(y4m_input *_y4m, char *_tags) {
The number of taps is intentionally kept small to reduce computational The number of taps is intentionally kept small to reduce computational
overhead and limit ringing. overhead and limit ringing.
The taps from these filters are scaled so that their sum is 1, and the result The taps from these filters are scaled so that their sum is 1, and the
is scaled by 128 and rounded to integers to create a filter whose result is scaled by 128 and rounded to integers to create a filter whose
intermediate values fit inside 16 bits. intermediate values fit inside 16 bits.
Coefficients are rounded in such a way as to ensure their sum is still 128, Coefficients are rounded in such a way as to ensure their sum is still 128,
which is usually equivalent to normal rounding. which is usually equivalent to normal rounding.