Skip to content

Commit

Permalink
Revert "show encode timings"
Browse files Browse the repository at this point in the history
This reverts commit 5769702.
  • Loading branch information
AlexBerner committed Mar 18, 2013
1 parent 5769702 commit cc9c4a4
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/jpeg_encoder.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "jpeg_encoder.h"
#include "time.h"

JpegEncoder::JpegEncoder(unsigned char *ddata, int wwidth, int hheight,
int qquality, buffer_type bbuf_type)
Expand Down Expand Up @@ -114,10 +113,6 @@ jpeg_mem_dest (j_compress_ptr cinfo,
void
JpegEncoder::encode()
{


clock_t t = clock();

struct jpeg_compress_struct cinfo;
struct jpeg_error_mgr jerr;

Expand Down Expand Up @@ -182,9 +177,6 @@ JpegEncoder::encode()

if (buf_type == BUF_BGR || buf_type == BUF_RGBA || buf_type == BUF_BGRA)
free(rgb_data);

t = clock() - t;
printf ("encode( took %d clicks (%f ms).\n",(int)t,((float)(t*1000))/CLOCKS_PER_SEC);
}

void
Expand Down

0 comments on commit cc9c4a4

Please sign in to comment.