Laurent Aimar
04a845caa7
tiffdec: fix out of bound reads/writes
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
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
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
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Reinhard Tartler
737eb5976f
Merge libavcore into libavutil
...
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>
14 years ago
Diego Elio Pettenò
d36beb3f69
Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.
...
None of these symbols should be accessed directly, so declare them as
hidden.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Daniel Kang
a4db272a92
Return on negative soff sizes, fixes issue 2515.
...
Patch by Daniel Kang, daniel.d.kang at gmail
Originally committed as revision 26288 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Daniel Kang
d381249bb8
Fix a crash when decoding tiff by moving check
...
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
14 years ago
Daniel Kang
1ba44140a3
Fix crash for files with strip size larger than the buffer.
...
Fixes issue 2498.
Patch by Daniel Kang, daniel.d.kang at gmail
Originally committed as revision 26243 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Stefano Sabatini
e16f217ceb
Use new imgutils.h API names, fix deprecation warnings.
...
Originally committed as revision 25058 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
6ce9b4310c
Remove use of the deprecated function avcodec_check_dimensions(), use
...
av_check_image_size() instead.
Originally committed as revision 24711 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
ba87f0801d
Remove explicit filename from Doxygen @file commands.
...
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
15 years ago
Stefano Sabatini
72415b2adb
Define AVMediaType enum, and use it instead of enum CodecType, which
...
is deprecated and will be dropped at the next major bump.
Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Baptiste Coudurier
bdcc13f2bf
lzw.h does not need get_bits.h, tiff.c needs intreadwrite.h for AV_R* though
...
Originally committed as revision 20724 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Francesco Lavra
91cc5d3767
Move ff_reverse in libavcodec to av_reverse in libavutil.
...
Patch by Francesco Lavra, francescolavra interfree it
Originally committed as revision 20484 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Kostya Shishkov
a8b95021e5
Do not attempt to decode TIFF files containing fax data with uncompressed
...
mode allowed for there is no code to decode it (yet).
Originally committed as revision 20114 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Kostya Shishkov
53f9f9c91b
When BitsPerSample tag is not present in TIFF, that means file is
...
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
15 years ago
Kostya Shishkov
8da5d3dc37
Finally distinguish TIFF_CCITT_RLE and TIFF_G3 1-D case, so both of them
...
will be decoded correctly.
This fixes issue 1423.
Originally committed as revision 20065 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Kostya Shishkov
7c6f5238c6
Make TIFF decoder load compression options only for corresponding codec
...
Originally committed as revision 20064 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
eec69b399a
Do not compile ZLib data uncompressing function in TIFF decoder when ZLib is
...
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
15 years ago
Kostya Shishkov
e96f885aa0
Looks like ZLib uncompress() cannot deal with some kinds of TIFF deflated data,
...
so replace it with custom code.
This fixes issue 1419.
Originally committed as revision 20054 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Kostya Shishkov
a58e96be0e
Support both LSB and MSB orders for TIFF CCITT G.x compressed data.
...
This fixes issue 1410.
Originally committed as revision 20016 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Baptiste Coudurier
a08e67e70d
tiff image decoder uses get_buffer, set CODEC_CAP_DR1
...
Originally committed as revision 19108 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Kostya Shishkov
9706d1c766
Check combined depth and number of components in TIFF decoder, thus eliminating
...
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
16 years ago
Kostya Shishkov
512cfd9d54
Add 32-bit RGB support to TIFF decoder and extend a bit 'unsupported format' message
...
Originally committed as revision 18755 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Kostya Shishkov
1c86db80a9
Remove useless assignment during initialization for some decoders
...
Originally committed as revision 18680 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Thilo Borgmann
7a00bbad21
Implement avcodec_decode_video2(), _audio3() and _subtitle2() which takes an
...
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
16 years ago
Diego Biurrun
bad5537e2c
Use full internal pathname in doxygen @file directives.
...
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
16 years ago
Aurelien Jacobs
b250f9c66d
Change semantic of CONFIG_*, HAVE_* and ARCH_*.
...
They are now always defined to either 0 or 1.
Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
92799d3213
Enable faxcompr.
...
Originally committed as revision 16349 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Kostya Shishkov
108c96d5e7
Decode TIFF image only after all tags have been decoded
...
Originally committed as revision 16268 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Kostya Shishkov
8eedffde31
Some TIFFs declare -1 for the single strip height
...
Originally committed as revision 16267 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Kostya Shishkov
89b4ec5c33
Add monochrome TIFF support
...
Originally committed as revision 16266 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Kostya Shishkov
4386ed6922
Calculate line size variable correctly for lower bitdepths and use it for raw data copying
...
Originally committed as revision 16265 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Kostya Shishkov
6a4583e925
4l: TIFF stores short strings inside tag, do not interpret it is as an offset
...
Fixes issue 753
Originally committed as revision 16189 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Stefano Sabatini
fe4bf37455
Make AVCodec long_names definition conditional depending on CONFIG_SMALL.
...
Originally committed as revision 13759 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Stefano Sabatini
bcdb2378f7
Add long names to some AVCodec declarations.
...
patch by Stefano Sabatini, stefano.sabatini-lala poste it
Originally committed as revision 13022 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Zuxy Meng
98a6fff98c
Apply 'cold' attribute to init/uninit functions in libavcodec
...
Originally committed as revision 12525 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
08e5052930
const
...
Originally committed as revision 11747 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Kostya Shishkov
329851e032
TIFF may omit compression tag.
...
This fixes issue 276.
Originally committed as revision 11121 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Måns Rullgård
640b73e17d
use correct type for palette
...
Originally committed as revision 9554 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Måns Rullgård
4a64abdc63
kill warnings
...
Originally committed as revision 9550 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Diego Biurrun
e5a389a1b7
license header consistency cosmetics
...
Originally committed as revision 9484 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Diego Biurrun
ee5c8a9bc4
Add some Doxygen comments, by Kamil Nowosad, k.nowosad students.mimuw.edu pl.
...
Originally committed as revision 8624 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago