summaryrefslogtreecommitdiff
path: root/vp8/encoder/rdopt.h
diff options
context:
space:
mode:
authorJohann <johannkoenig@google.com>2015-08-25 16:50:32 -0700
committerJohann <johannkoenig@google.com>2015-08-26 10:32:12 -0700
commit06ba5254eeee83a23c5f3783fb3ed5615d4b14c8 (patch)
tree86be25601d579fe8d70dcd1a2fc7bac045020d88 /vp8/encoder/rdopt.h
parent821f02947e0500e48eb0c48611f0bcda9b135a2b (diff)
downloadlibvpx-06ba5254eeee83a23c5f3783fb3ed5615d4b14c8.tar
libvpx-06ba5254eeee83a23c5f3783fb3ed5615d4b14c8.tar.gz
libvpx-06ba5254eeee83a23c5f3783fb3ed5615d4b14c8.tar.bz2
libvpx-06ba5254eeee83a23c5f3783fb3ed5615d4b14c8.zip
Clean up unused function warnings in vp8 encoder
Mark rdopt.h and treewriter.h functions with INLINE. Change-Id: Ib81168a709d09dfba7de16c596133310e04c6656
Diffstat (limited to 'vp8/encoder/rdopt.h')
-rw-r--r--vp8/encoder/rdopt.h26
1 files changed, 14 insertions, 12 deletions
diff --git a/vp8/encoder/rdopt.h b/vp8/encoder/rdopt.h
index b4fcd10b6..1cb1a0726 100644
--- a/vp8/encoder/rdopt.h
+++ b/vp8/encoder/rdopt.h
@@ -12,13 +12,15 @@
#ifndef VP8_ENCODER_RDOPT_H_
#define VP8_ENCODER_RDOPT_H_
+#include "./vpx_config.h"
+
#ifdef __cplusplus
extern "C" {
#endif
#define RDCOST(RM,DM,R,D) ( ((128+(R)*(RM)) >> 8) + (DM)*(D) )
-static void insertsortmv(int arr[], int len)
+static INLINE void insertsortmv(int arr[], int len)
{
int i, j, k;
@@ -41,7 +43,7 @@ static void insertsortmv(int arr[], int len)
}
}
-static void insertsortsad(int arr[],int idx[], int len)
+static INLINE void insertsortsad(int arr[],int idx[], int len)
{
int i, j, k;
@@ -77,10 +79,10 @@ extern void vp8_rd_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x,
extern void vp8_rd_pick_intra_mode(MACROBLOCK *x, int *rate);
-static void get_plane_pointers(const YV12_BUFFER_CONFIG *fb,
- unsigned char *plane[3],
- unsigned int recon_yoffset,
- unsigned int recon_uvoffset)
+static INLINE void get_plane_pointers(const YV12_BUFFER_CONFIG *fb,
+ unsigned char *plane[3],
+ unsigned int recon_yoffset,
+ unsigned int recon_uvoffset)
{
plane[0] = fb->y_buffer + recon_yoffset;
plane[1] = fb->u_buffer + recon_uvoffset;
@@ -88,10 +90,10 @@ static void get_plane_pointers(const YV12_BUFFER_CONFIG *fb,
}
-static void get_predictor_pointers(const VP8_COMP *cpi,
- unsigned char *plane[4][3],
- unsigned int recon_yoffset,
- unsigned int recon_uvoffset)
+static INLINE void get_predictor_pointers(const VP8_COMP *cpi,
+ unsigned char *plane[4][3],
+ unsigned int recon_yoffset,
+ unsigned int recon_uvoffset)
{
if (cpi->ref_frame_flags & VP8_LAST_FRAME)
get_plane_pointers(&cpi->common.yv12_fb[cpi->common.lst_fb_idx],
@@ -107,8 +109,8 @@ static void get_predictor_pointers(const VP8_COMP *cpi,
}
-static void get_reference_search_order(const VP8_COMP *cpi,
- int ref_frame_map[4])
+static INLINE void get_reference_search_order(const VP8_COMP *cpi,
+ int ref_frame_map[4])
{
int i=0;