Reimar Döffinger
43d7c6118d
put_bits can only reliably write up to 31 bit bits, above it relies on
...
undefined shift behaviour.
Document this, fix the assert and add a put_bits32 to handle writing 32
bits and use that where necessary.
Originally committed as revision 20124 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
5200b90147
Do not needlessly add 7 to put_buts_count before dividing by 8,
...
flush_put_bits ensures it is divisible 8.
Originally committed as revision 20103 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
eb0d04c325
Use ff_put_string in vorbis encoder.
...
Originally committed as revision 20095 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
a7adcf29cf
whitespace cosmetics, prettyprinting, K&R coding style
...
Originally committed as revision 20080 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
0b8e7ab059
some more linebreak and brace placement cosmetics
...
Originally committed as revision 20071 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
5e56b30e1f
brace placement and linebreak cosmetics
...
Originally committed as revision 20070 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
01b2214758
Merge FFTContext and MDCTContext
...
Originally committed as revision 19931 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
b5f09d31c2
Make sample_fmts and channel_layouts compound literals const to reduce size of
...
.data section.
Originally committed as revision 19787 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Siarhei Siamashka
7d485f165f
Support for getting (i)MDCT output multiplied by a constant scaling factor.
...
Scaling (i)MDCT output has no runtime overhead and can be used to improve
performance of audio codecs. All the changes are only needed in
'ff_mdct_init' function and slow down initialization a bit.
Originally committed as revision 18855 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Stefano Sabatini
b275500706
Split bitstream.h, put the bitstream writer stuff in the new file
...
put_bits.h.
Originally committed as revision 18461 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
bad5537e2c
Use full internal pathname in doxygen @file directives.
...
Otherwise doxygen complains about ambiguous filenames when files exist
under the same name in different subdirectories.
Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Oded Shimon
05dee1b7df
Rename all vorbis encoder related typedefs to not use _t for POSIX compatibility
...
Originally committed as revision 16076 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Aurelien Jacobs
37d3e0667a
uses FF_ARRAY_ELEMS() where appropriate
...
Originally committed as revision 15662 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Bartłomiej Wołowiec
757d91a6e6
Use of new bitstream in vorbis_enc.c.
...
Patch by Bartłomiej Wołowiec b wolowiec AT students mimuw edu pl
Originally committed as revision 15622 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Jai Menon
91ba93e68b
vorbis_enc : set coded_frame->pts value to running sample count.
...
This is a temporary fix for issue 502 and will not be required when
we start using AVFrame for audio codecs.
Originally committed as revision 15285 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Loren Merritt
0a570e826d
remove mdct tmp buffer
...
Originally committed as revision 14702 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Peter Ross
fd76c37fd9
Modify all codecs to report their supported input and output sample format(s).
...
Originally committed as revision 14482 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Stefan Gehrer
0e1d6a4ca7
revert accidental const slipping in
...
Originally committed as revision 13949 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Stefan Gehrer
cf2baeb338
mark read-only data as const
...
Originally committed as revision 13947 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Stefano Sabatini
fe4bf37455
Make AVCodec long_names definition conditional depending on CONFIG_SMALL.
...
Originally committed as revision 13759 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Stefano Sabatini
d5202e4fda
Add long names to many AVCodec declarations.
...
patch by Stefano Sabatini, stefano.sabatini-lala poste it
Originally committed as revision 13005 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Zuxy Meng
98a6fff98c
Apply 'cold' attribute to init/uninit functions in libavcodec
...
Originally committed as revision 12525 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Diego Biurrun
e5a389a1b7
license header consistency cosmetics
...
Originally committed as revision 9484 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Diego Biurrun
755bfeabcc
misc spelling fixes
...
Originally committed as revision 9289 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Michael Niedermayer
7dda43eefd
vorbis suffers from the same sign flip issue as wma (so this lame workaround, though it arguably doesnt matter much where the sign is fliped back)
...
Originally committed as revision 7873 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
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
18 years ago
Oded Shimon
4109400295
more forgotten free's.
...
Originally committed as revision 6527 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Oded Shimon
419550990c
10l, wrong order in freeing
...
Originally committed as revision 6526 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Michael Niedermayer
35af7a9b27
slightly saner indention
...
Originally committed as revision 6525 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
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
18 years ago
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
18 years ago
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
18 years ago
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
18 years ago
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
18 years ago
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
18 years ago
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
18 years ago
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
18 years ago
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
18 years ago
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
18 years ago
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
18 years ago
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
18 years ago
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
18 years ago
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
18 years ago
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
18 years ago
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
18 years ago
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
18 years ago
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
18 years ago
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
18 years ago
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
18 years ago
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
18 years ago