summaryrefslogtreecommitdiff
path: root/libavcodec/tiff.c
Commit message (Collapse)AuthorAge
* 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>
* tiff: Prefer enum TiffCompr over int for TiffContext.compr.Stefano Sabatini2011-05-12
| | | | | | 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-11
| | | | | | 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-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Merge libavcore into libavutilReinhard Tartler2011-02-15
| | | | | | | | | | | | It is pretty hopeless that other considerable projects will adopt libavutil alone in other projects. Projects that need small footprint are better off with more specialized libraries such as gnulib or rather just copy the necessary parts that they need. With this in mind, nobody is helped by having libavutil and libavcore split. In order to ease maintenance inside and around FFmpeg and to reduce confusion where to put common code, avcore's functionality is merged (back) to avutil. Signed-off-by: Reinhard Tartler <siretart@tauware.de>
* Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.Diego Elio Pettenò2011-01-26
| | | | | | | None of these symbols should be accessed directly, so declare them as hidden. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Return on negative soff sizes, fixes issue 2515.Daniel Kang2011-01-09
| | | | | | Patch by Daniel Kang, daniel.d.kang at gmail Originally committed as revision 26288 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix a crash when decoding tiff by moving checkDaniel Kang2011-01-06
| | | | | | | | | for invalid header up before reading data. Fixes issue 2500. Patch by Daniel Kang, daniel.d.kang at gmail Originally committed as revision 26248 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix crash for files with strip size larger than the buffer.Daniel Kang2011-01-06
| | | | | | | | Fixes issue 2498. Patch by Daniel Kang, daniel.d.kang at gmail Originally committed as revision 26243 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use new imgutils.h API names, fix deprecation warnings.Stefano Sabatini2010-09-07
| | | | Originally committed as revision 25058 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove use of the deprecated function avcodec_check_dimensions(), useStefano Sabatini2010-08-06
| | | | | | av_check_image_size() instead. Originally committed as revision 24711 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove explicit filename from Doxygen @file commands.Diego Biurrun2010-04-20
| | | | | | | | Passing an explicit filename to this command is only necessary if the documentation in the @file block refers to a file different from the one the block resides in. Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Define AVMediaType enum, and use it instead of enum CodecType, whichStefano Sabatini2010-03-30
| | | | | | is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk