summaryrefslogtreecommitdiffstats
path: root/libavcodec/flacenc.c
Commit message (Collapse)AuthorAgeFilesLines
* flacenc: mark as lossless codecMichael Niedermayer2011-06-191-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-06-041-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (21 commits) build: simplify commands for clean target swscale: split swscale.c in unscaled and generic conversion routines. swscale: cosmetics. swscale: integrate (literally) swscale_template.c in swscale.c. swscale: split out x86/swscale_template.c from swscale.c. swscale: enable hScale_altivec_real. swscale: split out ppc _template.c files from main swscale.c. swscale: remove indirections in ppc/swscale_template.c. swscale: split out unscaled altivec YUV converters in their own file. mpegvideoenc: fix multislice fate tests with threading disabled. mpegts: Wrap #ifdef DEBUG and av_hex_dump_log() combination in a macro. build: Simplify texi2html invocation through the --output option. Mark some variables with av_unused Replace avcodec_get_pix_fmt_name() by av_get_pix_fmt_name(). svq3: Check negative mb_type to fix potential crash. svq3: Move svq3-specific fields to their own context. rawdec: initialize return value to 0. Remove unused get_psnr() prototype rawdec: don't leak option strings. bktr: get default framerate from video standard. ... Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Mark some variables with av_unusedMans Rullgard2011-06-031-1/+1
| | | | | | | | | | | | | | 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>
* | Merge remote branch 'qatar/master'Michael Niedermayer2011-05-121-16/+16
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (32 commits) 10-bit H.264 x86 chroma v loopfilter asm Port SMPTE S302M audio decoder from FFmbc 0.3. [Copyright headers corrected] Fix crash of interlaced MPEG2 decoding h264pred: fix one more aliasing violation. doc/APIchanges: fill in missing hashes and dates. flacenc: use proper initializers for AVOption default values. lavc: deprecate named constants for deprecated antialias_algo. aac: workaround for compilation on cygwin swscale: extend YUV422p support to 10bits depth tiff: add support for inverted FillOrder for uncompressed data Remove unused softfloat implementation. h264pred: fix aliasing violations. rotozoom: Eliminate French variable name. rotozoom: Check return value of fread(). rotozoom: Return an error value instead of calling exit(). rotozoom: Make init_demo() return int and check for errors on invocation. rotozoom: Drop silly UINT8 typedef. rotozoom: Drop some unnecessary parentheses. rotozoom: K&R coding style cosmetics rtsp: Only do keepalive using GET_PARAMETER if the server supports it ... Conflicts: Changelog cmdutils.c doc/APIchanges doc/general.texi ffmpeg.c ffplay.c libavcodec/h264pred_template.c libavcodec/resample.c libavutil/pixfmt.h libavutil/softfloat.c libavutil/softfloat.h tests/rotozoom.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * flacenc: use proper initializers for AVOption default values.Anton Khirnov2011-05-111-16/+16
| | | | | | | | | | default_val was recently changes from double to a union, current code wasn't updated for that.
* | Merge remote branch 'qatar/master'Michael Niedermayer2011-05-111-30/+72
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (30 commits) AVOptions: make default_val a union, as proposed in AVOption2. arm/h264pred: add missing argument type. h264dsp_mmx: place bracket outside #if/#endif block. lavf/utils: fix ff_interleave_compare_dts corner case. fate: add 10-bit H264 tests. h264: do not print "too many references" warning for intra-only. Enable decoding of high bit depth h264. Adds 8-, 9- and 10-bit versions of some of the functions used by the h264 decoder. Add support for higher QP values in h264. Add the notion of pixel size in h264 related functions. Make the h264 loop filter bit depth aware. Template dsputil_template.c with respect to pixel size, etc. Template h264idct_template.c with respect to pixel size, etc. Preparatory patch for high bit depth h264 decoding support. Move some functions in dsputil.c into a new file dsputil_template.c. Move the functions in h264idct into a new file h264idct_template.c. Move the functions in h264pred.c into a new file h264pred_template.c. Preparatory patch for high bit depth h264 decoding support. Add pixel formats for 9- and 10-bit yuv420p. Choose h264 chroma dc dequant function dynamically. ... Conflicts: doc/APIchanges ffmpeg.c ffplay.c libavcodec/alpha/dsputil_alpha.c libavcodec/arm/dsputil_init_arm.c libavcodec/arm/dsputil_init_armv6.c libavcodec/arm/dsputil_init_neon.c libavcodec/arm/dsputil_iwmmxt.c libavcodec/arm/h264pred_init_arm.c libavcodec/bfin/dsputil_bfin.c libavcodec/dsputil.c libavcodec/h264.c libavcodec/h264.h libavcodec/h264_cabac.c libavcodec/h264_cavlc.c libavcodec/h264_loopfilter.c libavcodec/h264_ps.c libavcodec/h264_refs.c libavcodec/h264dsp.c libavcodec/h264idct.c libavcodec/h264pred.c libavcodec/mlib/dsputil_mlib.c libavcodec/options.c libavcodec/ppc/dsputil_altivec.c libavcodec/ppc/dsputil_ppc.c libavcodec/ppc/h264_altivec.c libavcodec/ps2/dsputil_mmi.c libavcodec/sh4/dsputil_align.c libavcodec/sh4/dsputil_sh4.c libavcodec/sparc/dsputil_vis.c libavcodec/utils.c libavcodec/version.h libavcodec/x86/dsputil_mmx.c libavformat/options.c libavformat/utils.c libavutil/pixfmt.h libswscale/swscale.c libswscale/swscale_internal.h libswscale/swscale_template.c tests/ref/seek/lavf_avi Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavc: move some flac-specific options to its private context.Anton Khirnov2011-05-101-30/+72
| |
* | Warn if the source has unsupported (or no) channel layout.Carl Eugen Hoyos2011-04-251-0/+22
| |
* | Merge remote branch 'qatar/master'Michael Niedermayer2011-04-201-11/+0
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (37 commits) In avcodec_open(), set return code to an error value only when an error occurs instead of unconditionally at the start of the function. lavc: remove reference to opt.h from Makefile. prefer avio_check() over url_exist() avio: remove AVIO_* access symbols in favor of new AVIO_FLAG_* symbols lavu: remove misc disabled cruft lavu: remove FF_API_OLD_IMAGE_NAMES cruft NOT PULLED lavu: remove FF_API_OLD_EVAL_NAMES cruft lavc: remove misc disabled cruft. lavc: remove the FF_API_INOFFICIAL cruft. lavc: remove the FF_API_SET_STRING_OLD cruft. lavc: remove the FF_API_USE_LPC cruft. lavc: remove the FF_API_SUBTITLE_OLD cruft. lavc: remove the FF_API_VIDEO_OLD cruft. lavc: remove the FF_API_AUDIO_OLD cruft. lavc: remove the FF_API_OPT_SHOW cruft. lavc: remove the FF_API_MM_FLAGS cruft. lavf: remove misc disabled cruft. lavf: remove FF_API_INDEX_BUILT cruft lavf: remove FF_API_URL_CLASS cruft. lavf: remove FF_API_SYMVER cruft ... Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavc: remove the FF_API_USE_LPC cruft.Anton Khirnov2011-04-191-11/+0
| |
| * Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
| | | | | | | | 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-261-1/+1
| | | | | | | | | | | | | | 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-211-4/+6
| | | | | | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
| * Move lpc_compute_autocorr() from DSPContext to a new struct LPCContext.Justin Ruggles2011-01-211-4/+3
| | | | | | | | 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-281-1/+1
| | | | | | | | | | | | | | | | 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 d36beb3f6902b1217beda576aa18abf7eb72b03c)
* | Separate window function from autocorrelation.Justin Ruggles2011-01-231-4/+6
| | | | | | | | | | Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit 77a78e9bdcc589efac41da4f92a489f4523667c0)
* | Move lpc_compute_autocorr() from DSPContext to a new struct LPCContext.Justin Ruggles2011-01-231-4/+3
|/ | | | | Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit 56f8952b252f85281317ecd3e0b04c4cae93fd72)
* Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enumStefano Sabatini2010-11-121-2/+2
| | | | | | 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-301-1/+1
| | | | Originally committed as revision 25275 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: rename output_* to write_*Justin Ruggles2010-07-311-6/+6
| | | | 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-311-11/+7
| | | | Originally committed as revision 24632 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change max_framesize for small final frame.Justin Ruggles2010-07-311-0/+6
| | | | 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-311-14/+79
| | | | | | | 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-311-7/+7
| | | | 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-311-34/+22
| | | | Originally committed as revision 24628 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 10l: fix bit count for frame headerJustin Ruggles2010-07-311-1/+4
| | | | Originally committed as revision 24627 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Simplify fallback to verbatim mode encoding.Justin Ruggles2010-07-311-16/+14
| | | | Originally committed as revision 24626 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: line wrap and vertical alignmentJustin Ruggles2010-07-311-8/+10
| | | | 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-311-24/+14
| | | | | | function. Originally committed as revision 24624 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove unneeded wrapper function.Justin Ruggles2010-07-311-8/+1
| | | | 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-311-34/+6
| | | | Originally committed as revision 24621 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Estimate frame size during encoding.Justin Ruggles2010-07-311-3/+51
| | | | Originally committed as revision 24619 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: indentationJustin Ruggles2010-07-301-38/+38
| | | | Originally committed as revision 24612 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Combine output_subframe() and output_subframes().Justin Ruggles2010-07-301-19/+11
| | | | Originally committed as revision 24611 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove unneeded variable.Justin Ruggles2010-07-301-4/+1
| | | | Originally committed as revision 24610 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: indentationJustin Ruggles2010-07-301-28/+28
| | | | Originally committed as revision 24609 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Combine output_subframe_verbatim() and output_subframe_lpc().Justin Ruggles2010-07-301-23/+13
| | | | Originally committed as revision 24608 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Combine and simplify output_residual() and output_subframe_lpc().Justin Ruggles2010-07-301-37/+21
| | | | Originally committed as revision 24607 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: reindentJustin Ruggles2010-07-301-5/+5
| | | | 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-301-19/+5
| | | | 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-301-25/+11
| | | | Originally committed as revision 24604 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Pass FlacSubframe to output_subframe_* instead of channel number.Justin Ruggles2010-07-301-24/+11
| | | | 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-301-36/+36
| | | | | | 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-301-0/+1
| | | | 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-301-1/+0
| | | | | | 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-301-37/+60
| | | | Originally committed as revision 24599 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add 2 failed memory allocation checksJustin Ruggles2010-07-301-0/+4
| | | | Originally committed as revision 24598 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: pretty-print flacenc.cJustin Ruggles2010-07-301-325/+344
| | | | 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-241-4/+4
| | | | | | | 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-111-29/+74
| | | | | | | Add AVLPCType enum. Deprecate AVCodecContext.use_lpc. Originally committed as revision 24199 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud