Statistics
| Branch: | Revision:

ffmpeg / libavcodec / utils.c @ c11c2bc2

History | View | Annotate | Download (27.1 KB)

# Date Author Comment
c11c2bc2 08/01/2005 08:07 PM Alexander Strasser

libavutil: Utility code from libavcodec moved to a separate library.

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

ddebfb15 07/25/2005 02:35 PM Michael Niedermayer

thread mess check for avcodec_open/close()

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

ea4377de 07/19/2005 01:29 PM Michael Niedermayer

portable IEEE float/double read/write functions

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

fec9ccb7 07/14/2005 03:30 PM Michael Niedermayer

check for CODEC_CAP_DELAY in audio decoders too

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

bb628dae 06/17/2005 03:02 PM Diego Biurrun

spelling fixes
patch by Peter Robinson pbrobinson at gmail . dot . com and myself

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

240c1657 06/03/2005 01:59 PM Fabrice Bellard

subtitle codec type support

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

e18c1f19 05/26/2005 08:57 AM Michael Niedermayer

AV_LOG_DEBUG is not a good default ...

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

ad2b531d 05/13/2005 06:10 PM Måns Rullgård

change extradata format for vorbis

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

44608ac7 05/07/2005 07:24 PM Roine Gustafsson

ff_reverse to utils.c patch by (Roine Gustafsson )roine users.sourceforge net)

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

c0df9d75 04/30/2005 09:43 PM Michael Niedermayer

switch to native time bases

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

82c0c4ba 04/25/2005 06:41 PM Michael Niedermayer

print pix_fmt if its known instead of if the raw codec is used

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

644a9262 04/25/2005 06:29 PM Michael Niedermayer

PIX_FMT_NONE and related fixes

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

09c3e44e 03/27/2005 12:19 PM Michael Niedermayer

motion estimation bitrate penalty compensation

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

88730be6 02/24/2005 07:08 PM Måns Rullgård

kill warnings patch by (Måns Rullgård <mru inprovide com>)

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

6e0d8c06 02/02/2005 07:33 PM Michael Niedermayer

mb_lmin/max to limit the per mb quality for the ratecontrol independant from the frame limits

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

c342499d 02/01/2005 06:36 PM Michael Niedermayer

make keyframe default for AVFrames

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

934982c4 01/23/2005 06:09 PM Michael Niedermayer

avoid buf_size == 0 checks in every decoder

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

f41c1fac 01/12/2005 06:25 PM Kurosu

av_malloc vs av_mallocz patch by (Kurosu <kurosu inforezo org>)

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

2fc8ea24 01/12/2005 12:59 AM Michael Niedermayer

dissallow sprintf

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

0ecca7a4 01/12/2005 12:16 AM Michael Niedermayer

various security fixes and precautionary checks

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

c31b8121 01/09/2005 11:39 PM Roberto Togni

Check pointers before writing to memory, fix possible integer overflows
Force alignement for mszh and zlib decoders

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

caa336b4 12/29/2004 05:50 PM Michael Niedermayer

common.c -> bitstream.c (and the single non bitstream func -> utils.c)
common.h -> common.h/bitstream.h

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

073c2593 11/27/2004 06:10 PM Burkhard Plaum

Memory leak fix patch by (Burkhard Plaum <plaum >at< ipf.uni-stuttgart )dot( de>)

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

2450cff2 11/21/2004 06:04 PM François Revol

BeOS threading support. changed some "if FOO_THREAD||BAR_THREAD" to a more generic "if HAVE_THREADS"

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

3237f731 10/26/2004 12:47 PM Michael Niedermayer

stride align cleanup

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

f02be79d 10/22/2004 02:04 AM Roman Shaposhnik
  • Introducing IIDC1394 grabbing interface.
    Use it with -grab dc1394
    • Introducing yet another packed pix_fmt in order to support some of
      the IIDC1394 modes: uyvy411 (Cb Y0 Y1 Cr Y2 Y3).

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

15862411 10/18/2004 03:02 AM Michael Niedermayer

infinte recursion fix

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

9fe5a7b8 10/01/2004 12:31 PM Michael Niedermayer

do not call (av_)abort()

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

21adafec 09/27/2004 11:50 AM Michael Niedermayer

lowres width/height cleanup 3rd try

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

1f018225 09/19/2004 04:38 PM Michael Niedermayer

av_rescale with user specified rounding

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

b100eab8 09/15/2004 12:35 AM Michael Niedermayer

changing size segfault fix

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

8b69867f 08/13/2004 03:30 PM Michael Niedermayer

Minor Patch for shared libs on Mac OSX by (Bill May <wmay at cisco dot com>)

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

baced9f5 08/13/2004 01:59 PM Michael Niedermayer

user overrideable level & profile

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

ebb177dd 07/25/2004 10:01 AM Todd Kirby

UYVY support patch by ("Todd.Kirby" <doubleshot at pacbell dot net>)

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

5f63d108 07/14/2004 06:23 PM Michael Niedermayer

simplify

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

d99fbbf4 06/27/2004 11:07 AM Roberto Togni

