summaryrefslogtreecommitdiff
path: root/libavcodec/tiff.c
Commit message (Collapse)AuthorAge
* lavc: Consistently prefix input buffer definesVittorio Giovara2015-07-27
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: AV-prefix all codec capabilitiesVittorio Giovara2015-07-27
| | | | | | Express bitfields more simply. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* tiff: Check that there is no aliasing in pixel format selectionAnton Khirnov2015-03-08
| | | | | | | | | Fixes possible issues with unexpected bpp/bppcount values. CC: libav-stable@libav.org Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Bug-Id: CVE-2014-8544 Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* tiff: support decoding GBRP and GBRAP formatsPaul B Mahol2015-01-14
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* tiff: support encoding and decoding 64bit imagesCarl Eugen Hoyos2014-12-18
|
* tiff: Return proper error for missing LZMA compressionDiego Elio Pettenò2014-08-18
| | | | | | | | 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-10
| | | | | | | | | | 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-04
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* tiff: support reading gray+alpha at 16 bitsVittorio Giovara2014-08-04
|
* tiff: Replace deprecated PIX_FMT names by modern onesDiego Biurrun2014-08-02
|
* Revert "tiff: support reading gray+alpha at 8 bits"Janne Grunau2014-07-21
| | | | | This reverts commit b31d76e45fc3c6529dd7109e721676f3ec376d00 as it uses an unkown pixel format.
* tiff: support reading gray+alpha at 8 bitsCarl Eugen Hoyos2014-07-20
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* tiffdec: support predictor type 2 with RGB48 pixel formatJean First2014-04-12
|
* tiffdec: remove an unneeded variableJustin Ruggles2014-04-12
|
* tiff: use a better name and enum values for PhotometricInterpretationJustin Ruggles2014-04-12
| | | | Also add additional known values and log as missing features.
* tiffdec: use a single strip if RowsPerStrip is 0Justin Ruggles2014-04-12
| | | | | 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-12
| | | | | | 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-12
|
* tiffdec: rename variables for consistency and fix variable shadowingJean First2014-04-12
| | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* tiff: stop using deprecated avcodec_set_dimensionsAnton Khirnov2013-10-31
|
* tiff: do not overread the source bufferLuca Barbato2013-06-07
| | | | | | | 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-07
| | | | Return the proper error values and optionally report them.
* tiff: refactor fax support in a separate functionLuca Barbato2013-06-07
|
* tiff: refactor deflate support in a separate functionLuca Barbato2013-06-07
| | | | Report when zlib support is missing.
* tiff: K&R formatting cosmeticsDiego Biurrun2013-06-02
|
* lavc decoders: work with refcounted frames.Anton Khirnov2013-03-08
|
* tiff: return meaningful error codes.Anton Khirnov2013-01-06
|
* lavc: fix decode_frame() third parameter semantics for video decodersAnton Khirnov2012-12-04
| | | | It's got_frame, not data size
* lavc: add a wrapper for AVCodecContext.get_buffer().Anton Khirnov2012-12-04
| | | | It will be useful in the upcoming transition to refcounted AVFrames.
* Move av_reverse table to libavcodecDiego Biurrun2012-10-12
| | | | It is only used in that library.
* Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormatAnton Khirnov2012-10-08
|
* tiffdec: Add support for GRAY16LE.Alex Converse2012-09-19
| | | | Tested with the GraphicsMagick TIFF archive and Libav generated files.
* Don't include common.h from avutil.hMartin Storsjö2012-08-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-07
|
* tiffdec: K&R cosmeticsAlex Converse2012-04-13
|
* tiffdec: Add a malloc check and refactor another.Alex Converse2012-04-13
|
* cosmetics: Align codec declarationsMartin Storsjö2012-04-06
| | | | | | | 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-28
| | | | Also remove one pointless zero initialization in rangecoder.c.
* tiffdec: Prevent illegal memory access caused by recycled pointers.Alex Converse2012-03-07
| | | | | 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-01
|
* Remove unnecessary AVFrame pointer casts.Diego Biurrun2012-03-01
|
* tiff: Prevent overreads in the type_sizes array.Alex Converse2012-02-23
| | | | | 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-23
| | | | TIFF v6.0 (unimplemented) adds signed equivalents.
* tiffdec: fix out of bound reads/writesLaurent Aimar2011-10-10
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* lavc: use designated initialisers for all codecs.Anton Khirnov2011-07-29
| | | | It's more readable and less prone to breakage.
* doxygen: consistently place brief descriptionDiego Biurrun2011-07-14
|
* tiff: print log in case of unknown / unsupported tag.Stefano Sabatini2011-06-05
| | | | | | Helps debugging. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* tiff: fix linesize for mono-white/black formats.Stefano Sabatini2011-06-05
| | | | | | 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-24
| | | | | | | | | | | 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-12
| | | | | | | | | | | | | 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>