Commit Graph

748 Commits

Author SHA1 Message Date
Alex Beregszaszi
7b5c80f6bb minor speedup noticed by arpi
Originally committed as revision 1081 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-27 19:01:00 +00:00
Alex Beregszaszi
97d4469a74 10l
Originally committed as revision 1080 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-27 18:03:42 +00:00
Alex Beregszaszi
109362cbf4 reworked decode_frame marker searching, fixes many non-working samples
Originally committed as revision 1079 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-27 17:59:35 +00:00
Michael Niedermayer
060f89b328 mergeing inter & intra rl_length tables (50% smaller & no meassureable difference in filesize/quality)
Originally committed as revision 1078 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-27 12:20:58 +00:00
Michael Niedermayer
f3c09da19f 75% smaller rl_length table
Originally committed as revision 1077 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-27 12:09:25 +00:00
Leon van Stuivenberg
a09907d988 dsputil mmi cleanup patch by (Leon van Stuivenberg <leonvs at iae dot nl>)
Originally committed as revision 1076 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-27 09:20:48 +00:00
Michael Niedermayer
d6db1c9c6a handle direct rendering buffer allocation failure
Originally committed as revision 1075 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-27 00:02:23 +00:00
Jürgen Keil
384855eebf segfault fix patch by (Juergen Keil <jk at tools dot de>)
Originally committed as revision 1073 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-26 18:56:43 +00:00
Michael Niedermayer
917f58279d fixing decoding of streams with no keyframe at the start
Originally committed as revision 1072 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-25 16:06:32 +00:00
Michael Niedermayer
50eb9cbc44 idct_permutation_type variable, so the permutation type can quickly be identified
Originally committed as revision 1071 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-25 13:39:47 +00:00
Michael Niedermayer
6e2d5f1aea regression test for H263+
Originally committed as revision 1070 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-25 10:50:02 +00:00
Michael Niedermayer
945eeee15e slice encoding cleanup
Originally committed as revision 1069 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-25 00:08:32 +00:00
Michael Niedermayer
c42612f1b4 clip MVs for direct mode
Originally committed as revision 1068 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-24 00:51:17 +00:00
Michael Niedermayer
7801d21d13 optimize block_permute()
optimize dct_quantize_c()
dont permute s->q_inter/intra_matrix

Originally committed as revision 1067 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-23 15:11:07 +00:00
Michael Niedermayer
4a3d7fbcbc fixing interlaced MC & edge-emu
Originally committed as revision 1066 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-23 08:14:12 +00:00
Michael Niedermayer
8d0e42cad0 more defaults
Originally committed as revision 1065 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-22 23:43:25 +00:00
Michael Niedermayer
7da71a5c68 xvid qpel bug autodetect
Originally committed as revision 1064 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-22 19:48:52 +00:00
Michael Niedermayer
03e93d35b0 xvid qpel bug workaround
Originally committed as revision 1063 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-22 18:55:20 +00:00
Michael Niedermayer
fc48cbad5b fixing msmpeg4v3 encoding at bitrates <128k
Originally committed as revision 1052 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-20 17:02:41 +00:00
Michael Niedermayer
35aa136a77 fixing h263 slice decoding (again)
Originally committed as revision 1051 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-19 23:48:08 +00:00
Michael Niedermayer
49943a18d0 fixing interlaced dct with 4mv
Originally committed as revision 1050 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-19 11:03:13 +00:00
Michael Niedermayer
8b32880cc9 fixing h263 decoding (did segfault)
Originally committed as revision 1049 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-19 01:31:26 +00:00
Michael Niedermayer
fb8a9e2f37 fixing interlaced dct + hq mode
Originally committed as revision 1048 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-18 18:32:50 +00:00
Michael Niedermayer
9fee1e234e init flags before using it (found by arpi)
Originally committed as revision 1047 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-16 22:18:41 +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
46fd0de8a7 fixing alt_scan for the first frame (variable was reset)
Originally committed as revision 1045 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-16 17:23:18 +00:00
Michael Niedermayer
d2975f8d4f warning fixes
Originally committed as revision 1044 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-15 15:24:08 +00:00
Michael Niedermayer
a61f82653e better padding bug detection
Originally committed as revision 1039 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-14 19:53:04 +00:00
Fabrice Bellard
ec6a375248 removed warnings
Originally committed as revision 1038 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-14 18:25:58 +00:00
Fabrice Bellard
4f891f53b3 removed invalid header include
Originally committed as revision 1037 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-14 18:01:32 +00:00
Michael Niedermayer
b704e7420b mpeg4 header parser clenup (needed for parsing of VOL header in avctx->extradata)
Originally committed as revision 1032 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-14 12:21:54 +00:00
Michael Niedermayer
26893f6bd4 fixing wmv1 slice decoding
Originally committed as revision 1031 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-13 19:53:32 +00:00
Michael Niedermayer
4d2858deac better/cleaner error resilience (done in a 2nd pass after decoding)
h263/mpeg4 out of order slice decoding

