Commit Graph

142 Commits

Author SHA1 Message Date
BERO
d8e00c0997 bitstream reader optimize patch by (BERO <bero at geocities dot co dot jp>)
Originally committed as revision 1871 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-05-14 00:32:22 +00:00
Michael Niedermayer
814b648c75 Tiny patch for OpenBSD by (Björn Sandell <biorn at dce dot chalmers dot se>)
Originally committed as revision 1837 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-05-05 23:22:56 +00:00
Michael Niedermayer
7bc9090a41 simplified adressing of most mb based arrays (mb_x + mb_y*s->mb_stride) now instead of mb_x + mb_y*mb_width and 1+mb_x + (1+mb_y)*(mb_width+2) and ... mixture
more direct use of the new mb_type stuff instead of codec specific stuff
runtime mb_type debug output h264/h263 variants/mpeg1/2/4
error concealment /resilience for mpeg1/2
various minor optimizations

Originally committed as revision 1746 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-04-10 13:18:38 +00:00
François Revol
c8816e0167 Fix for buggy (?) g++ (bailling out for beosaudio.cpp)
Originally committed as revision 1736 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-04-05 12:11:10 +00:00
Michael Niedermayer
95c2634838 #ifdef TRACE printf() -> tprintf()
Originally committed as revision 1735 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-04-05 10:08:48 +00:00
Michael Niedermayer
3b0da3f92f 10l
Originally committed as revision 1706 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-03-26 10:39:34 +00:00
Michael Niedermayer
643389567e bitstream tracing support
Originally committed as revision 1698 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-03-21 23:13:35 +00:00
Fred Rothganger
e8750b0076 rawvideo patch by (Fred Rothganger <rothgang at uiuc dot edu>)
Originally committed as revision 1687 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-03-16 21:03:20 +00:00
Zdenek Kabelac
5d4ce4574b * added more options
Originally committed as revision 1675 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-03-12 19:49:58 +00:00
Michael Niedermayer
14bea432f1 per context frame_rate_base, this should finally fix frame_rate related av sync issues
Originally committed as revision 1666 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-03-12 15:16:19 +00:00
Zdenek Kabelac
a77146abfe * 'externaly' visible option list begins avoptions_ prefix
* fixed FLAG AVOption

Originally committed as revision 1661 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-03-10 11:48:33 +00:00
Alex Beregszaszi
ce2749d2c4 simplified
Originally committed as revision 1655 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-03-09 16:07:19 +00:00
Zdenek Kabelac
bec89a840f * more generic avoption_parse
* reused help ptr for sub ptr

Originally committed as revision 1642 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-03-07 13:48:02 +00:00
Michael Niedermayer
6486396546 more cosmetics so that doxygen output is readable ...
Originally committed as revision 1640 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-03-06 15:56:56 +00:00
Michael Niedermayer
983e3246b7 per file doxy
Originally committed as revision 1634 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-03-06 11:32:04 +00:00
Zdenek Kabelac
ae39132d07 * using const buffers for reading
Originally committed as revision 1603 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-02-24 13:41:57 +00:00
Michael Niedermayer
d4c48e4869 get_vlc2() "docs"
Originally committed as revision 1599 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-02-24 09:41:02 +00:00
Zdenek Kabelac
0c1a9edad4 * UINTX -> uintx_t INTX -> intx_t
Originally committed as revision 1578 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-02-11 16:35:48 +00:00
Zdenek Kabelac
fe1b62fb3e * still unfinished code for Options
* demo code - awating more comments

Originally committed as revision 1569 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-02-10 09:40:23 +00:00
Fabrice Bellard
d44b50b0af win32: added vsnprintf
Originally committed as revision 1518 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-01-28 14:37:44 +00:00
Michael Niedermayer
c81f034988 optimizing av_log2
Originally committed as revision 1515 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-01-27 20:39:29 +00:00
Fabrice Bellard
8e1e6f31c1 use av_malloc() functions - added av_strdup and av_realloc()
Originally committed as revision 1505 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-01-23 23:03:09 +00:00
Michael Niedermayer
68f593b484 GetBitContext.size is allways multiplied by 8 -> use size_in_bits to avoid useless *8 in a few inner loops
Originally committed as revision 1486 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-01-21 17:34:12 +00:00
Slavik Gnatenko
f3ec2d46ba os2 support patch by ("Slavik Gnatenko" <miracle9 at newmail dot ru>)
Originally committed as revision 1447 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-01-11 20:34:38 +00:00
Fabrice Bellard
c4d82fea54 generic M_PI define
Originally committed as revision 1418 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-01-07 22:38:25 +00:00
Philip Gladstone
35fedfc349 Add some rudimentary support for sparc64
Originally committed as revision 1279 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-11-26 04:29:40 +00:00
Michael Niedermayer
5d3cea3a86 aspect ratio cleanup
Originally committed as revision 1254 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-11-20 13:08:04 +00:00
Zdenek Kabelac
6a85ec8d9c * minor warning fix
Originally committed as revision 1209 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-11-14 19:04:40 +00:00
Zdenek Kabelac
18f770162b * fixing some minor const warnings
Originally committed as revision 1205 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-11-12 15:00:04 +00:00
Michael Niedermayer
b8a78f419d reversing header game
MIN/MAX -> FFMIN/FFMAX

