Statistics
| Branch: | Revision:

ffmpeg / libavcodec / utils.c @ ab35de18

History | View | Annotate | Download (23.2 KB)

# Date Author Comment
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

492cd3a9 12/09/2002 12:03 PM Michael Niedermayer

AVVideoFrame -> AVFrame

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

4e00e76b 12/09/2002 12:29 AM Michael Niedermayer

cleanup / messup?
fixes 20% speedloss bug
removes redundant variables from MpegEncContext
release buffers in avcodec_flush_buffers() (untested)

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

5b20b732 12/04/2002 12:42 PM Michael Niedermayer

print a warning if something allocates 0 bytes

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

1e491e29 12/04/2002 10:04 AM Michael Niedermayer

cleanup
adding AVVideoFrame
moving quality, pict_type, key_frame, qscale_table, ... to AVVideoFrame
removing obsolete variables in AVCodecContext
skiping of MBs in b frames
correctly initalizing AVCodecContext
picture buffer cleanup

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

855ea723 12/03/2002 07:40 PM Zdenek Kabelac
  • two functions to handle allocation of static data more simple
    av_mallocz_static - called for every static data table
    av_free_static - called when ffmpeg is no longer needed and should free
    all static resources
  • simple usage shown in mpegaudiodec.c...
18f77016 11/12/2002 03:00 PM Zdenek Kabelac
  • fixing some minor const warnings

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

c6af86c2 11/11/2002 09:31 AM Zdenek Kabelac
  • avcodec_init could be removed I guess...

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

6bb925f4 10/31/2002 12:11 PM Michael Niedermayer

dont call emms_c() for each MB

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

8d0e42ca 10/22/2002 11:43 PM Michael Niedermayer

more defaults

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

4d2858de 10/13/2002 01:16 PM Michael Niedermayer

better/cleaner error resilience (done in a 2nd pass after decoding)
h263/mpeg4 out of order slice decoding

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

a5e88058 10/11/2002 09:16 AM Fabrice Bellard

corrected pixel format display

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

4bfad535 10/10/2002 05:12 PM Fabrice Bellard

added two pass info

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

7ffbb60e 09/28/2002 01:49 AM Falk Hüffner

Minor warning fix.

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

b3a391e8 09/19/2002 08:22 PM Michael Niedermayer

fixing i_quant_factor, this should finally fix the bitrate bug with ffserver hopefully

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

e8b62df6 09/19/2002 06:24 PM Michael Niedermayer

fixing apiexample

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

a949d72e 09/19/2002 09:13 AM Michael Niedermayer

avcodec_alloc_context()

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

b71472eb 07/27/2002 03:08 AM Philip Gladstone

Add conversions to and from RGBA32 and BGRA32.

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

be8ffec9 07/09/2002 04:08 PM Nick Kurshev

new codec: Sorenson v1

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

ce992c69 06/11/2002 01:45 PM Fabrice Bellard

moved code to mem.c and allcodecs.c

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

cd4af68a 05/27/2002 04:42 PM Zdenek Kabelac
  • started to cleanup name clashes for onetime compilation

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

ff4ec49e 05/25/2002 10:45 PM Fabrice Bellard

license/copyright change

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

4d7a0a05 05/20/2002 04:23 PM Fabrice Bellard

better av_freep()

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

3123dd79 05/18/2002 10:59 PM Fabrice Bellard

proper memory handling functions

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

8bceb6af 05/12/2002 03:53 PM Nick Kurshev

build info for ABI

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

0edf8a7a 05/09/2002 01:24 AM Philip Gladstone
  • Don't allocate 0 bytes of memory. It upsets electricFence!

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

156e5023 05/05/2002 09:56 AM Nick Kurshev

version info

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

1c2a8c7f 04/24/2002 01:24 AM Michael Niedermayer

avcodec_flush_buffers()

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

623563c0 04/22/2002 07:57 PM Zdenek Kabelac
  • using some small char buffer - needed for sprintf

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

4b1f4f23 04/15/2002 02:28 AM Juanjo

- Versions defined for libav/libavcodec.
- Bug fix in wav muxer for MP2 audio.
- ffmpeg/libavcodec version in MPEG-4 user data.

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

e0d2714a 04/09/2002 04:52 AM Juanjo

- Fixed AC3 decoding for 5:1 AC3 streams. Now when calling av_audio_decode for
AC3 set avcodec_context->channels to the desired number channels, if the
setting is 0 AC3 decoder will set it to the channels found in the
stream.
- Changed ffmpeg to cope with the new "way" of AC3 decoding....

bc657ac3 04/08/2002 09:03 PM Zdenek Kabelac
  • using pixtype as enum - by Philip Gladstone

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

e1a9dbff 04/06/2002 10:29 PM Michael Niedermayer

wmv1 header parser (unfinished)

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

84afee34 04/05/2002 04:09 AM Michael Niedermayer

msmpeg4v2 decoding (no encoding yet)

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

0344cd0a 04/01/2002 01:24 PM Alex Beregszaszi

multiple init bugfix (patch by Alex Beregszaszi <>)

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

1cb0edb4 03/16/2002 02:41 AM Juanjo

- Bug fix MPEG-2 decoder to handle "repeat_first_field" (Telecine)
- Hack in MPEG-2 demux to cope with buggy VOBs.

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