Commit Graph

4235 Commits

Author SHA1 Message Date
Michael Niedermayer
1f4d5e9f69 slightly faster on P3 slightly slower on athlon and probably faster on P4
Originally committed as revision 6663 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-11 17:59:40 +00:00
Baptiste Coudurier
dc56e0de1d update doc, changelog, and increase libavcodec version for .cin files support
Originally committed as revision 6660 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-11 17:14:02 +00:00
Baptiste Coudurier
72450e50a5 support for Delphine Software .cin files demuxing / audio and video decoding, by Gregory Montoir %cyx A users P sourceforge P net%
Originally committed as revision 6659 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-11 16:57:00 +00:00
Michael Niedermayer
2b5269b51c moving lps state transition code a little up in the branched asm code (1% faster on P3)
Originally committed as revision 6658 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-11 16:39:50 +00:00
Michael Niedermayer
b99f3cabed write cabac low and range variables as early as possible to prevent stalls from reading them before they where written, the P4 is said to disslike that alot, on P3 its 2% faster (START/STOP_TIMER over decode_residual)
Originally committed as revision 6657 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-11 16:11:41 +00:00
Michael Niedermayer
d17faef011 use ecx instead of cl (no speed change on P3 but might avoid partial register stalls on some cpus)
Originally committed as revision 6656 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-11 15:20:08 +00:00
Michael Niedermayer
d61c4e731e make state transition tables global as they are constant and the code is slightly faster that way
Originally committed as revision 6655 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-11 14:44:17 +00:00
Michael Niedermayer
5f3eca121e 10l
Originally committed as revision 6654 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-11 13:25:29 +00:00
Michael Niedermayer
0fa352c7e6 make lps_range a global table its constant anyway (saves 1 addition for accessing it)
Originally committed as revision 6653 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-11 13:21:42 +00:00
Michael Niedermayer
3650b43959 enable CMOV_IS_FAST as its faster or equal speed on every cpu (duron, athlon, PM, P3) from which ive seen benchmarks, it might be slower on P4 but noone has posted benchmarks ...
Originally committed as revision 6652 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-11 12:23:40 +00:00
Michael Niedermayer
6ab312daa2 doxy
Originally committed as revision 6647 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-11 10:29:00 +00:00
Diego Biurrun
dadb850a50 Move CFLAGS handling to common.mak.
Originally committed as revision 6642 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-11 08:30:13 +00:00
Diego Biurrun
a33fe57287 Switch to the LGPL as agreed to by the author according to the
initial commit log message.

Originally committed as revision 6641 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-11 07:47:59 +00:00
Kostya Shishkov
3689cf1649 Targa image decoder
Originally committed as revision 6640 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-11 04:15:04 +00:00
Diego Biurrun
15e35274d8 Rename SIGN macro to the more fitting UNFOLD.
Originally committed as revision 6626 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-10 12:07:25 +00:00
Diego Biurrun
0bc2e7f081 BRANCHLESS_CABAD --> BRANCHLESS_CABAC_DECODER
Originally committed as revision 6623 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-10 08:16:41 +00:00
Guillaume Poirier
ab5a1435ec Move TRANSPOSE8 macro to dsputil_altivec.h.
(was duplicated in libavcodec/ppc/vc1dsp_altivec.c
nd libavcodec/ppc/mpegvideo_altivec.c, and will be
used in upcoming routines for h264_altivec.c)

Originally committed as revision 6621 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-10 08:01:19 +00:00
Michael Niedermayer
9ed92c65f1 moving another bit&1 out, this is as fast as with it in there, but it makes more sense with it outside of the loop
Originally committed as revision 6618 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-10 06:56:51 +00:00
Michael Niedermayer
f1b37db48d move the &1 out of the asm so gcc can optimize it away in inlined cases (yes this is slightly faster)
Originally committed as revision 6616 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-10 01:17:39 +00:00
Michael Niedermayer
ab0151d163 replace a few and/sub/... by cmov
this is faster on P3, should be faster on AMD, and should be slower on P4
its disabled by default (benchmarks welcome so we know when to enable it)

Originally committed as revision 6615 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-10 01:08:39 +00:00
Michael Niedermayer
a6672acf45 reading 8bit mem into a 8bit register needs 2 uops on P4, 8bit->32bit with zero extension needs just 1
Originally committed as revision 6612 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-09 21:57:10 +00:00
Michael Niedermayer
2d3df05ca0 on the P4 inc needs twice as much time a add
Originally committed as revision 6611 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-09 21:39:07 +00:00
Michael Niedermayer
2ee9dc65be 10l
Originally committed as revision 6610 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-09 21:21:10 +00:00
Michael Niedermayer
7822e1c1ff reverse remainder of the failed attempt to optimize *state=c->mps_state[s]
Originally committed as revision 6609 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-09 21:14:16 +00:00
Michael Niedermayer
ef0090a998 x86 branchless cabac decoder
slightly faster on P3

Originally committed as revision 6608 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-09 20:51:33 +00:00
Michael Niedermayer
2e1aee80f4 optimize branchless C CABAC decoder
Originally committed as revision 6607 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-09 20:44:11 +00:00
Luca Barbato
b420448e38 removing ALTIVEC_USE_REFERENCE_C_CODE, since has no use anymore
Originally committed as revision 6606 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-09 18:29:46 +00:00
Michael Niedermayer
1c2a417f6a move outcommented START/STOP_TIMER to a hopefully better place for benchmarking ...
Originally committed as revision 6605 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-09 18:20:00 +00:00
Michael Niedermayer
30dc5f56ad drop failed attempt to optimize *state= c->mps_state[s];
Originally committed as revision 6604 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-09 15:52:17 +00:00
Michael Niedermayer
c56d23dacf 10l bugfix for some disabled code
Originally committed as revision 6603 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-09 14:15:53 +00:00
Michael Niedermayer
f7d0b68361 first try of a handwritten get_cabac() for x86, this is 10-20% faster on P3 depening on if you try to subtract the START/STOP_TIMER overhead
Originally committed as revision 6602 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-09 14:15:14 +00:00
Luca Barbato
441e8fe9c9 add_bytes passes tests
Originally committed as revision 6600 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-09 13:37:43 +00:00
Michael Niedermayer
5bbe2a5292 remove bytestream_end checks, seems to work fine without them and the bitstream reader doesnt check for the end either
Originally committed as revision 6599 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-09 12:25:24 +00:00
Andrea Gianarro
462209fe10 fix AC3 5.1 being decoded as mono
patch by Andrea Gianarro % giandrea AH gmail P com %
Original thread:
Date: Oct 9, 2006 11:55 AM
Subject: [Ffmpeg-devel] AC3 5:1 decoding as mono

Originally committed as revision 6598 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-09 11:36:42 +00:00
Diego Biurrun
bca519e0f6 Fix GPL/LGPL license version mismatch.
Originally committed as revision 6597 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-09 07:31:27 +00:00
Michael Niedermayer
c010d69a75 decrease ff_h264_norm_shift[] size
Originally committed as revision 6596 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-09 00:59:42 +00:00
Dominik Mierzejewski
158256a13a Fixes:
rv10.c:494: warning: implicit declaration of function ‘ff_mpeg4_init_direct_mv’

Approved by Michael.

Originally committed as revision 6595 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-08 21:26:19 +00:00
Michael Niedermayer
6ff042699f cleanup
Originally committed as revision 6594 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-08 21:26:08 +00:00
Dominik Mierzejewski
a10c779f76 Fixes:
opt.c:327: warning: no return statement in function returning non-void

opt_list return value is never checked.

Approved by Michael.

Originally committed as revision 6593 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-08 21:25:22 +00:00
Dominik Mierzejewski
69261768d3 Fixes:
parser.c:555: warning: implicit declaration of function ‘ff_cavs_find_frame_end’

Approved by Michael.

Originally committed as revision 6592 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-08 21:23:57 +00:00
Dominik Mierzejewski
621d92940e Fixes:
mpegvideo.h:777: warning: ‘inline’ is not at beginning of declaration
motion_est_template.c:236: warning: ‘inline’ is not at beginning of declaration

Approved by Diego.

Originally committed as revision 6591 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-08 21:11:03 +00:00
Reimar Döffinger
214019ed32 Avoid void *-arithmetic
Originally committed as revision 6590 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-08 14:32:27 +00:00
Luca Barbato
75336fc885 Non Altivec optimizations already present at the top
Originally committed as revision 6588 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-08 13:55:02 +00:00
Michael Niedermayer
260ceb6322 branchless renormalization (1% faster get_cabac) old branchless renormalization wasnt faster because gcc was scared of the shift variable (missusing bit variable now)
Originally committed as revision 6587 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-08 13:20:22 +00:00
Michael Niedermayer
99ce10873d 5% faster get_cabac()
Originally committed as revision 6586 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-08 11:24:37 +00:00
Diego Biurrun
e16c407a81 output typo fixes
Originally committed as revision 6585 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-08 10:11:58 +00:00
Diego Biurrun
cad35abc0a Compilation fix: pix_abs16x16_c was undeclared.
Originally committed as revision 6584 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-08 09:41:00 +00:00
Diego Biurrun
8823419fc1 Compilation fix, printf gets redefined to please_use_av_log.
Originally committed as revision 6583 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-08 09:38:22 +00:00
Michael Niedermayer
400d0f8e47 disable benchmarking code
disable asm optims as the fastest depends on cpu type

Originally committed as revision 6582 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-07 22:37:34 +00:00
Michael Niedermayer
4310580db5 renorm_cabac_decoder_once START/STOP_TIMER scores for athlon
Originally committed as revision 6581 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-07 22:34:32 +00:00
Luca Barbato
87ea51e0b5 fix the dcbz check and move it in configure
Originally committed as revision 6580 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-07 19:14:25 +00:00
Michael Niedermayer
5659b509c7 refill cabac variables in 16bit steps, 3% faster get_cabac()
Originally committed as revision 6578 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-07 15:44:14 +00:00
Diego Biurrun
b78e7197a8 Change license headers to say 'FFmpeg' instead of 'this program/this library'
and fix GPL/LGPL version mismatches.

Originally committed as revision 6577 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-07 15:30:46 +00:00
Michael Niedermayer
2ae7569dc8 () 10l
Originally committed as revision 6576 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-07 12:41:55 +00:00
Luca Barbato
d4165a8190 fix a warning
Originally committed as revision 6575 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-07 11:46:35 +00:00
Diego Biurrun
ade6e7f3ae Compilation fix, printf gets redefined to please_use_av_log.
Originally committed as revision 6574 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-07 11:30:24 +00:00
Michael Niedermayer
ec8f483ab5 several x86 renorm_cabac_decoder_once optimizations
START/STOP_TIMER benchmarking code for them
please benchmark on P4 & athlon
(ill remove the benchmarking code and the always slower variants as soon as p4/athlon benchmarks have been posted or commited)

Originally committed as revision 6573 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-07 11:15:10 +00:00
Diego Biurrun
cbeee4d8e5 Replace -I../-I. by -I$(BUILD_ROOT).
Originally committed as revision 6572 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-07 09:22:44 +00:00
Diego Biurrun
5064755e54 cosmetics: Add backslashes to the last line of continued lines to make
future commits look cleaner.

Originally committed as revision 6570 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-07 08:10:47 +00:00
Michael Niedermayer
59ef342beb fix decoding of ED-small-sample-file.ogg
Originally committed as revision 6567 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-06 11:33:57 +00:00
Michael Niedermayer
075060023d fix buffer underflows by reencoding the current frame with a higher QP
Originally committed as revision 6565 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-05 19:27:18 +00:00
Diego Biurrun
e1931c59f6 message typo fixes
Originally committed as revision 6564 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-05 18:15:17 +00:00
Diego Biurrun
c6c4651138 Simplify test program build.
Originally committed as revision 6563 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-05 17:10:33 +00:00
Diego Biurrun
9933dc7168 Fix imgresample-test compilation.
Originally committed as revision 6560 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-05 01:28:25 +00:00
Diego Biurrun
0ec92a15dd imgresample-test depends on $(LIB).
Originally committed as revision 6559 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-05 00:51:40 +00:00
Diego Biurrun
425139d55f Simplify EXTRALIBS handling.
Originally committed as revision 6558 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-05 00:32:56 +00:00
Diego Biurrun
0eb59ddba4 Switch idct_mmx_xvid.c from GPL to LGPL as permitted by the
author, Peter Ross (pross xvid org).

Originally committed as revision 6557 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-05 00:23:24 +00:00
Diego Biurrun
7fd265a7a1 cosmetics: Put all OBJS on a line of their own for nicer-looking diffs.
Originally committed as revision 6556 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-04 21:42:31 +00:00
Baptiste Coudurier
58f2a4b07f change extradata type to uint8_t *
Originally committed as revision 6551 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-04 13:13:07 +00:00
Baptiste Coudurier
2bb7875987 mjpeg 4:2:2 encoding support
Originally committed as revision 6550 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-04 12:49:52 +00:00
Loren Merritt
938dd84693 don't try to inline cabac functions. gcc ignored the hint anyway, and forcing it would make h264 slower.
Originally committed as revision 6549 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-04 07:16:10 +00:00
Loren Merritt
e6e77eb6fa simplify write_back_motion for skip mbs
Originally committed as revision 6548 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-04 07:08:26 +00:00
Loren Merritt
a1b13cf590 10l in r6412
Originally committed as revision 6547 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-04 02:57:43 +00:00
Diego Biurrun
0533322ea3 Move EXTRALIBS handling to common.mak.
Originally committed as revision 6545 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-03 19:23:39 +00:00
Diego Biurrun
7f778ed111 Slightly simplify apiexample compilation command line.
Originally committed as revision 6543 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-03 18:03:45 +00:00
Diego Biurrun
93555ad500 Also remove cpuid_test on clean.
Originally committed as revision 6542 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-03 17:59:10 +00:00
Diego Biurrun
f901d78e01 Remove bogus dependency information.
Originally committed as revision 6541 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-03 17:50:02 +00:00
Diego Biurrun
3263626feb Mark all phony targets as such.
Originally committed as revision 6538 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-03 17:42:17 +00:00
Diego Biurrun
36c32bdddf Remove unused variables and the corresponding warnings along with them.
Originally committed as revision 6536 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-03 17:12:48 +00:00
Oded Shimon
4109400295 more forgotten free's.
Originally committed as revision 6527 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 11:55:24 +00:00
Oded Shimon
419550990c 10l, wrong order in freeing
Originally committed as revision 6526 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 11:47:10 +00:00
Michael Niedermayer
35af7a9b27 slightly saner indention
Originally committed as revision 6525 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 11:31:52 +00:00
Diego Biurrun
4bef236ba8 Fix quantiSer --> quantiZer typo.
Originally committed as revision 6523 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 10:23:59 +00:00
Oded Shimon
bec5fc5ffb add vorbis_enc_data.h, remove codebook data from vorbis_enc.c
Originally committed as revision 6520 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:56:39 +00:00
Oded Shimon
8c37516af0 Add vorbis encoder to ffmpeg
Originally committed as revision 6519 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:18:02 +00:00
Oded Shimon
007574482a Original Commit: r114 | ods15 | 2006-10-01 21:38:37 +0200 (Sun, 01 Oct 2006) | 2 lines
blocksize -> log2_blocksize

Originally committed as revision 6518 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:09:52 +00:00
Oded Shimon
631941441d Original Commit: r113 | ods15 | 2006-10-01 21:35:47 +0200 (Sun, 01 Oct 2006) | 2 lines
some more static consts

Originally committed as revision 6517 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:09:49 +00:00
Oded Shimon
2613f6c156 Original Commit: r112 | ods15 | 2006-10-01 20:48:39 +0200 (Sun, 01 Oct 2006) | 3 lines
psy change. -aq param about the same, and behaves more consistently with
different content.

Originally committed as revision 6516 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:09:47 +00:00
Oded Shimon
c83637b965 Original Commit: r111 | ods15 | 2006-10-01 19:40:50 +0200 (Sun, 01 Oct 2006) | 2 lines
update to use ff_vorbis_floor1_render_list

Originally committed as revision 6515 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:09:45 +00:00
Oded Shimon
2eb3db5f69 Original Commit: r110 | ods15 | 2006-10-01 19:17:32 +0200 (Sun, 01 Oct 2006) | 2 lines
slight simlification for residue division by floor

Originally committed as revision 6514 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:09:43 +00:00
Oded Shimon
f8a6a56a75 Original Commit: r109 | ods15 | 2006-10-01 19:14:52 +0200 (Sun, 01 Oct 2006) | 2 lines
5% speed improovement by changing put_vector

Originally committed as revision 6513 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:09:41 +00:00
Oded Shimon
ac0057f3a6 Original Commit: r108 | ods15 | 2006-10-01 18:46:06 +0200 (Sun, 01 Oct 2006) | 2 lines
prevent division/modulo

Originally committed as revision 6512 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:09:39 +00:00
Oded Shimon
0c4630f244 Original Commit: r107 | ods15 | 2006-10-01 18:13:12 +0200 (Sun, 01 Oct 2006) | 2 lines
give proper error message for channels!=2

Originally committed as revision 6511 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:09:36 +00:00
Oded Shimon
a88de9682f Original Commit: r106 | ods15 | 2006-10-01 18:11:55 +0200 (Sun, 01 Oct 2006) | 2 lines
window -> apply_window_and_mdct

Originally committed as revision 6510 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:09:33 +00:00
Oded Shimon
64c82a7411 Original Commit: r105 | ods15 | 2006-10-01 18:09:55 +0200 (Sun, 01 Oct 2006) | 2 lines
slight simplification for channel coupling

Originally committed as revision 6509 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:09:30 +00:00
Oded Shimon
c2ee47ac06 Original Commit: r104 | ods15 | 2006-10-01 18:04:08 +0200 (Sun, 01 Oct 2006) | 2 lines
somewhat cosmetic formatting, use FFMAX

Originally committed as revision 6508 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:09:28 +00:00
Oded Shimon
cc767a8969 Original Commit: r103 | ods15 | 2006-10-01 18:00:43 +0200 (Sun, 01 Oct 2006) | 2 lines
slight optimization, don't calculate average twice

Originally committed as revision 6507 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:09:24 +00:00
Oded Shimon
7e46045784 Original Commit: r102 | ods15 | 2006-10-01 17:58:38 +0200 (Sun, 01 Oct 2006) | 2 lines
remove ready_floor()

Originally committed as revision 6506 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:09:22 +00:00
Oded Shimon
5f3de4b86b Original Commit: r101 | ods15 | 2006-10-01 14:15:00 +0200 (Sun, 01 Oct 2006) | 2 lines
some cleanup

Originally committed as revision 6505 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:09:20 +00:00
Oded Shimon
f11329e461 Original Commit: r100 | ods15 | 2006-10-01 14:01:27 +0200 (Sun, 01 Oct 2006) | 2 lines
update to global functions now shared in vorbis.h

Originally committed as revision 6504 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:09:18 +00:00
Oded Shimon
cbf306f328 Original Commit: r99 | ods15 | 2006-10-01 11:12:44 +0200 (Sun, 01 Oct 2006) | 2 lines
codebook init data cleanup

Originally committed as revision 6503 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:09:14 +00:00
Oded Shimon
ccc0fbf3c4 Original Commit: r98 | ods15 | 2006-10-01 10:15:33 +0200 (Sun, 01 Oct 2006) | 2 lines
switch to int8_t for residue codebook numbers, use memcpy in residue init

Originally committed as revision 6502 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:09:12 +00:00
Oded Shimon
8d38e5e5f0 Original Commit: r97 | ods15 | 2006-09-30 23:32:19 +0300 (Sat, 30 Sep 2006) | 2 lines
don't assert fail for channels != 2, exit cleanly instead...

Originally committed as revision 6501 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:09:10 +00:00
Oded Shimon
7a82a10a09 Original Commit: r96 | ods15 | 2006-09-30 23:25:18 +0300 (Sat, 30 Sep 2006) | 2 lines
even though it doesn't do anything, use flush_put_bits()

Originally committed as revision 6500 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:09:08 +00:00
Oded Shimon
6fde6305b1 Original Commit: r95 | ods15 | 2006-09-30 22:11:08 +0300 (Sat, 30 Sep 2006) | 3 lines
scale user settable quality for more fine-grainablity
now sane values for -aq is 10-30

Originally committed as revision 6499 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:09:06 +00:00
Oded Shimon
39d0567737 Original Commit: r94 | ods15 | 2006-09-30 22:09:33 +0300 (Sat, 30 Sep 2006) | 2 lines
prevent c++ decleration

Originally committed as revision 6498 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:09:04 +00:00
Oded Shimon
ddf217ba14 Original Commit: r93 | ods15 | 2006-09-30 22:02:21 +0300 (Sat, 30 Sep 2006) | 2 lines
update to change made in vorbis.h/vorbis_data.c

Originally committed as revision 6497 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:09:02 +00:00
Oded Shimon
4000774d8f Original Commit: r92 | ods15 | 2006-09-30 12:13:47 +0300 (Sat, 30 Sep 2006) | 3 lines
user settable audio quality, with -aq. values between 0.1 to 0.3 are sane.
the higher the better.

Originally committed as revision 6496 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:08:59 +00:00
Oded Shimon
b002eec985 Original Commit: r91 | ods15 | 2006-09-30 10:05:16 +0300 (Sat, 30 Sep 2006) | 4 lines
even better psy.
My encoder officially kicks ass :) same bitrate to libvorbis, and (IMO)
same quality! :)

Originally committed as revision 6495 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:08:57 +00:00
Oded Shimon
68e75e4dec Original Commit: r90 | ods15 | 2006-09-29 22:14:40 +0300 (Fri, 29 Sep 2006) | 3 lines
much better magic for floor, the first psychoacoustic in this encoder!
now creates valid, 175kbps audio, which sounds good! :)

Originally committed as revision 6494 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:08:55 +00:00
Oded Shimon
9b9941bee6 Original Commit: r88 | ods15 | 2006-09-29 21:10:36 +0300 (Fri, 29 Sep 2006) | 2 lines
slight similification

Originally committed as revision 6493 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:08:53 +00:00
Oded Shimon
40b6c72133 Original Commit: r87 | ods15 | 2006-09-29 21:10:05 +0300 (Fri, 29 Sep 2006) | 2 lines
prevent valgrind warning

Originally committed as revision 6492 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:08:51 +00:00
Oded Shimon
8b33748c45 Original Commit: r86 | ods15 | 2006-09-29 21:08:42 +0300 (Fri, 29 Sep 2006) | 2 lines
make put_vector ignore unused codebook entries

Originally committed as revision 6491 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:08:48 +00:00
Oded Shimon
5e93d002e5 Original Commit: r85 | ods15 | 2006-09-29 21:07:58 +0300 (Fri, 29 Sep 2006) | 2 lines
bad array decleration

Originally committed as revision 6490 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:08:46 +00:00
Oded Shimon
866bfee373 Original Commit: r84 | ods15 | 2006-09-29 21:07:07 +0300 (Fri, 29 Sep 2006) | 2 lines
dangling piece from last commit

Originally committed as revision 6489 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:08:44 +00:00
Oded Shimon
a2cf16fe03 Original Commit: r83 | ods15 | 2006-09-29 21:06:13 +0300 (Fri, 29 Sep 2006) | 2 lines
add real_len to residue codebooks, which are smaller than supposed to be

Originally committed as revision 6488 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:08:41 +00:00
Oded Shimon
0e9bf4a296 Original Commit: r82 | ods15 | 2006-09-29 21:03:43 +0300 (Fri, 29 Sep 2006) | 2 lines
fix channels to be correct for rc->type==2 before classes[] decleration

Originally committed as revision 6487 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:08:39 +00:00
Oded Shimon
7f44dfe264 Original Commit: r81 | ods15 | 2006-09-29 21:02:09 +0300 (Fri, 29 Sep 2006) | 2 lines
make residue_encode decide good classification per partition

Originally committed as revision 6486 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:08:36 +00:00
Oded Shimon
840d157323 Original Commit: r80 | ods15 | 2006-09-29 15:44:22 +0300 (Fri, 29 Sep 2006) | 2 lines
import libvorbis codebooks for residue

Originally committed as revision 6485 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:08:33 +00:00
Oded Shimon
6f5be556dd Original Commit: r79 | ods15 | 2006-09-29 15:15:26 +0300 (Fri, 29 Sep 2006) | 2 lines
cosmetic reindent

Originally committed as revision 6484 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:08:31 +00:00
Oded Shimon
9127d7c3d4 Original Commit: r78 | ods15 | 2006-09-29 15:14:28 +0300 (Fri, 29 Sep 2006) | 2 lines
improove floor codebooks

Originally committed as revision 6483 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:08:28 +00:00
Oded Shimon
dac7b2f6dd Original Commit: r77 | ods15 | 2006-09-29 15:12:56 +0300 (Fri, 29 Sep 2006) | 2 lines
fix for book==-1 in floor

Originally committed as revision 6482 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:08:25 +00:00
Oded Shimon
7e4221fd6b Original Commit: r76 | ods15 | 2006-09-29 13:16:37 +0300 (Fri, 29 Sep 2006) | 2 lines
switch to 2048 block size

Originally committed as revision 6481 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:08:23 +00:00
Oded Shimon
a9ce92679d Original Commit: r75 | ods15 | 2006-09-29 13:03:51 +0300 (Fri, 29 Sep 2006) | 2 lines
remove debugging printf

Originally committed as revision 6480 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:08:21 +00:00
Oded Shimon
a277ad842e Original Commit: r74 | ods15 | 2006-09-29 13:03:31 +0300 (Fri, 29 Sep 2006) | 2 lines
support multiple codebooks for floor

Originally committed as revision 6479 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:08:19 +00:00
Oded Shimon
899124aa38 Original Commit: r73 | ods15 | 2006-09-28 21:01:59 +0300 (Thu, 28 Sep 2006) | 2 lines
almost cosmetic, remove redundant variable

Originally committed as revision 6478 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:08:16 +00:00
Oded Shimon
4c588d8e9f Original Commit: r72 | ods15 | 2006-09-28 21:00:47 +0300 (Thu, 28 Sep 2006) | 2 lines
cosmetic

Originally committed as revision 6477 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:08:14 +00:00
Oded Shimon
e3df7fc64c Original Commit: r71 | ods15 | 2006-09-28 21:00:24 +0300 (Thu, 28 Sep 2006) | 2 lines
residue type 2

Originally committed as revision 6476 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:08:11 +00:00
Oded Shimon
9d74ff0e55 Original Commit: r70 | ods15 | 2006-09-28 19:07:36 +0300 (Thu, 28 Sep 2006) | 2 lines
channel coupling

Originally committed as revision 6475 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:08:09 +00:00
Oded Shimon
90a09b69d7 Original Commit: r69 | ods15 | 2006-09-27 20:27:50 +0300 (Wed, 27 Sep 2006) | 2 lines
prevent buffer overflow

Originally committed as revision 6474 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:08:07 +00:00
Oded Shimon
65c7236929 Original Commit: r68 | ods15 | 2006-09-25 21:15:09 +0300 (Mon, 25 Sep 2006) | 2 lines
slightly more compressing, 50% compression now :)

Originally committed as revision 6473 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:08:03 +00:00
Oded Shimon
af1cb7ee4c Original Commit: r67 | ods15 | 2006-09-25 20:33:06 +0300 (Mon, 25 Sep 2006) | 2 lines
horrible off-by-one causing lots of troubles...

Originally committed as revision 6472 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:08:01 +00:00
Oded Shimon
cbb834afa1 Original Commit: r66 | ods15 | 2006-09-25 18:42:13 +0300 (Mon, 25 Sep 2006) | 2 lines
some different values for higher accuracy

Originally committed as revision 6471 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:07:59 +00:00
Oded Shimon
4fa29073eb Original Commit: r65 | ods15 | 2006-09-25 18:40:19 +0300 (Mon, 25 Sep 2006) | 2 lines
cosmetic

Originally committed as revision 6470 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:07:57 +00:00
Oded Shimon
63fc901ec9 Original Commit: r64 | ods15 | 2006-09-25 18:39:30 +0300 (Mon, 25 Sep 2006) | 2 lines
some fixes to floor

Originally committed as revision 6469 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:07:55 +00:00
Oded Shimon
09a0d8b3c9 Original Commit: r63 | ods15 | 2006-09-25 13:51:44 +0300 (Mon, 25 Sep 2006) | 3 lines
last step to improoving floor code-wise - now the floor data needs to be
improved..

Originally committed as revision 6468 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:07:53 +00:00
Oded Shimon
6e8ef5ae6f Original Commit: r62 | ods15 | 2006-09-25 13:12:07 +0300 (Mon, 25 Sep 2006) | 2 lines
api change for floor_encode

Originally committed as revision 6467 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:07:51 +00:00
Oded Shimon
cf0f2642f4 Original Commit: r61 | ods15 | 2006-09-25 13:10:56 +0300 (Mon, 25 Sep 2006) | 2 lines
step 2, floor_fit, decides on the values to be encoded

Originally committed as revision 6466 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:07:49 +00:00
Oded Shimon
62ca51b3fa Original Commit: r60 | ods15 | 2006-09-25 12:46:30 +0300 (Mon, 25 Sep 2006) | 2 lines
first step to improoving floor

Originally committed as revision 6465 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:07:46 +00:00
Oded Shimon
6f17618af9 Original Commit: r59 | ods15 | 2006-09-24 17:40:40 +0300 (Sun, 24 Sep 2006) | 2 lines
cosmetic, reorganize

Originally committed as revision 6464 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:07:44 +00:00
Oded Shimon
8a202cb3a7 Original Commit: r58 | ods15 | 2006-09-24 17:35:28 +0300 (Sun, 24 Sep 2006) | 2 lines
add ability to use codebook dimentions in residue

Originally committed as revision 6463 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:07:42 +00:00
Oded Shimon
4132242dfc Original Commit: r56 | ods15 | 2006-09-24 13:55:01 +0300 (Sun, 24 Sep 2006) | 2 lines
oggvorbis_encoder => vorbis_encoder

Originally committed as revision 6462 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:07:40 +00:00
Oded Shimon
91f64941d3 Original Commit: r55 | ods15 | 2006-09-24 13:54:43 +0300 (Sun, 24 Sep 2006) | 2 lines
bug fixes for residue with no books in all passes

Originally committed as revision 6461 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:07:38 +00:00
Oded Shimon
b8d5b161ae Original Commit: r54 | ods15 | 2006-09-24 13:54:12 +0300 (Sun, 24 Sep 2006) | 2 lines
change floor value to lower residue

Originally committed as revision 6460 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:07:36 +00:00
Oded Shimon
36e09a5144 Original Commit: r52 | ods15 | 2006-09-23 17:38:43 +0300 (Sat, 23 Sep 2006) | 2 lines
correct rangebits for floor

Originally committed as revision 6459 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:07:34 +00:00
Oded Shimon
4fb432e743 Original Commit: r51 | ods15 | 2006-09-23 16:32:30 +0300 (Sat, 23 Sep 2006) | 2 lines
deobfuscate a bit

Originally committed as revision 6458 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:07:32 +00:00
Oded Shimon
a7849cc90e Original Commit: r50 | ods15 | 2006-09-23 16:24:51 +0300 (Sat, 23 Sep 2006) | 2 lines
ilog => av_log2

Originally committed as revision 6457 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:07:30 +00:00
Oded Shimon
0e6fd0f12f Original Commit: r49 | ods15 | 2006-09-23 12:52:21 +0300 (Sat, 23 Sep 2006) | 3 lines
fix off-by-one in both encoder and decoder.
libvorbis and tremor work now, ffvorbis still doesn't

Originally committed as revision 6456 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:07:28 +00:00
Oded Shimon
33592a633f Original Commit: r48 | ods15 | 2006-09-23 12:45:25 +0300 (Sat, 23 Sep 2006) | 2 lines
small fix for residue header

Originally committed as revision 6455 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:07:26 +00:00
Oded Shimon
174476cd7d Original Commit: r47 | ods15 | 2006-09-23 12:34:48 +0300 (Sat, 23 Sep 2006) | 2 lines
make ffvorbis happy about init stuff, still can't play correctly

Originally committed as revision 6454 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 06:07:24 +00:00
Oded Shimon
2278783547 Original Commit: r46 | ods15 | 2006-09-23 11:36:32 +0300 (Sat, 23 Sep 2006) | 2 lines
fix normalization, output is (roughly?) same volume as input

Originally committed as revision 6453 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:56:40 +00:00
Oded Shimon
f4e5e657b8 Original Commit: r44 | ods15 | 2006-09-23 10:54:43 +0300 (Sat, 23 Sep 2006) | 2 lines
some bug fixes for window()

Originally committed as revision 6452 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:56:37 +00:00
Oded Shimon
19b00cf16e Original Commit: r43 | ods15 | 2006-09-23 10:53:46 +0300 (Sat, 23 Sep 2006) | 2 lines
change residue codebook dimentions

Originally committed as revision 6451 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:56:35 +00:00
Oded Shimon
4317306f34 Original Commit: r42 | ods15 | 2006-09-23 10:53:16 +0300 (Sat, 23 Sep 2006) | 2 lines
fix for residue end

Originally committed as revision 6450 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:56:32 +00:00
Oded Shimon
b452ee42f5 Original Commit: r41 | ods15 | 2006-09-23 10:52:34 +0300 (Sat, 23 Sep 2006) | 4 lines
residue packet encode

ACTUALLY ENCODES NOW!! still some bugs to fix :)

Originally committed as revision 6449 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:56:30 +00:00
Oded Shimon
6fbf5855b1 Original Commit: r40 | ods15 | 2006-09-23 09:36:30 +0300 (Sat, 23 Sep 2006) | 2 lines
fix frame_size, we need input of half the mdct

Originally committed as revision 6448 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:56:27 +00:00
Oded Shimon
f71b6d7072 Original Commit: r39 | ods15 | 2006-09-23 09:36:11 +0300 (Sat, 23 Sep 2006) | 2 lines
add window function

Originally committed as revision 6447 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:56:25 +00:00
Oded Shimon
6b03d096dc Original Commit: r38 | ods15 | 2006-09-23 09:02:34 +0300 (Sat, 23 Sep 2006) | 2 lines
buffer related struct variables

Originally committed as revision 6446 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:56:23 +00:00
Oded Shimon
1b34d5737d Original Commit: r37 | ods15 | 2006-09-23 08:43:43 +0300 (Sat, 23 Sep 2006) | 2 lines
cosmetic

Originally committed as revision 6445 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:56:21 +00:00
Oded Shimon
b9b040236e Original Commit: r36 | ods15 | 2006-09-23 08:43:09 +0300 (Sat, 23 Sep 2006) | 2 lines
starting point for packet encode, writing floor

Originally committed as revision 6444 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:56:18 +00:00
Oded Shimon
e3bbb5910f Original Commit: r35 | ods15 | 2006-09-22 18:53:22 +0300 (Fri, 22 Sep 2006) | 4 lines
another off by one

header writing seems compliant now!

Originally committed as revision 6443 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:56:16 +00:00
Oded Shimon
9da6847deb Original Commit: r34 | ods15 | 2006-09-22 18:46:57 +0300 (Fri, 22 Sep 2006) | 2 lines
off by one in codebook header

Originally committed as revision 6442 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:56:14 +00:00
Oded Shimon
be01eec6c7 Original Commit: r32 | ods15 | 2006-09-22 18:37:50 +0300 (Fri, 22 Sep 2006) | 2 lines
add framing bit

Originally committed as revision 6441 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:56:12 +00:00
Oded Shimon
22c72a08df Original Commit: r31 | ods15 | 2006-09-22 18:33:17 +0300 (Fri, 22 Sep 2006) | 2 lines
use my own bitpacker

Originally committed as revision 6440 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:56:10 +00:00
Oded Shimon
b4b6ff3a55 Original Commit: r30 | ods15 | 2006-09-22 18:24:04 +0300 (Fri, 22 Sep 2006) | 2 lines
remove some old defines, use ALT_BITSTREAM_WRITER

Originally committed as revision 6439 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:56:07 +00:00
Oded Shimon
b1f6c8b120 Original Commit: r27 | ods15 | 2006-09-22 14:19:51 +0300 (Fri, 22 Sep 2006) | 2 lines
better frame_size, depending on blocksize

Originally committed as revision 6438 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:56:05 +00:00
Oded Shimon
2d06ce4c87 Original Commit: r26 | ods15 | 2006-09-22 14:18:22 +0300 (Fri, 22 Sep 2006) | 2 lines
crash fix

Originally committed as revision 6437 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:56:03 +00:00
Oded Shimon
ae9b187ab2 Original Commit: r25 | ods15 | 2006-09-22 14:06:04 +0300 (Fri, 22 Sep 2006) | 2 lines
add proper uninit/free to all vorbis encoder context

Originally committed as revision 6436 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:56:01 +00:00
Oded Shimon
fb5eba8c2d Original Commit: r24 | ods15 | 2006-09-22 13:57:09 +0300 (Fri, 22 Sep 2006) | 2 lines
last and least, modes generation

Originally committed as revision 6435 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:55:59 +00:00
Oded Shimon
8e59b82db1 Original Commit: r23 | ods15 | 2006-09-22 13:55:48 +0300 (Fri, 22 Sep 2006) | 2 lines
mapping generation

Originally committed as revision 6434 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:55:57 +00:00
Oded Shimon
0df46aa216 Original Commit: r22 | ods15 | 2006-09-22 13:49:56 +0300 (Fri, 22 Sep 2006) | 2 lines
add residue generation

Originally committed as revision 6433 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:55:55 +00:00
Oded Shimon
e185750ab7 Original Commit: r21 | ods15 | 2006-09-22 13:40:31 +0300 (Fri, 22 Sep 2006) | 2 lines
placeholders for reisudes, mappings and modes

Originally committed as revision 6432 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:55:52 +00:00
Oded Shimon
491d4dfd6c Original Commit: r20 | ods15 | 2006-09-22 13:12:48 +0300 (Fri, 22 Sep 2006) | 2 lines
cosmetic

Originally committed as revision 6431 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:55:49 +00:00
Oded Shimon
b9db113d6d Original Commit: r19 | ods15 | 2006-09-22 12:54:18 +0300 (Fri, 22 Sep 2006) | 2 lines
floor generation

Originally committed as revision 6430 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:55:47 +00:00
Oded Shimon
faf7f0ce7e Original Commit: r18 | ods15 | 2006-09-22 12:29:26 +0300 (Fri, 22 Sep 2006) | 2 lines
add ability to run encoder for testing purposes...

Originally committed as revision 6429 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:55:45 +00:00
Oded Shimon
128c0dfe9a Original Commit: r17 | ods15 | 2006-09-22 12:28:28 +0300 (Fri, 22 Sep 2006) | 2 lines
bug fixes in codebook header syntax

Originally committed as revision 6428 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:55:43 +00:00
Oded Shimon
1495689c5b Original Commit: r16 | ods15 | 2006-09-22 12:27:17 +0300 (Fri, 22 Sep 2006) | 2 lines
minimum size for a huffman table is 2 entries, 1bit

Originally committed as revision 6427 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:55:41 +00:00
Oded Shimon
53261080b9 Original Commit: r15 | ods15 | 2006-09-22 12:26:42 +0300 (Fri, 22 Sep 2006) | 2 lines
bug fix in main header function, 0 -> i

Originally committed as revision 6426 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:55:39 +00:00
Oded Shimon
e08d964df6 Original Commit: r14 | ods15 | 2006-09-22 12:26:17 +0300 (Fri, 22 Sep 2006) | 2 lines
use several codebooks and passes to prevent header from being several MB...

Originally committed as revision 6425 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:55:37 +00:00
Oded Shimon
3c83828ca4 Original Commit: r13 | ods15 | 2006-09-22 09:29:38 +0300 (Fri, 22 Sep 2006) | 2 lines
better comment

