Statistics
| Branch: | Revision:

ffmpeg / libavcodec / flacenc.c @ 2874c81c

History | View | Annotate | Download (37.9 KB)

# Date Author Comment
2874c81c 04/03/2010 02:15 PM Stefano Sabatini

Replace all remaining occurrences of AVERROR_NOMEM with
AVERROR.

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

72415b2a 03/30/2010 11:30 PM Stefano Sabatini

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

fde82ca7 10/17/2009 09:00 PM Justin Ruggles

Move autocorrelation function from flacenc.c to lpc.c. Also rename the
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

b5f09d31 09/06/2009 09:15 AM Reimar Döffinger

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

63613fe6 07/26/2009 12:20 PM Måns Rullgård

Replace WORDS_BIGENDIAN with HAVE_BIGENDIAN

Originally committed as revision 19508 to svn://svn.ffmpeg.org/ffmpeg/trunk

0bc08ed9 04/16/2009 02:28 AM Justin Ruggles

flacenc: write initial blocksize to STREAMINFO header instead of current
blocksize.

Originally committed as revision 18532 to svn://svn.ffmpeg.org/ffmpeg/trunk

0aed5e9f 04/13/2009 06:07 PM Bobby Bingham

Skip loop iterations which are no-ops due to data1[-lag..-1] being zero.

Originally committed as revision 18498 to svn://svn.ffmpeg.org/ffmpeg/trunk

437f884d 04/13/2009 04:23 PM Jai Menon

flacenc : do not #include libavutil/lls.h since lpc code is now
separate.

Originally committed as revision 18495 to svn://svn.ffmpeg.org/ffmpeg/trunk

9106a698 04/13/2009 04:20 PM Stefano Sabatini

Rename bitstream.h to get_bits.h.

Originally committed as revision 18494 to svn://svn.ffmpeg.org/ffmpeg/trunk

0fb2182d 03/21/2009 01:54 AM Justin Ruggles

add a function to calculate a more accurate estimate for maximum FLAC
frame size and use the function in the FLAC decoder and FLAC encoder

Originally committed as revision 18092 to svn://svn.ffmpeg.org/ffmpeg/trunk

f1216221 03/21/2009 01:20 AM Justin Ruggles

revert accidental unrelated change in last commit

Originally committed as revision 18090 to svn://svn.ffmpeg.org/ffmpeg/trunk

d4df4e50 03/21/2009 01:16 AM Justin Ruggles

share sample rate and blocksize tables between the FLAC encoder and FLAC
decoder

Originally committed as revision 18089 to svn://svn.ffmpeg.org/ffmpeg/trunk

b9b4fc5e 03/21/2009 12:50 AM Justin Ruggles

flacenc: remove unneeded variable, 'min_encoded_framesize' and use
'min_framesize' instead

Originally committed as revision 18087 to svn://svn.ffmpeg.org/ffmpeg/trunk

ad52941f 03/21/2009 12:45 AM Justin Ruggles

flacenc: remove unneeded context variable, 'ch_code'

Originally committed as revision 18083 to svn://svn.ffmpeg.org/ffmpeg/trunk

3159780b 03/21/2009 12:44 AM Justin Ruggles

share channel mode constants between the FLAC decoder and FLAC encoder

Originally committed as revision 18082 to svn://svn.ffmpeg.org/ffmpeg/trunk

07d16e2e 03/19/2009 03:04 AM Justin Ruggles

share some constants between the FLAC encoder and FLAC decoder

Originally committed as revision 18041 to svn://svn.ffmpeg.org/ffmpeg/trunk

b250f9c6 01/13/2009 11:44 PM Aurelien Jacobs

Change semantic of CONFIG_*, HAVE_* and ARCH_*.
They are now always defined to either 0 or 1.

Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk

6682ae42 09/14/2008 10:25 PM Justin Ruggles

write actual min and max frame size to FLAC header. update regression test checksum.

Originally committed as revision 15331 to svn://svn.ffmpeg.org/ffmpeg/trunk

a9f8587e 09/14/2008 09:39 PM Justin Ruggles

write MD5 checksum to FLAC header. update regression tests.

Originally committed as revision 15326 to svn://svn.ffmpeg.org/ffmpeg/trunk

e1a12934 09/14/2008 08:00 PM Justin Ruggles

write number of samples in FLAC extradata.
based on a patch by Mathieu Velten (matmaul gmail com).

