Commit Graph

4238 Commits

Author SHA1 Message Date
Michael Niedermayer bd60e11bf4 more checks and error messages
Originally committed as revision 7069 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-14 20:35:15 +00:00
Alex Beregszaszi b362567605 changed rgba32_to routines to support both alpha and non-alpha formats (see r7066 too)
Originally committed as revision 7067 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-14 19:53:22 +00:00
Alex Beregszaszi 8e96866a52 changed rgba32_to routines to support both alpha and non-alpha formats
Originally committed as revision 7066 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-14 19:48:11 +00:00
Alex Beregszaszi d8b45f7961 Fix possible overflows. Found by Steven Johnson
Originally committed as revision 7065 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-14 19:19:13 +00:00
Benjamin Larsson 521fe1d2da Remove log2() usage.
Originally committed as revision 7063 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-14 18:54:42 +00:00
Måns Rullgård 486497e07b revert bad checkin
Originally committed as revision 7044 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-14 03:18:09 +00:00
Måns Rullgård be6ed6fff4 move some CFLAGS settings away from config.* writing section
Originally committed as revision 7043 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-14 03:12:29 +00:00
Diego Biurrun 10265a1aa9 Remove redundant #ifdef HAVE_THREAD, the file is only compiled
if that condition holds anyway.

Originally committed as revision 7029 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-14 00:56:56 +00:00
Måns Rullgård af63114e0d rename CONFIG_AC3 to CONFIG_A52
it's more consistent and Dolby never liked people "infringing" their TM

Originally committed as revision 7014 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-13 22:09:31 +00:00
Kostya Shishkov ee0a035820 Support for 16-bit grayscale
Originally committed as revision 7012 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-13 11:39:28 +00:00
Kostya Shishkov 2878cecd6d Give error about planar RGB
Originally committed as revision 7011 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-13 11:38:42 +00:00
Kostya Shishkov b39cf84cca Update error message
Originally committed as revision 7010 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-13 11:36:22 +00:00
Kostya Shishkov 339aabd5a8 Use table for determining type sizes
Originally committed as revision 7009 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-13 11:34:46 +00:00
Baptiste Coudurier 9cc6be9d27 add low delay forcing option for mpeg1/2 encoding
Originally committed as revision 7008 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-13 11:30:26 +00:00
Kostya Shishkov 213309782d Decoder can decode many ZLib-packed strips
Originally committed as revision 7007 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-13 11:27:36 +00:00
Kostya Shishkov d00026d062 Print error message for unsupported mode (RGB planar,CMYK,YCrCb)
Originally committed as revision 7006 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-13 11:20:50 +00:00
Kostya Shishkov e2570297c0 8-bit images support for TIFF
Originally committed as revision 7005 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-13 05:32:10 +00:00
Kostya Shishkov 380fd08fe6 Rows per strip may be >= height
Originally committed as revision 7004 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-13 05:30:50 +00:00
Kostya Shishkov 27c189394b Warn about JPEG in TIFF
Originally committed as revision 7003 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-13 05:29:45 +00:00
Kostya Shishkov ec8a152b6f Correctly detect 4-component images
Originally committed as revision 7002 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-13 05:28:55 +00:00
Kostya Shishkov a47d3c0442 Output proper 16-bit sound (fixes decoding on PPC)
Originally committed as revision 7000 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-13 05:15:55 +00:00
Måns Rullgård 7466ed2f02 zigzag_direct_noperm doesn't exist, remove declaration
Originally committed as revision 6998 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-12 23:35:49 +00:00
Måns Rullgård 7b7abda3b3 make more tables static
Originally committed as revision 6996 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-12 23:14:20 +00:00
Måns Rullgård 1d50395746 rename squareTbl -> ff_squareTbl
Originally committed as revision 6995 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-12 21:48:04 +00:00
Stefan Gehrer e275b7efd9 rename ff_cavs_flush to cavs_flush and make it static
Originally committed as revision 6994 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-12 20:23:47 +00:00
Stefan Gehrer 53aa68b329 move all cavs-parsing to cavs.c
This should help building parser without decoder