Originally committed as revision 6424 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:55:35 +00:00
Oded Shimon
73acc51cd2 Original Commit: r12 | ods15 | 2006-09-22 09:28:30 +0300 (Fri, 22 Sep 2006) | 5 lines
entry_t -> cb_entry_t
add float * dimentions, it will be needed for deciding the correct codebook entry
document blocksize
first steps to creating the context to be used

Originally committed as revision 6423 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:55:33 +00:00
Oded Shimon
8016c73f4c Original Commit: r11 | ods15 | 2006-09-17 19:41:28 +0300 (Sun, 17 Sep 2006) | 4 lines
modes header syntax

that's the last of the headers! woo

Originally committed as revision 6422 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:55:30 +00:00
Oded Shimon
beaec74a94 Original Commit: r10 | ods15 | 2006-09-17 19:37:17 +0300 (Sun, 17 Sep 2006) | 2 lines
mappings header syntax

Originally committed as revision 6421 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:55:28 +00:00
Oded Shimon
6f133df1ea Original Commit: r9 | ods15 | 2006-09-17 18:56:41 +0300 (Sun, 17 Sep 2006) | 2 lines
add residue header syntax

Originally committed as revision 6420 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:55:26 +00:00
Oded Shimon
d2d5c89d34 Original Commit: r8 | ods15 | 2006-09-17 09:43:38 +0300 (Sun, 17 Sep 2006) | 2 lines
floor header syntax

Originally committed as revision 6419 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:55:24 +00:00
Oded Shimon
d52480b40d Original Commit: r7 | ods15 | 2006-09-17 08:50:47 +0300 (Sun, 17 Sep 2006) | 2 lines
skeleton for residue/floor/mappings header

Originally committed as revision 6418 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:55:22 +00:00
Oded Shimon
1f7e7464e9 Original Commit: r6 | ods15 | 2006-09-16 20:36:31 +0300 (Sat, 16 Sep 2006) | 2 lines
add correct and working put_float ...

Originally committed as revision 6417 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:55:20 +00:00
Oded Shimon
3112124154 Original Commit: r5 | ods15 | 2006-09-16 17:29:04 +0300 (Sat, 16 Sep 2006) | 4 lines
more "surrounding" stuff, main header. some cleanup.

actually compiles now! doesn't do anything though

Originally committed as revision 6416 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:55:18 +00:00
Oded Shimon
0688b89c6d Original Commit: r4 | ods15 | 2006-09-16 15:36:03 +0300 (Sat, 16 Sep 2006) | 3 lines
codebook header syntax
small simplification for encode_init()

Originally committed as revision 6415 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:55:16 +00:00
Oded Shimon
3a5fdf92f5 Original Commit: r3 | ods15 | 2006-09-16 11:49:07 +0300 (Sat, 16 Sep 2006) | 2 lines
cosmetics

Originally committed as revision 6414 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:55:14 +00:00
Oded Shimon
504d195260 skeleton for vorbis_enc.c
Originally committed as revision 6413 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-02 05:54:55 +00:00
Loren Merritt
2833fc4646 approximate qpel functions: sacrifice some quality for some decoding speed. enabled on B-frames with -lavdopts fast.
Originally committed as revision 6412 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-01 21:25:17 +00:00
Alexander Strange
eacad59e03 Fix compilation with --disable-encoders.
patch by Alexander Strange, astrange at ithinksw dot com

Originally committed as revision 6410 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-01 18:19:49 +00:00
Oded Shimon
7f09a56091 remove render_line from vorbis.h, add ff_vorbis_floor1_render_list instead
Originally committed as revision 6409 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-01 17:38:07 +00:00
Oded Shimon
e8f42cc0f5 prevent warning in vorbis_data.c
Originally committed as revision 6404 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-01 13:53:08 +00:00
Oded Shimon
ded515b241 100l, broke ffmpeg compilation, ABS() and uint* types not defined in vorbis_data.c
Originally committed as revision 6403 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-01 13:45:17 +00:00
Oded Shimon
6c29d7c8f3 make some more functions global so they can be shared with vorbis_enc.c
Originally committed as revision 6402 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-01 11:59:33 +00:00
Oded Shimon
9f963af5a0 make ready_floor1_list() shared for vorbis_enc.c
Originally committed as revision 6401 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-01 11:11:30 +00:00
Kostya Shishkov
429914a330 1l: correct argument order in avcodec_check_dimensions
Originally committed as revision 6400 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-01 05:09:20 +00:00
Michael Niedermayer
3129f3bd0f palette (if we memcpy it into AVFrame) must be uint32_t
Originally committed as revision 6399 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-30 23:49:09 +00:00
Oded Shimon
cc0ba5a58f vorbis.h -> vorbis_data.c
move tables from vorbis.h to a C file so they can be used later in
vorbis_enc.c

Originally committed as revision 6398 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-30 18:47:15 +00:00
Michael Niedermayer
18239edfa9 marking AVPaletteControl as deprecated due to thread saftey amongth other issues (it doesnt work if theres any delay between demuxer and decoder)
Originally committed as revision 6397 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-30 18:16:38 +00:00
Michael Niedermayer
0d415b2dd7 seems only 3 bits are used for the number of resolutions, some rv30 files have this set to 10 even though there are just 2 resolutions in the extradata
Originally committed as revision 6395 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-30 16:00:27 +00:00
Michael Niedermayer
f457965c20 ignore sub_id
Originally committed as revision 6392 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-30 11:45:09 +00:00
Michael Niedermayer
fb3d155c31 big endian fix
Originally committed as revision 6391 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-30 11:35:14 +00:00
Michael Niedermayer
113533a582 support resolution switching, fixes rv20errors.rm
Originally committed as revision 6390 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-30 11:31:15 +00:00
Michael Niedermayer
78a5ec27aa simplify
Originally committed as revision 6389 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-29 23:57:03 +00:00
Michael Niedermayer
6d3124961b fix rv20 b frames (broke since r5264 Mon Apr 3 07:52:24 2006 UTC 2x faster ff_mpeg4_set_direct_mv)
Originally committed as revision 6388 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-29 23:34:42 +00:00
Panagiotis Issaris
b2f86c170d Add forgotten eval.h...
Originally committed as revision 6387 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-29 19:48:27 +00:00
Panagiotis Issaris
0de9926f62 Move the ratecontrol related code from mpegvideo.h to a separate header file.
Originally committed as revision 6386 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-29 19:39:19 +00:00
Panagiotis Issaris
d70ef6d761 Reformat the output of the list of available AVOptions, by indenting the
parameters of certain options and displaying them _right after_ the actual
option taking the parameter.

Originally committed as revision 6385 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-29 19:36:12 +00:00
Panagiotis Issaris
6d6f42d202 Remove the override of lmin and lmax, so the actual option value provided will
be used.

Originally committed as revision 6384 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-29 19:34:53 +00:00
Panagiotis Issaris
4d7b4613a1 Pull out the ff_eval* from the mpegvideo header, as it doesn't belong there and
put it in a separate file.

Originally committed as revision 6383 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-29 19:33:04 +00:00
Måns Rullgård
f28748e671 remove extraneous #ifdef CONFIG_ENCODERS/DECODERS
Originally committed as revision 6375 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-28 22:03:52 +00:00
Panagiotis Issaris
720442981b Remove the "mblmax" OptionDef. The equally named AVOption takes over its
function. A unit change is involved, but as AVOption parameters are now parsed
with ff_eval2(), you can use the QP2LAMBDA constant to ease the change.

Originally committed as revision 6370 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-28 17:46:25 +00:00
Panagiotis Issaris
93b26b6381 Remove the "mblmin" OptionDef. The equally named AVOption takes over its
function. A unit change is involved, but as AVOption parameters are now parsed
with ff_eval2(), you can use the QP2LAMBDA constant to ease the change.

Originally committed as revision 6369 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-28 17:45:51 +00:00
Kostya Shishkov
8db0c25d95 Handle case of get_bits(0)
Originally committed as revision 6365 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-28 05:01:02 +00:00
Måns Rullgård
b86216de4c dc_val should be signed
Originally committed as revision 6364 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-27 22:13:44 +00:00
Måns Rullgård
bca99b47bf return 0 from encode_picture() and estimate_qp() on success
Originally committed as revision 6363 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-27 22:12:08 +00:00
Panagiotis Issaris
0ec6065a34 Break compatibility only when first part of version number changes, in this
specific case for ff_eval deprecation.

Originally committed as revision 6358 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-27 20:08:36 +00:00
Panagiotis Issaris
95c9943081 Make AVOption parsign code use ff_eval2()
Originally committed as revision 6357 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-27 20:01:39 +00:00
Måns Rullgård
62bb489b13 add some #ifdef CONFIG_ENCODERS/DECODERS
Originally committed as revision 6356 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-27 19:54:07 +00:00
Måns Rullgård
191e8ca752 fix some signedness warnings
Originally committed as revision 6355 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-27 19:47:39 +00:00
Panagiotis Issaris
d80f243ae9 Make ratecontrol use ff_eval2().
Originally committed as revision 6354 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-27 19:46:19 +00:00
Panagiotis Issaris
a2eb288ac7 Fix compilation by postponing deprecation of ff_eval() until the next version
increment.

Originally committed as revision 6352 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-27 11:09:35 +00:00
Kostya Shishkov
050b60b2cc free memory before return
Originally committed as revision 6351 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-27 04:37:57 +00:00
Kostya Shishkov
1dbb339db3 bump lavc version for WavPack decoder
Originally committed as revision 6350 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-27 04:31:39 +00:00
Michael Niedermayer
c38a29a448 fix decoding of bastard3.rm (ver=0x10003001 ver0=0x9000000)
Originally committed as revision 6349 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-26 22:23:33 +00:00
Panagiotis Issaris
ae41e29b5b Introduce ff_eval2 which is equivalent to ff_eval but does not log anything.
Instead, error messages are passed upward by means of a struct member variable.

