[MPlayer-cvslog] r30907 - trunk/mencoder.c
diego
subversion at mplayerhq.hu
Tue Mar 16 13:11:15 CET 2010
Author: diego
Date: Tue Mar 16 13:11:14 2010
New Revision: 30907
Log:
Remove disabled flip_upside_down function; it has been unused for ages.
Modified:
trunk/mencoder.c
Modified: trunk/mencoder.c
==============================================================================
--- trunk/mencoder.c Tue Mar 16 12:57:52 2010 (r30906)
+++ trunk/mencoder.c Tue Mar 16 13:11:14 2010 (r30907)
@@ -267,8 +267,6 @@ static m_time_size_t end_at = { .type =
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;
More information about the MPlayer-cvslog
mailing list