Skip to content

Commit

Permalink
record: Remove output of displayed frames.
Browse files Browse the repository at this point in the history
The number of displayed frames is now the same as the number of
captured frames.
  • Loading branch information
Phil Edworthy committed Jun 17, 2010
1 parent 3bb5635 commit ab15077
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/tools/shcodecs-record.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,6 @@ struct private_data {
void *display;

int rotate_cap;

int output_frames;
};


Expand Down Expand Up @@ -206,7 +204,6 @@ capture_image_cb(capture *ceu, const unsigned char *frame_data, size_t length,

capture_queue_buffer (cam->ceu, (void *)cap_y);

pvt->output_frames++;
cam->captured_frames++;
}

Expand Down Expand Up @@ -284,10 +281,6 @@ void cleanup (void)

debug_printf("Captured %d frames (%.2f fps)\n", cam->captured_frames,
(double)cam->captured_frames/time);
if (pvt->do_preview) {
debug_printf("Displayed %d frames (%.2f fps)\n", pvt->output_frames,
(double)pvt->output_frames/time);
}

framerate_destroy (cam->cap_framerate);
}
Expand Down Expand Up @@ -387,7 +380,6 @@ int main(int argc, char *argv[])

pvt->do_preview = 1;

pvt->output_frames = 0;
pvt->rotate_cap = SHVEU_NO_ROT;

while (1) {
Expand Down

0 comments on commit ab15077

Please sign in to comment.