]>
git.saurik.com Git - wxWidgets.git/blob - src/tiff/libtiff/tif_jpeg_12.c
4 #if defined(JPEG_DUAL_MODE_8_12)
6 # define TIFFInitJPEG TIFFInitJPEG_12
8 # include LIBJPEG_12_PATH
10 # include "tif_jpeg.c"
12 int TIFFReInitJPEG_12( TIFF
*tif
, int scheme
, int is_encode
)
17 assert(scheme
== COMPRESSION_JPEG
);
20 sp
->tif
= tif
; /* back link */
23 * Override parent get/set field methods.
25 tif
->tif_tagmethods
.vgetfield
= JPEGVGetField
; /* hook for codec tags */
26 tif
->tif_tagmethods
.vsetfield
= JPEGVSetField
; /* hook for codec tags */
27 tif
->tif_tagmethods
.printdir
= JPEGPrintDir
; /* hook for codec tags */
30 * Install codec methods.
32 tif
->tif_fixuptags
= JPEGFixupTags
;
33 tif
->tif_setupdecode
= JPEGSetupDecode
;
34 tif
->tif_predecode
= JPEGPreDecode
;
35 tif
->tif_decoderow
= JPEGDecode
;
36 tif
->tif_decodestrip
= JPEGDecode
;
37 tif
->tif_decodetile
= JPEGDecode
;
38 tif
->tif_setupencode
= JPEGSetupEncode
;
39 tif
->tif_preencode
= JPEGPreEncode
;
40 tif
->tif_postencode
= JPEGPostEncode
;
41 tif
->tif_encoderow
= JPEGEncode
;
42 tif
->tif_encodestrip
= JPEGEncode
;
43 tif
->tif_encodetile
= JPEGEncode
;
44 tif
->tif_cleanup
= JPEGCleanup
;
45 tif
->tif_defstripsize
= JPEGDefaultStripSize
;
46 tif
->tif_deftilesize
= JPEGDefaultTileSize
;
47 tif
->tif_flags
|= TIFF_NOBITREV
; /* no bit reversal, please */
49 sp
->cinfo_initialized
= FALSE
;
52 return JPEGSetupEncode(tif
);
54 return JPEGSetupDecode(tif
);
57 #endif /* defined(JPEG_DUAL_MODE_8_12) */