Martin Storsjö
00c3b67b8a
cosmetics: Align codec declarations
...
Also break some long lines, remove codec function placeholder comments
and add spaces in sample/pixel format lists.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Paul B Mahol
ae2c33b0c2
cosmetics: remove superfluous curly brackets
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
487996f64a
flacenc: switch to ff_alloc_packet2()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Justin Ruggles
910bdb9a42
flacenc: use AVCodec.encode2()
13 years ago
Diego Biurrun
32f3c541bc
doxygen: Do not include license boilerplates in Doxygen comment blocks.
13 years ago
Anton Khirnov
0dc6bab092
lavc: remove disabled FF_API_FLAC_GLOBAL_OPTS cruft.
13 years ago
Anton Khirnov
145f741e11
AVOptions: rename FF_OPT_TYPE_* => AV_OPT_TYPE_*
13 years ago
Anton Khirnov
ec6402b7c5
lavc: use designated initialisers for all codecs.
...
It's more readable and less prone to breakage.
13 years ago
Michael Niedermayer
7ba262527f
flacenc: mark as lossless codec
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Mans Rullgard
5e1166b31b
Mark some variables with av_unused
...
Most of these variables are only used in av_dlog statements, some
are required but not used by other macros.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Anton Khirnov
880fa21830
flacenc: use proper initializers for AVOption default values.
...
default_val was recently changes from double to a union, current code
wasn't updated for that.
14 years ago
Anton Khirnov
188dea1dbf
lavc: move some flac-specific options to its private context.
14 years ago
Carl Eugen Hoyos
6c93641683
Warn if the source has unsupported (or no) channel layout.
14 years ago
Anton Khirnov
01a4259b8d
lavc: remove the FF_API_USE_LPC cruft.
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
Aurelien Jacobs
0743de4ffd
add FF_API_USE_LPC define to disable the deprecated AVCodecContext.use_lpc field
...
Originally committed as revision 25275 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Justin Ruggles
6768beb4a8
cosmetics: rename output_* to write_*
...
Originally committed as revision 24634 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
3d2cd42f8a
Simplify verbatim mode fallback by checking the frame size before writing.
...
Originally committed as revision 24632 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
2249a7f312
Change max_framesize for small final frame.
...
Originally committed as revision 24631 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
7c29a5de25
Calculate an exact frame size before writing. Now the buffer size requirements
...
can be known exactly, so larger frame sizes can be safely encoded without buffer
overwrite.
Originally committed as revision 24630 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
675eb677c5
cosmetics: rename find_subblock_rice_params() to find_subframe_rice_params()
...
Originally committed as revision 24629 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
089c18f315
Reduce number of input parameters to find_subblock_rice_params().
...
Originally committed as revision 24628 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
d309f01950
10l: fix bit count for frame header
...
Originally committed as revision 24627 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
b22f9d6535
Simplify fallback to verbatim mode encoding.
...
Originally committed as revision 24626 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
45e2908757
cosmetics: line wrap and vertical alignment
...
Originally committed as revision 24625 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
8fbb8d31d8
Combine calc_rice_params_fixed() and calc_rice_params_lpc() into a single
...
function.
Originally committed as revision 24624 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
43b3273e5b
Remove unneeded wrapper function.
...
Originally committed as revision 24622 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
0f5cc12c4f
Remove duplicate code by adding a flag for encoding in verbatim mode.
...
Originally committed as revision 24621 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
93d65e3d92
Estimate frame size during encoding.
...
Originally committed as revision 24619 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
eb96f1698a
cosmetics: indentation
...
Originally committed as revision 24612 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
520effb9b5
Combine output_subframe() and output_subframes().
...
Originally committed as revision 24611 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
fb443a6f3b
Remove unneeded variable.
...
Originally committed as revision 24610 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
724f34716b
cosmetics: indentation
...
Originally committed as revision 24609 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
6d263f41ae
Combine output_subframe_verbatim() and output_subframe_lpc().
...
Originally committed as revision 24608 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
6266cfb4ce
Combine and simplify output_residual() and output_subframe_lpc().
...
Originally committed as revision 24607 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
fc001d6cc1
cosmetics: reindent
...
Originally committed as revision 24606 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
175a57113f
Combine and simplify output_subframe_fixed() and output_subframe_lpc().
...
Originally committed as revision 24605 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
89912b5ff1
Combine and simplify output_subframe_constant() and output_subframe_verbatim().
...
Originally committed as revision 24604 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
1f1c05b09f
Pass FlacSubframe to output_subframe_* instead of channel number.
...
Originally committed as revision 24603 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
15f537ed53
cosmetics: change FlacEncodeContext variable name from ctx to s in several
...
places for consistency.
Originally committed as revision 24602 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
871a24f3bf
Set coded_frame->pts in the FLAC encoder
...
Originally committed as revision 24601 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
27e3418844
Do not need to set coded_frame->key_frame = 1 because it is already set in
...
avcodec_alloc_frame().
Originally committed as revision 24600 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Justin Ruggles
7fe0c7c823
Move debug logging of compression options to a single function.
...
Originally committed as revision 24599 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago