ref: ef28aacd4a5a7336b90522803310d37ed799c641
parent: 7bf461666aaadafdfd77a6b418a5f9fcfb1717a0
author: Ronald S. Bultje <rbultje@google.com>
date: Mon Oct 29 14:15:04 EDT 2012
reconintra: make locally used symbols static. Also remove them from the header file. Change-Id: I38182f70268fd47985fb1d8d87cdeb207f67e475
--- a/vp8/common/reconintra.c
+++ b/vp8/common/reconintra.c
@@ -18,8 +18,8 @@
* and vp8_build_intra_predictors_mbuv_s(MACROBLOCKD *xd).
*/
-void d27_predictor(unsigned char *ypred_ptr, int y_stride, int n,
- unsigned char *yabove_row, unsigned char *yleft_col) {
+static void d27_predictor(uint8_t *ypred_ptr, int y_stride, int n,
+ uint8_t *yabove_row, uint8_t *yleft_col) {
int r, c, h, w, v;
int a, b;
r = 0;
@@ -66,8 +66,8 @@
}
}
-void d63_predictor(unsigned char *ypred_ptr, int y_stride, int n,
- unsigned char *yabove_row, unsigned char *yleft_col) {
+static void d63_predictor(uint8_t *ypred_ptr, int y_stride, int n,
+ uint8_t *yabove_row, uint8_t *yleft_col) {
int r, c, h, w, v;
int a, b;
c = 0;
@@ -113,8 +113,8 @@
}
}
-void d45_predictor(unsigned char *ypred_ptr, int y_stride, int n,
- unsigned char *yabove_row, unsigned char *yleft_col) {
+static void d45_predictor(uint8_t *ypred_ptr, int y_stride, int n,
+ uint8_t *yabove_row, uint8_t *yleft_col) {
int r, c;
for (r = 0; r < n - 1; ++r) {
for (c = 0; c <= r; ++c) {
@@ -139,8 +139,8 @@
}
}
-void d117_predictor(unsigned char *ypred_ptr, int y_stride, int n,
- unsigned char *yabove_row, unsigned char *yleft_col) {
+static void d117_predictor(uint8_t *ypred_ptr, int y_stride, int n,
+ uint8_t *yabove_row, uint8_t *yleft_col) {
int r, c;
for (c = 0; c < n; c++)
ypred_ptr[c] = (yabove_row[c - 1] + yabove_row[c] + 1) >> 1;
@@ -156,8 +156,8 @@
}
}
-void d135_predictor(unsigned char *ypred_ptr, int y_stride, int n,
- unsigned char *yabove_row, unsigned char *yleft_col) {
+static void d135_predictor(uint8_t *ypred_ptr, int y_stride, int n,
+ uint8_t *yabove_row, uint8_t *yleft_col) {
int r, c;
ypred_ptr[0] = yabove_row[-1];
for (c = 1; c < n; c++)
@@ -174,8 +174,8 @@
}
}
-void d153_predictor(unsigned char *ypred_ptr, int y_stride, int n,
- unsigned char *yabove_row, unsigned char *yleft_col) {
+static void d153_predictor(uint8_t *ypred_ptr, int y_stride, int n,
+ uint8_t *yabove_row, uint8_t *yleft_col) {
int r, c;
ypred_ptr[0] = (yabove_row[-1] + yleft_col[0] + 1) >> 1;
for (r = 1; r < n; r++)
--- a/vp8/common/reconintra.h
+++ b/vp8/common/reconintra.h
@@ -13,18 +13,6 @@
#define __INC_RECONINTRA_H
#include "blockd.h"
-void d45_predictor(unsigned char *ypred_ptr, int y_stride, int n,
- unsigned char *yabove_row, unsigned char *yleft_col);
-void d135_predictor(unsigned char *ypred_ptr, int y_stride, int n,
- unsigned char *yabove_row, unsigned char *yleft_col);
-void d116_predictor(unsigned char *ypred_ptr, int y_stride, int n,
- unsigned char *yabove_row, unsigned char *yleft_col);
-void d153_predictor(unsigned char *ypred_ptr, int y_stride, int n,
- unsigned char *yabove_row, unsigned char *yleft_col);
-void d27_predictor(unsigned char *ypred_ptr, int y_stride, int n,
- unsigned char *yabove_row, unsigned char *yleft_col);
-void d64_predictor(unsigned char *ypred_ptr, int y_stride, int n,
- unsigned char *yabove_row, unsigned char *yleft_col);
extern void init_intra_left_above_pixels(MACROBLOCKD *xd);
--
⑨