Originally committed as revision 15324 to svn://svn.ffmpeg.org/ffmpeg/trunk

f1f373c2 08/17/2008 04:10 PM Justin Ruggles

fix and simplify frame size check and reencoding in verbatim mode

Originally committed as revision 14811 to svn://svn.ffmpeg.org/ffmpeg/trunk

38c1a5c4 08/16/2008 10:42 PM Justin Ruggles

update my email address to one which does not depend on my service provider

Originally committed as revision 14797 to svn://svn.ffmpeg.org/ffmpeg/trunk

9045f5e7 08/16/2008 09:32 PM Justin Ruggles

cosmetics: adjust line breaks and vertical alignment

Originally committed as revision 14795 to svn://svn.ffmpeg.org/ffmpeg/trunk

56c07e29 08/16/2008 09:24 PM Justin Ruggles

use limited range of lpc orders when quantizing coefficients

Originally committed as revision 14794 to svn://svn.ffmpeg.org/ffmpeg/trunk

c50da3ad 08/16/2008 05:18 PM Ramiro Polla

flacenc, lpc: Move LPC code from flacenc.c to new lpc.[ch] files.

Originally committed as revision 14790 to svn://svn.ffmpeg.org/ffmpeg/trunk

51c796d0 08/16/2008 05:03 PM Ramiro Polla

flacenc: Allow more flexible shift calculation in LPC.

Originally committed as revision 14789 to svn://svn.ffmpeg.org/ffmpeg/trunk

fd76c37f 07/31/2008 10:47 AM Peter Ross

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

6647ab80 07/13/2008 02:27 PM Ramiro Polla

bitstream: move put_sbits() from flacenc.c to bitstream.h and use it
throughout libavcodec.

Originally committed as revision 14204 to svn://svn.ffmpeg.org/ffmpeg/trunk

fe4bf374 06/12/2008 09:50 PM Stefano Sabatini

Make AVCodec long_names definition conditional depending on CONFIG_SMALL.

Originally committed as revision 13759 to svn://svn.ffmpeg.org/ffmpeg/trunk

245976da 05/09/2008 11:56 AM Diego Biurrun

Use full path for #includes from another directory.

Originally committed as revision 13098 to svn://svn.ffmpeg.org/ffmpeg/trunk

d5202e4f 04/27/2008 10:52 AM Stefano Sabatini

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

42ceeb5f 03/31/2008 12:29 AM Justin Ruggles

remove redundant context variable

Originally committed as revision 12642 to svn://svn.ffmpeg.org/ffmpeg/trunk

fe790f89 03/30/2008 04:01 PM Justin Ruggles

Use 15-bit LPC precision by default. This generally gives better compression
results. Also update Ogg regression test.

Originally committed as revision 12630 to svn://svn.ffmpeg.org/ffmpeg/trunk

98a6fff9 03/21/2008 03:11 AM Zuxy Meng

Apply 'cold' attribute to init/uninit functions in libavcodec

Originally committed as revision 12525 to svn://svn.ffmpeg.org/ffmpeg/trunk

a4195e68 02/09/2008 02:45 PM Michael Niedermayer

assert() and note about odd len.

Originally committed as revision 11884 to svn://svn.ffmpeg.org/ffmpeg/trunk

fa4ed8c1 02/09/2008 03:42 AM Michael Niedermayer

optimize apply_welch_window()

Originally committed as revision 11881 to svn://svn.ffmpeg.org/ffmpeg/trunk

3abe5fbd 01/04/2008 11:09 PM Aurelien Jacobs

improve CRC API
- don't export any global var
- provide either generated or hardcoded tables

Originally committed as revision 11409 to svn://svn.ffmpeg.org/ffmpeg/trunk

90f03441 10/27/2007 01:39 PM Loren Merritt

remove a branch from an inner loop.
1% faster flac encoding.

Originally committed as revision 10865 to svn://svn.ffmpeg.org/ffmpeg/trunk

286127c5 10/01/2007 05:56 AM Loren Merritt

div -> mul

Originally committed as revision 10630 to svn://svn.ffmpeg.org/ffmpeg/trunk

b8de3429 09/30/2007 03:36 AM Loren Merritt

simplify lpc

Originally committed as revision 10628 to svn://svn.ffmpeg.org/ffmpeg/trunk

bfdd5bc1 09/29/2007 11:44 PM Loren Merritt