Originally committed as revision 1030 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-13 13:16:04 +00:00
Falk Hüffner
8b313a4787 Move Alpha optimized IDCT to own file. Based on a patch by Måns
Rullgård <mru@users.sourceforge.net>.

I've left out the idctCol2 part, because W4 has recently been decreed
to be 16383, and also I doubt it will give a noticeable speedup.

Originally committed as revision 1029 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-11 23:01:16 +00:00
Fabrice Bellard
18f4e34ff6 removed unused variables
Originally committed as revision 1027 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-11 13:49:16 +00:00
Fabrice Bellard
a5e880583c corrected pixel format display
Originally committed as revision 1025 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-11 09:16:35 +00:00
Fabrice Bellard
4bfad53561 added two pass info
Originally committed as revision 1022 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-10 17:12:55 +00:00
Michael Niedermayer
4973397975 mpeg1 2pass encoding
Originally committed as revision 1019 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-09 17:18:24 +00:00
Fabrice Bellard
9c89585ad4 resample fix by Petros Tsantoulis
Originally committed as revision 1018 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-09 14:16:31 +00:00
Fabrice Bellard
d017ab70f4 support buffers containing more than one frame
Originally committed as revision 1016 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-09 12:35:22 +00:00
Fabrice Bellard
1c05e11d02 fixed NTSC end of line bug
Originally committed as revision 1014 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-08 17:54:02 +00:00
Fabrice Bellard
789587d595 minimum support for YUV411P (new combined scaler/converter will handle that better...)
Originally committed as revision 1013 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-08 17:42:33 +00:00
Jürgen Keil
47fa9c203a 16x{8,16} {avg,put}_pixels support patch by (Juergen Keil <jk at tools dot de>)
Originally committed as revision 1012 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-08 12:09:23 +00:00
Arpi
9e39878252 10l - MMX/FPU state was not restored, causing nonsense fpu behaviour in caller (mplayer)
Originally committed as revision 1011 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-07 23:08:42 +00:00
Arpi
e9feea594a DV ntsc support, 411P colorspace added
Originally committed as revision 1010 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-07 21:28:33 +00:00
Falk Hüffner
acd2e05c47 * Fix dct_unquantize_h263_axp for changed block_last_index indexing.
* Set qadd to 0 for intra with h263_aic (whatever that may be).

Originally committed as revision 1009 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-07 02:03:21 +00:00
Michael Niedermayer
0298af4887 set low_delay on encoding if no b frames
Originally committed as revision 1007 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-06 17:46:22 +00:00
Michael Niedermayer
676e200cff trying to fix the non-x86 IDCTs (untested)
Originally committed as revision 1006 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-06 15:27:01 +00:00
Falk Hüffner
6c38306600 Make compilable again after DCT cleanup. It gives wrong results,
though, so I disabled it for now. Anybody knows offhand what might be
the reason?