Originally committed as revision 6348 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-26 22:01:33 +00:00
Måns Rullgård
a0403006f8 ARMv5TE optimized IDCT
Originally committed as revision 6347 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-26 20:26:22 +00:00
Michael Niedermayer
e2887363e1 fix decoding of bastard1.rm (rv ver=0x10003001 ver0=0x8000000)
Originally committed as revision 6346 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-26 20:24:13 +00:00
Måns Rullgård
89cba1bd7d fix MUL16 macro
Originally committed as revision 6344 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-26 18:31:43 +00:00
Panagiotis Issaris
4156a436e3 Handle possible failure of ff_eval.
Originally committed as revision 6338 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-26 14:04:36 +00:00
Michael Niedermayer
327409d7b9 mpeg1 b_strategy=2 segfault fix
Originally committed as revision 6337 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-26 08:49:24 +00:00
Kostya Shishkov
730581f3b4 WavPack lossless audio decoder
Originally committed as revision 6336 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-26 03:41:51 +00:00
Reimar Döffinger
1a174c2831 remove get_le16 and get_le32, get_bits and get_bits_long can just be used directly.
Originally committed as revision 6335 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-25 22:57:34 +00:00
Reimar Döffinger
544c449d12 Get rid of get_bits_long_le, get_bits_long was fixed and now behaves the same way.
Originally committed as revision 6334 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-25 22:54:19 +00:00
Reimar Döffinger
6831406b2f Changes needed due to show_bits_long behaviour changes/fixes
Originally committed as revision 6333 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-25 22:53:11 +00:00
Reimar Döffinger
d1121caa66 Fix get_bits_long to work with ALT_BITSTREAM_READER_LE.
Gives the same result as get_bits_long_le in vorbis.c instead
of some wild big-/little-endian mixture.

Originally committed as revision 6332 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-25 22:47:55 +00:00
Aurelien Jacobs
4fde50604d rename vector to vect to avoid clash with Apple gcc
Originally committed as revision 6331 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-25 18:54:18 +00:00
Luca Barbato
79e47000c8 move memory functions from avcodec to avutil
Originally committed as revision 6330 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-25 15:23:40 +00:00
Oded Shimon
0e3cb7a1ff fix to vorbis decoder for book==0
Originally committed as revision 6328 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-24 10:58:06 +00:00
Panagiotis Issaris
97a9195feb Missing extern declaration for av_strtod.
Originally committed as revision 6327 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-24 10:53:54 +00:00
Michael Niedermayer
b8100438a0 cosmetic
Originally committed as revision 6326 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-24 10:41:25 +00:00
Michael Niedermayer
e6b120018b segfault fix
thanks to takis for finding the cause of this

Originally committed as revision 6325 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-24 10:38:14 +00:00
Panagiotis Issaris
79ca4de35b Define NAN -if not already defined- as 0.0/0.0
Originally committed as revision 6324 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-23 08:50:50 +00:00
Luca Barbato
004390a639 Use mathops
Originally committed as revision 6323 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-22 15:57:23 +00:00
Panagiotis Issaris
22565f5d7e Remove the "error" OptionDef. The equally named AVOption takes over its
function.

Originally committed as revision 6322 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-22 15:05:27 +00:00
Panagiotis Issaris
cccb4c966b Remove the "mepc" OptionDef. The equally named AVOption takes over its function.
Originally committed as revision 6321 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-22 15:04:56 +00:00
Panagiotis Issaris
bf08081389 Remove the "mb_threshold" OptionDef. The equally named AVOption takes over its
function.

Originally committed as revision 6317 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-22 13:55:56 +00:00
Loren Merritt
a4eb118a41 cosmetics (indentation)
Originally committed as revision 6313 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-21 17:43:09 +00:00
Loren Merritt
f469094c9b tweak ff_imdct_calc_3dn2
Originally committed as revision 6312 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-21 17:42:23 +00:00
Loren Merritt
ebbafcb454 sse implementation of imdct.
patch mostly by Zuxy Meng (zuxy dot meng at gmail dot com)

Originally committed as revision 6311 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-21 16:37:39 +00:00
Kostya Shishkov
a1ef006823 Finally enable B-frame decoding as all known samples work perfect
Originally committed as revision 6309 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-21 04:46:11 +00:00
Kostya Shishkov
6b33eed83f For B-frames if the second reference frame signals intensity compensation
then the first reference frame should be intensity compensated.

Originally committed as revision 6308 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-21 04:44:35 +00:00
Kostya Shishkov
162f412dec Reorder MV order in B-frames so no swapping in vc1_b_mc() is needed
Originally committed as revision 6307 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-21 04:38:47 +00:00
Kostya Shishkov
75807fe26e Zero number of current scan after decoding one picture.
This fixes grayscale JPEG-LS decoding.

Originally committed as revision 6306 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-21 04:28:46 +00:00
Michael Niedermayer
98bf484309 1000l copy and paste typo
Originally committed as revision 6305 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-21 01:08:05 +00:00
Michael Niedermayer
c3e462a8ca set supported pixel formats for a few encoders (fixes crashes with grayscale)
Originally committed as revision 6303 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-20 21:17:37 +00:00
Panagiotis Issaris
58bba31e3f Remove the "qsquish" OptionDef. The AVOption min/max value is changed to match
the removed range check in ffmpeg.c.

Originally committed as revision 6299 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-20 08:39:56 +00:00
Panagiotis Issaris
6bacd250f4 Remove the "qmax" OptionDef.
Originally committed as revision 6298 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-20 08:36:33 +00:00
Panagiotis Issaris
5687a2f4cc Remove the "qmin" OptionDef.
Originally committed as revision 6297 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-20 08:34:58 +00:00
Panagiotis Issaris
315b0f9742 Remove the "bf" OptionDef parameter so the equally named AVOption will take
over. Move over ffmpeg.c constraint checking, but allow value of zero to disable
B-frame.

Originally committed as revision 6296 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-20 08:34:13 +00:00
Panagiotis Issaris
fcc9b95653 Inform the user that a certain AVOption is out of range.
Originally committed as revision 6295 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-20 08:28:24 +00:00
Panagiotis Issaris
076ce01793 Correct the constraints of some AVOptions. These had a default value of zero,
while the minimum allowed value was set to FLT_MIN.

Originally committed as revision 6294 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-20 08:27:18 +00:00
Luca Barbato
99aed7c8fc New single instruction math operation header
Originally committed as revision 6291 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-19 22:22:29 +00:00
Michael Niedermayer
39e1b5cf8e use correct rounding functions
this should fix a floating point exception on some systems
lets hope these arent missing anywhere, if so another solution must be found

Originally committed as revision 6290 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-19 09:31:00 +00:00
Panagiotis Issaris
97c73545a5 Add support for SI (k, M, ...) and IEC/IEEE (Ki, Mi, ...) units.
Originally committed as revision 6287 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-18 11:35:48 +00:00
Michael Niedermayer
7eb1042cbd K prefix
add SI prefix selftest

Originally committed as revision 6286 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-17 10:22:01 +00:00
Michael Niedermayer
e66477afbe support SI and some non SI prefixes
Originally committed as revision 6284 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-17 08:52:41 +00:00
Michael Benjamin
5ca030fed4 ADI Blackfin optimizations
patch by Michael Benjamin, neuroptik gmail com

Originally committed as revision 6282 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-16 22:26:09 +00:00
Måns Rullgård
cd621028c0 remove junk characters in comment
Originally committed as revision 6279 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-16 00:51:49 +00:00
Måns Rullgård
f07e8487b0 clean up #ifdef HAVE_IPP
Originally committed as revision 6278 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-15 23:20:58 +00:00
Panagiotis Issaris
fda7eb9098 Correct the i_qfactor minimum, which was current set higher then the default
value.

Originally committed as revision 6274 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-15 21:57:19 +00:00
Diego Biurrun
02c1592fde Fix Indel --> Intel typo.
Originally committed as revision 6260 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-15 13:53:26 +00:00
Panagiotis Issaris
7df00a4e06 Rename the AVOption's names to the shorter OptionDef names.
Originally committed as revision 6257 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-15 10:57:20 +00:00
Baptiste Coudurier
8e453fc3c7 remove unused, uninitialized free format frame size
Originally committed as revision 6256 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-15 10:28:23 +00:00
Aurelien Jacobs
2a2311bee3 disable vp3 mmx idct for theora files to avoid artifacts
(see theora-a4_v6-k250-s0_2.ogg)

Originally committed as revision 6253 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-14 22:13:23 +00:00
Panagiotis Issaris
0b97eea306 Synchronize the defaults specified in the AVOptions[] array to the defaults
specified in the ffmpeg.c global static variabels. This preserves the current
behavior.

Originally committed as revision 6252 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-14 14:02:32 +00:00
Panagiotis Issaris
66acccf05f Make OFFSET() reuse offsetof
Originally committed as revision 6251 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-14 13:51:54 +00:00
Panagiotis Issaris
a41e9d6899 Allow parameter values (AVOptions) to use the 'k', 'M', 'G'
and 'B' postfixes.

Originally committed as revision 6249 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-14 11:23:41 +00:00
Diego Biurrun
7f889a76ad Remove the LGPL exception clause as discussed on ffmpeg-devel
and move the dependent code under CONFIG_GPL.

Originally committed as revision 6248 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-14 00:38:03 +00:00
Siarhei Siamashka
1839e854e5 Proper armv5te instructions support detection.
patch by Siarhei Siamashka, siarhei dot siamashka gmail com

Originally committed as revision 6246 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-13 21:39:41 +00:00
Aurelien Jacobs
a8678a3a7a replaces back some C code by dsp.put_pixels_tab[0][0] (revert r6231)
but this time ensure proper alignment using av_malloc instead of av_realloc

Originally committed as revision 6245 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-13 20:16:33 +00:00
Panagiotis Issaris
7facadb0bb corrects the type of the AVOption parameter "bugs", patch by Takis
Original thread:
Date: Sep 11, 2006 1:43 PM
Subject: [Ffmpeg-devel] [PATCH] Wrong AVOption type

Originally committed as revision 6244 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-13 09:28:48 +00:00
Panagiotis Issaris
5cc9b87f45 adds descriptions to the libavcodec AVOptions array, taken from the
OptionDef options[] array.
Patch by Takis,
Original thread:
Date: Sep 11, 2006 3:39 PM
Subject: [Ffmpeg-devel] [PATCH] AVOptions description sync

Originally committed as revision 6243 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-13 09:03:13 +00:00
Aurelien Jacobs
1dac8fea05 Enables back the mmx/sse optimized version of the vp3 idct.
It generates different md5sum than the reference C implementation,
but no visual difference, so enabled only when bitexact is not set.

Originally committed as revision 6241 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-12 20:58:17 +00:00
Kostya Shishkov
e179fbc850 Swap back and forward motion vectors to achieve correct picture
Originally committed as revision 6237 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-12 04:35:11 +00:00
Kostya Shishkov
1884a48bee Set motion vectors used in B-frames to zero by default
Originally committed as revision 6236 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-12 04:29:37 +00:00
Kostya Shishkov
c8868640c1 Use h264_chroma funcs in B-frames MC too
Originally committed as revision 6235 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-12 04:19:07 +00:00
Kostya Shishkov
b116cc7f95 Fix edge emulation for bicubic MC in B frames
Originally committed as revision 6234 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-12 04:16:28 +00:00
Kostya Shishkov
f9942ba94b 2989l: Set avctx->has_b_frames value in header and don't change it
Originally committed as revision 6233 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-12 04:13:00 +00:00
Aurelien Jacobs
0dd5866af7 don't use dsp.put_pixels_tab[0][0] with unaligned ptr (fix artifacts on altivec)
Originally committed as revision 6231 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-11 23:29:24 +00:00
Siarhei Siamashka
024da4b146 armv5 optimizations
patch by Siarhei Siamashka siarhei.siamashka at gmail com

Originally committed as revision 6228 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-10 22:29:02 +00:00
Panagiotis Issaris
8c3dd5dc9c Use and set sane AVOption defaults
Patch by Takis
Original thread:
Date: Sep 8, 2006 3:26 PM
Subject: [Ffmpeg-devel] [PATCH 2/2] Use and set sane AVOption defaults

Originally committed as revision 6227 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-10 21:51:08 +00:00
Panagiotis Issaris
493f7857de adds doxygen docs to av_opt_set_defaults. Patch by Takis
Originally committed as revision 6226 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-10 20:46:20 +00:00
Panagiotis Issaris
73a8ceaa17 make AVOptions default value field work.
Patch by Panagiotis Issaris % takis P issaris A uhasselt P be %
Original thread:
Date: Sep 8, 2006 3:22 PM
Subject: [Ffmpeg-devel] [PATCH 1/2] Enable usage of AVOption default value

Originally committed as revision 6224 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-10 20:21:40 +00:00
Diego Biurrun
b7cff9ce7c Remove unused variable.
Originally committed as revision 6223 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-10 18:16:19 +00:00
Luca Barbato
8faf544392 Cleanup, from Emanuele Giaquinta <exg@gentoo.org>
Originally committed as revision 6221 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-10 15:36:53 +00:00
Diego Biurrun
04d7f60143 Add official LGPL license headers to the files that were missing them.
Originally committed as revision 6219 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-10 14:02:42 +00:00
Kostya Shishkov
dc43482b26 Disable B-frames decoding until they produce correct picture
Originally committed as revision 6218 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-10 04:24:53 +00:00
Aurelien Jacobs
d120e4026d rename vector to vect to avoid clash with Apple gcc
Originally committed as revision 6217 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-09 22:53:44 +00:00
Diego Biurrun
9a8e6f8708 Add proper GPL headers.
Originally committed as revision 6216 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-09 22:04:43 +00:00
Aurelien Jacobs
5ce117c37c VP5 and VP6 video decoder
Originally committed as revision 6213 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-09 17:19:37 +00:00
Kostya Shishkov
34a8dcd031 Drop unneeded checks before av_free() and change to av_freep() where it's more suitable.
Originally committed as revision 6212 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-09 11:40:41 +00:00
Kostya Shishkov
767516533d Support for BI-frames in Advanced Profile
Originally committed as revision 6211 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-09 11:32:36 +00:00
Kostya Shishkov
d429c98208 Don't print header bits by default
Originally committed as revision 6210 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-09 11:29:17 +00:00
Kostya Shishkov
6cf6d0ec1a [Cosmetics] Remove if(profile < PROFILE_ADVANCED) from decode_sequence_header()
as it's always true and reindent code inside by the way.

Originally committed as revision 6209 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-09 11:28:02 +00:00
Kostya Shishkov
d1d28ddf99 [Cosmetics] Remove some done TODOs/FIXMEs from comments
Originally committed as revision 6208 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-09 11:23:44 +00:00
Kostya Shishkov
1dc1ce643e Proper support for B/BI frames
Originally committed as revision 6207 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-09 11:21:56 +00:00
Panagiotis Issaris
5e89b50b29 undefines a few temporary defines which were not undefined after their usage.
Patch by Panagiotis Issaris

Originally committed as revision 6205 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-09 08:49:28 +00:00
Michael Niedermayer
7b95bc5842 print more correct error messges
Originally committed as revision 6194 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-08 08:27:51 +00:00
Kostya Shishkov
7ff0b84f0e Handle the rest of known blocks (by skipping them)
Originally committed as revision 6185 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-07 04:08:34 +00:00
Kostya Shishkov
096bc417ae Tests for overreading input data
Originally committed as revision 6184 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-07 04:05:04 +00:00
Kostya Shishkov
54b55c8da0 Cursor drawing support
Originally committed as revision 6183 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-07 04:01:42 +00:00
Diego Biurrun
f7b106cb35 Switch license from GPL to LGPL. The original author agreed to this as
stated in the commit message adding this file.

Originally committed as revision 6181 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-06 10:17:28 +00:00
Alan Curry
afd1a2d88e Fix buffer handling for stereo mace files, fixes some random sig11
Patch by Alan Curry !<! pacman !@! TheWorld !.! com !>!

Originally committed as revision 6178 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-05 21:17:30 +00:00
Corey Hickey
577cd173e3 second pass encoding changes:
- warn rather than fail when specified bitrate need not be used
- fail with a useful message when specified bitrate is too low
- print potentially useful information if verbose

patch based mostly on suggestions from Michael Niedermayer and Loren Merritt

Originally committed as revision 6176 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-05 15:46:06 +00:00
Diego Biurrun
157cba3bdb Mark this file properly as LGPL as allowed by its author Leon van Stuivenberg.
Clean up the outdated URLs in the header.

Originally committed as revision 6175 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-05 13:50:36 +00:00
Kostya Shishkov
805934b3e4 Try to handle all chunks, previous scheme was not correct.
Originally committed as revision 6173 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-05 07:31:53 +00:00
Kostya Shishkov
c0d6fc1f73 Handle raw blocks correctly (both updating pointer and storing to memory)
Originally committed as revision 6172 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-05 07:29:26 +00:00
Kostya Shishkov
eb57c88973 VMware Video decoder (fourcc: VMnc)
Originally committed as revision 6171 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-05 04:37:14 +00:00
Michael Niedermayer
353e433b96 seems the output of that code is never used
Originally committed as revision 6170 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-04 21:11:54 +00:00
Måns Rullgård
ae5e7e7f10 inline align_get_bits()
Originally committed as revision 6169 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-04 17:25:38 +00:00
Corey Hickey
29b372b9e9 error message spelling typo
Originally committed as revision 6168 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-04 17:08:20 +00:00
Diego Biurrun
d67898427b Exchange informal GPL notice by official license header.
Originally committed as revision 6165 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-04 09:37:28 +00:00
Kostya Shishkov
3c275f6def VC-1 Advanced Profile support (progressive only, tested on WVC1 samples)
Originally committed as revision 6162 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-04 04:24:49 +00:00
Roman Shaposhnik
3c8f30a745 * Restructuring the division of labor between DV codec and DV format
[ Based on a patch by Brian Brice (bbrice at newtek dot com) ]

Originally committed as revision 6161 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-04 03:33:11 +00:00
Diego Biurrun
712ae911bb The license of this file is LGPL, as clarified by Fabrice.
Originally committed as revision 6160 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-03 22:16:54 +00:00
Diego Biurrun
73c42241b4 Add copyright notice from the Independent JPEG Group instead of referring
to a README we don't include.

Originally committed as revision 6157 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-03 16:15:29 +00:00
Justin Ruggles
1df051e197 Fix 2 bit allocation bugs. One fix enables using a higher bandwidth code. The other fixes an issue with floorcod=7.
Originally committed as revision 6156 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-03 15:59:08 +00:00
Kostya Shishkov
60aae27ad9 AltiVec version of put_no_rnd_h264_chroma_pixels_tab[0] (slightly changed version of put_h264_chroma_pixels_tab[0])
Originally committed as revision 6154 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-03 04:44:50 +00:00
Måns Rullgård
0e176c3eb5 remove redundant declarations
Originally committed as revision 6153 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-02 23:10:28 +00:00
Kostya Shishkov
6243da0d50 Drop put_vc1_qpel_pixels_tab as they won't be needed anymore.
Originally committed as revision 6152 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-02 04:58:51 +00:00
Kostya Shishkov
b0c8e1b80a Replace usage of put_*_vc1_qpel_pixels_tab with put_*_h264_chroma_pixels_tab
Originally committed as revision 6151 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-02 04:53:49 +00:00
Kostya Shishkov
e34350a376 New function for chroma MC (will be used in VC-1)
Originally committed as revision 6150 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-02 04:52:00 +00:00
Loren Merritt
f7e89c73e3 snow cosmetics: merge the sliced and non-sliced versions of add_yblock
Originally committed as revision 6149 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-01 22:02:38 +00:00
Loren Merritt
74e6a8aade fix snow 1pass rc: the qlog used and the one written to the bitstream weren't always the same.
Originally committed as revision 6148 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-01 21:51:35 +00:00
Luca Barbato
9814587500 Align the input buffer in ffplay, introduce a public macro for aligned declarations
Update the avcodec_decode_audio and the float_to_int16 descriptions accordingly

