iOS/buildlibs/armv7/allegro-4.4.2/addons/jpgalleg/src/io.c
/* _jpeg_write_chunk:
 *  Writes the current chunk to the output stream.
 */
Writes the current chunk to the output stream.
Writes the current chunk to the output stream .
void
_jpeg_write_chunk(void)
{
	unsigned char *c;
	if (!chunk)
		return;
	c = (unsigned char *)chunk;
	c[2] = (chunk_len >> 8) & 0xff;
	c[3] = chunk_len & 0xff;
	for (chunk_len += 2; chunk_len; chunk_len--)
		_jpeg_putc(*c++);
	free(chunk);
	chunk = NULL;
	_jpeg_io.current_bit = 7;
	current_byte = 0;
}
void _jpeg_write_chunk ( void ) { unsigned char * c ; if ( ! chunk ) return ; c = ( unsigned char * ) chunk ; c [ 2 ] = ( chunk_len >> 8 ) & 0xff ; c [ 3 ] = chunk_len & 0xff ; for ( chunk_len += 2 ; chunk_len ; chunk_len -- ) _jpeg_putc ( * c ++ ) ; free ( chunk ) ; chunk = NULL ; _jpeg_io . current_bit = 7 ; current_byte = 0 ; }
_jpeg_write_chunk:
  Writes the current chunk to the output stream.
_jpeg_write_chunk : Writes the current chunk to the output stream .