Commit Graph

4103 Commits

Author SHA1 Message Date
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