summaryrefslogtreecommitdiffstats
path: root/libavcodec/tiff.c
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Merge libavcore into libavutilReinhard Tartler2011-02-151-1/+1
| | | | | | | | | | | | 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-261-1/+1
| | | | | | | 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-091-0/+4
| | | | | | 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-061-4/+4
| | | | | | | | | 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-061-0/+5
| | | | | | | | 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-071-2/+2
| | | | Originally committed as revision 25058 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove use of the deprecated function avcodec_check_dimensions(), useStefano Sabatini2010-08-061-2/+3
| | | | | | 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-201-1/+1
| | | | | | | | 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-301-1/+1
| | | | | | is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* lzw.h does not need get_bits.h, tiff.c needs intreadwrite.h for AV_R* thoughBaptiste Coudurier2009-12-031-1/+1
| | | | Originally committed as revision 20724 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move ff_reverse in libavcodec to av_reverse in libavutil.Francesco Lavra2009-11-091-1/+2
| | | | | | Patch by Francesco Lavra, francescolavra interfree it Originally committed as revision 20484 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Do not attempt to decode TIFF files containing fax data with uncompressedKostya Shishkov2009-10-011-0/+5
| | | | | | mode allowed for there is no code to decode it (yet). Originally committed as revision 20114 to svn://svn.ffmpeg.org/ffmpeg/trunk
* When BitsPerSample tag is not present in TIFF, that means file isKostya Shishkov2009-09-301-2/+13
| | | | | | | monochrome, so initialize picture before decoding. This fixes decoding monochrome files produced by lavc TIFF encoder. Originally committed as revision 20091 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Finally distinguish TIFF_CCITT_RLE and TIFF_G3 1-D case, so both of themKostya Shishkov2009-09-281-3/+1
| | | | | | | will be decoded correctly. This fixes issue 1423. Originally committed as revision 20065 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make TIFF decoder load compression options only for corresponding codecKostya Shishkov2009-09-281-1/+5
| | | | Originally committed as revision 20064 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Do not compile ZLib data uncompressing function in TIFF decoder when ZLib isMartin Storsjö2009-09-271-0/+2
| | | | | | | | not present. Patch by Martin Storsjö ($firstname <at> $firstname <dot> two first letters of $lastname) Originally committed as revision 20058 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Looks like ZLib uncompress() cannot deal with some kinds of TIFF deflated data,Kostya Shishkov2009-09-271-2/+25
| | | | | | | so replace it with custom code. This fixes issue 1419. Originally committed as revision 20054 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Support both LSB and MSB orders for TIFF CCITT G.x compressed data.Kostya Shishkov2009-09-241-2/+15
| | | | | | This fixes issue 1410. Originally committed as revision 20016 to svn://svn.ffmpeg.org/ffmpeg/trunk
* tiff image decoder uses get_buffer, set CODEC_CAP_DR1Baptiste Coudurier2009-06-051-1/+1
| | | | Originally committed as revision 19108 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check combined depth and number of components in TIFF decoder, thus eliminatingKostya Shishkov2009-06-021-18/+15
| | | | | | additional checks for each depth (like 48-bit gray vs. 48-bit RGB) Originally committed as revision 19076 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add 32-bit RGB support to TIFF decoder and extend a bit 'unsupported format' ↵Kostya Shishkov2009-05-061-1/+9
| | | | | | message Originally committed as revision 18755 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove useless assignment during initialization for some decodersKostya Shishkov2009-04-241-1/+0
| | | | Originally committed as revision 18680 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement avcodec_decode_video2(), _audio3() and _subtitle2() which takes anThilo Borgmann2009-04-071-1/+3
| | | | | | | | | | | AVPacket argument rather than a const uint8_t *buf + int buf_size. This allows passing of packet-specific flags from demuxer to decoder, such as the keyframe flag, which appears necessary to playback corePNG P-frames. Patch by Thilo Borgmann thilo.borgmann googlemail com, see also the thread "Google Summer of Code participation" on the mailinglist. Originally committed as revision 18351 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use full internal pathname in doxygen @file directives.Diego Biurrun2009-02-011-1/+1
| | | | | | | Otherwise doxygen complains about ambiguous filenames when files exist under the same name in different subdirectories. Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change semantic of CONFIG_*, HAVE_* and ARCH_*.Aurelien Jacobs2009-01-131-3/+3
| | | | | | They are now always defined to either 0 or 1. Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Enable faxcompr.Michael Niedermayer2008-12-261-9/+35
| | | | Originally committed as revision 16349 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Decode TIFF image only after all tags have been decodedKostya Shishkov2008-12-221-44/+50
| | | | Originally committed as revision 16268 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Some TIFFs declare -1 for the single strip heightKostya Shishkov2008-12-221-0/+2
| | | | Originally committed as revision 16267 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add monochrome TIFF supportKostya Shishkov2008-12-221-0/+3
| | | | Originally committed as revision 16266 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Calculate line size variable correctly for lower bitdepths and use it for ↵Kostya Shishkov2008-12-221-3/+3
| | | | | | raw data copying Originally committed as revision 16265 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 4l: TIFF stores short strings inside tag, do not interpret it is as an offsetKostya Shishkov2008-12-171-0/+5
| | | | | | Fixes issue 753 Originally committed as revision 16189 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make AVCodec long_names definition conditional depending on CONFIG_SMALL.Stefano Sabatini2008-06-121-1/+1
| | | | Originally committed as revision 13759 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add long names to some AVCodec declarations.Stefano Sabatini2008-04-291-1/+2
| | | | | | patch by Stefano Sabatini, stefano.sabatini-lala poste it Originally committed as revision 13022 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Apply 'cold' attribute to init/uninit functions in libavcodecZuxy Meng2008-03-211-2/+2
| | | | Originally committed as revision 12525 to svn://svn.ffmpeg.org/ffmpeg/trunk
* constMichael Niedermayer2008-02-011-15/+16
| | | | Originally committed as revision 11747 to svn://svn.ffmpeg.org/ffmpeg/trunk
* TIFF may omit compression tag.Kostya Shishkov2007-12-011-0/+1
| | | | | | This fixes issue 276. Originally committed as revision 11121 to svn://svn.ffmpeg.org/ffmpeg/trunk
* use correct type for paletteMåns Rullgård2007-07-091-3/+3
| | | | Originally committed as revision 9554 to svn://svn.ffmpeg.org/ffmpeg/trunk
* kill warningsMåns Rullgård2007-07-081-3/+4
| | | | Originally committed as revision 9550 to svn://svn.ffmpeg.org/ffmpeg/trunk
* license header consistency cosmeticsDiego Biurrun2007-07-051-1/+0
| | | | Originally committed as revision 9484 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add some Doxygen comments, by Kamil Nowosad, k.nowosad students.mimuw.edu pl.Diego Biurrun2007-04-041-0/+6
| | | | Originally committed as revision 8624 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud