summaryrefslogtreecommitdiffstats
path: root/libvo/osd_template.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-08-01 17:07:35 +0200
committerwm4 <wm4@nowhere>2012-08-01 17:07:35 +0200
commitc92538dfaa5eb7e9b2773f158cbb310545116abe (patch)
tree4b1ab99a17cbead6ff1b7bf9714642540cd66ce4 /libvo/osd_template.c
parent7175f178de72bb4f31cacd79b395a14beaf2f65a (diff)
downloadmpv-c92538dfaa5eb7e9b2773f158cbb310545116abe.tar.bz2
mpv-c92538dfaa5eb7e9b2773f158cbb310545116abe.tar.xz
Remove dead code
This was done with the help of callcatcher [1]. Only functions which are statically known to be unused are removed. Some unused functions are not removed yet, because they might be needed in the near future (such as open_output_stream for the encode branch). There is one user visible change: the --subcc option did nothing, and is removed with this commit. [1] http://www.skynet.ie/~caolan/Packages/callcatcher.html
Diffstat (limited to 'libvo/osd_template.c')
-rw-r--r--libvo/osd_template.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/libvo/osd_template.c b/libvo/osd_template.c
index 16fe4cff11..2cc07bba39 100644
--- a/libvo/osd_template.c
+++ b/libvo/osd_template.c
@@ -177,30 +177,6 @@ static inline void RENAME(vo_draw_alpha_yuy2)(int w,int h, unsigned char* src, u
return;
}
-static inline void RENAME(vo_draw_alpha_uyvy)(int w,int h, unsigned char* src, unsigned char *srca, int srcstride, unsigned char* dstbase,int dststride){
- int y;
-#if defined(FAST_OSD)
- w=w>>1;
-#endif
- for(y=0;y<h;y++){
- register int x;
- for(x=0;x<w;x++){
-#ifdef FAST_OSD
- if(srca[2*x+0]) dstbase[4*x+2]=src[2*x+0];
- if(srca[2*x+1]) dstbase[4*x+0]=src[2*x+1];
-#else
- if(srca[x]) {
- dstbase[2*x+1]=((dstbase[2*x+1]*srca[x])>>8)+src[x];
- dstbase[2*x]=((((signed)dstbase[2*x]-128)*srca[x])>>8)+128;
- }
-#endif
- }
- src+=srcstride;
- srca+=srcstride;
- dstbase+=dststride;
- }
-}
-
static inline void RENAME(vo_draw_alpha_rgb24)(int w,int h, unsigned char* src, unsigned char *srca, int srcstride, unsigned char* dstbase,int dststride){
int y;
#if HAVE_MMX