Justin Ruggles
65d15aec77
alacenc: return AVERROR codes in alac_encode_frame()
13 years ago
Justin Ruggles
302daf5800
alacenc: calculate a new max frame size for the final small frame
...
Gives a better estimate of buffer requirements and a better decision of
whether or not to use verbatim mode.
13 years ago
Justin Ruggles
fc9cf0b2a6
alacenc: pretty-printing and other cosmetics
13 years ago
Justin Ruggles
51c2483862
alacenc: fix error handling and potential memleaks in alac_encode_init()
13 years ago
Justin Ruggles
6e63228323
alacenc: do not set coded_frame->key_frame
...
It is already set in avcodec_alloc_frame()
13 years ago
Justin Ruggles
64fe3eaeb3
alacenc: do not set bits_per_coded_sample
...
encoded ALAC does not have a fixed number of bits per sample
13 years ago
Justin Ruggles
43a4cb070b
alacenc: remove unneeded frame_size check in alac_encode_frame()
13 years ago
Diego Biurrun
32f3c541bc
doxygen: Do not include license boilerplates in Doxygen comment blocks.
13 years ago
Justin Ruggles
bb63475aec
alacenc: implement the 2-pass prediction type.
...
This isn't used by the reference encoder, but it is supported by the decoder.
13 years ago
Justin Ruggles
149e1b0468
alacenc: do not generate invalid multi-channel ALAC files
13 years ago
Nathan Adil Maxson
d0fd6fc201
Cleaned up alacenc.c
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Anton Khirnov
ec6402b7c5
lavc: use designated initialisers for all codecs.
...
It's more readable and less prone to breakage.
14 years ago
Carl Eugen Hoyos
007f773942
Encoding alac with more than two channels is not supported.
14 years ago
Anton Khirnov
188dea1dbf
lavc: move some flac-specific options to its private context.
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Elio Pettenò
e7e2df27f8
Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.
...
None of these symbols should be accessed directly, so declare them as
hidden.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit d36beb3f69
)
14 years ago
Diego Elio Pettenò
d36beb3f69
Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.
...
None of these symbols should be accessed directly, so declare them as
hidden.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Justin Ruggles
7101b18508
Separate window function from autocorrelation.
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 77a78e9bdc
)
14 years ago
Justin Ruggles
0d8837bdda
Move lpc_compute_autocorr() from DSPContext to a new struct LPCContext.
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 56f8952b25
)
14 years ago
Justin Ruggles
77a78e9bdc
Separate window function from autocorrelation.
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Justin Ruggles
56f8952b25
Move lpc_compute_autocorr() from DSPContext to a new struct LPCContext.
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Stefano Sabatini
5d6e4c160a
Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enum
...
SampleFormat with AVSampleFormat.
Originally committed as revision 25730 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Reimar Döffinger
edac49daf5
Use "const" qualifier for pointers that point to input data of
...
audio encoders.
This is purely for clarity/documentation purposes.
Originally committed as revision 24481 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
23940f1405
Add AVCodecContext.lpc_type and Add AVCodecContext.lpc_passes fields.
...
Add AVLPCType enum.
Deprecate AVCodecContext.use_lpc.
Originally committed as revision 24199 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Jai Menon
a7fc91468c
Remove useless header inclusion.
...
Originally committed as revision 22851 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Jai Menon
3ffdd09a7a
alacenc : Report supported input sample formats.
...
Originally committed as revision 22829 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
72415b2adb
Define AVMediaType enum, and use it instead of enum CodecType, which
...
is deprecated and will be dropped at the next major bump.
Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Jai Menon
215dab5fee
alacenc : use private compression_level value consistently.
...
Originally committed as revision 20261 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Jai Menon
a0992374ee
alacenc : Move some code around for clarity.
...
Originally committed as revision 20256 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
9a9964c50e
cosmetics: reindent and line wrap after last commit
...
Originally committed as revision 20174 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
d6eee9f3e9
alacenc: add a fixed LPC coefficient mode as compression level 1. old
...
compression level 1 is now compression level 2 and is still the default.
Originally committed as revision 20173 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
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
Jai Menon
2370338850
Fix max_coded_frame_size computation to account for byte alignment.
...
Fixes issue 1386.
Originally committed as revision 19859 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
9106a698e7
Rename bitstream.h to get_bits.h.
...
Originally committed as revision 18494 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Jai Menon
309a8bb8a1
alacenc : cosmetics : remove misleading comment
...
Originally committed as revision 18493 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
Benoit Fouet
4f46099b90
Use sign_extend().
...
On behalf of Jai.
Originally committed as revision 17759 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Jai Menon
3d5e1bfb20
Fix an overflow in the predictor.
...
fixes issue 636
Patch by Jai.
Originally committed as revision 16007 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Luca Abeni
dd1c8f3e6e
Bump Major version, this commit is almost just renaming bits_per_sample to
...
bits_per_coded_sample but that cannot be done seperately.
Patch by Luca Abeni
Also reset the minor version and fix the forgotton change to libfaad.
Note: The API/ABI should not be considered stable yet, there still may
be a change done here or there if some developer has some cleanup ideas and
patches!
Originally committed as revision 15262 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Jai Menon
ec6cda8c6e
alacenc : perform decorrelation only for stereo samples
...
Originally committed as revision 14904 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Jai Menon
a1ab56c5a8
alacenc: compare against ALAC_MAX_LPC_ORDER instead of MAX_LPC_ORDER
...
Originally committed as revision 14847 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Jai Menon
e13894e80e
alacenc: last few hunks approved by michael
...
Originally committed as revision 14845 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ramiro Polla
cc940caf4d
alacenc: Use user-specified min and max prediction order.
...
Originally committed as revision 14844 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ramiro Polla
0d962ecb70
Import more OKed parts of ALAC encoder from GSoC repo.
...
Originally committed as revision 14843 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ramiro Polla
ca04826627
Import more ok'd parts of ALAC encoder from GSoC repo.
...
Originally committed as revision 14820 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ramiro Polla
83e92ab6b8
alacenc: NULL_IF_CONFIG_SMALL long_name.
...
Originally committed as revision 14801 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ramiro Polla
6b93147684
Import ok'd parts of ALAC encoder from GSoC repo.
...
Originally committed as revision 14798 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago