summaryrefslogtreecommitdiffstats
path: root/mencoder.c
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-03-16 12:11:14 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-03-16 12:11:14 +0000
commitb864ff1b8d73616e2e5bab1e00ef2bdb8fe50278 (patch)
tree8d621ac45c692c0f4da8b6825d850b7f5ae5511b /mencoder.c
parentb05bbdd097775ed399462af7be07e29d21f77c07 (diff)
downloadmpv-b864ff1b8d73616e2e5bab1e00ef2bdb8fe50278.tar.bz2
mpv-b864ff1b8d73616e2e5bab1e00ef2bdb8fe50278.tar.xz
Remove disabled flip_upside_down function; it has been unused for ages.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30907 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mencoder.c')
-rw-r--r--mencoder.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/mencoder.c b/mencoder.c
index 79b741ac3b..27324c41dd 100644
--- a/mencoder.c
+++ b/mencoder.c
@@ -267,8 +267,6 @@ static m_time_size_t end_at = { .type = END_AT_NONE, .pos = 0 };
static char * frameno_filename=NULL;
-//static uint8_t* flip_upside_down(uint8_t* dst, const uint8_t* src, int width, int height);
-
typedef struct {
unsigned char* start;
int in_size;
@@ -1661,27 +1659,6 @@ return interrupted;
}
-#if 0
-/* Flip the image in src and store the result in dst. src and dst may overlap.
- width is the size of each line in bytes. */
-static uint8_t* flip_upside_down(uint8_t* dst, const uint8_t* src, int width,
- int height)
-{
- uint8_t* tmp = malloc(width);
- int i;
-
- for(i = 0; i < height/2; i++) {
- fast_memcpy(tmp, &src[i*width], width);
- fast_memcpy(&dst[i * width], &src[(height - i) * width], width);
- fast_memcpy(&dst[(height - i) * width], tmp, width);
- }
-
- free(tmp);
- return dst;
-}
-#endif
-
-
static float stop_time(demuxer_t* demuxer, muxer_stream_t* mux_v) {
float timeleft = -1;
if (play_n_frames >= 0) timeleft = mux_v->timer + play_n_frames * (double)(mux_v->h.dwScale) / mux_v->h.dwRate;