summaryrefslogtreecommitdiff
path: root/libavcodec/flacenc.c
Commit message (Collapse)AuthorAge
* lavc: use designated initialisers for all codecs.Anton Khirnov2011-07-29
| | | | It's more readable and less prone to breakage.
* Mark some variables with av_unusedMans Rullgard2011-06-03
| | | | | | | 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>
* flacenc: use proper initializers for AVOption default values.Anton Khirnov2011-05-11
| | | | | default_val was recently changes from double to a union, current code wasn't updated for that.
* lavc: move some flac-specific options to its private context.Anton Khirnov2011-05-10
|
* lavc: remove the FF_API_USE_LPC cruft.Anton Khirnov2011-04-19
|
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.Diego Elio Pettenò2011-01-26
| | | | | | | None of these symbols should be accessed directly, so declare them as hidden. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Separate window function from autocorrelation.Justin Ruggles2011-01-21
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Move lpc_compute_autocorr() from DSPContext to a new struct LPCContext.Justin Ruggles2011-01-21
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enumStefano Sabatini2010-11-12
| | | | | | SampleFormat with AVSampleFormat. Originally committed as revision 25730 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add FF_API_USE_LPC define to disable the deprecated AVCodecContext.use_lpc fieldAurelien Jacobs2010-09-30
| | | | Originally committed as revision 25275 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: rename output_* to write_*Justin Ruggles2010-07-31
| | | | Originally committed as revision 24634 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Simplify verbatim mode fallback by checking the frame size before writing.Justin Ruggles2010-07-31
| | | | Originally committed as revision 24632 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change max_framesize for small final frame.Justin Ruggles2010-07-31
| | | | Originally committed as revision 24631 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Calculate an exact frame size before writing. Now the buffer size requirementsJustin Ruggles2010-07-31
| | | | | | | 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
* cosmetics: rename find_subblock_rice_params() to find_subframe_rice_params()Justin Ruggles2010-07-31
| | | | Originally committed as revision 24629 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reduce number of input parameters to find_subblock_rice_params().Justin Ruggles2010-07-31
| | | | Originally committed as revision 24628 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 10l: fix bit count for frame headerJustin Ruggles2010-07-31
| | | | Originally committed as revision 24627 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Simplify fallback to verbatim mode encoding.Justin Ruggles2010-07-31
| | | | Originally committed as revision 24626 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: line wrap and vertical alignmentJustin Ruggles2010-07-31
| | | | Originally committed as revision 24625 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Combine calc_rice_params_fixed() and calc_rice_params_lpc() into a singleJustin Ruggles2010-07-31
| | | | | | function. Originally committed as revision 24624 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove unneeded wrapper function.Justin Ruggles2010-07-31
| | | | Originally committed as revision 24622 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove duplicate code by adding a flag for encoding in verbatim mode.Justin Ruggles2010-07-31
| | | | Originally committed as revision 24621 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Estimate frame size during encoding.Justin Ruggles2010-07-31
| | | | Originally committed as revision 24619 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: indentationJustin Ruggles2010-07-30
| | | | Originally committed as revision 24612 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Combine output_subframe() and output_subframes().Justin Ruggles2010-07-30
| | | | Originally committed as revision 24611 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove unneeded variable.Justin Ruggles2010-07-30
| | | | Originally committed as revision 24610 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: indentationJustin Ruggles2010-07-30
| | | | Originally committed as revision 24609 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Combine output_subframe_verbatim() and output_subframe_lpc().Justin Ruggles2010-07-30
| | | | Originally committed as revision 24608 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Combine and simplify output_residual() and output_subframe_lpc().Justin Ruggles2010-07-30
| | | | Originally committed as revision 24607 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: reindentJustin Ruggles2010-07-30
| | | | Originally committed as revision 24606 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Combine and simplify output_subframe_fixed() and output_subframe_lpc().Justin Ruggles2010-07-30
| | | | Originally committed as revision 24605 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Combine and simplify output_subframe_constant() and output_subframe_verbatim().Justin Ruggles2010-07-30
| | | | Originally committed as revision 24604 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Pass FlacSubframe to output_subframe_* instead of channel number.Justin Ruggles2010-07-30
| | | | Originally committed as revision 24603 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: change FlacEncodeContext variable name from ctx to s in severalJustin Ruggles2010-07-30
| | | | | | places for consistency. Originally committed as revision 24602 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Set coded_frame->pts in the FLAC encoderJustin Ruggles2010-07-30
| | | | Originally committed as revision 24601 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Do not need to set coded_frame->key_frame = 1 because it is already set inJustin Ruggles2010-07-30
| | | | | | avcodec_alloc_frame(). Originally committed as revision 24600 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move debug logging of compression options to a single function.Justin Ruggles2010-07-30
| | | | Originally committed as revision 24599 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add 2 failed memory allocation checksJustin Ruggles2010-07-30
| | | | Originally committed as revision 24598 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: pretty-print flacenc.cJustin Ruggles2010-07-30
| | | | Originally committed as revision 24597 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use "const" qualifier for pointers that point to input data ofReimar Döffinger2010-07-24
| | | | | | | audio encoders. This is purely for clarity/documentation purposes. Originally committed as revision 24481 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add AVCodecContext.lpc_type and Add AVCodecContext.lpc_passes fields.Justin Ruggles2010-07-11
| | | | | | | Add AVLPCType enum. Deprecate AVCodecContext.use_lpc. Originally committed as revision 24199 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add av_ prefix to bswap macrosMåns Rullgård2010-07-10
| | | | Originally committed as revision 24170 to svn://svn.ffmpeg.org/ffmpeg/trunk
* bswap: change ME to NE in macro namesMåns Rullgård2010-07-10
| | | | | | | Other parts of FFmpeg use NE (native endian) rather than ME (machine). This makes it consistent. Originally committed as revision 24169 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix grammar errors in documentationMåns Rullgård2010-06-30
| | | | Originally committed as revision 23904 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flacenc: convert VLA to fixed sizeMåns Rullgård2010-06-23
| | | | Originally committed as revision 23744 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace all remaining occurrences of AVERROR_NOMEM withStefano Sabatini2010-04-03
| | | | | | | | | AVERROR(ENOMEM). AVERROR_NOMEM is deprecated and will be dropped at the next libavutil major bump. Originally committed as revision 22791 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Define AVMediaType enum, and use it instead of enum CodecType, whichStefano Sabatini2010-03-30
| | | | | | is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move autocorrelation function from flacenc.c to lpc.c. Also rename theJustin Ruggles2009-10-17
| | | | | | | | corresponding dsputil functions and remove their dependency on the FLAC encoder. Fixes Issue1486. Originally committed as revision 20266 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make sample_fmts and channel_layouts compound literals const to reduce size ofReimar Döffinger2009-09-06
| | | | | | .data section. Originally committed as revision 19787 to svn://svn.ffmpeg.org/ffmpeg/trunk