Originally committed as revision 6993 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-12 20:18:07 +00:00
Måns Rullgård 55fde95e3b rename cropTbl -> ff_cropTbl
Originally committed as revision 6992 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-12 20:08:09 +00:00
Stefan Gehrer d136d2fcea make mpeg4video_split public as ff_mpeg4video_split
Originally committed as revision 6991 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-12 20:01:50 +00:00
Måns Rullgård 36cd306907 rename inverse -> ff_inverse
Originally committed as revision 6990 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-12 18:49:36 +00:00
Måns Rullgård 1bd29b078c make some tables static
Originally committed as revision 6981 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-12 13:40:40 +00:00
Måns Rullgård bb54f6ab62 adding more static keywords
Originally committed as revision 6976 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-12 03:34:12 +00:00
Måns Rullgård 6b781ce746 make vp6_pcr_tree static
Originally committed as revision 6975 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-12 01:08:05 +00:00
Måns Rullgård 8e981daf2b make some symbols static
Originally committed as revision 6972 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-11 20:54:48 +00:00
Måns Rullgård c328f313d8 make two functions static
Originally committed as revision 6970 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-11 19:46:53 +00:00
Michael Niedermayer f1a06ca80b zero private bits
Originally committed as revision 6961 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-10 11:45:43 +00:00
Michael Niedermayer eea784dab0 store a identifer and the first header in extradata
with this mp3 should be binary identical to what you had before header compression
support mp3 with crc (by droping the crc and putting it back during header decompress, currently its just random tough, does any deocoder even check it?)

Originally committed as revision 6960 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-10 11:31:02 +00:00
Michael Niedermayer eacb41b2e9 mp3 header (de)compression bitstream filter
this will make mp3 frames 4 bytes smaller, it will not give you binary identical mp3 files, but it will give you mp3 files which decode to binary identical output
this will only work in containers providing at least packet size, sample_rate and number of channels
bugreports about mp3 files for which this fails are welcome
and this is experimental (dont expect compatibility and dont even expect to be able to decompress what you compressed, hell dont even expect this to work without editing the source a little)

Originally committed as revision 6958 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-10 01:41:53 +00:00
Michael Niedermayer 92a3541876 16bit in avi is RGB555
Originally committed as revision 6956 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-09 17:28:46 +00:00
Panagiotis Issaris c2212338e8 Remove the H264Context parameter from decode_init_vlc() as it is not being used.
Originally committed as revision 6955 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-09 16:40:33 +00:00
Baptiste Coudurier cbee7a6944 get rid of CODEC_ID_MPEG4AAC after next version bump, and change it to CODEC_ID_AAC where used
Originally committed as revision 6954 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-09 11:37:30 +00:00
Michael Niedermayer 6c4d16556b 10000l to myself, fixing regression test failure
Originally committed as revision 6953 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-09 01:23:47 +00:00
Michael Niedermayer b5ca0c6ff9 100l for me, iam being to stupid to read the mpeg4 spec / eat stuffing mbs a the end of the picture
Originally committed as revision 6942 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-08 18:15:54 +00:00
Måns Rullgård 997baf0141 allow spaces in source and build directory names
out of tree builds from a source dir with spaces is impossible
due to how make handles vpath

Originally committed as revision 6938 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-08 00:02:15 +00:00
Baptiste Coudurier 9d210bb42b typo
Originally committed as revision 6934 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-07 13:50:41 +00:00
Baptiste Coudurier 80d617f5b4 add option to set mpeg1/2 gop timecode start, and drop frame flag timecode flag
Originally committed as revision 6933 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-07 13:45:08 +00:00
Luca Barbato d9d2f88def Simplify
Originally committed as revision 6932 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-07 12:45:29 +00:00
Diego Biurrun 4802a7a7b1 Use MMX only under x86_32, there are compilation problems.
Originally committed as revision 6931 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-07 12:28:13 +00:00
Baptiste Coudurier 1766295516 add codec_tag and codec_stream_tag to MpegEncContext to not alter avctx values
Originally committed as revision 6930 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-07 09:46:57 +00:00
Kostya Shishkov 7d7912c34b Bump version for Fraps v[24] support
Originally committed as revision 6928 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-07 05:57:42 +00:00
Reimar Döffinger e07eaaccc1 Avoid void*-arithmetic, and uint8_t* is more correct anyway.
Originally committed as revision 6918 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-06 17:56:08 +00:00
Baptiste Coudurier 79e7b9609e include parser.h instead of mpegvideo.h
Originally committed as revision 6916 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-06 10:47:41 +00:00
Baptiste Coudurier 7d6b1abe1a rename ff_mpeg1_find_frame_end to mpeg1_find_frame_end and make it static
Originally committed as revision 6915 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-06 10:46:54 +00:00
Baptiste Coudurier 4067d81be2 move AVCodecParser prototypes and definitions to parser.h, and move mpegvideo parser to mpeg12.c
Originally committed as revision 6914 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-06 10:43:49 +00:00
Zuxy Meng 360932f76d Fix ASF format parser's broken UTF-16 string handling
1. Add a PUT_UTF8 macro to common.h; code borrowed from libavcodec/flacenc.c.
2. Make use of the macro in flacenc.c
Patch by Zuxy Meng % zuxy P meng A gmail P com %
Original thread:
Date: Nov 5, 2006 9:56 AM
Subject: [Ffmpeg-devel] PUT_UTF8 & asf format enhancement

Originally committed as revision 6911 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-06 10:32:48 +00:00
Kostya Shishkov f4e31985da Check for symbol count
Originally committed as revision 6910 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-06 06:13:29 +00:00
Kostya Shishkov 39ff2ee84d Limit output sample to 0..maxval, fixes decoding of T16E0.JLS
Originally committed as revision 6908 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-06 05:35:09 +00:00
Baptiste Coudurier 8cd13128b8 use AVRational and ff_frame_rate_tab for frame_rate
Originally committed as revision 6905 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-05 19:24:23 +00:00
Reimar Döffinger c9ec7564f0 Move idct block array variable onto rtjpeg_decode_frame_yuv420 stack since
it is only used there and is only 128 byte large.
Also make it aligned to fix playback with altivec.

Originally committed as revision 6902 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-05 16:18:37 +00:00
Baptiste Coudurier bc52b0c518 remove useless line variable
Originally committed as revision 6901 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-05 15:10:33 +00:00
Baptiste Coudurier b190aa8919 fix decoding position
Originally committed as revision 6900 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-05 15:06:12 +00:00
Kostya Shishkov 75a71b6c38 Correct support for Fraps v4 (and Huffman tree for < 256 symbols)
Originally committed as revision 6898 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-05 08:18:52 +00:00
Kostya Shishkov 78629a746f Update comment
Originally committed as revision 6897 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-05 04:59:38 +00:00
Kostya Shishkov 08a4c4bfb9 Fraps v2 and v4 support
Originally committed as revision 6896 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-05 04:57:14 +00:00
Oded Shimon 483b8b1210 ministry of english grammar :) then->than
Originally committed as revision 6894 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-04 00:42:50 +00:00
Michael Niedermayer 21d4d5dafb doxy
Originally committed as revision 6893 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-03 20:30:22 +00:00
Michael Niedermayer 079e61db5d ensure alignment (no speed change)
Originally committed as revision 6891 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-03 16:54:05 +00:00
Michael Niedermayer f5a9e8f33d merging mov & and (no speedchange)
Originally committed as revision 6889 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-03 16:02:18 +00:00
Michael Niedermayer e80cf125a7 2 instructions less (same speed)
Originally committed as revision 6888 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-03 15:40:57 +00:00
Michael Niedermayer 9347118237 comment about failed optimization
Originally committed as revision 6887 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-03 15:17:36 +00:00
Michael Niedermayer 38cfdc83f0 move luma tc0 related init into asm
5% faster filter_mb_fast() on P3

Originally committed as revision 6884 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-03 14:28:30 +00:00
Kostya Shishkov 57aff88581 RGB32 support in Targa
Originally committed as revision 6883 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-03 13:13:08 +00:00
Michael Niedermayer 25225c3773 2 instructions less in h264_loop_filter_luma_mmx2()
Originally committed as revision 6882 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-03 12:07:53 +00:00
Michael Niedermayer bda2203d56 preempt possible overflow
Originally committed as revision 6881 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-03 11:07:35 +00:00
Michael Niedermayer 5a1553dee3 1 instruction less
Originally committed as revision 6880 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-03 09:59:15 +00:00
Kostya Shishkov a21711022e Use bpp from header in error message
Originally committed as revision 6878 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-03 04:42:11 +00:00
Michael Niedermayer e9f1885c21 optimize H264_DEBLOCK_P0_Q0
2.5% faster filter_mb_fast() on P3

Originally committed as revision 6877 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-03 02:03:56 +00:00
Michael Niedermayer dd7e46e7c3 new I/P frame selection heuristic
PSNR/bitrate is slightly better for my (short) test videos
more tests welcome ...

Originally committed as revision 6876 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-02 23:36:39 +00:00
Baptiste Coudurier 93481fe5fe change gif muxer to simple gif encoder
Originally committed as revision 6874 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-02 23:13:34 +00:00
Corey Hickey 1984f5cdc9 Correct description of mblmin and mblmax.
Originally committed as revision 6873 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-02 23:08:09 +00:00
Tom Harper a9dc190f17 outputs bit spent on various encoding functions (motion vectors, overhead, etc)
back into AVCodecContext for external consumption
patch by Tom Harper % d P thomas P harper A gmail P com %
Original thread:
Date: Nov 2, 2006 1:30 AM
Subject: [Ffmpeg-devel] [patch] snow stats

Originally committed as revision 6872 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-02 19:11:20 +00:00
Steve L'Homme 949b1a13bf Replace most of the %lld and %llx by their (cleaner) PRI*64 counterparts.
patch by Steve Lhomme, slhomme divxcorp com

Originally committed as revision 6868 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-01 22:39:58 +00:00
Michael Niedermayer 45f3704c6d 10l (forgot ALT_SCAN)
Originally committed as revision 6866 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-01 21:41:54 +00:00
Diego Biurrun 1345f4ed6c Rename SWAP macro to FFSWAP.
Originally committed as revision 6865 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-01 21:28:36 +00:00
Steve L'Homme e344c1ea36 reindentation, patch by From: Steve Lhomme, slhomme divxcorp com
Originally committed as revision 6864 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-01 21:09:14 +00:00
Michael Niedermayer 65342b2b4a merge clip() into the alpha/beta/tc0 tables (10% faster filter_mb_fast() on P3)
Originally committed as revision 6863 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-01 19:34:30 +00:00
Diego Biurrun e164fbfeac Make tests compile on non-x86.
Originally committed as revision 6860 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-01 18:51:37 +00:00
Diego Biurrun 3cd52279c9 Use common define for x86_32 and x86_64.
Originally committed as revision 6859 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-01 18:34:40 +00:00
Måns Rullgård 67bcc87092 indentation
Originally committed as revision 6857 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-01 18:19:20 +00:00
Måns Rullgård 84278104e1 CODEC_CAP_DELAY support
Originally committed as revision 6856 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-01 18:18:48 +00:00
Reimar Döffinger d55f46e5a8 Reenable AMD64 optimizations for cabac accidentially disabled in r6852
Originally committed as revision 6853 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-01 17:18:49 +00:00
Diego Biurrun 419b878494 Add ARCH_X86_32 as a new define for 32 bit x86 architectures and change
the semantics of ARCH_X86 to mean both 32 and 64 bits.

Originally committed as revision 6852 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-01 17:01:33 +00:00
Michael Niedermayer 7aba918708 fix 1/0 b frames + CBR bug
Originally committed as revision 6850 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-31 22:22:11 +00:00
Diego Biurrun 9a64e0440e cosmetics: Restore alphabetical order.
Originally committed as revision 6848 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-31 11:19:51 +00:00
Måns Rullgård 743311a1b0 coded line size is a multiple of 4
Originally committed as revision 6844 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-30 20:43:07 +00:00
Oded Shimon e389399289 fix for disabling vorbis decoder but enabling vorbis encoder
Originally committed as revision 6841 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-30 18:05:35 +00:00
Kostya Shishkov 469f9de72f Init vlc tables as static
Originally committed as revision 6840 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-30 13:57:55 +00:00
Kostya Shishkov 84ed36da85 IMC decoder
Originally committed as revision 6839 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-30 13:48:48 +00:00
Luca Abeni 9c5d7c568b AVPicture has 4 planes, not 3
Originally committed as revision 6838 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-30 10:15:37 +00:00
Michael Niedermayer 498c544ad2 dont set the sampling rate just because 1 mp3 packet header says so (fixes playback speed on some old mencoder generated avis which where then dumped to mp3)
Originally committed as revision 6837 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-30 02:19:55 +00:00
Michael Niedermayer c0d8052b50 avoid random noise on damaged frames
Originally committed as revision 6836 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-30 01:29:56 +00:00
Diego Biurrun d5cd50ed73 Fix compilation with PIC enabled, BRANCHLESS_GET_CABAC is defined under
!PIC but gets used without a check for !PIC.

Originally committed as revision 6834 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-29 13:14:37 +00:00
Michael Niedermayer 3cedeeca02 update copyright year, it looks odd otherwise :)
Originally committed as revision 6830 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-28 20:18:18 +00:00
Michael Niedermayer 95da34cd54 CANDIDATE_MB_TYPE_INTER heuristic doesnt work at really low quality where the distortion becomes less relevant then the overhead of intra blocks
Originally committed as revision 6829 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-28 20:00:05 +00:00
Oded Shimon b5c5a86bb7 I hope noone minds, adding myself to eval.c copyright...
Originally committed as revision 6827 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-28 18:30:20 +00:00
Michael Niedermayer 973cbc2a28 lambda* should be unsigned
Originally committed as revision 6824 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-28 16:11:25 +00:00
Michael Niedermayer 1928d04640 prevent overflow if lambda2 is "too" large
Originally committed as revision 6823 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-28 15:20:00 +00:00
Michael Niedermayer ea7307df20 use lambda/lmax instead of qscale/qmax as end check for vbv retry
Originally committed as revision 6822 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-28 11:15:06 +00:00
Oded Shimon 8cd68d8056 ignore whitespace in ff_eval
Originally committed as revision 6821 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-28 09:49:13 +00:00
Andrew Voznytsa b500cc2a46 sample rate fix
patch by Andrew Voznytsa andrew.voznytsa gmail com

Originally committed as revision 6820 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-28 09:30:43 +00:00
Oded Shimon 72523c7a20 add missing 'e->value * '
Originally committed as revision 6819 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-28 08:03:30 +00:00
Oded Shimon 63a547eabc shut gcc warning, also makes sense for NAN to be returned if the loop was never executed
Originally committed as revision 6818 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-28 07:03:24 +00:00
Diego Biurrun ebd6a69444 Rename dvdsub.c to dvdsubdec.c.
Originally committed as revision 6815 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-27 23:37:35 +00:00
Michael Niedermayer 45ee0e3282 add support for while() loops again ugly syntax while(condition, statements) but very simple implementation
Originally committed as revision 6814 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-27 22:35:55 +00:00
Michael Niedermayer 835954e3a4 support seperating expressons by ;
support variables, the syntax isnt beautifull (st(a,b) means var[a]=b and ld(a) var[a]) but for a mere 19 lines of code its fairly simple, if anyone wants to write real variables support with names for variables and = and [] then that would of course be welcome but only if it doesnt bloat the code up terribly...)

Originally committed as revision 6813 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-27 22:16:25 +00:00
Reynaldo H. Verdejo Pinochet 418f17e006 Fix obvious typo, BGR555 was missing
Originally committed as revision 6812 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-27 22:08:02 +00:00
Oded Shimon d024359a36 possible bug of 'gte' being read as 'gt', same with 'lte'
Originally committed as revision 6811 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-27 21:37:47 +00:00
Michael Niedermayer 577eab6b62 minor simplification
Originally committed as revision 6810 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-27 21:13:31 +00:00
Michael Niedermayer a98f4515cf factorize AVEvalExpr alloc and init
Originally committed as revision 6809 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-27 20:38:10 +00:00
Oded Shimon bb0f1ea72f update ratecontrol to new ff_eval API
Originally committed as revision 6808 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-27 20:16:26 +00:00
Reynaldo H. Verdejo Pinochet ce459e12da adds missing rgb/bgr 565 codec->fmt mappings, ok'ed by Michael
Originally committed as revision 6807 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-27 19:53:41 +00:00
Reynaldo H. Verdejo Pinochet ba8a621891 adds missing rgb/bgr 555 codec->fmt mappings, ok'ed by Michael
Originally committed as revision 6806 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-27 19:50:31 +00:00
Oded Shimon 85b4eb08cc new optimized eval method, by seperating parsing and runtime
Originally committed as revision 6803 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-27 16:42:16 +00:00
Kostya Shishkov ffc5430bc3 LZW decoder as separate module plus TIFF LZW support
Originally committed as revision 6795 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-26 04:15:48 +00:00
Kostya Shishkov b0c32a70b4 10l predictor should not skip first line
Originally committed as revision 6794 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-26 04:06:08 +00:00
Steve L'Homme 33400850cf Don't include inttypes.h/stdint.h directly, there is an abstraction in
libavutil/common.h for platforms with no inttypes.h.
patch by Steve Lhomme, slhomme divxcorp com

