Commit Graph

571 Commits

Author SHA1 Message Date
Michael Niedermayer f255af5d93 fixing level overflow check for qp=1
Originally committed as revision 842 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-08-05 19:05:02 +00:00
Michael Niedermayer 159d10fc2c hopefully fixing unreprodceable segfault when overreading the end if error_resilience==-1 (it didnt overread here though)
Originally committed as revision 841 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-08-04 19:28:27 +00:00
Michael Niedermayer 0a6baf39cb fixing slices which start at mb_x>0
Originally committed as revision 840 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-08-04 18:19:09 +00:00
Michael Niedermayer 5507833249 supporting rare overflow mess even with error_resilience>=0
Originally committed as revision 839 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-08-04 16:46:18 +00:00
Michael Niedermayer 44273f1951 making some error checks optional
Originally committed as revision 838 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-08-04 16:21:41 +00:00
Michael Niedermayer b7adc711fa last_picture should be never == NULL (it was with dr1) this might fix a segfault with error concealment
Originally committed as revision 837 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-08-04 16:05:05 +00:00
Michael Niedermayer d930ef19ea fixing mpeg4 mpeg quantizers
Originally committed as revision 836 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-08-02 20:27:46 +00:00
Michael Niedermayer fc2bb4f44d fixing normal mmx idct
Originally committed as revision 835 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-08-02 11:58:02 +00:00
Michael Niedermayer 32b9092155 10l found by Rémi Guyomarch <rguyom at pobox dot com>
Originally committed as revision 834 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-08-01 23:23:48 +00:00
Michael Niedermayer a10678da8a max_b_frame=4 bugfix
Originally committed as revision 833 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-08-01 11:01:07 +00:00
Michael Niedermayer 5efa265074 b frame direct mode bugfix (bug found by CM <chenm001 at 163 dot com>)
Originally committed as revision 832 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-31 08:01:29 +00:00
Falk Hüffner 57d2bce188 MVI optimizations for motion estimation.
Originally committed as revision 831 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-29 23:14:51 +00:00
Michael Niedermayer 38274ea268 dump bits per frame / qp / frame complexity support
Originally committed as revision 827 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-27 14:48:44 +00:00
Leon van Stuivenberg d6afa9c671 handle DRI/RST markers patch by Leon van Stuivenberg <leonvs at iae dot nl>
Originally committed as revision 826 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-27 08:27:02 +00:00
Philip Gladstone b71472eb62 Add conversions to and from RGBA32 and BGRA32.
Originally committed as revision 824 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-27 03:08:04 +00:00
Michael Niedermayer b5a093b3a9 different edge positions fixed with edge emu / dr1
Originally committed as revision 814 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-25 20:22:36 +00:00
Fabrice Bellard 917e06c81b added proposed API for parse_only mode to extract compressed frames from compressed streams
Originally committed as revision 810 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-25 16:25:36 +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
Alex Beregszaszi ce23c668f1 moved codebooks to svq1_cb.h
Originally committed as revision 788 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-22 20:51:26 +00:00
Michael Niedermayer 05174fd411 fixing bitrate vs. kbitrate in header
fixing wmv1 decoder (was broken during some optimizations ...)
inter-intra prediction encoding

Originally committed as revision 786 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-22 08:15:27 +00:00
François Revol 889c522492 adpcm encoding patch by François Revol <revol at free dot fr>
Originally committed as revision 785 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-22 01:44:08 +00:00
François Revol 6742d95d59 YUV410P to YUV420P patch by François Revol <revol at free dot fr>
Originally committed as revision 783 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-21 07:54:53 +00:00
Michael Niedermayer 3e6a20a0cd minor optimizations
fixing numbers.avi
 fixing ac prediction between MBs with different QP

Originally committed as revision 782 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-21 01:34:05 +00:00
Michael Niedermayer 4afeaec92f pix_abs mmx2 isnt bit-exact ...
Originally committed as revision 781 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-21 00:48:50 +00:00
François Revol 0147f19856 beos/mov/adpcm patch by François Revol <revol at free dot fr>
* Some BeOS fixes:
- errno stuff
- nanosleep() replacement
- added a doc/README.beos

* mov reader still has problems with most videos (skips many chunks),
- It should now read .mov files with zlib-compressed moov headers (aka cmov)
- added SVQ1 support.
- removed mapping 'raw ' and 'yuv2' to h263, was my mistake.
- added IMA4 support. (tested)
- fixed frame rate (it reported 0 fps or something before)
- extended file probing ('wide' and 'free' atoms)
- improved .mov/.mp4 detection (or so I think)

* adpcm
* added zlib support, with header file and lib check

