IMG_jpg.c
changeset 27 34870338be23
parent 22 5f9c7cfd0b79
child 53 96b084473b47
     1.1 --- a/IMG_jpg.c	Wed Mar 07 17:16:38 2001 +0000
     1.2 +++ b/IMG_jpg.c	Sun Mar 18 18:08:19 2001 +0000
     1.3 @@ -67,7 +67,7 @@
     1.4   * Initialize source --- called by jpeg_read_header
     1.5   * before any data is actually read.
     1.6   */
     1.7 -void _init_source (j_decompress_ptr cinfo)
     1.8 +static void init_source (j_decompress_ptr cinfo)
     1.9  {
    1.10  	/* We don't actually need to do anything */
    1.11  	return;
    1.12 @@ -76,7 +76,7 @@
    1.13  /*
    1.14   * Fill the input buffer --- called whenever buffer is emptied.
    1.15   */
    1.16 -int _fill_input_buffer (j_decompress_ptr cinfo)
    1.17 +static int fill_input_buffer (j_decompress_ptr cinfo)
    1.18  {
    1.19  	my_source_mgr * src = (my_source_mgr *) cinfo->src;
    1.20  	int nbytes;
    1.21 @@ -106,7 +106,7 @@
    1.22   * Arranging for additional bytes to be discarded before reloading the input
    1.23   * buffer is the application writer's problem.
    1.24   */
    1.25 -void _skip_input_data (j_decompress_ptr cinfo, long num_bytes)
    1.26 +static void skip_input_data (j_decompress_ptr cinfo, long num_bytes)
    1.27  {
    1.28  	my_source_mgr * src = (my_source_mgr *) cinfo->src;
    1.29  
    1.30 @@ -131,7 +131,7 @@
    1.31   * Terminate source --- called by jpeg_finish_decompress
    1.32   * after all data has been read.
    1.33   */
    1.34 -void _term_source (j_decompress_ptr cinfo)
    1.35 +static void term_source (j_decompress_ptr cinfo)
    1.36  {
    1.37  	/* We don't actually need to do anything */
    1.38  	return;
    1.39 @@ -142,7 +142,7 @@
    1.40   * The caller must have already opened the stream, and is responsible
    1.41   * for closing it after finishing decompression.
    1.42   */
    1.43 -void jpeg_SDL_RW_src (j_decompress_ptr cinfo, SDL_RWops *ctx)
    1.44 +static void jpeg_SDL_RW_src (j_decompress_ptr cinfo, SDL_RWops *ctx)
    1.45  {
    1.46    my_source_mgr *src;
    1.47  
    1.48 @@ -161,11 +161,11 @@
    1.49    }
    1.50  
    1.51    src = (my_source_mgr *) cinfo->src;
    1.52 -  src->pub.init_source = _init_source;
    1.53 -  src->pub.fill_input_buffer = _fill_input_buffer;
    1.54 -  src->pub.skip_input_data = _skip_input_data;
    1.55 +  src->pub.init_source = init_source;
    1.56 +  src->pub.fill_input_buffer = fill_input_buffer;
    1.57 +  src->pub.skip_input_data = skip_input_data;
    1.58    src->pub.resync_to_restart = jpeg_resync_to_restart; /* use default method */
    1.59 -  src->pub.term_source = _term_source;
    1.60 +  src->pub.term_source = term_source;
    1.61    src->ctx = ctx;
    1.62    src->pub.bytes_in_buffer = 0; /* forces fill_input_buffer on first read */
    1.63    src->pub.next_input_byte = NULL; /* until buffer loaded */