summaryrefslogtreecommitdiffstats
path: root/libavcodec/tiff.c
Commit message (Collapse)AuthorAgeFilesLines
* tiff: support decoding GBRP and GBRAP formatsPaul B Mahol2015-01-141-57/+81
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* tiff: support encoding and decoding 64bit imagesCarl Eugen Hoyos2014-12-181-2/+7
|
* tiff: Return proper error for missing LZMA compressionDiego Elio Pettenò2014-08-181-0/+3
| | | | | | | | The LZMA support is a semi-official extension supported by libtiff 4.0.0 and later. Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* tiff: Improve grayscale supportDiego Elio Pettenò2014-08-101-11/+3
| | | | | | | | | | Only use PAL8 if palette is present, else use GRAY8 for pixfmt. Instead of simulating a grayscale palette, use real grayscale pixels, if no palette is actually defined. Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* tiff: support reading gray+alpha at 8 bitsCarl Eugen Hoyos2014-08-041-0/+3
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* tiff: support reading gray+alpha at 16 bitsVittorio Giovara2014-08-041-0/+3
|
* tiff: Replace deprecated PIX_FMT names by modern onesDiego Biurrun2014-08-021-2/+2
|
* Revert "tiff: support reading gray+alpha at 8 bits"Janne Grunau2014-07-211-3/+0
| | | | | This reverts commit b31d76e45fc3c6529dd7109e721676f3ec376d00 as it uses an unkown pixel format.
* tiff: support reading gray+alpha at 8 bitsCarl Eugen Hoyos2014-07-201-0/+3
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* tiffdec: support predictor type 2 with RGB48 pixel formatJean First2014-04-121-4/+18
|
* tiffdec: remove an unneeded variableJustin Ruggles2014-04-121-3/+1
|
* tiff: use a better name and enum values for PhotometricInterpretationJustin Ruggles2014-04-121-17/+28
| | | | Also add additional known values and log as missing features.
* tiffdec: use a single strip if RowsPerStrip is 0Justin Ruggles2014-04-121-8/+3
| | | | | The spec does not specify that 0 is an error condition, and there are samples which use 0 when the whole image is in one strip.
* tiffdec: use bytestream2 to simplify overread/overwrite protectionJustin Ruggles2014-04-121-138/+111
| | | | | | Based on a patch by Paul B Mahol <onemda@gmail.com> CC:libav-stable@libav.org
* tiffdec: use correct data type for palette entries and set alpha to 0xFFJustin Ruggles2014-04-121-5/+6
|
* tiffdec: rename variables for consistency and fix variable shadowingJean First2014-04-121-8/+5
| | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* tiff: stop using deprecated avcodec_set_dimensionsAnton Khirnov2013-10-311-2/+2
|
* tiff: do not overread the source bufferLuca Barbato2013-06-071-1/+4
| | | | | | | At least 2 bytes from the source are read every loop. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* tiff: cleanup the error pathsLuca Barbato2013-06-071-10/+15
| | | | Return the proper error values and optionally report them.
* tiff: refactor fax support in a separate functionLuca Barbato2013-06-071-32/+33
|
* tiff: refactor deflate support in a separate functionLuca Barbato2013-06-071-25/+37
| | | | Report when zlib support is missing.
* tiff: K&R formatting cosmeticsDiego Biurrun2013-06-021-55/+59
|
* lavc decoders: work with refcounted frames.Anton Khirnov2013-03-081-18/+9
|
* tiff: return meaningful error codes.Anton Khirnov2013-01-061-27/+27
|
* lavc: fix decode_frame() third parameter semantics for video decodersAnton Khirnov2012-12-041-2/+2
| | | | It's got_frame, not data size
* lavc: add a wrapper for AVCodecContext.get_buffer().Anton Khirnov2012-12-041-1/+2
| | | | It will be useful in the upcoming transition to refcounted AVFrames.
* Move av_reverse table to libavcodecDiego Biurrun2012-10-121-3/+4
| | | | It is only used in that library.
* Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormatAnton Khirnov2012-10-081-7/+7
|
* tiffdec: Add support for GRAY16LE.Alex Converse2012-09-191-1/+1
| | | | Tested with the GraphicsMagick TIFF archive and Libav generated files.
* Don't include common.h from avutil.hMartin Storsjö2012-08-151-0/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-071-1/+1
|
* tiffdec: K&R cosmeticsAlex Converse2012-04-131-108/+147
|
* tiffdec: Add a malloc check and refactor another.Alex Converse2012-04-131-5/+10
|
* cosmetics: Align codec declarationsMartin Storsjö2012-04-061-1/+1
| | | | | | | 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>
* Replace memset(0) by zero initializations.Diego Biurrun2012-03-281-2/+1
| | | | Also remove one pointless zero initialization in rangecoder.c.
* tiffdec: Prevent illegal memory access caused by recycled pointers.Alex Converse2012-03-071-0/+2
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* Replace AVFrame pointer type punning by proper struct member assignments.Diego Biurrun2012-03-011-1/+1
|
* Remove unnecessary AVFrame pointer casts.Diego Biurrun2012-03-011-3/+3
|
* tiff: Prevent overreads in the type_sizes array.Alex Converse2012-02-231-4/+11
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* tiff: Make the TIFF_LONG and TIFF_SHORT types unsigned.Alex Converse2012-02-231-9/+9
| | | | TIFF v6.0 (unimplemented) adds signed equivalents.
* tiffdec: fix out of bound reads/writesLaurent Aimar2011-10-101-15/+25
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* lavc: use designated initialisers for all codecs.Anton Khirnov2011-07-291-10/+8
| | | | It's more readable and less prone to breakage.
* doxygen: consistently place brief descriptionDiego Biurrun2011-07-141-1/+2
|
* tiff: print log in case of unknown / unsupported tag.Stefano Sabatini2011-06-051-0/+2
| | | | | | Helps debugging. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* tiff: fix linesize for mono-white/black formats.Stefano Sabatini2011-06-051-1/+1
| | | | | | Fix decoding of file Test_1bpp.tif Signed-off-by: Anton Khirnov <anton@khirnov.net>
* tiff: set palette in the context when specified in TIFF_PAL tagStefano Sabatini2011-05-241-10/+13
| | | | | | | | | | | 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>
* tiff: add support for SamplesPerPixel tag in tiff_decode_tag()Stefano Sabatini2011-05-121-57/+65
| | | | | | | | | | | | | 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>
* tiff: Prefer enum TiffCompr over int for TiffContext.compr.Stefano Sabatini2011-05-121-1/+1
| | | | | | This is safer and helps debugging. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* tiff: add support for inverted FillOrder for uncompressed dataStefano Sabatini2011-05-111-1/+7
| | | | | | Fix decoding of file b.tif, trac issue #168. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
OpenPOWER on IntegriCloud