Stefano Sabatini
e16f217ceb
Use new imgutils.h API names, fix deprecation warnings.
...
Originally committed as revision 25058 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-07 19:15:29 +00:00
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
2010-08-06 09:37:04 +00:00
Måns Rullgård
e6b22522c9
bswap: change ME to NE in macro names
...
Other parts of FFmpeg use NE (native endian) rather than ME (machine).
This makes it consistent.
Originally committed as revision 24169 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-10 22:09:01 +00:00
Måns Rullgård
49bd8e4b84
Fix grammar errors in documentation
...
Originally committed as revision 23904 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-30 15:38:06 +00:00
Peter Ross
e10412a334
IFF PBM decoder: Add a pad byte if image width is odd <aleksi dot nurmi at gmail dot com>
...
Originally committed as revision 23701 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-22 12:41:17 +00:00
Sebastian Vater
522d3930ff
Move get_buffer() calls from decode_init() to decode_frame(). Anything else is
...
unsupported and causes crashes when libavfilter is enabled.
Patch by Sebastian Vater <cdgs basty googlemail com>.
Originally committed as revision 23411 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-01 16:36:36 +00:00
Sebastian Vater
ec1d1afc09
Factorize code into a single function.
...
Patch by Sebastian Vater, cdgs D basty A gmail
Originally committed as revision 23148 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-05-16 21:03:08 +00:00
Sebastian Vater
6d81016282
Reindent after r23124. Patch by Sebastian Vater <cdgs basty googlemail com>.
...
Originally committed as revision 23128 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-05-13 19:18:54 +00:00
Sebastian Vater
7a0e859cdb
Grayscale support. Patch by Sebastian Vater <cdgs basty googlemail com>.
...
Originally committed as revision 23124 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-05-13 19:16:03 +00:00
Sebastian Vater
299ac811ba
Reindent after r23112.
...
Patch by Sebastian Vater <cdgs basty googlemail com>.
Originally committed as revision 23113 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-05-13 15:41:49 +00:00
Sebastian Vater
65d213ec86
Move handling of paletted data to the IFF demuxer. This allows future
...
handling of things such as masking/EHB/HAM for this type of data.
Patch by Sebastian Vater <cdgs basty googlemail com>.
Originally committed as revision 23112 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-05-13 15:39:40 +00:00
Sebastian Vater
ebcf7c3227
Handle palette underflows, fill remaining space with black (zero) data.
...
Patch by Sebastian Vater <cdgs basty googlemail com>.
Originally committed as revision 23111 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-05-13 15:33:36 +00:00
Sebastian Vater
2f955ea41b
Move a while(..){..} -> do{..}while(..), slightly faster.
...
Patch by Sebastian Vater <cdgs basty googlemail com>.
Originally committed as revision 23110 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-05-13 13:18:25 +00:00
Sebastian Vater
dce2f7d36b
Optimize decodeplane32().
...
Patch by Sebastian Vater <cdgs basty googlemail com>.
Originally committed as revision 23081 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-05-10 17:18:09 +00:00
Sebastian Vater
59cca5040e
Ensure that width and height are > 0. avcodec_open() itself only checks that
...
they are >= 0.
Patch by Sebastian Vater <cdgs basty googlemail com>.
Originally committed as revision 23080 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-05-10 17:00:56 +00:00
Sebastian Vater
9d45a32ba8
Remove "bps" parameter to decodeplane8/32(), it's unused.
...
Patch by Sebastian Vater <cdgs basty googlemail com>.
Originally committed as revision 23068 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-05-09 20:08:13 +00:00
Måns Rullgård
79a9672d45
IFF: decode last 8 pixels per line
...
The decodeplane8() function processes one byte of input less than
it should. Also, the for loop has an unusual style with side-effects
in the controlling expression; replaced with a more intuitive while
loop.
10l to Basty.
Originally committed as revision 23063 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-05-09 16:24:20 +00:00
Sebastian Vater
0a9cb385ad
Optimize decodeplane8(), patch by Sebastian Vater <cdgs basty googlemail com>.
...
Originally committed as revision 23061 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-05-08 21:48:44 +00:00
Sebastian Vater
cfdaee45d1
Align plane size to word-boundary.
...
Patch by Sebastian Vater, cdgs D basty A googlemail
Originally committed as revision 23023 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-05-05 17:02:55 +00:00
Ronald S. Bultje
4fe4bb6150
Revert r22974 int->unsigned parts that don't have any meaningful effect.
...
Originally committed as revision 23016 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-05-03 22:08:31 +00:00
Sebastian Vater
726dc06158
Reidnent after r22795.
...
Patch by Sebastian Vater <cdgs.basty googlemail com>.
Originally committed as revision 22976 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-26 22:39:08 +00:00
Sebastian Vater
fe51b5ce50
Move some branches outside looped code. Should improve the generated asm (and
...
thus performance) slightly.
Patch by Sebastian Vater <cdgs.basty googlemail com>.
Originally committed as revision 22975 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-26 22:38:41 +00:00
Sebastian Vater
473147bed0
Switch some ints to unsigned (they can only have positive values, this allows
...
compiler to optimize some math from mul/div to shr/shl). Also add a cast to
uint32_t when calling decodeplane32(), this silences a compiler warning.
Lastly, in decodeplane8/32(), flatten a double-loop into a single-loop and
calculate the length once before entering the loop instead of during every
iteration (since it doesn't change).
Patch by Sebastian Vater <cdgs.basty googlemail com>.
Originally committed as revision 22974 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-26 22:37:13 +00:00
Sebastian Vater
687dc3555d
Make two functions out of #define hackery.
...
Patch by Sebastian Vater, cdgs D basty A googlemail
Originally committed as revision 22970 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-26 22:00:57 +00:00
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
2010-04-20 14:45:34 +00:00
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
2010-03-30 23:30:55 +00:00
Stefano Sabatini
0edfa79b23
Make iff.c:decode_init return the value returned by
...
avctx->get_buffer() in case of error, rather than AVERROR_UNKNOWN
which is deprecated, and mark AVERROR_UNKNOWN for deletion at the next
major bump.
Originally committed as revision 22512 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-13 19:19:40 +00:00
Måns Rullgård
d9747e29b6
IFF: move ff_cmap_read_palette() prototype to a header file
...
Originally committed as revision 22307 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-08 02:36:00 +00:00
Peter Ross
f087881207
use intended const syntax
...
Originally committed as revision 22165 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-03 09:38:09 +00:00
Peter Ross
cbba8fec23
Support <8-bit ILBM uncompressed bitmaps
...
Originally committed as revision 21846 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-02-16 09:33:59 +00:00
Peter Ross
005caa3486
IFF bitmap n-bit color support
...
Originally committed as revision 21831 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-02-15 11:26:35 +00:00
Reimar Döffinger
9f1d760a27
Use int8_t instead of char, the signedness of char can differ between systems.
...
Originally committed as revision 21771 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-02-12 18:18:35 +00:00
Peter Ross
b9e06dddb7
IFF PBM/ILBM bitmap decoder
...
Originally committed as revision 21622 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-02-03 09:56:16 +00:00