unroll finite differences to avoid swapping registers.
1.5x faster encode_residual_fixed().
overall flac encoding: 3% faster at compression_levels 0-2.

Originally committed as revision 10625 to svn://svn.ffmpeg.org/ffmpeg/trunk

a309dce7 09/29/2007 11:21 PM Loren Merritt

encode_residual_fixed(): replace FIR with finite differences.
4x faster order 2, 3.5x order 3, 3x order 4.
overall flac encoding: 35% faster at compression_levels 0-2, no effect at higher levels.

Originally committed as revision 10624 to svn://svn.ffmpeg.org/ffmpeg/trunk

6810b93a 09/29/2007 10:31 PM Loren Merritt

sse2 version of compute_autocorr().
4x faster than c (somehow, even though doubles only allow 2x simd).
overal flac encoding: 15-50% faster on core2, 4-11% on k8, 3-13% on p4.

Originally committed as revision 10621 to svn://svn.ffmpeg.org/ffmpeg/trunk

19b9c7cc 09/29/2007 07:43 AM Loren Merritt

was computing one more autocorrelation coefficient that was actually used

Originally committed as revision 10613 to svn://svn.ffmpeg.org/ffmpeg/trunk

14bd2a9f 09/29/2007 05:41 AM Loren Merritt

replace brute force find_optimal_param() with a closed-form solution.
overall flac encoding: 4-15% faster.
output is not identical to the previous algorithm due to occasional rounding
errors, but the differece is less than .0005% bitrate.

Originally committed as revision 10612 to svn://svn.ffmpeg.org/ffmpeg/trunk

f6215b1b 09/29/2007 01:54 AM Loren Merritt

gcc isn't smart enough to factor out duplicate stores

Originally committed as revision 10611 to svn://svn.ffmpeg.org/ffmpeg/trunk

28e968c4 09/28/2007 06:06 AM Loren Merritt

2.5x faster compute_autocorr()
overall flac encoding: 15-50% faster on core2, 8-30% on k8, 2-20% on p4 (depending on compression_level)

Originally committed as revision 10606 to svn://svn.ffmpeg.org/ffmpeg/trunk

dc44d4ad 09/27/2007 02:42 AM Loren Merritt

unroll encode_residual_lpc(). speedup varies between 1.2x and 1.8x depending on lpc order.

Originally committed as revision 10596 to svn://svn.ffmpeg.org/ffmpeg/trunk

0d2caa37 09/25/2007 11:34 PM Loren Merritt

oops, potential overflow on really large blocks

Originally committed as revision 10587 to svn://svn.ffmpeg.org/ffmpeg/trunk

f74471e0 09/25/2007 11:30 PM Loren Merritt

optimize encode_residual_lpc()
37%/45%/90% faster on core2/k8/p4, making flac encoding overall 15%/17%/40% faster at compression_level>=8 (less at low levels).

Originally committed as revision 10585 to svn://svn.ffmpeg.org/ffmpeg/trunk

f66e4f5f 02/25/2007 10:27 AM Reimar Döffinger

Add av_ prefix to clip functions

Originally committed as revision 8122 to svn://svn.ffmpeg.org/ffmpeg/trunk

360932f7 11/06/2006 10:32 AM Zuxy Meng

Fix ASF format parser's broken UTF-16 string handling
1. Add a PUT_UTF8 macro to common.h; code borrowed from libavcodec/flacenc.c.
2. Make use of the macro in flacenc.c
Patch by Zuxy Meng % zuxy P meng A gmail P com %
Original thread:
Date: Nov 5, 2006 9:56 AM...

c26abfa5 10/11/2006 11:17 PM Diego Biurrun

Rename ABS macro to FFABS.

Originally committed as revision 6666 to svn://svn.ffmpeg.org/ffmpeg/trunk

b78e7197 10/07/2006 03:30 PM Diego Biurrun

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

e1bbc032 07/16/2006 05:08 PM Justin Ruggles

cosmetic change to adjust alignment.

Originally committed as revision 5767 to svn://svn.ffmpeg.org/ffmpeg/trunk

5f3acd9e 07/16/2006 05:04 PM Justin Ruggles

Modify preset compression levels to utilize log search.

Originally committed as revision 5766 to svn://svn.ffmpeg.org/ffmpeg/trunk

dbb45a3b 07/16/2006 03:46 PM Michael Niedermayer

log prediction order search method

Originally committed as revision 5763 to svn://svn.ffmpeg.org/ffmpeg/trunk

