Mercurial > libavcodec.hg
diff tiff.c @ 4774:0860efc2f02b libavcodec
tiff encoder by (Bartlomiej Wolowiec b.wolowiec students mimuw edu pl)
author | michael |
---|---|
date | Tue, 03 Apr 2007 13:43:57 +0000 |
parents | 48952197d91f |
children | bca8924ed36c |
line wrap: on
line diff
--- a/tiff.c Tue Apr 03 11:26:14 2007 +0000 +++ b/tiff.c Tue Apr 03 13:43:57 2007 +0000 @@ -24,49 +24,8 @@ #include <zlib.h> #endif #include "lzw.h" - -/* abridged list of TIFF tags */ -enum TiffTags{ - TIFF_WIDTH = 0x100, - TIFF_HEIGHT, - TIFF_BPP, - TIFF_COMPR, - TIFF_INVERT = 0x106, - TIFF_STRIP_OFFS = 0x111, - TIFF_ROWSPERSTRIP = 0x116, - TIFF_STRIP_SIZE, - TIFF_PLANAR = 0x11C, - TIFF_XPOS = 0x11E, - TIFF_YPOS = 0x11F, - TIFF_PREDICTOR = 0x13D, - TIFF_PAL = 0x140 -}; +#include "tiff.h" -enum TiffCompr{ - TIFF_RAW = 1, - TIFF_CCITT_RLE, - TIFF_G3, - TIFF_G4, - TIFF_LZW, - TIFF_JPEG, - TIFF_NEWJPEG, - TIFF_ADOBE_DEFLATE, - TIFF_PACKBITS = 0x8005, - TIFF_DEFLATE = 0x80B2 -}; - -enum TiffTypes{ - TIFF_BYTE = 1, - TIFF_STRING, - TIFF_SHORT, - TIFF_LONG, - TIFF_LONGLONG -}; - -/** sizes of various TIFF field types */ -static const int type_sizes[6] = { - 0, 1, 100, 2, 4, 8 -}; typedef struct TiffContext { AVCodecContext *avctx;