Originally committed as revision 1184 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-11-10 11:46:59 +00:00
Michael Niedermayer
81ada1ce9d cleanup
Originally committed as revision 1172 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-11-06 09:30:47 +00:00
Michael Niedermayer
75460b0ce5 put MIN/MAX under ifndef MAX/MIN
Originally committed as revision 1138 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-11-01 20:37:10 +00:00
Michael Niedermayer
073b013d00 complete mpeg4 GMC decoding support
Originally committed as revision 1046 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-16 19:55:49 +00:00
Michael Niedermayer
9b59c92f47 indenting preprocessor stuff, as its completly unreadable otherwise
Originally committed as revision 982 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-29 23:39:30 +00:00
Michael Niedermayer
2ad1516a6c idct permutation cleanup, idct can be selected per context now
fixing some threadunsafe code

Originally committed as revision 980 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-29 22:44:22 +00:00
Michael Niedermayer
202ef8b819 ff_get_fourcc() & XVIX support
Originally committed as revision 975 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-27 10:27:57 +00:00
Michael Niedermayer
f36db5dfd3 faster ff_sqrt()
Originally committed as revision 859 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-08-22 19:41:39 +00:00
Bohdan Horst
a5f0696948 this include isn;t longer need and now generate a lot of warnings patch by Bohdan Horst <nexus at hoth.amu.edu.pl>
Originally committed as revision 789 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-23 09:44:34 +00:00
Michael Niedermayer
e1707f52d5 BeOS patches by "shatty" <shatty at myrealbox.com>
1. errno's are negative on beos, so negating them gives positive values.
2. the -shared flag is -nostart on beos.
3. building the shared lib on beos requires -fomit-frame-pointer
4. beos doesn't have oss support

Originally committed as revision 779 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-19 22:23:40 +00:00
Falk Hüffner
d200cab674 Force inlining on get_vlc2.
Originally committed as revision 756 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-13 19:31:15 +00:00
Michael Niedermayer
45a82edbdd rl vlc decoding optimizations
Originally committed as revision 748 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-13 14:55:12 +00:00
Michael Niedermayer
6300c80a88 dont trash table in GET_VLC
Originally committed as revision 741 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-11 12:42:20 +00:00
Falk Hüffner
5ea6f10f72 Remove some cruft.
Originally committed as revision 740 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-10 22:06:04 +00:00
Michael Niedermayer
08dce7b02f get_vlc() optimizations
Originally committed as revision 737 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-10 20:05:42 +00:00
Michael Niedermayer
cceabc8656 get_vlc() optimization
Originally committed as revision 735 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-10 17:32:59 +00:00
Michael Niedermayer
ef5e74bbfd c std doesnt like negative shifts -> use asm
Originally committed as revision 730 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-09 19:22:50 +00:00
Michael Niedermayer
55cb1ae6fc gcc3 bug workaround
Originally committed as revision 727 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-09 17:41:51 +00:00
Michael Niedermayer
8db1a1dde0 new bitstream reader API (old get_bits() based one is emulated and will still be supported in the future cuz its simpler)
minor optimizations to get_vlc

Originally committed as revision 725 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-09 10:35:10 +00:00
Falk Hüffner
02da51ec60 * Move "restrict" fallback to common.h
* Don't include config.h in dsputil.c

Originally committed as revision 721 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-04 13:41:27 +00:00
Falk Hüffner
3530320dbf Activate ALT_BITSTREAM_READER by default on Alpha, since it seems to
be a noticeable win (at least for me :)

Originally committed as revision 712 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-02 02:22:46 +00:00
Fabrice Bellard
4fd6044859 reverted to inttypes.h since it gives problems on some unixes
Originally committed as revision 690 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-13 23:36:30 +00:00
Fabrice Bellard
96707bb783 do not export internal functions - use stdint.h
Originally committed as revision 682 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-11 13:38:54 +00:00
Michael Niedermayer
7fd08ac1d1 sqrt
MAX, MIN