26053bdc 07/16/2006 01:34 PM Justin Ruggles

Add lpc order search. This creates new compression levels 6 to 12.

Originally committed as revision 5762 to svn://svn.ffmpeg.org/ffmpeg/trunk

408ec4e2 07/15/2006 11:43 PM Michael Niedermayer

calculate all coefficients for several orders during cholesky factorization, the resulting coefficients are not strictly optimal though as there is a small difference in the autocorrelation matrixes which is ignored for the smaller orders

Originally committed as revision 5758 to svn://svn.ffmpeg.org/ffmpeg/trunk

8ea543b5 07/14/2006 07:14 PM Michael Niedermayer

cleanup

Originally committed as revision 5750 to svn://svn.ffmpeg.org/ffmpeg/trunk

ab01b2b8 07/14/2006 06:48 PM Michael Niedermayer

optionally (use_lpc=2) support Cholesky factorization for finding the lpc coeficients
this will find the coefficients which minimize the sum of the squared errors,
levinson-durbin recursion OTOH is only strictly correct if the autocorrelation matrix is a...

1484a467 07/13/2006 11:41 AM Michael Niedermayer

dither lpc cpeffs

Originally committed as revision 5727 to svn://svn.ffmpeg.org/ffmpeg/trunk

c6375bf2 07/08/2006 04:39 PM Justin Ruggles

allows user-settable block size and fixes related typo

Originally committed as revision 5674 to svn://svn.ffmpeg.org/ffmpeg/trunk

1e5707b7 07/03/2006 09:20 AM Justin Ruggles

porder patch by (Justin Ruggles jruggle a t earthlink d ot net)

Originally committed as revision 5593 to svn://svn.ffmpeg.org/ffmpeg/trunk

474176bf 07/02/2006 01:14 PM Michael Niedermayer

3 lines while -> 1 line for loop

Originally committed as revision 5577 to svn://svn.ffmpeg.org/ffmpeg/trunk

5d2f52b9 07/02/2006 01:10 PM Michael Niedermayer

simplify

Originally committed as revision 5576 to svn://svn.ffmpeg.org/ffmpeg/trunk

b2e30cb3 07/02/2006 01:01 PM Michael Niedermayer

simplify compute_autocorr

Originally committed as revision 5575 to svn://svn.ffmpeg.org/ffmpeg/trunk

41275956 07/02/2006 12:40 PM Michael Niedermayer

dont use memcpy for copying structs

Originally committed as revision 5574 to svn://svn.ffmpeg.org/ffmpeg/trunk

7c69b830 07/02/2006 11:06 AM Michael Niedermayer

simplify

Originally committed as revision 5573 to svn://svn.ffmpeg.org/ffmpeg/trunk

a403fc03 07/02/2006 10:22 AM Justin Ruggles

flac-lpc patch by (Justin Ruggles jruggle earthlink net)
tabs removed and regression.sh fixed (it was missing in the patch) by me

Originally committed as revision 5572 to svn://svn.ffmpeg.org/ffmpeg/trunk

78f67b7a 07/02/2006 09:30 AM Michael Niedermayer

simplify

Originally committed as revision 5571 to svn://svn.ffmpeg.org/ffmpeg/trunk

e71bcc37 06/27/2006 09:01 PM Justin Ruggles

flacenc - rice param search patch by (Justin Ruggles jruggle earthlink net

1) search for optimal rice parameters and partition order. i also
modified the stereo method estimation to use this to calculate estimated
bit count instead of using just the pure sums....

f33aa120 06/26/2006 06:00 AM Michael Niedermayer

stereo decorrelation support by (Justin Ruggles jruggle earthlink net>)

Originally committed as revision 5528 to svn://svn.ffmpeg.org/ffmpeg/trunk

6c35b4de 06/25/2006 09:22 PM Michael Niedermayer

10l

Originally committed as revision 5527 to svn://svn.ffmpeg.org/ffmpeg/trunk

d1015e88 06/24/2006 01:56 PM Michael Niedermayer

simplify & optimize things a little

Originally committed as revision 5516 to svn://svn.ffmpeg.org/ffmpeg/trunk

9e96ab03 06/24/2006 10:20 AM Michael Niedermayer

first rudimentary version of (Justin Ruggles jruggle earthlink net) flac encoder

Originally committed as revision 5514 to svn://svn.ffmpeg.org/ffmpeg/trunk