Originally committed as revision 6147 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-31 19:14:00 +00:00
Luca Barbato
27303c8abc Proper fix for the corner case that would have been corrected before, praise&blame to me and exg in equal shares
Originally committed as revision 6143 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-31 15:44:37 +00:00
Luca Barbato
7e82145755 Revert previous commit
Originally committed as revision 6142 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-31 15:27:26 +00:00
Luca Barbato
99d239b3e7 Fix float_to_int16, unaligned case, broken by the previous commit
Originally committed as revision 6141 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-31 15:15:14 +00:00
Kostya Shishkov
74691b7bcb New qpel MC functions conforming to VC-1 standard.
Existing DSPUtil functions cause chroma artifacts on some files.

Originally committed as revision 6139 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-31 04:44:54 +00:00
Kostya Shishkov
2d5eadccb5 Spelling
Originally committed as revision 6138 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-31 04:42:13 +00:00
Kostya Shishkov
66ff2c1f52 Motion compensation for luma always use halfpel precision.
Originally committed as revision 6137 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-31 04:39:27 +00:00
Michael Niedermayer
504ee036ee fix b pyramid in mp4 muxing if no dts are provided to the muxer
Originally committed as revision 6133 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-30 21:18:17 +00:00
Nico Sabbi
bb42f8296f install opt.h
Originally committed as revision 6126 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-29 21:23:27 +00:00
Loren Merritt
776fe466b2 slightly faster deblock
Originally committed as revision 6121 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-29 03:07:58 +00:00
Aurelien Jacobs
a1b65018f1 use the A32_BITSTREAM_READER by default on ARM (faster)
Originally committed as revision 6120 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-28 22:25:30 +00:00
Aurelien Jacobs
75c998a219 force usage of ALT_BITSTREAM_READER where needed
Originally committed as revision 6118 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-28 18:46:01 +00:00
Aurelien Jacobs
8fbc6aae75 move some functions to bitstream.h to avoid conflicts
between different  bitstream readers in different codecs

Originally committed as revision 6117 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-28 18:44:49 +00:00
Michael Niedermayer
1b4f17fafa fix buffer handling
Originally committed as revision 6116 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-28 16:15:40 +00:00
Luca Abeni
00b2fa864e Minimal support for the new pixel formats in libavcodec
Originally committed as revision 6115 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-28 14:56:47 +00:00
Loren Merritt
3e20143ee7 mmx implementation of deblocking strength decision.
2-3% faster h264.

Originally committed as revision 6113 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-28 09:33:01 +00:00
Michael Niedermayer
ee3bc9d386 overread AV_LOG_ERROR -> AV_LOG_DEBUG
Originally committed as revision 6111 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-27 21:45:26 +00:00
Michael Niedermayer
c0c66dd81d fix low bitrate mp3
Originally committed as revision 6107 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-27 11:42:40 +00:00
Loren Merritt
bfe328caf0 tweak cabac. 0.5% faster h264.
Originally committed as revision 6106 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-27 09:19:02 +00:00
Michael Niedermayer
39b434c6ae check the validity of the amount of the remaining bytes in the bitsteam before memcpy
Originally committed as revision 6105 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-27 07:19:11 +00:00
Michael Niedermayer
716d73b47d unused var
Originally committed as revision 6104 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-26 20:16:54 +00:00
Michael Niedermayer
4e2d6a456d dont copy frame if the whole mp1/2/3 frame is available in one piece in the input
Originally committed as revision 6103 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-26 18:56:24 +00:00
Aurelien Jacobs
6ff3b2b838 Fix A32_BITSTREAM_READER compilation on x86
Originally committed as revision 6102 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-26 18:12:16 +00:00
Michael Niedermayer
d6bea62338 make mpa_decode_header() 10 times faster
Originally committed as revision 6101 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-26 18:02:52 +00:00
Michael Niedermayer
731d0b1aaa another silly typo which surprisingly neither valgrind nor cmp of the file output cought
Originally committed as revision 6100 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-26 17:29:31 +00:00
Michael Niedermayer
d37bb9d8c1 10l found by valgrind
Originally committed as revision 6099 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-26 15:24:13 +00:00
Michael Niedermayer
06e7fb82a4 remove duplicated parser, people who pass random gibblets of the bitstream into the decoder will have to pass it through a AVParser like for all other codecs too
remove silly internal buffering architecture (removes 1 memcpy() of the bitstream)
mp3on4 and mp3adu untested

Originally committed as revision 6098 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-26 12:19:05 +00:00
Michael Niedermayer
6e4703cac7 2nd try of skip_bits_long() for the ALT reader
1st try for the LIBMPEG2 reader
simplify init_get_bits()

Originally committed as revision 6097 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-26 11:50:23 +00:00
Michael Niedermayer
a42ec9f484 make A32 reader align its ptr during init no matter what missaligned mess is given to it
Originally committed as revision 6096 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-26 11:37:33 +00:00
Michael Niedermayer
3dddf21fcc 3rd try :)
Originally committed as revision 6095 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-26 11:26:54 +00:00
Michael Niedermayer
1491e21cdb 2nd try for a skip_bits_long() for the A32 reader
Originally committed as revision 6094 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-26 11:06:33 +00:00
Michael Niedermayer
5a7bd28335 move align_get_bits() to .h to avoid conflicts between different bitstream readers in different codecs
add a skip_bits_long() which can skip by any amount in any direction (several codecs contain half working hacks to do that)

Originally committed as revision 6093 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-26 10:26:14 +00:00
Michael Niedermayer
727c236a6b prevent bitstream reader to be overriden
Originally committed as revision 6092 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-26 09:34:02 +00:00
Michael Niedermayer
9bffa9e7af avoid branch
Originally committed as revision 6088 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-25 14:42:32 +00:00
Michael Niedermayer
14168ddb28 move variable declarations so that their scope is smaller
Originally committed as revision 6087 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-25 13:58:27 +00:00
Michael Niedermayer
bc2d2757bb move the +400 out of the innermost loop
Originally committed as revision 6086 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-25 13:46:56 +00:00
Michael Niedermayer
9b49f89cdf avoid reading exponent twice
Originally committed as revision 6085 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-25 13:36:27 +00:00
Michael Niedermayer
1f1d675b68 reduce size of vlc table, thats slightly faster here
Originally committed as revision 6084 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-25 12:26:34 +00:00
Michael Niedermayer
55017f35da try to avoid l3_unscale() by using a table
Originally committed as revision 6083 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-25 11:55:20 +00:00
Michael Niedermayer
f8347c4167 replace l3_unscale(1, exponents[pos]) by LUT
Originally committed as revision 6082 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-25 10:00:30 +00:00
Michael Niedermayer
7ca1ed0d9c maybe fixing the segfault on ARM
Originally committed as revision 6081 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-25 02:40:52 +00:00
Aurelien Jacobs
5902bdd8d4 cook shouldn't try to enforce the bitstream reader type
Originally committed as revision 6080 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-24 21:59:20 +00:00
Baptiste Coudurier
f31065f6e5 add codec id and tag for JPEG 2000
Originally committed as revision 6076 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-24 14:13:57 +00:00
Michael Niedermayer
92c5cb62b0 10l typo
Originally committed as revision 6074 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-24 12:35:53 +00:00
Michael Niedermayer
e90a72701e avoid a few if(x==0) checks in the inner loops
Originally committed as revision 6073 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-24 11:18:41 +00:00
Michael Niedermayer
25be48eb48 fix non ALT bitstream reader
Originally committed as revision 6070 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-24 09:24:50 +00:00
Michael Niedermayer
6430ce0f72 optimize reorder_block() though this function seems to be executed too rarely for this to make much difference
Originally committed as revision 6068 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-24 08:40:09 +00:00
Michael Niedermayer
a753e55bb5 simplify
Originally committed as revision 6067 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-24 08:39:07 +00:00
Michael Niedermayer
a08a502eda dont copy the whole GetBitContext around
Originally committed as revision 6062 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-24 06:57:32 +00:00
Michael Niedermayer
3328ec6331 faster handling of zero coeffs in the low freq decode
Originally committed as revision 6061 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-24 01:12:26 +00:00
Michael Niedermayer
3c693e7743 optimizing high freq decode
Originally committed as revision 6060 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-24 01:01:39 +00:00
Michael Niedermayer
daf4cd9ac3 use memset() instead of slow c loops
Originally committed as revision 6059 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-24 00:03:51 +00:00
Michael Niedermayer
c7aa36964e simplify
Originally committed as revision 6058 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-23 23:40:03 +00:00
Aurelien Jacobs
acba32385b fix arm asm compilation in mpegaudiodec
Originally committed as revision 6057 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-23 23:39:27 +00:00
Baptiste Coudurier
b3701f5cc0 Alignment of the LT window, segfault fix patch by Baptiste Coudurier.
Originally committed as revision 6051 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-22 16:23:56 +00:00
Michael Niedermayer
69fd15f871 MUL* for ARM code based on a patch by Siarhei Siamashka
untested

Originally committed as revision 6050 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-22 13:25:09 +00:00
Michael Niedermayer
f617adedc8 replace MULL with asm too, no significnat speedup but its probably better to not take any chances, some versions of gcc will almost certainly mess it up too if they can
Originally committed as revision 6049 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-22 12:07:02 +00:00
Michael Niedermayer
47a0cd7408 replacing MULH by asm for x86
about 30% faster imdct36()

Originally committed as revision 6048 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-22 11:51:09 +00:00
Michael Niedermayer
5ab1972b53 indent preprocessor directives
Originally committed as revision 6047 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-22 11:16:47 +00:00
Michael Niedermayer
355903f5a8 make high precission synth filter 3 times faster on x86
Originally committed as revision 6046 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-22 11:11:04 +00:00
Michael Niedermayer
0bd2483a75 replace MULL by MULH + shift in dct32() (code is very slightly faster, and the compiler should be able to optimize the shift away on 64bit archs)
Originally committed as revision 6045 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-22 06:24:59 +00:00
Michael Niedermayer
eb6447766d replace a few MULL by MULH
Originally committed as revision 6039 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-21 12:12:43 +00:00