Force alignement for rpza and smc

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

6f824977 06/22/2004 09:14 PM Michael Niedermayer

flush audio encoder buffers at the end
fix vorbis in nut again

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

50071f0b 05/25/2004 06:17 PM Michael Niedermayer

avcodec_find is in no header file, and appearently not used or very usefull so lets make it static ...

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

53db1cae 05/21/2004 02:37 PM Michael Niedermayer

data_size = 0 cleanup

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

ca8ad847 05/10/2004 11:38 PM Michael Niedermayer

dummy avcodec_thread_init() to avoid linking issues

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

4c263142 05/04/2004 02:58 AM Michael Niedermayer

use AVInteger in av_rescale() so it can finally do 64*64/64 instead of just 64*32/32

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

d01dbeb8 04/30/2004 06:11 PM Michael Niedermayer

simplify

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

eea8c08f 04/30/2004 05:42 PM Michael Niedermayer

cleanup & memleak fix

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

4e39ab4c 03/22/2004 11:00 AM Michael Niedermayer

1000l in av_mallocz_static()
less overallocation in av_fast_realloc() for small arrays

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

8d1f2ba5 03/21/2004 09:58 PM Michael Niedermayer

static allocation rewrite (old code was plain a broken mess)
doesnt call realloc every time
doesnt randomly overwrite memory after after 8-16 calls
doesnt use ugly macro wraper
fewer lines of code

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

494c56d3 03/04/2004 02:58 PM Ivan Kalvachev

silence warnings

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

43465395 03/03/2004 05:53 PM Michael Niedermayer

av_log() cleanup
null pointer segfaults
dont print redundant spam
dont print prefix if reference==NULL
class -> av_class
dont copy AVClass to every object, its a waste of memory and not a good idea at all

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

bc874dae 03/03/2004 03:41 PM Michel Bardiaux

av_log() patch by (Michel Bardiaux <mbardiaux at peaktime dot be>)

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

81c5f887 03/03/2004 01:57 AM Michael Niedermayer

macrofree av_freep()

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

9740beff 02/25/2004 05:35 PM Michael Niedermayer

use AVFrame.pts=AV_NOPTS_VALUE instead of AVFrame.pts=0
move AV_NOPTS_VALUE & AV_TIME_BASE from avformat.h -> avcodec.h
related fixes

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

d705e4a6 02/22/2004 12:31 AM Michael Niedermayer

(f)printf() is disallowed in libavcodec, compilation will fail now if its used, except that codecs which where added after the printf->av_log change which did ignore av_log() and used prinf are now silent and wont print anything, they should be changed to use av_log, i could do that, but its better if the orginal developer decides which AV_LOG level each message should get...

9c3d33d6 02/13/2004 05:54 PM Michael Niedermayer

multithreaded/SMP motion estimation
multithreaded/SMP encoding for MPEG1/MPEG2/MPEG4/H263
all pthread specific code is in pthread.c
to try it, run configure --enable-pthreads and ffmpeg ... -threads <num>
the internal thread API is a simple AVCodecContext.execute() callback which executes a given function pointer with different arguments and returns after finishing all, that way no mutexes or other thread-mess is needed outside pthread.c...

7984082a 02/12/2004 04:21 PM Michael Niedermayer

ppc chroma mess workaround (real bug is that the motion compensation code assumes that 2*uvlinesize == linesize and fixing this would mean a slowdown)

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

95ba2c8f 02/01/2004 10:56 PM Falk Hüffner

tiny warning fix

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

83f8c0c3 01/23/2004 12:30 PM Michael Niedermayer

segfault fix

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

8f2ab833 01/10/2004 04:04 PM Michael Niedermayer

copyright year update of the files i touched and remembered, things look annoyingly unmaintained otherwise

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

620fe604 01/05/2004 11:40 PM Michael Niedermayer

10l

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

e1c2a5a0 11/26/2003 08:57 PM Roberto Togni

- Add reget_buffer() function to AVCodecContext
- Add default reget_buffer implementation in libavcodec/utils.c
- Remove AVCodecContext.cr_available, no longer needed
- Remove CODEC_CAP_CR, no longer used
- Add img_copy() prototype to avcodec.h (function from imgconvert.c)...

074c4ca7 11/07/2003 09:20 PM Roberto Togni

Add cr codec capability and buffer hints

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

89b9441a 11/03/2003 01:58 PM Michael Niedermayer

only add prefix after \n

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

9b879566 11/03/2003 01:26 PM Michel Bardiaux

av_log() patch by (Michel Bardiaux <mbardiaux at peaktime dot be>)

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

237e4938 10/30/2003 09:05 PM Michael Niedermayer

initalize various uninitalized variables and avoid coded_picture_number as its not always correct (later should be reversed after fixing the picture_number mess)

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

2a2bbcb0 10/30/2003 05:40 AM Mike Melanson

revised palette API, courtesy of Roberto Togni (rtogni at freemail.it)

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

985180a1 10/29/2003 02:08 PM Fabrice Bellard

