int width, int height);
-void LoadTGA (const char *filename, byte **pixels, int *width, int *height);
-void LoadTGABuffer ( byte *buffer, byte **pic, int *width, int *height);
-void WriteTGA (const char *filename, byte *data, int width, int height);
-
-void Load32BitImage (const char *name, unsigned **pixels, int *width, int *height);
+void LoadTGA( const char *filename, byte **pixels, int *width, int *height );
+void LoadTGABuffer( byte *buffer, byte **pic, int *width, int *height );
+void WriteTGA( const char *filename, byte *data, int width, int height );
+int LoadJPGBuff( void *src_buffer, int src_size, unsigned char **pic, int *width, int *height );
+void Load32BitImage( const char *name, unsigned **pixels, int *width, int *height );