diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-02-01 08:18:30 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-02-01 08:18:30 +0100 |
commit | 2957803c5da9aab1cecac3dcdfaf7fcd9c5e49fd (patch) | |
tree | ee71e51a58336cbcf02055fe82539bbc082922d0 | |
parent | 87e1b4e85a9f8bd535c0557ced9cebd7e35c1635 (diff) | |
download | advtime-2957803c5da9aab1cecac3dcdfaf7fcd9c5e49fd.tar.gz advtime-2957803c5da9aab1cecac3dcdfaf7fcd9c5e49fd.tar.bz2 advtime-2957803c5da9aab1cecac3dcdfaf7fcd9c5e49fd.zip |
overlap: Remove unnused functions
-rw-r--r-- | src/overlap.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/overlap.c b/src/overlap.c index 19134c3..a989ccb 100644 --- a/src/overlap.c +++ b/src/overlap.c @@ -17,17 +17,6 @@ pswap(void **p1, void **p2) *p2 = tmp; } -static void -start_new_szene(int64_t prev_szene_end, int64_t start) -{ - static int prev_dts_start = 0; - - print_time(prev_dts_start); - printf(" "); - print_time(prev_szene_end - prev_dts_start); - prev_dts_start = start; -} - static double frame_diff(struct video_frame *frame_a, struct video_frame *frame_b) { @@ -50,25 +39,6 @@ frame_diff(struct video_frame *frame_a, struct video_frame *frame_b) return average / (frame_a->width * frame_a->height); } -static double -frame_average(struct video_frame *frame) -{ - double average = 0; - uint8_t *row = frame->data; - uint8_t *col = NULL; - - for (int y = 0; y < frame->height; ++y) { - col = row; - for (int x = 0; x < frame->width; ++x) { - average += *col; - col++; - } - row += frame->stride; - } - - return average / (frame->width * frame->height); -} - static void usage(void) { |