Originally committed as revision 780 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-20 20:05:50 +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
Roy Sigurd Karlsbakk eddbd7e5a0 largefile support patch by Roy Sigurd Karlsbakk <roy at karlsbakk.net>
Originally committed as revision 778 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-18 20:27:09 +00:00
Michael Niedermayer 79c0c7858d use edge emu for encoding of width or height %16!=0 files
Originally committed as revision 776 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-17 23:32:31 +00:00
Michael Niedermayer 9022797ba2 fixing NULL reference frame with dr1
Originally committed as revision 775 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-17 17:50:42 +00:00
Michael Niedermayer 9ac7ecd698 hmm ABS(dc-diff) > 512 fix
printing some error messages if some error occurs

Originally committed as revision 774 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-17 15:54:56 +00:00
Michael Niedermayer 9be42dba97 larger edge emu buffer (might have been too small)
Originally committed as revision 773 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-17 13:25:01 +00:00
Michael Niedermayer 5499377432 fixing gmc with emu edges
Originally committed as revision 772 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-17 12:42:50 +00:00
Michael Niedermayer 4c9ede2e4b interlaced mpeg2 fix ... replacing linesize>>1 by uvlinesize brainlessly wasnt a good idea
Originally committed as revision 771 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-17 11:04:26 +00:00
Michael Niedermayer cc504d3c3c low_delay / has_b_frames fix
Originally committed as revision 770 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-17 10:30:31 +00:00
Michael Niedermayer 1a013246fb fixes fire.avi & subtitles.avi
Originally committed as revision 769 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-17 09:15:14 +00:00
Michael Niedermayer fe072fb4ee exporting mbskip_table after it has been allocated
Originally committed as revision 768 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-16 11:45:14 +00:00
Michael Niedermayer bc6d7776d8 hurry up support
returning buf_size insetad of 0

Originally committed as revision 767 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-16 10:29:07 +00:00
Michael Niedermayer 22b13d5b4c grayscale only decoding
Originally committed as revision 766 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-16 10:19:00 +00:00
Michael Niedermayer 3cf33c37e7 dr1
Originally committed as revision 765 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-16 01:24:02 +00:00
Michael Niedermayer 94aec31fa0 dr1
Originally committed as revision 764 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-16 00:48:29 +00:00
Michael Niedermayer 760acb18a3 direct rendering for SVQ1
MpegEncContext->opaque MUST NOT be used by the codec, its for the parent program
 using standart values for pict_type
 using (uv)linesize
 handling dropable p-frames like b-frames

Originally committed as revision 763 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-15 21:19:37 +00:00
Michael Niedermayer 0fd90455ec uvlinesize
export has_b_frames
mb_skip with more than 2 ip buffers

Originally committed as revision 762 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-15 14:15:10 +00:00
Nick Kurshev cd141f4c22 1001L
Originally committed as revision 761 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-15 07:43:22 +00:00
Michael Niedermayer 225f9c44cf 4mv & qpel edge emu
Originally committed as revision 760 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-15 00:25:53 +00:00
Michael Niedermayer 93a21abde5 direct rendering method 1 support
Originally committed as revision 759 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-14 18:37:35 +00:00
Michael Niedermayer 4f68b0847e rl vlc table optimization (not yet used)
Originally committed as revision 758 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-14 18:36:24 +00:00
Michael Niedermayer 02e0aa20a8 faster get_bit_cache
Originally committed as revision 757 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-14 14:05:10 +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 c03a717274 rl decoding optimization
Originally committed as revision 755 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-13 17:30:43 +00:00
Falk Hüffner e3e98d3c23 Remove support for variable BSIZE and INCR, as sub_pixels_* is no
longer needed.

Originally committed as revision 754 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-13 16:29:11 +00:00
Michael Niedermayer a349467945 get_vlc -> get_vlc2
Originally committed as revision 753 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-13 16:23:02 +00:00
Falk Hüffner f5abd9fd1a * Improve xy2 routines slightly
* Mark MC pointer arguments as restrict

Originally committed as revision 752 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-13 16:17:38 +00:00
Michael Niedermayer 8ed2ddb2c2 optimization (get_vlc() -> get_vlc2())
Originally committed as revision 751 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-13 16:10:27 +00:00
Michael Niedermayer edcf989073 optimization (get_vlc -> get_vlc2)
Originally committed as revision 750 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-13 15:45:52 +00:00
Michael Niedermayer 71529954c6 return buf_size again, i hope kabi is finally happy now ;)
Originally committed as revision 749 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-13 15:03:47 +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
Falk Hüffner 6b765cd276 Warning fix.
Originally committed as revision 747 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-12 12:41:32 +00:00
Arpi d85c5979d0 don't exit decoder after decoding first field -> fixes angels.avi interlacing
Originally committed as revision 746 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-11 23:34:06 +00:00
Falk Hüffner 14ac09bfab Tweak Alpha compiler flags.
Originally committed as revision 745 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-11 15:55:19 +00:00
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