Originally committed as revision 1005 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-05 00:57:42 +00:00
Falk Hüffner
e447d7d65f Some nifty stuff for upcoming patches.
Originally committed as revision 1004 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-05 00:12:58 +00:00
Falk Hüffner
3565eeaaaa Fix for source dir != build dir. Patch provided by Måns Rullgård.
Originally committed as revision 1003 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-04 23:32:40 +00:00
Alex Beregszaszi
defdfc9aa0 moved dct init out from mpv_common_init to dct_common_init (for less-uglier way for dv)
Originally committed as revision 1002 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-04 20:59:29 +00:00
Fabrice Bellard
7be166e4ea simplified parsing - added MMX idct support
Originally committed as revision 1000 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-04 07:49:00 +00:00
Fabrice Bellard
020fcc94e0 added DV support
Originally committed as revision 999 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-04 07:16:50 +00:00
Fabrice Bellard
5d2231ee8f first working version of DV video decoder
Originally committed as revision 998 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-03 21:07:39 +00:00
Fabrice Bellard
652f019786 in fact IDCT248 needs to be normalized as I suspected
Originally committed as revision 997 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-03 21:03:59 +00:00
Leon van Stuivenberg
5917d17cb7 ps2 optimizations update patch by (Leon van Stuivenberg <leonvs at iae dot nl>)
Originally committed as revision 996 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-03 20:57:19 +00:00
Fabrice Bellard
a46a3ce416 added IDCT248 testing
Originally committed as revision 995 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-03 19:49:23 +00:00
Fabrice Bellard
9bf71516b1 first version of IDCT248 for DV decoding support
Originally committed as revision 994 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-03 13:41:33 +00:00
Michael Niedermayer
3a3d3a42c2 fixing custom quantizer matrix decoding
minor optimizations

Originally committed as revision 993 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-02 22:56:58 +00:00
Michael Niedermayer
3994623df2 optimization
Originally committed as revision 992 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-02 17:07:39 +00:00
Michael Niedermayer
ce5b7c5e11 sliced mode for mpeg1/2
Originally committed as revision 991 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-02 16:36:43 +00:00
Michael Niedermayer
acf44abb8c move scantable init from block-decode to header parser
Originally committed as revision 990 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-01 23:47:04 +00:00
Michael Niedermayer
3729c91296 optimizing mpeg2 decode block stuff
Originally committed as revision 989 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-01 23:11:40 +00:00
Michael Niedermayer
144f062500 rv10 cleanup (de)muxer still needs to be cleaned up (still searching volunteer for that ;) )
Originally committed as revision 988 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-01 19:29:10 +00:00
Michael Niedermayer
4c2bc159bd fixing rv10, this isnt the cleanest solution (parsing the packet header in the codec & creating it in the muxer) but it was that way before things broke, and its the simplest solution
Originally committed as revision 986 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-30 21:36:43 +00:00
Michael Niedermayer
a02017367b optimizing mpeg1_decode_block()
Originally committed as revision 985 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-30 16:14:14 +00:00
Michael Niedermayer
8e1652dc9d forgot zigzag_direct[] behind #ifdef DEBUG (found by Klaas-Pieter Vlieg <vlieg at eurescom dot de>)
Originally committed as revision 984 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-30 10:06:17 +00:00
Michael Niedermayer
cc7ac88830 convert only needed matrixes in convert_matrix() (mjpeg calls it for every frame)
Originally committed as revision 983 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-30 09:19:54 +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
23e54f6927 renaming variable
Originally committed as revision 981 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-29 23:21:13 +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
Falk Hüffner
f9bb4bdffc Add Alpha assembly for pix_abs16x16. Optimized for pca56, no large win
on ev6.

