mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-06 16:56:55 +08:00
lint fixes
BUG=none TEST=LINT R=tpsiaki@google.com Review URL: https://webrtc-codereview.appspot.com/6409004 git-svn-id: http://libyuv.googlecode.com/svn/trunk@929 16f28f9a-4ce2-e073-06de-1de4eb20be90
This commit is contained in:
parent
d9c9f37ac4
commit
6b6eb8cd36
@ -1,6 +1,6 @@
|
|||||||
Name: libyuv
|
Name: libyuv
|
||||||
URL: http://code.google.com/p/libyuv/
|
URL: http://code.google.com/p/libyuv/
|
||||||
Version: 928
|
Version: 929
|
||||||
License: BSD
|
License: BSD
|
||||||
License File: LICENSE
|
License File: LICENSE
|
||||||
|
|
||||||
|
|||||||
@ -11,10 +11,10 @@
|
|||||||
#ifndef INCLUDE_LIBYUV_ROW_H_ // NOLINT
|
#ifndef INCLUDE_LIBYUV_ROW_H_ // NOLINT
|
||||||
#define INCLUDE_LIBYUV_ROW_H_
|
#define INCLUDE_LIBYUV_ROW_H_
|
||||||
|
|
||||||
#include "libyuv/basic_types.h"
|
|
||||||
|
|
||||||
#include <stdlib.h> // For malloc.
|
#include <stdlib.h> // For malloc.
|
||||||
|
|
||||||
|
#include "libyuv/basic_types.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
namespace libyuv {
|
namespace libyuv {
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@ -22,7 +22,7 @@ extern "C" {
|
|||||||
|
|
||||||
#define IS_ALIGNED(p, a) (!((uintptr_t)(p) & ((a) - 1)))
|
#define IS_ALIGNED(p, a) (!((uintptr_t)(p) & ((a) - 1)))
|
||||||
|
|
||||||
// TODO (fbarchard): Port to C.
|
// TODO(fbarchard): Port to C.
|
||||||
#define align_buffer_64(var, size) \
|
#define align_buffer_64(var, size) \
|
||||||
uint8* var; \
|
uint8* var; \
|
||||||
uint8* var##_mem; \
|
uint8* var##_mem; \
|
||||||
@ -44,7 +44,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Enable for NaCL pepper 33 for bundle and AVX2 support.
|
// Enable for NaCL pepper 33 for bundle and AVX2 support.
|
||||||
//#define NEW_BINUTILS
|
// #define NEW_BINUTILS
|
||||||
|
|
||||||
// The following are available on all x86 platforms:
|
// The following are available on all x86 platforms:
|
||||||
#if !defined(LIBYUV_DISABLE_X86) && \
|
#if !defined(LIBYUV_DISABLE_X86) && \
|
||||||
|
|||||||
@ -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 928
|
#define LIBYUV_VERSION 929
|
||||||
|
|
||||||
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
|
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
|
||||||
|
|||||||
@ -89,7 +89,6 @@ void ARGBRotate270(const uint8* src, int src_stride,
|
|||||||
ARGBTranspose(src, src_stride, dst, dst_stride, width, height);
|
ARGBTranspose(src, src_stride, dst, dst_stride, width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
SAFEBUFFERS
|
|
||||||
void ARGBRotate180(const uint8* src, int src_stride,
|
void ARGBRotate180(const uint8* src, int src_stride,
|
||||||
uint8* dst, int dst_stride,
|
uint8* dst, int dst_stride,
|
||||||
int width, int height) {
|
int width, int height) {
|
||||||
|
|||||||
@ -375,7 +375,6 @@ static void ScaleAddCols1_C(int dst_width, int boxheight, int x, int dx,
|
|||||||
// one pixel of destination using fixed point (16.16) to step
|
// one pixel of destination using fixed point (16.16) to step
|
||||||
// through source, sampling a box of pixel with simple
|
// through source, sampling a box of pixel with simple
|
||||||
// averaging.
|
// averaging.
|
||||||
SAFEBUFFERS
|
|
||||||
static void ScalePlaneBox(int src_width, int src_height,
|
static void ScalePlaneBox(int src_width, int src_height,
|
||||||
int dst_width, int dst_height,
|
int dst_width, int dst_height,
|
||||||
int src_stride, int dst_stride,
|
int src_stride, int dst_stride,
|
||||||
@ -445,7 +444,6 @@ static void ScalePlaneBox(int src_width, int src_height,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Scale plane down with bilinear interpolation.
|
// Scale plane down with bilinear interpolation.
|
||||||
SAFEBUFFERS
|
|
||||||
void ScalePlaneBilinearDown(int src_width, int src_height,
|
void ScalePlaneBilinearDown(int src_width, int src_height,
|
||||||
int dst_width, int dst_height,
|
int dst_width, int dst_height,
|
||||||
int src_stride, int dst_stride,
|
int src_stride, int dst_stride,
|
||||||
@ -545,7 +543,6 @@ void ScalePlaneBilinearDown(int src_width, int src_height,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Scale up down with bilinear interpolation.
|
// Scale up down with bilinear interpolation.
|
||||||
SAFEBUFFERS
|
|
||||||
void ScalePlaneBilinearUp(int src_width, int src_height,
|
void ScalePlaneBilinearUp(int src_width, int src_height,
|
||||||
int dst_width, int dst_height,
|
int dst_width, int dst_height,
|
||||||
int src_stride, int dst_stride,
|
int src_stride, int dst_stride,
|
||||||
@ -789,7 +786,7 @@ void ScalePlane(const uint8* src, int src_stride,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (filtering == kFilterBox && dst_height * 2 < src_height ) {
|
if (filtering == kFilterBox && dst_height * 2 < src_height) {
|
||||||
ScalePlaneBox(src_width, src_height, dst_width, dst_height,
|
ScalePlaneBox(src_width, src_height, dst_width, dst_height,
|
||||||
src_stride, dst_stride, src, dst);
|
src_stride, dst_stride, src, dst);
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -162,7 +162,6 @@ static void ScaleARGBDownEven(int src_width, int src_height,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Scale ARGB down with bilinear interpolation.
|
// Scale ARGB down with bilinear interpolation.
|
||||||
SAFEBUFFERS
|
|
||||||
static void ScaleARGBBilinearDown(int src_height,
|
static void ScaleARGBBilinearDown(int src_height,
|
||||||
int dst_width, int dst_height,
|
int dst_width, int dst_height,
|
||||||
int src_stride, int dst_stride,
|
int src_stride, int dst_stride,
|
||||||
@ -262,7 +261,6 @@ static void ScaleARGBBilinearDown(int src_height,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Scale ARGB up with bilinear interpolation.
|
// Scale ARGB up with bilinear interpolation.
|
||||||
SAFEBUFFERS
|
|
||||||
static void ScaleARGBBilinearUp(int src_width, int src_height,
|
static void ScaleARGBBilinearUp(int src_width, int src_height,
|
||||||
int dst_width, int dst_height,
|
int dst_width, int dst_height,
|
||||||
int src_stride, int dst_stride,
|
int src_stride, int dst_stride,
|
||||||
@ -396,7 +394,6 @@ static void ScaleARGBBilinearUp(int src_width, int src_height,
|
|||||||
|
|
||||||
#ifdef YUVSCALEUP
|
#ifdef YUVSCALEUP
|
||||||
// Scale YUV to ARGB up with bilinear interpolation.
|
// Scale YUV to ARGB up with bilinear interpolation.
|
||||||
SAFEBUFFERS
|
|
||||||
static void ScaleYUVToARGBBilinearUp(int src_width, int src_height,
|
static void ScaleYUVToARGBBilinearUp(int src_width, int src_height,
|
||||||
int dst_width, int dst_height,
|
int dst_width, int dst_height,
|
||||||
int src_stride_y,
|
int src_stride_y,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user