Originally committed as revision 6790 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-24 18:57:43 +00:00
Michael Niedermayer 836096aa7a simplify
Originally committed as revision 6789 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-24 10:33:40 +00:00
Michael Niedermayer 54fe115921 reverse my last change, it was wrong and broken
Originally committed as revision 6788 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-24 10:13:26 +00:00
Michael Niedermayer 46d9fe622d remove map variable
Originally committed as revision 6787 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-24 09:45:21 +00:00
Michael Niedermayer 71977422d1 factorize update state out
Originally committed as revision 6786 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-24 09:34:13 +00:00
Michael Niedermayer 3b6d23293c FFMAX
Originally committed as revision 6785 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-24 09:09:38 +00:00
Michael Niedermayer 8d42cf7496 common subexpression elimination
Originally committed as revision 6784 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-24 08:52:51 +00:00
Michael Niedermayer 62412b8d28 merge 8 and 16bit functions, they are identical except the data type
Originally committed as revision 6783 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-24 08:33:44 +00:00
Michael Niedermayer 5d48f0cb05 set v_edge_pos correctly for field picture mpeg2
Originally committed as revision 6782 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-24 07:33:39 +00:00
Kostya Shishkov 9efe56f691 JPEG-LS 16-bit gray support
Originally committed as revision 6781 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-24 05:01:04 +00:00
Kostya Shishkov 22eafdf24f PGM 16-bit gray support
Originally committed as revision 6780 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-24 05:00:14 +00:00
Kostya Shishkov ae912c5b62 PNG 16-bit gray decoding support
Originally committed as revision 6779 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-24 04:59:46 +00:00
Kostya Shishkov 34380af0e1 16-bit grayscale support
Originally committed as revision 6778 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-24 04:57:43 +00:00
Luca Abeni a163ed1aaa Do not use a fake libavcodec/swscale.h, but always use the real one
(from libswscale) instead

Originally committed as revision 6777 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-23 17:06:32 +00:00
Reimar Döffinger 755073fe3c CABAC assembler optimizations ported to AMD64
Originally committed as revision 6776 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-23 16:54:21 +00:00
Aurelien Jacobs 246f86a4d6 document the extradata protocol for VP6F
Originally committed as revision 6772 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-23 00:10:18 +00:00
Aurelien Jacobs 9e2424ce60 use the adjustment value present in FLV to crop VP6 video
Originally committed as revision 6770 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-22 23:19:42 +00:00
Aurelien Jacobs 24d3e5a2f2 use coded_width and coded_height instead of width and height
Originally committed as revision 6769 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-22 18:33:09 +00:00
Baptiste Coudurier 47babca839 indention
Originally committed as revision 6768 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-22 17:25:16 +00:00
Baptiste Coudurier bcd872a73f removed useless variables
Originally committed as revision 6766 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-22 16:12:13 +00:00
Baptiste Coudurier d54d396d08 use avctx->get_buffer
Originally committed as revision 6765 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-22 16:10:04 +00:00
Baptiste Coudurier a7fb3a9600 remove unused variables
Originally committed as revision 6764 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-22 15:15:15 +00:00
Baptiste Coudurier 1e22f00d79 printf -> dprintf
Originally committed as revision 6763 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-22 15:11:51 +00:00
Baptiste Coudurier 8e57cae794 indention
Originally committed as revision 6762 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-22 15:09:32 +00:00
Baptiste Coudurier 06d392a7cc change gif demuxer to gif decoder
Originally committed as revision 6760 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-22 15:05:03 +00:00
Kostya Shishkov 76aca7a8bf handle limit>32 for set_ur_golomb_jpegls()
Originally committed as revision 6754 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-22 04:52:15 +00:00
Michael Niedermayer 5dc4970661 prevent infinite loop
Originally committed as revision 6753 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-21 22:07:01 +00:00
Michael Niedermayer e08f580644 decode_significance_8x8_x86()
8% faster decode_cabac_residual() (8x8 case only) on P3

Originally committed as revision 6750 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-20 21:34:02 +00:00
Guillaume Poirier 94e4c3a333 Protect code that uses CMOV instructions with HAVE_CMOV,
Make configure set CMOV_IS_FAST on arches on which cmov has a low latency
(typically non-Netburst based processor)