Originally committed as revision 979 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-29 15:14:28 +00:00
Falk Hüffner
ea689c8eb7 An easy way to speed up encoding by 6%.
Originally committed as revision 978 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-28 02:18:34 +00:00
Falk Hüffner
7ffbb60ee7 Minor warning fix.
Originally committed as revision 977 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-28 01:49:37 +00:00
Michael Niedermayer
a9c6830605 minor optimization of h263_encode_motion()
Originally committed as revision 976 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-27 15:38:54 +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
0c2dd16eb6 autodetect UMP4 (by adding a fourcc field to AVCodecContext)
Originally committed as revision 974 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-26 23:27:22 +00:00
Michael Niedermayer
7f2bdb62d4 automatically detect broken opendivx codec and workaround, so bug=1 shouldnt be needed anymore for mpeg4 files, if there still are files which need bug=1 then tell me ...
Originally committed as revision 973 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-26 22:37:33 +00:00
Michael Niedermayer
5482970b4b h263_dc_scale() cleanup
Originally committed as revision 972 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-26 09:16:23 +00:00
Michael Niedermayer
fcb48651f4 mpeg4 interlaced dct encoding
Originally committed as revision 971 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-26 00:22:25 +00:00
Leon van Stuivenberg
b560f4b656 ps2 idct bugfix patch by (Leon van Stuivenberg <leonvs at iae dot nl>)
Originally committed as revision 970 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-24 23:57:17 +00:00
Michael Niedermayer
9e4c69485b adaptive quantization for h263
Originally committed as revision 969 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-24 15:07:44 +00:00
Michael Niedermayer
d87c0267e3 adaptive quantization for mpeg1
Originally committed as revision 968 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-24 12:33:37 +00:00
Michael Niedermayer
5e746b9995 darkness masking (lumi masking does only bright stuff now)
Originally committed as revision 967 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-24 10:53:59 +00:00
Michael Niedermayer
9960903667 fixing ac prediction encoding with adaptive quantization
Originally committed as revision 966 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-24 09:15:46 +00:00
Michael Niedermayer
693b0e1d66 fixing variance scaling for b frames (messed adaptive quants up)
cliping too long MVs in b frames instead of setting them to 0

Originally committed as revision 965 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-23 15:16:09 +00:00
Michael Niedermayer
c5d309f2d5 adaptive quantization (lumi/temporal & spatial complexity masking)
Originally committed as revision 964 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-23 14:56:11 +00:00
Leon van Stuivenberg
d46aba2642 ps2 idct patch by (Leon van Stuivenberg <leonvs at iae dot nl>)
Originally committed as revision 963 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-23 08:44:24 +00:00
Michael Niedermayer
084c726ba3 pix_sum16_mmx()
Originally committed as revision 961 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-20 10:03:01 +00:00
Arpi
3f09f52adf fdct_mmx -> ff_fdct_mmx (renamed to avoid namespace conflict with xvid)
[found by Kim Minh Kaplan]

Originally committed as revision 960 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-19 22:14:53 +00:00
Michael Niedermayer
b3a391e8b8 fixing i_quant_factor, this should finally fix the bitrate bug with ffserver hopefully
Originally committed as revision 959 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-19 20:22:39 +00:00
Michael Niedermayer
e8b62df6e4 fixing apiexample
Originally committed as revision 958 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-19 18:24:52 +00:00
Michael Niedermayer
b71901e6ee documenting most stuff in AVCodecContext
Originally committed as revision 957 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-19 17:44:54 +00:00
Falk Hüffner
0af65aac18 * Remove -finline-limit=8000 (not supported by gcc 2.95)
* Hack to force correct gcc arch flags for motion_est_alpha.c

Originally committed as revision 956 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-19 16:06:25 +00:00
Michael Niedermayer
590d3f81b7 fixing *pixels_tab stuff (hopefully, as its untested ...)
Originally committed as revision 955 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-19 10:26:49 +00:00
Michael Niedermayer
a949d72e0e avcodec_alloc_context()
Originally committed as revision 954 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-19 09:13:43 +00:00
Michael Niedermayer
947ac25a44 10l (forgot to commit)
Originally committed as revision 953 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-18 18:30:31 +00:00
Michael Niedermayer
6a1f7e7b6b better min/max rate handling
cleanup

Originally committed as revision 952 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-18 18:28:11 +00:00
Michael Niedermayer
946c8a1281 fixing
fixing max_rate/min_rate

Originally committed as revision 951 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-18 09:08:03 +00:00