diff options
-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) { |