Commit Graph

512 Commits

Author SHA1 Message Date
Nick Kurshev
361e7cade9 10L
Originally committed as revision 744 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-11 15:54:10 +00:00
Nick Kurshev
861dfbb551 Add Arpi to list of porters.
Originally committed as revision 743 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-11 15:16:17 +00:00
Nick Kurshev
365777216b Change licence to LGPL since there are no objections from side of original author
Originally committed as revision 742 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-11 15:03:41 +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
Marko Kreen
adc09b2eab adding ff prefix to avoid global name conficts with xvid (patch by Marko Kreen <marko at l-t.ee>)
Originally committed as revision 739 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-10 21:01:45 +00:00
Michael Niedermayer
9d07682305 returning the number of consumed bytes (2nd try)
Originally committed as revision 738 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-10 20:21:00 +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
Nick Kurshev
63e0d4ac59 Applied patch of Felix Buenemann
Originally committed as revision 736 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-10 17:39:16 +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
Nick Kurshev
82dd7d0dec * prefixication (due Kabi's request)
* generic optimization:
  - enable ALT and ALIGNED stream
  - move "if(const)" out from loops
  - supress duplicated computing
* first attempt to fix problem with strides

Originally committed as revision 734 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-10 16:37:08 +00:00
Zdenek Kabelac
f197d19a21 * clean compiler warning
Originally committed as revision 733 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-10 14:34:06 +00:00
Michael Niedermayer
ebd62a2402 return the number of consumed bytes instead of 0 or buf_size
Originally committed as revision 731 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-10 10:25:11 +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
Zdenek Kabelac
df595131bb * declare av_free
Originally committed as revision 729 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-09 18:38:07 +00:00
Felix Bünemann
c60a6560a1 warning fix patch by atmos
Originally committed as revision 728 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-09 18:14:59 +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
Nick Kurshev
be8ffec9cd new codec: Sorenson v1
Originally committed as revision 726 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-09 16:08:43 +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
Michael Niedermayer
de0f2f4cca wmv1 slice_height != mb_height support
encoding of slice_height != mb_height
1bit shorter wmv1 headers if bit_rate<50 !? ROTFL M$ is even more stupid than i thought
using dc of non intra blocks for dc prediction of wmv1 if bitrate < 129 && res < 320x240

Originally committed as revision 723 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-07 08:34:46 +00:00
Falk Hüffner
0a12d6fdfd Implement clear_blocks_axp.
Originally committed as revision 722 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-05 19:16:26 +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
c13e1abdec * Detect "retrict" keyword
* Use "restrict" in some dsputil routines (yields large speedup)

Originally committed as revision 716 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-04 01:47:32 +00:00
Falk Hüffner
2dbe7ec87c Make dct_unquantize_h263 work on systems without MVI extension.
Originally committed as revision 715 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-03 23:30:32 +00:00
Falk Hüffner
e0580f8c68 Update and activate dct_unquantize_h263_mvi. Thanks to Måns Rullgård
for some improvements.

Originally committed as revision 714 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-03 03:01:06 +00:00
Falk Hüffner
dde3f77dbc Use updated motion compensation routines.
Originally committed as revision 713 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-03 01:09:44 +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
Falk Hüffner
494e409255 Assembly version of put_pixels. This is currently the function that
takes the most time, and it allows for more efficient unaligned access
and better control over memory latencies.

Originally committed as revision 711 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-01 23:47:01 +00:00
Falk Hüffner
d13c54cdc0 Add profiling support.
Originally committed as revision 710 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-01 23:02:36 +00:00
Falk Hüffner
bb7d4939ba Implement put_pixels_clamped and add_pixels_clamped in Assembler. This
allows better scheduling of the memory accesses, and is portable among
all compilers.

Originally committed as revision 709 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-01 04:26:07 +00:00
Zdenek Kabelac
d859228038 * turned into debug message - it's annoying when watching mjpeg files
Originally committed as revision 707 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-27 13:21:16 +00:00
Michael Niedermayer
a406617f2a init dc_scale tables to defaults (fixes mjpeg sig11)
Originally committed as revision 706 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-25 10:15:42 +00:00
Falk Hüffner
db42e13bfb Ugly hack to make the assembler accept MVI instructions.
Originally committed as revision 705 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-24 22:22:39 +00:00
Falk Hüffner
b210c96c0c * Fixed constraints
* Support ccc
* Support gcc 3.2 builtins

Originally committed as revision 704 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-24 22:21:30 +00:00
Falk Hüffner
3155c994b6 Reintroduce lost idctSparseCol for Alpha. Sorry for adding even more
code duplication, I'm currently working on the put/add variants, but I
did not get them to be as fast as the old method yet...

Originally committed as revision 703 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-24 21:17:22 +00:00
Michael Niedermayer
f10bd870bf 4mv bugfix
Originally committed as revision 702 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-24 15:02:52 +00:00
Michael Niedermayer
bd5e1c72f8 fixing wmv1 bugs, it was foolish to belive that m$ would use the same dc prediction as mpeg4 just cuz they changed it a bit from msmpeg4v3
Originally committed as revision 700 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-22 15:52:25 +00:00
Michael Niedermayer
0151a6f546 wmv1 support
Originally committed as revision 697 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-18 00:50:20 +00:00
Michael Niedermayer
f5957f3fe2 wmv1 support
dc scale optimisation
better ac table selection for msmpeg4

Originally committed as revision 696 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-18 00:49:00 +00:00
Michael Niedermayer
8f8402e49c dc scale simplification/optimization
Originally committed as revision 695 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-18 00:46:02 +00:00
Fabrice Bellard
8fd5fe9429 use #ifdef
Originally committed as revision 694 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-17 08:29:03 +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
ce992c6932 moved code to mem.c and allcodecs.c
Originally committed as revision 689 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-11 13:45:17 +00:00
Fabrice Bellard
915bbac681 fixed one mpeg decoder memory leak
Originally committed as revision 688 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-11 13:44:14 +00:00
Fabrice Bellard
6d4985bbdf move unaligned access macros to dsputil.h - added unaligned 32 bit store
Originally committed as revision 687 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-11 13:43:27 +00:00
Fabrice Bellard
544eb99cbf memory functions are exported
Originally committed as revision 686 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-11 13:42:18 +00:00
Fabrice Bellard
771b9a7045 put codec registering in another file so that the user can install the codecs he wants
Originally committed as revision 685 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-11 13:41:41 +00:00
Fabrice Bellard
d01fe86dac put memory functions in a separate file so that the user can redefinite them without modifying the library
Originally committed as revision 684 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-11 13:41:01 +00:00
Fabrice Bellard
773cefc602 added installlib target to install static libraries and includes
Originally committed as revision 683 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-11 13:39:47 +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
6282185e82 grayscale only encoding
Originally committed as revision 679 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-09 14:04:36 +00:00
Michael Niedermayer
0398717356 passing avctx->flags so that grayscale only decoding works with mpeg1/2 too
Originally committed as revision 678 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-09 13:43:53 +00:00
Michael Niedermayer
b50eef3ae0 grayscale only decoding
Originally committed as revision 677 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-09 13:35:56 +00:00
Felix Bünemann
800d7cebb6 in libavcodec/Makefile there is in line 110: "distclean: clean<binary char>"
this binary char corrupts the makefile and should be removed.
patch by Felix Buenemann <atmosfear@users.sourceforge.net>

Originally committed as revision 676 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-07 22:01:03 +00:00
Fabrice Bellard
d81c598383 fixed multiple allocation bug
Originally committed as revision 675 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-06 14:31:18 +00:00
Fabrice Bellard
9f4f81ed17 fixed case where abs_level > MAX_LEVEL
Originally committed as revision 674 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-06 14:25:44 +00:00
Michael Niedermayer
0f440e0214 optimizing MPV_decode_mb
Originally committed as revision 673 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-05 23:43:56 +00:00
Fabrice Bellard
8ee14970d6 added ff_idct_put/add
Originally committed as revision 672 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-05 18:48:07 +00:00
Fabrice Bellard
d36a246675 added inlined put/add functions
Originally committed as revision 671 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-05 18:46:25 +00:00
Fabrice Bellard
ad31c904b2 use ff_idct_put/add()
Originally committed as revision 670 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-05 18:36:03 +00:00
Fabrice Bellard
ee4b748b7f use ff_idct_put()
Originally committed as revision 669 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-05 18:35:28 +00:00
Fabrice Bellard
412ba501b1 removed unused code - began to merge alpha specific stuff - added mac macros for suitable CPUs
Originally committed as revision 667 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-05 14:25:06 +00:00
Michael Niedermayer
dd536160cd run1 can be <0 bugfix (found by fabrice)
Originally committed as revision 661 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-04 18:35:31 +00:00
Fabrice Bellard
03c94ede93 avoid name clash with libjpeg - added missing externs
Originally committed as revision 660 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-04 12:58:40 +00:00
Fabrice Bellard
c3aea5c424 added missing externs (we were lucky that commons are used)
Originally committed as revision 659 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-04 12:56:04 +00:00
Fabrice Bellard
6d5bf5343c added missing externs
Originally committed as revision 658 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-04 12:53:11 +00:00
Zdenek Kabelac
39825f315f * reimplemented remaing avg_ pixel functions
* modified PAVGB mmx macro to select mmx register with FE constant

Originally committed as revision 657 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-03 17:35:35 +00:00
Zdenek Kabelac
d3cd07425a * implemented remaing avg_ pixel functions (these are not used offen)
Originally committed as revision 656 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-03 17:31:46 +00:00
Falk Hüffner
e7650becc6 Revert previous bogus warning fix.
Originally committed as revision 655 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-03 14:44:37 +00:00
Falk Hüffner
20695ec921 Minor warning cleanup.
Originally committed as revision 654 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-03 11:16:11 +00:00
Nick Kurshev
8696b63645 use qstride instead of fixed constants
Originally committed as revision 653 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-03 07:58:35 +00:00
Nick Kurshev
ae72cda62b new field for communicating with external postprocessing
Originally committed as revision 652 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-03 07:01:42 +00:00
Michael Niedermayer
4136dd2437 100l divx501+ seeking bugfix
Originally committed as revision 651 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-02 22:08:04 +00:00
Felix Bünemann
bc45bca372 gcc 3.1 warning fix (patch by Felix Buenemann <atmosfear at users.sourceforge.net>)
Originally committed as revision 650 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-02 16:06:41 +00:00
D Richard Felker III
90864f2712 10l found&patch by D Richard Felker III <dalias at aerifal.cx>
Originally committed as revision 649 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-02 15:49:21 +00:00
Michael Niedermayer
333547be44 typo (found by Bohdan Horst <nexus at hoth.amu.edu.pl>)
Originally committed as revision 648 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-02 15:31:30 +00:00
Michael Niedermayer
2a052693dd divx5 bug workaround
Originally committed as revision 647 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-02 13:31:48 +00:00
Michael Niedermayer
1f6b6e50ce single coefficient elimination
error concealment / error resilience
b_quant_offset (unfinished, should be 0 for now)

Originally committed as revision 646 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-02 12:25:54 +00:00
Michael Niedermayer
9effc0c71b b_quant_offset (unfinished, should be 0 for now)
Originally committed as revision 645 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-02 12:24:26 +00:00
Michael Niedermayer
5bb6fbb351 data partitioning
Originally committed as revision 644 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-02 12:23:22 +00:00
Michael Niedermayer
287229e554 msmpeg4v1 decoding
Originally committed as revision 643 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-02 12:22:30 +00:00
Michael Niedermayer
7f2fe444a3 single coefficient elimination
prequantization
more readable malloc & check if NULL
error concealment / error resilience
b_quant_offset (unfinished, should be 0 for now)
data partitioning

Originally committed as revision 642 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-02 12:20:39 +00:00
Michael Niedermayer
0d21a84605 dont double check vectors
more correct EPZS implementation
much faster halfpel ME
simplifications / reducing duplicate code
4MV in LQ mode

Originally committed as revision 641 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-02 12:18:18 +00:00
Michael Niedermayer
6733417a5f error concealment / error resilience
merging s->first_gob_line & s->first_slice_line

Originally committed as revision 640 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-02 12:16:28 +00:00
Michael Niedermayer
92073d01ca error concealment / error resilience
data partitioning encoding/decoding
resync marker encoding
more correct headers
merging s->first_gob_line & s->first_slice_line

Originally committed as revision 639 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-02 12:15:17 +00:00
Michael Niedermayer
c9b5489c08 fixing get_bits_count at the end
Originally committed as revision 638 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-02 12:13:09 +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
Michael Niedermayer
ab00685a75 bugfix
Originally committed as revision 636 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-01 23:18:44 +00:00
Fabrice Bellard
8155233413 fixed layer1/2 overflow if very loud sound - fixed broken free format decoding to pass all mpeg audio standard decoding tests (please avoid patching the parser without having all test streams available - contact me if necessary)
Originally committed as revision 634 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-01 14:34:29 +00:00
Zdenek Kabelac
fca0f0e59f * removed MANGLE from macros for setting constants
* using MOVQ_WONE/MOVQ_BFE as two instruction instead of static memory value access
  as its always faster
* PAVGB_MMX macro is using now mm6 -> mm7 is unmodified
* replaced original pixels_xy2_mmx with new faster and equal implementation
* replaced usage of mm7 for other then ZERO contstant in _rnd & _avg file with mm6

Originally committed as revision 632 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-05-30 15:14:56 +00:00
Zdenek Kabelac
ff9657069a * using unrolled loops seems to help to MMX Celerons
* calculating average in parallel to use two MMX units
* disabled xy2 put code - it's producing rouding errors

Originally committed as revision 626 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-05-29 20:00:10 +00:00
Zdenek Kabelac
6aa6ea8e11 * reenabled original xy2 put routine - rounding error is really bad with
the new code
* added PAVGP macros for parallel processing to safe few more cycles on
  celerons

Originally committed as revision 625 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-05-29 19:57:21 +00:00
Zdenek Kabelac
91abb473fb * code with new PAVGB for MMX only CPU splited into separate file
and being compiled in the same way as _avg.h
* PAVG_MMX macros accept also output parameter
* implemented faster put_pixels_xy2, but it has slightly smaller precission.
  But there is not visible difference in the image quality - might be eventualy
  easily switched back (#if 0 #endif)- please check

Originally committed as revision 624 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-05-29 17:16:22 +00:00
Zdenek Kabelac
def60345ad * new mmx code - based upon http://aggregate.org/MAGIC
for now it's rather sneak preview (new functions are nearly 100% faster)

Originally committed as revision 623 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-05-29 14:29:48 +00:00
Zdenek Kabelac
541027e26a * cosmetic minor change
Originally committed as revision 622 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-05-29 14:20:48 +00:00
Zdenek Kabelac
d17b6f0bbb * optimized remaing avg_pixels_xy2
Originally committed as revision 621 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-05-29 08:31:22 +00:00
Zdenek Kabelac
e9c0a38ff0 * optimized avg_* functions (except xy2)
* minor speedup for put_pixels_x2 & cleanup

Originally committed as revision 619 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-05-28 16:35:58 +00:00
Zdenek Kabelac
cd4af68ad5 * started to cleanup name clashes for onetime compilation
Originally committed as revision 617 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-05-27 16:42:14 +00:00
Zdenek Kabelac
c0eb0bb717 * more PIC friendly and faster code
Originally committed as revision 616 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-05-27 14:09:10 +00:00
Zdenek Kabelac
5f6230016a * removed TESTCPU_MAIN - not needed for testing
Originally committed as revision 615 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-05-27 11:32:01 +00:00