added fake codec CODEC_ID_MPEG2TS of type CODEC_TYPE_DATA (needed for simpler handling of raw transport streams in ffserver and RTP - better solutions are welcomed)

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

5ed9f2e5 10/20/2003 10:33 PM Michael Niedermayer

use continued fractions to approximate a fraction if its numerator or denominator is too large

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

5ff85f1d 10/20/2003 08:23 PM Michael Niedermayer

AVRational
sample_aspect_ratio
aspect ratio in JPEG JFIF is SAR not DAR !
removed nonsense SAR guessing code
various related cleanups
bugs?

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

5c00fe41 10/16/2003 06:27 PM Roman Shaposhnik
  • original fix still didn't align lines on s_align when CODEC_FLAG_EMU_EDGE
    was not set.

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

f0bbfc4a 10/15/2003 09:59 PM Michael Niedermayer

default_get_buffer() fixes

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

158c7f05 10/07/2003 11:32 AM Michael Niedermayer

use lagrange multipler instead of qp for ratecontrol, this may break some things, tell me ASAP if u notice anything broken
quality which was 1..31 float is now a 1..FF_LAMBDA_MAX int, and FF_QP2LAMBDA * qp can be used to convert to the new range

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

09770af8 09/10/2003 08:20 AM Michael Niedermayer

detect avcodec_open() on an already opened AVCodecContext

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

b1609412 09/09/2003 10:59 PM Fabrice Bellard

removed warnings

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

98ce5991 09/08/2003 10:49 PM Fabrice Bellard

update sub_id in mpegaudio decoding (might need same method as MPEG2VIDEO too ?)

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

59c673d5 08/05/2003 10:19 AM Michael Niedermayer

cleanup / fixes

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

7d1c3fc1 07/29/2003 02:09 AM Michael Niedermayer

rate distortion mb decision support
fix decoding of old %16!=0 divx
fix assertion failure in motion_est.c

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

7a06ff14 07/17/2003 12:29 PM Michael Niedermayer

AVCodec.flush()
ff_draw_horiz_band() in coded order / cleanup

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

d4f5d74a 07/09/2003 11:10 PM Garrick Meeker

flash video (flv) support patch by (Garrick Meeker <gmeeker at theoryllc dot com>)

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

ba88675b 05/30/2003 01:27 PM Michael Niedermayer

rgb15 & rgb16 fix

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

4cfbf61b 05/24/2003 06:48 PM Falk Hüffner

Warning and compatibility fixes.

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

d8085ea7 05/14/2003 11:08 PM Michael Niedermayer

cleanup

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

f138f883 05/12/2003 11:03 PM Michael Niedermayer

100l (document buffer padding requirements)

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

7c9375f1 04/25/2003 08:03 PM Michael Niedermayer

10l

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

d90cf87b 04/25/2003 12:29 AM Michael Niedermayer

fixing mixed dr1 + internal buffers

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

59cf08ce 04/20/2003 04:16 PM Fabrice Bellard

fixed static init

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

2c19981a 04/02/2003 10:18 AM Michael Niedermayer

10l

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

1984f635 03/22/2003 12:09 PM Michael Niedermayer

user setable quantizer bias

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

e8750b00 03/16/2003 09:03 PM Fred Rothganger

rawvideo patch by (Fred Rothganger <rothgang at uiuc dot edu>)

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

b536d0aa 03/16/2003 08:22 PM Michael Niedermayer

field pic decoding cleanup

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

14bea432 03/12/2003 03:16 PM Michael Niedermayer

per context frame_rate_base, this should finally fix frame_rate related av sync issues

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

983e3246 03/06/2003 11:32 AM Michael Niedermayer

per file doxy

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

0c1a9eda 02/11/2003 04:35 PM Zdenek Kabelac
  • UINTX -> uintx_t INTX -> intx_t

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

5c91a675 02/10/2003 09:35 AM Zdenek Kabelac
  • static,const,compiler warning cleanup

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

0d4c5878 01/23/2003 11:18 PM Fabrice Bellard

removed warning

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

8e1e6f31 01/23/2003 11:03 PM Fabrice Bellard

use av_malloc() functions - added av_strdup and av_realloc()

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

a33c7159 01/12/2003 12:48 AM Michael Niedermayer

get_format()

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

5915a6dc 01/11/2003 04:52 AM Fabrice Bellard

moved avpicture_xxx to imgconvert

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

9bbffbb1 01/11/2003 12:07 AM Fabrice Bellard

moved avcodec_get_chroma_sub_sample() to imgconvert.c

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

87fb268f 01/06/2003 06:09 PM Zdenek Kabelac
  • avoid usage of next/last buffer after flush
    (but there still something wrong when the first frame isn't keyframe)

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

826f429a 01/05/2003 03:57 PM Michael Niedermayer

qpel in mmx2/3dnow
qpel refinement quality parameter

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

17a70fde 12/18/2002 10:09 AM Michael Niedermayer

mb qp limits

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

4cb3ca72 12/09/2002 06:54 PM Zdenek Kabelac
  • fill codec_id in codec_open

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