summaryrefslogtreecommitdiff
path: root/libavcodec/tiff.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-04-03 13:43:57 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-04-03 13:43:57 +0000
commit716222db17905c0d069476451b680cd9070a07be (patch)
treeda568e1971484a67835d4c2217efe4e344528f81 /libavcodec/tiff.c
parent1a2a5b3ecdff0472ee402e494bc8d2ee33ecbcd2 (diff)
tiff encoder by (Bartlomiej Wolowiec b.wolowiec students mimuw edu pl)
Originally committed as revision 8608 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/tiff.c')
-rw-r--r--libavcodec/tiff.c43
1 files changed, 1 insertions, 42 deletions
diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index 344b5a3116..6bbd60d10e 100644
--- a/libavcodec/tiff.c
+++ b/libavcodec/tiff.c
@@ -24,49 +24,8 @@
#include <zlib.h>
#endif
#include "lzw.h"
+#include "tiff.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
-};
-
-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;