summaryrefslogtreecommitdiff
path: root/vp8/common/alloccommon.c
diff options
context:
space:
mode:
authorJohn Koleszar <jkoleszar@google.com>2011-03-17 17:07:59 -0400
committerJohn Koleszar <jkoleszar@google.com>2011-03-17 20:53:47 -0400
commit429dc676b19ff8dbb5864e3c436de1b214e538b0 (patch)
treeaf0706b473fba2ada97ea22e30adc26e5435fcb9 /vp8/common/alloccommon.c
parent71bcd9f1af91f2dea22f2e71839039d83e5b1d84 (diff)
downloadlibvpx-429dc676b19ff8dbb5864e3c436de1b214e538b0.tar
libvpx-429dc676b19ff8dbb5864e3c436de1b214e538b0.tar.gz
libvpx-429dc676b19ff8dbb5864e3c436de1b214e538b0.tar.bz2
libvpx-429dc676b19ff8dbb5864e3c436de1b214e538b0.zip
Increase static linkage, remove unused functions
A large number of functions were defined with external linkage, even though they were only used from within one file. This patch changes their linkage to static and removes the vp8_ prefix from their names, which should make it more obvious to the reader that the function is contained within the current translation unit. Functions that were not referenced were removed. These symbols were identified by: $ nm -A libvpx.a | sort -k3 | uniq -c -f2 | grep ' [A-Z] ' \ | sort | grep '^ *1 ' Change-Id: I59609f58ab65312012c047036ae1e0634f795779
Diffstat (limited to 'vp8/common/alloccommon.c')
-rw-r--r--vp8/common/alloccommon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vp8/common/alloccommon.c b/vp8/common/alloccommon.c
index ceb9e525f..edef36094 100644
--- a/vp8/common/alloccommon.c
+++ b/vp8/common/alloccommon.c
@@ -20,7 +20,7 @@
extern void vp8_init_scan_order_mask();
-void vp8_update_mode_info_border(MODE_INFO *mi, int rows, int cols)
+static void update_mode_info_border(MODE_INFO *mi, int rows, int cols)
{
int i;
vpx_memset(mi - cols - 2, 0, sizeof(MODE_INFO) * (cols + 1));
@@ -119,7 +119,7 @@ int vp8_alloc_frame_buffers(VP8_COMMON *oci, int width, int height)
return 1;
}
- vp8_update_mode_info_border(oci->mi, oci->mb_rows, oci->mb_cols);
+ update_mode_info_border(oci->mi, oci->mb_rows, oci->mb_cols);
return 0;
}