1
+ #ifdef USE_JPG_CODEC
2
+ /***********************************************************************
3
+ **
4
+ ** jdatasrc.c
5
+ **
6
+ ** Copyright (C) 1994-1996, Thomas G. Lane.
7
+ ** This file is part of the Independent JPEG Group's software.
8
+ ** For conditions of distribution and use, see the accompanying README file.
9
+ **
10
+ ** This file contains decompression data source routines for the case of
11
+ ** reading JPEG data from a file (or any stdio stream). While these routines
12
+ ** are sufficient for most applications, some will want to use a different
13
+ ** source manager.
14
+ ** IMPORTANT: we assume that fread() will correctly transcribe an array of
15
+ ** JOCTETs from 8-bit-wide elements on external storage. If char is wider
16
+ ** than 8 bits on your machine, you may need to do some tweaking.
17
+ **
18
+ ************************************************************************
19
+ **
20
+ ** Module: u-jpg.c
21
+ ** Summary: JPEG image format conversion
22
+ ** Section: utility
23
+ ** Notes:
24
+ ** This is an optional part of R3. This file can be replaced by
25
+ ** library function calls into an updated implementation.
26
+ **
27
+ ***********************************************************************
28
+ ** Base-code:
29
+
30
+ if find system/codecs 'jpeg [
31
+ system/codecs/jpeg/suffixes: [%.jpg %.jpeg]
32
+ append append system/options/file-types system/codecs/jpeg/suffixes 'jpeg
33
+ ]
34
+
35
+ ***********************************************************************/
36
+
1
37
#define JPEG_INTERNALS
2
38
#define NO_GETENV
3
39
#include "reb-config.h"
4
40
#include "reb-c.h"
5
41
#include <setjmp.h>
6
42
#include "sys-jpg.h"
7
43
8
- /*
9
- * jdatasrc.c
10
- *
11
- * Copyright (C) 1994-1996, Thomas G. Lane.
12
- * This file is part of the Independent JPEG Group's software.
13
- * For conditions of distribution and use, see the accompanying README file.
14
- *
15
- * This file contains decompression data source routines for the case of
16
- * reading JPEG data from a file (or any stdio stream). While these routines
17
- * are sufficient for most applications, some will want to use a different
18
- * source manager.
19
- * IMPORTANT: we assume that fread() will correctly transcribe an array of
20
- * JOCTETs from 8-bit-wide elements on external storage. If char is wider
21
- * than 8 bits on your machine, you may need to do some tweaking.
22
- */
23
-
24
44
/* this is not a core library module, so it doesn't define JPEG_INTERNALS */
25
45
//#include "jinclude.h"
26
46
//#include "jpeglib.h"
@@ -10827,3 +10847,5 @@ extern void Register_Codec(char *name, codo dispatcher);
10827
10847
{
10828
10848
Register_Codec ("jpeg" , Codec_JPEG_Image );
10829
10849
}
10850
+
10851
+ #endif //USE_JPG_CODEC
0 commit comments