Originally committed as revision 6749 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-20 17:53:19 +00:00
Michael Niedermayer 849a50041c another instruction less in decode_significance_x86() -> 1% faster ion P3
Originally committed as revision 6745 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-20 10:00:28 +00:00
Michael Niedermayer d3e7c5c35b 1 instruction less
Originally committed as revision 6743 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-20 08:46:33 +00:00
Michael Niedermayer a616db285a reordering instructions a little in decode_significance_x86() -> 2 instructions less / 1% faster decode_residual on P3
Originally committed as revision 6741 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-20 00:51:04 +00:00
Michael Niedermayer 13404b2e98 factorize get_cabac asm (0.5% slower but its much cleaner)
Originally committed as revision 6740 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-20 00:35:54 +00:00
Alex Beregszaszi 1e4051aaa0 correct signaling of palette change
Originally committed as revision 6739 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-19 23:03:47 +00:00
Bernhard Rosenkränzer ba9fb5da3a Fix PIC compilation, some defines were under #ifdef !PIC but used
in the PIC case nevertheless.
patch by Bernhard Rosenkranzer, bero arklinux org

Originally committed as revision 6738 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-19 20:24:33 +00:00
Michael Niedermayer d72bc32389 unused variable
Originally committed as revision 6737 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-19 18:22:03 +00:00
Michael Niedermayer f624f029f0 slightly faster decode_cabac_mb_mvd()
Originally committed as revision 6735 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-19 14:54:34 +00:00
Michael Niedermayer aa1da263aa 1 variable less in decode_cabac_residual() no speed change (but less vars means less things gcc can load and store redundantly)
Originally committed as revision 6734 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-19 10:33:56 +00:00
Michael Niedermayer ebd624b662 optimize sign decoding code in decode_residual()
x86 is 4% faster on P3
C sign stuff + x86 code for everything else is also faster then before (sorry forgot to test pure C)
... and if i replace the second occurance of the sign decoding in decode_residual by the asm too then everything gets slower iam starting to think that it might be best to write the whole function in asm, playing this avoid random deoptimizations game with gcc is not fun at all

Originally committed as revision 6732 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-19 01:19:03 +00:00
Jindřich Makovička a0f2c6ba38 Kill a warning with MSVC
Patch by Jindrich Makovicka makovick A gmail P com
Original thread:
Date: 08:21 AM
Subject Re: [Ffmpeg-devel] Weird line in cabac.h

Originally committed as revision 6726 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-18 09:37:25 +00:00
Michael Niedermayer 30865e2aa1 copy cabac context onto the stack for the c code in decode_cabac_residual() (15% faster on P3 but still slower then the current asm)
Originally committed as revision 6725 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-17 23:59:21 +00:00
Michael Niedermayer eb73bf723d x86 asm version of the decode significance loop (not 8x8) of decode_residual() 5% faster decode_residual() on P3
Originally committed as revision 6724 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-17 22:18:29 +00:00
Luca Abeni 96db380836 Implement sws_getCachedContext() in swscale emulation
Originally committed as revision 6718 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-17 10:26:37 +00:00
Michael Niedermayer 4041a495a8 cosmetic (%%eax->%0)
Originally committed as revision 6717 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-17 09:38:37 +00:00
Diego Biurrun 8dda3e796b Fix crash with illegal instruction, cmov is available on 686 and later only.
Originally committed as revision 6715 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-16 21:47:19 +00:00
Diego Biurrun e962604f1c Expand some #endif comments.
Originally committed as revision 6714 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-16 21:22:47 +00:00
Michael Niedermayer 2c409cc7af fix -a^b which was interpreted as (-a)^b
Originally committed as revision 6713 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-16 19:06:56 +00:00
Michael Niedermayer cacb17b47f asin() acos() atan()
Originally committed as revision 6712 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-16 18:36:44 +00:00
Luca Barbato 9f1c1c9985 Make ffmpeg work with x264 r592
Originally committed as revision 6711 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-16 17:44:29 +00:00
Michael Niedermayer 212d84881a mod()
Originally committed as revision 6710 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-16 15:01:12 +00:00
Diego Biurrun c45b5de03a Fix #endif comments.
Originally committed as revision 6709 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-16 12:52:21 +00:00
Michael Niedermayer 165c5f0909 fix !CMOV_IS_FAST case (iam not really happy with the fix but i didnt come up with a better one quickly)
Originally committed as revision 6707 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-16 11:11:20 +00:00
Michael Niedermayer 1d7c111856 10l
Originally committed as revision 6704 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-15 21:04:10 +00:00
Michael Niedermayer faff3a7ad0 this code will not work with PIC as it needs 7 registers and gcc doesnt support that in PIC
Originally committed as revision 6703 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-15 20:50:05 +00:00
Michael Niedermayer f24a515931 shift CABACContext.range right, this reduces the number of shifts needed in get_cabac() and is slightly faster on P3 (and should be much faster on P4 as the P4 except the more recent variants lacks an integer shifter and so shifts have ~10 times longer latency then simple operations like adds)
Originally committed as revision 6702 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-15 20:40:50 +00:00
Ramiro Polla aa770811a3 Have xvid encoder wrapper honnor -vtag option
Patch by Ramiro Polla angustia A arrozcru P no-ip P org
Original thread:
Date: 14.10.2006 05:44
Subject: [Ffmpeg-devel] xvid ignores -vtag

Originally committed as revision 6701 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-15 16:52:33 +00:00
Diego Biurrun 14f29f795d Revert putting EXTRALIBS in common.mak, linking fails on MinGW.
Originally committed as revision 6700 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-15 12:59:45 +00:00
Kostya Shishkov a8789714ba Ignore blocks with no samples and flags (but usually with MD5 sum)
Originally committed as revision 6694 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-15 04:50:19 +00:00
Diego Biurrun 7c428ea681 Put libmpeg2 IDCT functions under CONFIG_GPL, fixes link failure
with --disable-opts.

Originally committed as revision 6691 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-14 17:04:50 +00:00
Steve L'Homme 8aaed74c4b Remove empty structures,
Patch by Steve LHomme
Original thread:
Date: 13.10.2006 21:55
Subject: [Ffmpeg-devel] [PATCH] Remove empty structures

Originally committed as revision 6690 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-14 14:48:45 +00:00
Kostya Shishkov ab9ce19170 Make PNG produce correct 8-bit pictures
Originally committed as revision 6689 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-14 12:23:54 +00:00
Kostya Shishkov 4ec0beaa59 Move block size check to decoder
Originally committed as revision 6688 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-14 05:01:05 +00:00
Michael Niedermayer b566bd65e2 simplify escape decoding
Originally committed as revision 6685 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-13 16:19:15 +00:00
Diego Biurrun a88fc5c040 Remove intrinsics checks, they are no longer used.
partly based on a patch by Zuxy Meng, zuxy.meng gmail com

Originally committed as revision 6684 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-13 16:04:41 +00:00
Michael Niedermayer 68a205edef dehack *ps_state indexing in the branchless decoder
Originally committed as revision 6683 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-13 14:21:25 +00:00
Kostya Shishkov a991b1fecb TIFF decoder
Originally committed as revision 6682 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-13 10:48:29 +00:00
Michael Niedermayer 12ff5b0f3b add "memory" to the clobber list we change memory so we need it, this also fixes some problems with gcc svn
Originally committed as revision 6679 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-12 21:32:56 +00:00
Michael Niedermayer 5ed0d67da5 -1 is a valid return value in ratecontrol_1pass() -> 100l for takis
Originally committed as revision 6677 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-12 20:55:42 +00:00
Dominik Mierzejewski 61b769871f Fixes:
xvmcvideo.c: In function ‘XVMC_decode_mb’:
xvmcvideo.c:141: warning: ‘return’ with a value, in function returning void

Approved by Ivan.

Originally committed as revision 6676 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-12 19:57:47 +00:00
Michael Niedermayer de1013e1ca 10l int vs uint8_t
Originally committed as revision 6675 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-12 18:41:29 +00:00
Michael Niedermayer 851ded8918 prevent "mb level" get_cabac() calls from being inlined (3% faster decode_mb_cabac() on P3)
Originally committed as revision 6674 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-12 14:49:19 +00:00
Michael Niedermayer 1f6049f515 int->uint8_t for 2 tables
Originally committed as revision 6673 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-12 12:27:02 +00:00
Baptiste Coudurier 29f86228a0 support for Tiertex .seq files demuxing/video decoding, by Gregory Montoir %cyx A users P sourceforge P net%
Originally committed as revision 6672 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-12 12:02:58 +00:00
Gregory Montoir 7da4d4cdec fix SHOW_SBITS for ALT_BITSTREAM_READER_LE, patch by Gregory Montoir %cyx A users P sourceforge P net%
Originally committed as revision 6671 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-12 11:54:24 +00:00
Diego Biurrun cb690cadaf Rename internal.h --> xvid_internal.h, it clashes with libavutil/internal.h.
Originally committed as revision 6670 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-12 11:51:34 +00:00
Luca Barbato a5db5bda07 ppc generic prefetch
Originally committed as revision 6669 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-12 10:26:07 +00:00