Originally committed as revision 637 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-02 12:11:44 +00:00
Zdenek Kabelac
8758f7e43c * for this moment bswap.h included ahead of HAVE_AV_CONFIG_H check
as its functionality is used even in those parts which are being
  compiled without this flag
  - generaly this would require more complicated cleanup patch
  - for now leaving for the main author

Originally committed as revision 614 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-05-27 09:17:21 +00:00
Fabrice Bellard
6a3d7e36c9 fixed mangle issue
Originally committed as revision 605 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-05-26 15:07:57 +00:00
Fabrice Bellard
d503f97038 better logic for bswap
Originally committed as revision 596 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-05-25 22:38:02 +00:00
Philip Gladstone
935cdf0902 Add an av_abort macro that aborts, but also prints out the location of the abort.
Helps track down bugs.

Originally committed as revision 576 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-05-24 01:16:08 +00:00
Zdenek Kabelac
8083185f88 * restored previous non '..' version
Originally committed as revision 558 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-05-21 21:50:05 +00:00
Zdenek Kabelac
777cc95fb4 * using ../ for bswap.h
Originally committed as revision 556 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-05-21 19:42:43 +00:00
Zdenek Kabelac
49d71c7b05 * avoid conflicts with non-ffmpeg config.h and also it's consistent
with few other header files included from the main ffmpeg's dir

Originally committed as revision 555 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-05-21 18:56:03 +00:00
Fabrice Bellard
4d7a0a0593 better av_freep()
Originally committed as revision 541 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-05-20 16:23:27 +00:00
Fabrice Bellard
44f27b3a86 added proper memory handling functions - fixed include paths
Originally committed as revision 516 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-05-18 22:56:25 +00:00
Alex Beregszaszi
a69b930cd3 clamp intra matrix to 8bit for mjpeg (workaround for qscale>=25)
Originally committed as revision 451 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-05-07 17:55:02 +00:00
Michael Niedermayer
32cd20de42 move ABS() to common.h
print mb_types in nice looking format support

Originally committed as revision 440 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-05-04 18:58:07 +00:00
Michael Niedermayer
9717dad883 move put_string() to common.{c,h}
Originally committed as revision 439 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-05-03 23:13:24 +00:00
Michael Niedermayer
d7e9533aa0 fixed msmpeg4 infinite loop if buggy stream
rewrote quantizer
 fixed bias (+10% compression/quality for h263 like codecs)
 qscale=1 support
 mpeg1 intra frames looks far less blocky
added codec_id field

Originally committed as revision 423 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-04-27 12:30:26 +00:00
Michael Niedermayer
91029be790 much better ME for b frames (a bit slow though)
fixed MC rounding for b frames
fixed hq mode with b-frames

Originally committed as revision 406 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-04-19 03:25:20 +00:00
Michael Niedermayer
9dbcbd92e8 fixed mpeg4 time stuff on encoding
mpeg4 b-frame enoding support
removed old, out-commented ratecontrol
reuse motion compensation code between encoding & decoding
prefix newly added global functions with ff_ to reduce namespace polution
b-frame ME (unfinished, but working)
added some comments to mpegvideo.h
do MC on encoding only once if possible
bugs? ;)

Originally committed as revision 403 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-04-17 04:32:12 +00:00
Michael Niedermayer
fcb609f432 dump_stream support (nicely formated 0s and 1s)
Originally committed as revision 375 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-04-04 20:04:10 +00:00
Michael Niedermayer
490922441b resync marker support, needed for some mp4 files
Originally committed as revision 358 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-03-24 21:25:04 +00:00
Michael Niedermayer
45870f5718 new motion estimation (epzs) not complete yet but allready pretty good :)
unlimited mv search range
minor bugfix in the mpeg4 header parser
reset picture in gop counter if scene change is detected

Originally committed as revision 344 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-03-22 02:21:17 +00:00
Michael Niedermayer
49c9325f56 support decoding (with mplayer) of 3 .mp4 files from mphq
optimize h263_pred_motion()

