Michael Niedermayer
17f9626b5d
tiff/doubles2str: check for truncation
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
0196bc6f14
tiff/doubles2str: factor out component_len
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Martin Storsjö
1d9c2dc89a
Don't include common.h from avutil.h
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Anton Khirnov
36ef5369ee
Replace all CODEC_ID_* with AV_CODEC_ID_*
12 years ago
Paul B Mahol
3071af6cf2
tiff: read more tags of type string
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Paul B Mahol
292850b634
tiff: add smarter checks if there is enough data left
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Paul B Mahol
1ec83d9a9e
tiff: port to bytestream2
...
Prevents out of array reads.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Thomas Kühnel
75abfab6c6
lavc/tiff: add GeoTIFF support to the TIFF decoder
...
Work done for SOCIS 2011.
See thread:
Subject: [libav-devel] [PATCH 2/3] tiff: Add GeoTIFF support to the TIFF decoder
Date: Tue, 4 Oct 2011 00:19:52 +0200
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
13 years ago
Paul B Mahol
8f239412d8
tiffdec: PIX_FMT_GRAY16LE support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Michael Niedermayer
fefc65675e
tiffdec: check overread for packbits
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Alex Converse
f346b6bbeb
tiffdec: K&R cosmetics
13 years ago
Alex Converse
90a4306007
tiffdec: Add a malloc check and refactor another.
13 years ago
Martin Storsjö
00c3b67b8a
cosmetics: Align codec declarations
...
Also break some long lines, remove codec function placeholder comments
and add spaces in sample/pixel format lists.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Diego Biurrun
a92be9b856
Replace memset(0) by zero initializations.
...
Also remove one pointless zero initialization in rangecoder.c.
13 years ago
Alex Converse
fd0be63049
tiffdec: Prevent illegal memory access caused by recycled pointers.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
13 years ago
Diego Biurrun
324deaa268
Replace AVFrame pointer type punning by proper struct member assignments.
13 years ago
Diego Biurrun
562b6c744a
Remove unnecessary AVFrame pointer casts.
13 years ago
Alex Converse
447363870f
tiff: Prevent overreads in the type_sizes array.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
13 years ago
Alex Converse
e32548d133
tiff: Make the TIFF_LONG and TIFF_SHORT types unsigned.
...
TIFF v6.0 (unimplemented) adds signed equivalents.
13 years ago
Carl Eugen Hoyos
f746f37901
Support decoding gray8a tiff images.
13 years ago
Carl Eugen Hoyos
c714cd3bd4
Support 64bit tiff images.
...
Fixes a part of ticket #503 .
Reviewed-by: Paul B Mahol
Reviewed-by: Jean First
13 years ago
Paul B Mahol
98dfdfdd8e
tiffdec: notify user that tile support is missing
...
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
13 years ago
Carl Eugen Hoyos
714d2f9796
Only expand raw and packed 1bpp tiff horizontally if it is palettised.
13 years ago
Michael Niedermayer
4392b3d11e
tiffdec: hotfix for fate failure.
...
Only use pal8 as output if the file has a palette or more than 2 colors.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Carl Eugen Hoyos
7ee0649f95
Fix decoding some 1bpp tiff files, they are palettized.
...
Fixes ticket #830 .
13 years ago
Carl Eugen Hoyos
e767968c6e
Simplify tiff decoder by merging two functions.
13 years ago
Carl Eugen Hoyos
b46fb615c4
tiff.c: Use switch / case instead of if / else where appropriate.
13 years ago
Carl Eugen Hoyos
3b5733bcf9
Set TIFF default grascale palette opaque.
13 years ago
Laurent Aimar
04a845caa7
tiffdec: fix out of bound reads/writes
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years ago
Laurent Aimar
5ca5d432e0
Fix out of bound reads/writes in the TIFF decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Carl Eugen Hoyos
ef8756dab2
Support LZW and ZLIB compressed 4bpp tiff samples.
...
Fixes ticket #439 and ticket #440 .
13 years ago
Jean First
251345a3fe
cosmetics, remove unused and rename variables for consistency
13 years ago
Jean First
72381b2b47
tiffdec: add RGB48 (16bit) support
13 years ago
Carl Eugen Hoyos
d898ab9090
Fix decoding of 2/4 bpp Tiff samples.
13 years ago
Carl Eugen Hoyos
5f5e37e0fa
Support decoding of 2bpp and 4bpp TIFF images.
...
Based on patches by Kostya and ami_stuff.
13 years ago
Anton Khirnov
ec6402b7c5
lavc: use designated initialisers for all codecs.
...
It's more readable and less prone to breakage.
14 years ago
Diego Biurrun
f6f95d4e49
doxygen: consistently place brief description
14 years ago
Stefano Sabatini
1863a3c7aa
tiff: print log in case of unknown / unsupported tag.
...
Helps debugging.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Stefano Sabatini
a43458d7eb
tiff: fix linesize for mono-white/black formats.
...
Fix decoding of file Test_1bpp.tif
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Stefano Sabatini
7ca5338b49
tiff: set palette in the context when specified in TIFF_PAL tag
...
Since image initialization was moved after tag parsing, the
palette needs to be specified in the context and then copied
to the allocated image in init_image().
Fixes a regression with TIFF images that have palette data,
trac issue #230 , file Test_Flate_8bpp.tif.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
14 years ago
Stefano Sabatini
d8297ca443
tiff: fix linesize for mono-white/black formats
...
Fix decoding of file Test_1bpp.tif, fix trac issue #171 .
14 years ago
Stefano Sabatini
762b4662f0
tiff: print log in case of unknown / unsupported tag
...
Helps debugging.
14 years ago
Stefano Sabatini
bbc572a2c4
tiff: add support for SamplesPerPixel tag in tiff_decode_tag()
...
Format detection and internal frame initialization is moved to a
separate init_image() function, which is called when all the tags have
been read, and so both BitsPerSample and SamplesPerPixel information
has been collected.
This fixes decoding of the file 11.tiff from roundup issue #1925 .
Based on a patch by Kostya Shishkov <kostya.shishkov@gmail.com>.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
14 years ago
Stefano Sabatini
8102d886be
tiff: Prefer enum TiffCompr over int for TiffContext.compr.
...
This is safer and helps debugging.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
14 years ago
Stefano Sabatini
b437f5b055
tiff: add support for inverted FillOrder for uncompressed data
...
Fix decoding of file b.tif, trac issue #168 .
Signed-off-by: Diego Biurrun <diego@biurrun.de>
14 years ago
Stefano Sabatini
aa909d300f
tiff: prefer enum TiffCompr over int for TiffContext.compr
...
Help debugging, safer.
14 years ago
Stefano Sabatini
1e97700fba
tiff: remove duplicated author information, fix @file doxy
14 years ago
Baptiste Coudurier
dbfdb288c1
Set alpha of palettes to 0xff.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Reinhard Tartler
7ffe76e540
Merge libavcore into libavutil
...
Done to keep ABI compatible. Otherwise this is just silly
14 years ago