Bug 68970 - tune libimg throttling constants for better performance.

r=saari, sr=brendan
This commit is contained in:
tor%cs.brown.edu 2001-02-18 01:05:45 +00:00
parent 21db735a0e
commit abe9a8ac50
2 changed files with 6 additions and 6 deletions

View File

@ -22,7 +22,7 @@
/*
* jpeg.c --- Glue code to Independent JPEG Group decoder library
* $Id: jpeg.cpp,v 1.25 2000/12/29 20:06:09 bryner%uiuc.edu Exp $
* $Id: jpeg.cpp,v 1.26 2001/02/18 01:05:42 tor%cs.brown.edu Exp $
*/
@ -658,15 +658,15 @@ output_jpeg_scanlines(il_container *ic, int num_scanlines)
return input_exhausted;
}
#define JPEG_OUTPUT_CHUNK_SIZE 50000
#define JPEG_OUTPUT_CHUNK_SIZE 150000
/* Timeout durations, in milliseconds */
/* Delay between displaying chunks of pixels for the first scan. */
#define JPEG_TIMEOUT_INITIAL_DELAY 100
#define JPEG_TIMEOUT_INITIAL_DELAY 32
/* Delay between displaying chunks of pixels for subsequent scans */
#define JPEG_TIMEOUT_DELAY 200
#define JPEG_TIMEOUT_DELAY 250
static void
jpeg_timeout_callback(void *closure)

View File

@ -39,10 +39,10 @@
/* Approximate size of pixel data chunks sent to the FE for display */
#define OUTPUT_CHUNK_SIZE 15000
#define OUTPUT_CHUNK_SIZE 150000
/* Delay from decode to display of first scanline, in milliseconds. */
#define ROW_OUTPUT_INITIAL_DELAY 50
#define ROW_OUTPUT_INITIAL_DELAY 32
/* Delays between subsequent sets of scanlines */
#define ROW_OUTPUT_DELAY 300