Originally committed as revision 330 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-03-13 19:26:38 +00:00
Michael Niedermayer
d8cf5aea49 optimized the normal bitstream writer, its faster than the alternative one on p3 now ... lets hope its at least not slower on p4 & k7
Originally committed as revision 299 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-02-15 00:14:01 +00:00
Michael Niedermayer
4f0f8bfce3 aligned bitstream writer (1% slower on p3 but perhaps its faster on p4?)
Originally committed as revision 296 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-02-12 22:43:26 +00:00
Michael Niedermayer
17592475b3 alternative bitstream writer (disabled by default, uncomment #define ALT_BISTREAM_WRITER in common.h if u want to try it)
Originally committed as revision 295 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-02-12 15:43:16 +00:00
Nick Kurshev
4bdd9157cc Cygwin's mangling by Felix Buenemann <atmosfear@users.sourceforge.net>
Originally committed as revision 273 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-01-20 14:30:34 +00:00
Michael Niedermayer
05f361f0c7 (commited by michael / arpi was crazy enough to give me his password)
fixed a bug in get_vlc() when using the ALT_BITSTREAM_READER (rv10 & mpeg12 decoders where not working)
some optimizations
 replaced a if() with a >>
 changed get_bits1() a bit so it hopefully is faster on p4

Originally committed as revision 259 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-01-12 20:21:51 +00:00
Michael Niedermayer
3587d501a3 aligned bitstream support (optional) - patch by ichael Niedermayer <michaelni@gmx.at>
Originally committed as revision 253 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-01-11 21:21:20 +00:00
Michael Niedermayer
27a3e2c5e0 another bitstream reader code (faster on intel cpus) - patch by Michael Niedermayer <michaelni@gmx.at>
Originally committed as revision 252 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-01-10 00:56:05 +00:00
Nick Kurshev
a822a47983 fixed gcc-3.0.x compilation (by Michael Niedermayer)
Originally committed as revision 211 to svn://svn.ffmpeg.org/ffmpeg/trunk
2001-11-10 14:36:12 +00:00
Juanjo
4949028f85 - Bug fix on inter MCBPC table for inter+q.
- H.263/H.263+ decoder now knows GOB start codes.
- H.263/H.263+ decoder now returns the size of the stream on the first call.
- Added show_bits() functions to see the buffer without loosing the bits.
- TODO: H.263v1 UMV parsing is buggy.

Originally committed as revision 204 to svn://svn.ffmpeg.org/ffmpeg/trunk
2001-11-03 00:49:53 +00:00
Fabrice Bellard
f674bf7105 suppressed mpglib
Originally committed as revision 141 to svn://svn.ffmpeg.org/ffmpeg/trunk
2001-09-23 17:17:46 +00:00
Fabrice Bellard
73120e555c version change
Originally committed as revision 129 to svn://svn.ffmpeg.org/ffmpeg/trunk
2001-09-16 21:52:17 +00:00
Fabrice Bellard
9dbf938977 added get_bits_count()
Originally committed as revision 120 to svn://svn.ffmpeg.org/ffmpeg/trunk
2001-09-15 22:43:01 +00:00
Fabrice Bellard
a74127c071 win32 fixes
Originally committed as revision 110 to svn://svn.ffmpeg.org/ffmpeg/trunk
2001-08-15 22:33:03 +00:00
Fabrice Bellard
0617e07391 log2 to av_log2 - added integer version define
Originally committed as revision 97 to svn://svn.ffmpeg.org/ffmpeg/trunk
2001-08-15 13:09:28 +00:00
Fabrice Bellard
1a56543279 win32 fixes
Originally committed as revision 84 to svn://svn.ffmpeg.org/ffmpeg/trunk
2001-08-13 21:48:05 +00:00
Arpi
612476ef9b get_bits() specialization, gives 4\speedup
Originally committed as revision 32 to svn://svn.ffmpeg.org/ffmpeg/trunk
2001-08-04 00:46:50 +00:00
Arpi
2931ecb90f inlineing common case of get_bits() -> gives 2speedup. more optim coming soon...
Originally committed as revision 31 to svn://svn.ffmpeg.org/ffmpeg/trunk
2001-08-03 23:09:15 +00:00
Fabrice Bellard
420b073bbc added HAVE_AV_CONFIG_H
Originally committed as revision 19 to svn://svn.ffmpeg.org/ffmpeg/trunk
2001-07-30 23:22:07 +00:00
Fabrice Bellard
980fc7b834 fixed config for direct mplayer build compatibility
Originally committed as revision 8 to svn://svn.ffmpeg.org/ffmpeg/trunk
2001-07-23 20:06:54 +00:00
Fabrice Bellard
de6d9b6404 Initial revision
Originally committed as revision 5 to svn://svn.ffmpeg.org/ffmpeg/trunk
2001-07-22 14:18:56 +00:00