summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-02-01 08:18:30 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-02-01 08:18:30 +0100
commit2957803c5da9aab1cecac3dcdfaf7fcd9c5e49fd (patch)
treeee71e51a58336cbcf02055fe82539bbc082922d0 /src
parent87e1b4e85a9f8bd535c0557ced9cebd7e35c1635 (diff)
downloadadvtime-2957803c5da9aab1cecac3dcdfaf7fcd9c5e49fd.tar.gz
advtime-2957803c5da9aab1cecac3dcdfaf7fcd9c5e49fd.tar.bz2
advtime-2957803c5da9aab1cecac3dcdfaf7fcd9c5e49fd.zip
overlap: Remove unnused functions
Diffstat (limited to 'src')
-rw-r--r--src/overlap.c30
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)
{