Commit Graph

6217 Commits

Author SHA1 Message Date
Måns Rullgård 788627dea6 Define av_alias if supported by compiler
Originally committed as revision 21523 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-01-29 03:26:14 +00:00
Måns Rullgård 4ae406856f Add --malloc-prefix to apply a prefix to malloc, free etc
This makes it easy to use a replacement allocator instead of the
system default one.

Originally committed as revision 21509 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-01-28 13:06:31 +00:00
Måns Rullgård 87fec35d8d Add macro AV_JOIN() for joining two tokens into one
Originally committed as revision 21482 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-01-27 17:38:53 +00:00
Måns Rullgård 34e52abb62 DECLARE_ALIGNED macro for TMS470 compiler
This compiler supports gcc-style alignment attributes for struct,
but not for global variables.  For the latter, alignment can be
specified with a pragma, which does not work for struct members or
local variables.  By using both pragma and attribute, one or the
other will always take effect.

Unfortunately, no means exists for aligning stack variables.

Originally committed as revision 21379 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-01-22 03:25:25 +00:00
Måns Rullgård d408b77a3a Add an AV_PRAGMA() macro for constructing _Pragma() directives
The seemingly equivalent _Pragma(AV_STRINGIFY(x)) is not accepted
by some compilers.

Originally committed as revision 21378 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-01-22 03:25:21 +00:00
Måns Rullgård c67278098d Move array specifiers outside DECLARE_ALIGNED() invocations
Originally committed as revision 21377 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-01-22 03:25:11 +00:00
Måns Rullgård 8a24e98d50 Make DECLARE_ALIGNED macros work with external array specifiers
The macro implementation might need the name of the variable being
declared for compiler-specific syntax.  Moving array specifiers outside
the macro invocation allows this to work.

Originally committed as revision 21363 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-01-21 12:59:22 +00:00
Laurent Aimar 92c6a099ba H264 DXVA2 implementation
It allows VLD H264 decoding using DXVA2 (GPU assisted decoding API under
VISTA and Windows 7).
 It is implemented by using AVHWAccel API. It has been tested successfully
for some time in VLC using an nvidia card on Windows 7.

 To compile it, you need to have the system header dxva2api.h (either from
microsoft or using http://downloads.videolan.org/pub/videolan/testing/contrib/dxva2api.h)
 The generated libavcodec.dll does not depend directly on any new lib as
the necessary objects are given by the application using FFmpeg.

Originally committed as revision 21353 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-01-20 18:54:51 +00:00
Måns Rullgård 5e7dfb7de1 Move COPY3_IF_LT to lavc/mathops.h
This obscure macro is only used in motion_est.c so having it in lavc
makes more sense.  See discussion here:
http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2008-November/056561.html

Originally committed as revision 21346 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-01-20 06:01:54 +00:00
Måns Rullgård 75fb5c24ed Move FASTDIV macro to intmath.h
Originally committed as revision 21335 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-01-19 23:25:36 +00:00
Måns Rullgård 1d52b4b390 Use avconfig.h in pixfmt.h
Originally committed as revision 21322 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-01-19 04:40:18 +00:00
Måns Rullgård a3e02a8cad Create and install libavutil/avconfig.h
This file contains a safe subset of the config.h settings.
Only bigendian is included for now, more can be added as
need arises.

Originally committed as revision 21321 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-01-19 04:40:16 +00:00
Alexander Strange f6d0390657 Add macros for 64- and 128-bit write-combining optimization to intreadwrite.h.
Add x86 implementation using MMX/SSE.

Originally committed as revision 21281 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-01-18 10:24:33 +00:00
Måns Rullgård bdd19e29df Mark all intreadwrite functions av_always_inline
Originally committed as revision 21278 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-01-18 01:35:19 +00:00
Reimar Döffinger 3f37ab8e41 Make sure we do not export incorrect _NE pixformat descriptions by either
including config.h if available or not defining them if it isn't.

Originally committed as revision 21262 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-01-17 14:17:03 +00:00
Måns Rullgård c25210278c Add missing parens in AV_WN macros
Originally committed as revision 21260 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-01-17 12:47:06 +00:00
Måns Rullgård a482e61bd6 Add symbol versioning for shared libraries
Based on patch by Reinhard Tartler <siretart tauware de>

Originally committed as revision 21236 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-01-16 04:49:02 +00:00
Vitor Sessak 06cb7a1c8f Use macros instead of inline functions to replace the following missing C99
functions: exp2, exp2f, log2, log2f.

Should fix compilation in systems where these functions are defined in math.h
but not implemented.

Originally committed as revision 21231 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-01-16 01:27:46 +00:00
Måns Rullgård 544f5a922f Optimise av_log2 with clz when available
10% faster flac decoding on x86 and ARM.

Originally committed as revision 21217 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-01-14 19:58:12 +00:00
Vitor Sessak 6b7c7703f4 Add replacements for log2f(), exp2() and exp2f() for platforms that lacks it.
Should fix build breakage on some platforms introduced in r21125.

Originally committed as revision 21155 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-01-12 02:19:51 +00:00
Stefano Sabatini 4160069067 Prefer "*FUNC_NAME(" over "* FUNC_NAME(" for XXX_configuration() and
XXX_license() functions, consistent with the rest of FFmpeg.

Originally committed as revision 21005 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-01-03 14:31:25 +00:00
Stefano Sabatini 702d0a9e85 Remove residual use of the doxygen markup which is deprecated,
consistent with r19122.

Originally committed as revision 20989 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-01-01 12:28:18 +00:00
Michael Niedermayer bac24dd2a5 2nd try on documenting av_gcd().
Originally committed as revision 20939 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-12-27 14:40:49 +00:00
Michael Niedermayer 03703cb3d1 Document av_gcd().
Originally committed as revision 20935 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-12-27 12:20:06 +00:00
Michael Niedermayer b3e88ae84b Place { of the function where indent -kr wants it.
Also more consistent with the rest of the code.

Originally committed as revision 20851 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-12-14 01:15:02 +00:00
Michael Niedermayer 64b12fc317 Move #include where it belongs.
This as a sideeffect fixes the linking failure of ffplay.

Originally committed as revision 20832 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-12-13 18:42:39 +00:00
Michael Niedermayer 277c733237 Add a function to convert a number to a av_malloced string.
Originally committed as revision 20829 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-12-13 17:09:41 +00:00
Stefano Sabatini 3ba69a15c6 Implement av_bmg_next(), a Box-Muller Gaussian random generator.
See the thread:
"[FFmpeg-devel] [PATCH] Box-Muller gaussian generator".

Originally committed as revision 20808 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-12-12 16:24:37 +00:00
Ramiro Polla e244f54e78 Make av_log_level static at next lavu major version bump.
Originally committed as revision 20721 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-12-03 18:15:54 +00:00
Stefano Sabatini 382cb1154c Make av_pix_fmt_descriptors use the same pixel format names as defined
in libavcodec/imgconvert.c.

Avoid to break compatility when making the functions dealing with
pixel format names in imgconvert.c use the names defined in pixdescs.

Originally committed as revision 20624 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-26 20:58:37 +00:00
Stefano Sabatini 74a0059f2c Make the pixdesc API public.
Originally committed as revision 20603 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-24 23:33:41 +00:00
Stefano Sabatini 60fa95683d Clarify PIX_FMT_BE flag doxy. Increase consistency / pickiness.
Originally committed as revision 20592 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-23 20:14:47 +00:00
Stefano Sabatini 357561e73f Clarify relations between log2_chroma_w, log2_chroma_h and comp.
Originally committed as revision 20550 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-18 22:32:32 +00:00
Diego Biurrun c173693698 Add functions to return library license and library configuration.
Originally committed as revision 20547 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-18 17:15:17 +00:00
Stefano Sabatini b8873c2a8f Rename AVPixFmtDescriptor.nb_channels to nb_components, the new name
is more clear and lexically more consistent with API and
documentation.

Originally committed as revision 20545 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-18 00:07:20 +00:00
Michael Niedermayer b154ed5abe Fix indention after last commit.
Originally committed as revision 20538 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-14 19:15:09 +00:00
Michael Niedermayer edabf35926 Fix crash with av_tree_enumerate(NULL).
Originally committed as revision 20537 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-14 19:14:14 +00:00
Michael Niedermayer 1bf83b9548 Make sure av_tree_enumerate() enumerates left->right.
Originally committed as revision 20535 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-14 11:19:08 +00:00
Carl Eugen Hoyos dd6308addd Add PIX_FMT_VDPAU_MPEG4 to pixdesc.c.
Originally committed as revision 20509 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-11 00:02:36 +00:00
NVIDIA Corporation 70e0c871eb Add VDPAU hardware accelerated decoding for MPEG-4 ASP which can be used
by video players.

Original patch by NVIDIA corporation.

Originally committed as revision 20502 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-10 18:52:39 +00:00
Reimar Döffinger 7fc58b1eeb Remove code checking for __PIC__ or __pic__ and setting PIC from libavutil/internal.h,
configure is supposed to take care of that already.

Originally committed as revision 20498 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-10 12:59:56 +00:00
Francesco Lavra 91cc5d3767 Move ff_reverse in libavcodec to av_reverse in libavutil.
Patch by Francesco Lavra, francescolavra interfree it

Originally committed as revision 20484 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-09 09:11:35 +00:00
Stefano Sabatini 3fa70a3bc8 Add pixel format descriptors for the HW-accelerated formats.
This completes the list of all descriptors in av_pix_fmt_descriptors.

Originally committed as revision 20467 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-05 23:45:15 +00:00
Stefano Sabatini d71ad089ef Add PIX_FMT_PAL flag to BGR8, BGR4_BYTE, RGB8, and RGB4_BYTE formats.
Originally committed as revision 20434 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-02 20:23:47 +00:00
Stefano Sabatini 51135d1d8e Move pixdesc.{h,c} from libavcodec to libavutil.
This way pixdescs can be used without requiring a dependency on
libavcodec.

Originally committed as revision 20389 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-10-27 20:56:56 +00:00
Anton Khirnov 20c6837880 id3v2: Add support for UTF-16 encoding.
patch by Anton Khirnov, wyskas gmail com

Originally committed as revision 20006 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-23 18:22:00 +00:00
Loren Merritt 1a918c08e4 extend ff_inverse[], and fix its documentation
Originally committed as revision 19942 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-21 03:01:57 +00:00
Reimar Döffinger 46f3b40eb3 Add warnings to av_strlcat and av_strlcpy doxygen that the input strings
already must be properly 0-terminated strings. Unlike strncpy it
cannot be used on raw data read from a file.

Originally committed as revision 19800 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-09 21:00:51 +00:00
Ramiro Polla d31dbec374 Rename CHECKED_ALLOC(Z) to FF_ALLOC(Z)_OR_GOTO and add context and label
parameters.

Originally committed as revision 19776 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-06 00:08:19 +00:00
Lars Täuber 35f6c15405 Make 16bit YUV formats compatible with NE avcodec_get_pix_fmt().
Patch by Lars Täuber <lars <dot> taeuber <at> gmx <dot> net>.

Originally committed as revision 19775 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-05 23:33:25 +00:00
Ramiro Polla 5ce6934e0a Add a newline in error message in CHECKED_ALLOC(Z).
Originally committed as revision 19758 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-04 16:59:28 +00:00
Diego Biurrun ee1550116b whitespace cosmetics, prettyprinting
Originally committed as revision 19751 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-01 16:00:45 +00:00
Thilo Borgmann c6dbbc4576 Add function to compute ceil(log2(x)).
Patch by Thilo Borgmann <thilo.borgmann _at_ googlemail.com>

Originally committed as revision 19747 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-08-30 15:50:03 +00:00
Ramiro Polla e48a0966ca Add CHECKED_ALLOC macro.
It works the same as CHECKED_ALLOCZ except that it does not zero the allocated
memory.

Originally committed as revision 19742 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-08-29 22:38:48 +00:00
Måns Rullgård d691da9508 AVR32: optimisations for intreadwrite.h
Originally committed as revision 19665 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-08-17 00:15:53 +00:00
Måns Rullgård e482c2e2fb AVR32: inline asm for bswap.h
Originally committed as revision 19664 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-08-17 00:15:51 +00:00
Måns Rullgård 9dc6bb7b9f MIPS: 100L: fix AV_[RW]N64 on MIPS64
Originally committed as revision 19660 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-08-16 18:43:36 +00:00
Måns Rullgård 4a051891f6 cosmetics: reformat intreadwrite.h
Originally committed as revision 19659 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-08-16 18:06:25 +00:00
Måns Rullgård 63826ceb32 intreadwrite: ensure arch-specific versions are always used if defined
The per-arch headers can define any combination of B/L/N variants.
This ensures that whatever is defined in an arch header gets used
for all equivalents not defined there.  E.g. on a little-endian
machine, AV_RN and AV_RL should give the same code.

Originally committed as revision 19658 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-08-16 15:51:55 +00:00
Måns Rullgård 57c36bdcea intreadwrite: allow arch-specific 24-bit access macros
Originally committed as revision 19657 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-08-16 15:51:52 +00:00
Måns Rullgård e6956a6e48 ARM: first value loaded in AV_RN64 needs to be early-clobber
Originally committed as revision 19656 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-08-16 15:51:50 +00:00
Ramiro Polla f51fb686de Introduce av_clip_uint16().
Originally committed as revision 19636 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-08-13 18:47:13 +00:00
Diego Biurrun 3d7b15e450 Remove disabled code cruft.
Originally committed as revision 19616 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-08-10 13:42:16 +00:00
Måns Rullgård bd41c06f18 Define INFINITIY and NAN in mathematics.h if missing
Originally committed as revision 19611 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-08-10 01:27:27 +00:00
Diego Biurrun 75af07495a Revert addition of '#undef av_always_inline' to config.h in the small case.
Instead, #include config.h at the top of common.h so that av_always_inline
does not get doubly defined.

Originally committed as revision 19553 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-30 21:58:43 +00:00
Diego Biurrun 8b4e7c28fb Mark conditionally used variable T2 as av_unused; avoids the warning:
libavutil/sha.c:183: warning: unused variable `T2'

Originally committed as revision 19551 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-30 21:21:30 +00:00
Måns Rullgård b6ec1f47c7 PPC: fix asm operand constraints in AV_RL64
The target register of first word loaded must be marked early-clobber.

Originally committed as revision 19536 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-29 19:06:55 +00:00
Måns Rullgård 63613fe615 Replace WORDS_BIGENDIAN with HAVE_BIGENDIAN
Originally committed as revision 19508 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-26 12:20:04 +00:00
Måns Rullgård e7ea5e3d8d Check for __attribute__((packed)) support
Not all compilers claiming to be gcc support this attribute.

Originally committed as revision 19453 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-17 08:21:43 +00:00
Kostya Shishkov 87d718aefc cosmetics: reindent after last commit
Originally committed as revision 19450 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-17 04:30:49 +00:00
Kostya Shishkov aa5a99ae0c Add SHA-2 hashing
Originally committed as revision 19449 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-17 04:30:06 +00:00
Stefano Sabatini 68485d2728 Remove useless definition of struct AVCLASS.
Originally committed as revision 19402 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-12 11:30:42 +00:00
Alex Converse 291fd18a6e Add a log2 replacement for systems that haven't quite caught up with the C99
standard library.

Originally committed as revision 19395 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-10 19:20:06 +00:00
Kostya Shishkov 451ae25724 Prepare SHA code to handle SHA-2 as well. For now rename files and functions
and leave av_sha1_* functions for compatibility until next major bump.

Originally committed as revision 19394 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-10 15:50:49 +00:00
Kostya Shishkov 0d73abb86a Rename function to sha1_transform so it won't be confused with SHA-2 transform
when it's added.

Originally committed as revision 19389 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-09 07:29:03 +00:00
Kostya Shishkov 2c6361e009 Use pointer to hash transform function to make adding SHA-2 support easier.
Originally committed as revision 19388 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-09 07:23:43 +00:00
Kostya Shishkov 3a7c65077d cosmetics: vertical align AVSHA1 members
Originally committed as revision 19387 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-09 07:15:30 +00:00
Kostya Shishkov 01cc628845 Extend AVSHA1 so it can be used in future SHA-2 code as well
Originally committed as revision 19386 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-09 07:14:07 +00:00
Kostya Shishkov 4364fc9a0d Document SHA-1 functions and structures
Originally committed as revision 19385 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-09 07:07:01 +00:00
Ramiro Polla 16c2e21488 Move DECLARE_ALIGNED and DECLARE_ASM_CONST back from lavu/internal.h to
lavu/mem.h.

Originally committed as revision 19384 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-09 02:20:29 +00:00
Ramiro Polla 4b2be143cd Do not throw compiler error if asm code needs alignment, but we do not know
how to do it for this compiler. This removes a dependency of config.h on the
DECLARE_* macros.

Originally committed as revision 19383 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-09 02:18:29 +00:00
Måns Rullgård 300ad6c16e ARM: use gcc inline asm in bswap.h only when available
Originally committed as revision 19311 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-07-01 00:55:15 +00:00
Carl Eugen Hoyos a3a55b7848 Icc does not support attribute flatten, do not try to use it.
Originally committed as revision 19286 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-28 18:28:27 +00:00
Carl Eugen Hoyos 06be9d9d8e Icc 11.1 does not support attributes force_align_arg_pointer, alloc_size and cold.
Originally committed as revision 19282 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-27 08:34:04 +00:00
Jeff Downs d468ff0fdf Fix cast of byte buffer to uint32 that was disregarding alignment
requirements.
Now calculates crc byte at a time until aligned, then continues with uint32
optimized calculation.
This fixes crashes during mlp decoding on sparc (at least, maybe others).

Originally committed as revision 19160 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-12 02:13:12 +00:00
Diego Biurrun 0ef37cd52e cosmetics: Reformat file to K&R style upon Kostya's request.
Originally committed as revision 19154 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-11 10:16:51 +00:00
Diego Biurrun 9d58d4717a cosmetics: Add missing ending backslash to installed header list.
Originally committed as revision 19135 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-09 07:18:58 +00:00
Stefano Sabatini bf7e799c9e Remove '\p', '\c' and '\e' doxygen markup from doxy, as it should
improve plain text doxy readability.

See the thread: "[RFC] Should we use doxygen markup?".

Originally committed as revision 19122 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-06 09:35:15 +00:00
Måns Rullgård 530456bf31 MIPS: inline asm for intreadwrite.h
Originally committed as revision 18980 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-28 23:19:35 +00:00
Ramiro Polla 7d9beec775 Add LABEL_MANGLE() to export label symbols from inside asm blocks.
Originally committed as revision 18934 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-25 01:50:37 +00:00
David Conrad ef516f7377 Move ALIGN macro to libavutil/common.h and use it in various places
Originally committed as revision 18898 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-22 21:32:13 +00:00
Stefano Sabatini 7a79e51cd6 Add @code/@endcode commands to markup C code in av_tree_insert() doxy.
Originally committed as revision 18776 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-09 23:02:20 +00:00
Stefano Sabatini 9c5a4ea28c Add missing '*' to av_tree_insert() doxy.
Originally committed as revision 18775 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-09 23:00:46 +00:00
Michael Niedermayer 0ee51c556e Fix 10l typo (usage of PIX_FMT_NE()).
Should fix FATE, i forgot to commit this.

Originally committed as revision 18656 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-22 02:29:11 +00:00
Michael Niedermayer 6c2a860875 Add 420,422 and 444 planar 16bit per component pix formats.
Originally committed as revision 18636 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-21 01:02:48 +00:00
Måns Rullgård cc078b5d8f PPC: check for x-form asm constraint support
Originally committed as revision 18606 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-18 13:57:30 +00:00
Måns Rullgård 9f5ff83f2a PPC asm for AV_RL*()
PPC is normally big endian but has special little endian load/store
instructions.  Using these avoids a separate byteswap.  This makes the
vorbis decoder about 5% faster.  Not much else uses little-endian
read/write extensively.

GCC generates horrible PPC code for the default AV_[RW]B64 (which uses
a packed struct), so we override it with a plain pointer cast.

Originally committed as revision 18602 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-18 00:00:31 +00:00
Måns Rullgård 3c55ce039d ARM asm for AV_RN*()
ARMv6 and later support unaligned loads and stores for single
word/halfword but not double/multiple.  GCC is ignorant of this and
will always use bytewise accesses for unaligned data.  Casting to an
int32_t pointer is dangerous since a load/store double or multiple
instruction might be used (this happens with some code in FFmpeg).
Implementing the AV_[RW]* macros with inline asm using only supported
instructions gives fast and safe unaligned accesses.  ARM RVCT does
the right thing with generic code.

This gives an overall speedup of up to 10%.

Originally committed as revision 18601 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-18 00:00:28 +00:00
Måns Rullgård a6783b8961 Reorganise intreadwrite.h
This changes intreadwrite.h to support per-arch implementations of the
various macros allowing us to take advantage of special instructions
or other properties the compiler does not know about.

Originally committed as revision 18600 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-18 00:00:22 +00:00
Diego Biurrun 64bde1974b cosmetics: Rename prn variable to prng (Pseudo Random Number Generator).
Originally committed as revision 18422 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-10 17:23:38 +00:00
Diego Biurrun 985fdd534f Give liblzo benchmark conditionals more descriptive names and add convenience
definitions along with instructions for changing them.

Originally committed as revision 18387 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 15:11:48 +00:00
Diego Biurrun e467369278 Add a configure check for lzo1x_999_compress() and compile the lzo test program
in libavutil when this function is available.

Originally committed as revision 18386 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 14:55:05 +00:00
Olivier Guilyardi 7b09db3522 Implement av_fifo_space().
Patch by Olivier Guilyardi list et samalyse DOT c0m.

Originally committed as revision 18321 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-02 23:22:19 +00:00
Diego Biurrun a8f9e7f641 Fix lzo-test linking: -llzo2 should be in ELIBS, not EXTRALIBS.
Originally committed as revision 18320 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-02 22:41:58 +00:00
Diego Biurrun 82a6ef2089 Replace manual setting of the removed av_log_level variable by the
corresponding call to av_log_set_level().

Originally committed as revision 18310 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-02 08:15:03 +00:00
Måns Rullgård 60c703ac4b ARM: START/STOP_TIMER support for ARMv7
Originally committed as revision 18305 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-01 22:56:26 +00:00
Måns Rullgård 439ccc4e0e Split libavutil/timer.h per architecture
Originally committed as revision 18304 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-01 22:56:22 +00:00
Benoit Fouet 168fffdf01 Fix warnings in tree.c test code.
Originally committed as revision 18267 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 14:00:46 +00:00
Diego Biurrun 504ffed19f Mark non-exported functions in test and example programs as static.
Originally committed as revision 18259 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 09:32:59 +00:00
Diego Biurrun 3344cf851c Use a wildcard match instead of a list to remove test programs.
This is robust against renames and also removes test programs not
(yet) hooked up in the main Makefiles.

Originally committed as revision 18193 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-26 10:12:21 +00:00
Diego Biurrun 7304c2c4ce Move adding the '-test$(EXESUF)' suffix to test programs into common.mak.
Originally committed as revision 18189 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-25 18:19:20 +00:00
Stefano Sabatini 77544e5b91 Use PIX_FMT_NE() for defining the PIX_FMT_RGB32 variants macros.
Originally committed as revision 18174 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-23 23:01:11 +00:00
Stefano Sabatini 1cee4eafa3 Make the PIX_FMT_NE() macro more generic.
Originally committed as revision 18173 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-23 22:57:55 +00:00
Diego Biurrun 661ce28996 Rename 'tests' target to 'testprogs'. It is too easily confused with the
'test' target and a directory named tests exists.

Originally committed as revision 18165 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 23:13:21 +00:00
Stefano Sabatini 6e08ca9c51 Make the pixel formats which were defined as macros:
PIX_FMT_ARGB
PIX_FMT_RGBA
PIX_FMT_ABGR
PIX_FMT_BGRA

defined as enum PixelFormat values, and viceversa make:
PIX_FMT_RGB32
PIX_FMT_RGB32_1
PIX_FMT_BGR32
PIX_FMT_BGR32_1

defined as macros, also resort accordingly the enum PixelFormat
list.
Also make avcodec_get_pix_fmt() recognize the "rgb32" and "bgr32"
aliases, in order to make ffmpeg pass regressions test.

This change breaks ABI backward compatibility.

Originally committed as revision 18163 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 22:50:19 +00:00
Stefano Sabatini f82674e584 Change the RGB5X5/BGR5X5 pixel format defines so that we have little
endian and big endian variants instead of native-endian ones.

This patch breaks API/ABI backward-compatibility.

Originally committed as revision 18133 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 23:08:20 +00:00
Stefano Sabatini 31a79497b7 Use PIX_FMT_NE() macro.
Originally committed as revision 18132 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 22:50:29 +00:00
Stefano Sabatini a1a05abebd Implement PIX_FMT_NE() macro.
Originally committed as revision 18131 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 22:48:48 +00:00
Diego Biurrun ee6624ef4a Remove deprecated and now unused Mersenne Twister PRNG.
Originally committed as revision 18116 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 17:28:38 +00:00
Diego Biurrun 9f5da4d189 When warning about forbidden pseudo random number generation functions,
suggest the correct replacement functions.

Originally committed as revision 18114 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 16:16:04 +00:00
Diego Biurrun 0e4cb6cbad Fix reference to av_random where av_lfg_get was meant.
Originally committed as revision 18112 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 16:14:21 +00:00
Diego Biurrun 294eaa2643 Replace random() usage in test programs by av_lfg_*().
Originally committed as revision 18070 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-20 11:48:27 +00:00
Diego Biurrun 578f90a8d5 Align test program output columns.
Originally committed as revision 18068 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-20 11:40:05 +00:00
Diego Biurrun 7349392535 Make softfloat test program compile again: Setting the av_log_level variable
needs to be replaced by a call to av_log_set_level().

Originally committed as revision 18056 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-20 00:23:13 +00:00
Diego Biurrun b56e34c5e9 Make AES test program compile again: Setting the av_log_level variable
needs to be replaced by a call to av_log_set_level().

Originally committed as revision 18055 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-20 00:18:46 +00:00
Michael Niedermayer 8e3d8a82e6 typedef int x86_reg on non x86
Originally committed as revision 18043 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-19 14:49:47 +00:00
Diego Biurrun bb504ac45e Fix compilation of adler32 test program: Use av_log_set_level()
instead of assigning a value to the av_log_level variable.

Originally committed as revision 18040 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-19 01:10:30 +00:00
Diego Biurrun 3cf6adaf64 Remove code that was disabled by the recent major version bump.
Originally committed as revision 17990 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-15 17:20:24 +00:00
Stefano Sabatini 323a8230fb Fix typo: 'conjuction' -> 'conjunction'.
Originally committed as revision 17989 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-15 16:36:36 +00:00
Måns Rullgård 9bceffef3a Fix ff_random_get_seed() prototype
Originally committed as revision 17970 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-14 23:00:57 +00:00
Stefano Sabatini 8358c03479 Fix typos.
Originally committed as revision 17927 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-10 21:41:31 +00:00
Reimar Döffinger 3898eed890 Reorder arguments for av_fifo_generic_read to be more logical and
consistent with av_fifo_generic_write.

Originally committed as revision 17914 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-09 17:47:47 +00:00
Gwenole Beauchesne 2500d8bea6 Update VA API pixfmts documentation: struct vaapi_render_state
shall now be copied to Picture.data[3].

Originally committed as revision 17912 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-09 15:52:45 +00:00
Diego Biurrun 082dea8e40 Remove all remaining code that was disabled through the major version bump.
Originally committed as revision 17903 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-09 10:24:47 +00:00
Reimar Döffinger 32b936d0c3 Add av_fifo_reset function to completely reset fifo state, which makes
it easier to reuse the fifo.

Originally committed as revision 17901 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-09 09:26:32 +00:00
Michael Niedermayer c900635fd9 indent
Originally committed as revision 17897 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-09 03:39:58 +00:00
Reimar Döffinger fe4032b66a Remove more functions disabled by major version bump.
Originally committed as revision 17876 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-08 15:02:12 +00:00
Reimar Döffinger 3fb1084306 Remove/replace code disabled by major version bump.
Originally committed as revision 17875 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-08 14:51:25 +00:00
Michael Niedermayer 52a6632a2b Deprecate the Mersenne Twister.
Please use an ALFG, MLFG, LCG or KISS99 generator, MLFG&KISS99 provide higher quality
numbers and all should be faster.

Originally committed as revision 17874 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-08 14:46:10 +00:00
Reimar Döffinger c957c85426 Replace all uses of the replaced av_fifo_read by av_fifo_generic_read
Originally committed as revision 17873 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-08 14:42:11 +00:00
Michael Niedermayer 792e467904 Remove the Mersenne Twister from the public API/ABI.
We provide better PRNGs.

Originally committed as revision 17872 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-08 14:35:13 +00:00
Michael Niedermayer 49ceb58bf6 Bump major version of libavutil due to FIFO fixes.
The current API/ABI should not be considered stable yet, further ABI/API
breakage is possible without major bumps.

Originally committed as revision 17871 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-08 14:33:30 +00:00
Reimar Döffinger cddcf8c60f Remove av_fifo_read, API is already broken and major version will be bumped soon.
Originally committed as revision 17870 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-08 14:21:56 +00:00
Michael Niedermayer 41dd680dd8 Allocate AVFifoBuffer through the fifo API to reduce future API/ABI issues.
Yes this breaks ABI/API but ive already broken it and will bump avutil major
soon.

Originally committed as revision 17869 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-08 14:16:55 +00:00
Baptiste Coudurier 48d58e592a add ff_random_get_seed to be used in conjunction with random functions
Originally committed as revision 17868 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-08 01:28:14 +00:00
Michael Niedermayer a936475949 Comments to indicate where memory barriers may be needed.
Originally committed as revision 17867 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-08 00:45:45 +00:00
Michael Niedermayer 0a71e78ce4 Try to fix the 1 byte cannot be used issue.
Originally committed as revision 17865 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-07 21:02:08 +00:00
Måns Rullgård 35690321a7 ARM: disable inline asm for armcc
Originally committed as revision 17831 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-05 21:20:13 +00:00
Måns Rullgård 1e65f62e2b ARM: armcc versions of bswap_16/32
Originally committed as revision 17830 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-05 21:20:10 +00:00
Gwenole Beauchesne f06ce1ce89 Add VA API pixel formats.
Patch by Gwenole Beauchesne.

Originally committed as revision 17634 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-27 08:12:41 +00:00
Michael Niedermayer b9c353fff2 Compact repeated messages to "Last message repeated x times".
Originally committed as revision 17531 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-22 17:53:14 +00:00
Stefano Sabatini 04331dea2a Split avutil.h, move all the pixel format definitions to the new
dedicated file pixfmt.h.

Originally committed as revision 17528 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-22 14:27:50 +00:00
Michael Niedermayer 50ded3fdb6 Add note about big vs. little endian.
Originally committed as revision 17525 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-22 13:48:25 +00:00
Peter Ross 88c21a6f14 Add PIX_FMT_RGB48BE and PIX_FMT_RGB48LE.
Originally committed as revision 17510 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-22 00:55:49 +00:00
Måns Rullgård 03bc0f3744 Avoid warnings from AV_GCC_VERSION_AT_LEAST with some non-gcc compilers
Originally committed as revision 17508 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-22 00:13:23 +00:00
Patrik Kullman a90de11dba Check return value of posix_memalign and explicitly set pointer to NULL if it
fails, patch by Patrik Kullman, patrik yes nu.

Originally committed as revision 17495 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-21 20:38:27 +00:00
Måns Rullgård 28499cc8d8 Correct, portable definition of INT_BIT
Originally committed as revision 17480 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-21 16:03:30 +00:00
Diego Biurrun 22009729d7 Remove reference to renamed header file xvmc_render.h.
Originally committed as revision 17171 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-12 02:02:42 +00:00
Carl Eugen Hoyos 0dd8966638 Silence one icc warning:
variable "..." is used before its value is set

Originally committed as revision 17127 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-10 09:12:52 +00:00
Diego Biurrun b7d3a8c13f Use AV_GCC_VERSION_AT_LEAST instead of complicated __GNUC__ version check.
Originally committed as revision 17114 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-10 01:24:06 +00:00
Michael Niedermayer 3b49f69077 av_flatten to make the similarly named attribute available.
Originally committed as revision 17105 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-09 21:47:57 +00:00
Michael Niedermayer 51066987cf av_uninit() to suppress false uninitialized warnings from gcc without deoptimizing code.
Originally committed as revision 17104 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-09 21:47:05 +00:00
Stefano Sabatini 74afdc5535 Document the av_base64_encode/decode functions.
See the thread:
"[PATCH] Improve documentation for libavutil/base64.h".

Originally committed as revision 17074 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-08 21:23:15 +00:00
Stefano Sabatini ac76729c10 Cosmetics: "* out" -> "*out" for consistency with the other
parameters.

Originally committed as revision 17072 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-08 21:19:04 +00:00
Stefano Sabatini 5118bd441d Cosmetics: rename the "size" parameter of av_base64_encode() to "in_size".
Originally committed as revision 17071 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-08 21:16:36 +00:00
Stefano Sabatini 52ef50a080 Cosmetics: prefer out/in over buf/src for the parameter names of
av_base64_encode(), for consistency/readability reasons.

Originally committed as revision 17069 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-08 21:13:11 +00:00
Stefano Sabatini 61ccbc52ea Cosmetics: consistently prefer "size" over "len"/"length" for the
variable names.

Originally committed as revision 17067 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-08 21:08:42 +00:00
Stefano Sabatini 0d20c3fdad Make av_base64_encode() do not require the user to provide an
overallocated buffer where to put the encoded string.

See the thread:
"[PATCH] Improve documentation for libavutil/base64.h".

Originally committed as revision 17065 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-08 21:00:39 +00:00
Stefano Sabatini 21eff9ced7 Add a new test program for base64, based on that removed in r17024.
See the thread:
"[PATCH] remove unused and broken test program in libavutil/base64.c".

Originally committed as revision 17025 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-06 23:29:25 +00:00
Stefano Sabatini 33094be894 Remove broken test program.
Originally committed as revision 17024 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-06 23:24:17 +00:00
Michael Niedermayer 6337178b4f Ensure that the palette is set in data[1] for all 8bit formats.
Also document it.

Originally committed as revision 17018 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-06 12:59:50 +00:00
Reimar Döffinger 25a03ba358 100l, don't run tests twice, this was some forgotten debugging code.
Originally committed as revision 16975 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-03 18:04:52 +00:00
Reimar Döffinger 551a0c796e Fix a bug in 3DEC CBC decryption and add more extensive tests based on
the official test vectors.

Originally committed as revision 16974 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-03 17:58:19 +00:00
Reimar Döffinger 61eb8cc420 Update DES test code to use the new public API.
Originally committed as revision 16972 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-03 17:03:49 +00:00
Reimar Döffinger bc17cc01ed Add support for 3DES to DES module
Originally committed as revision 16971 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-03 16:45:42 +00:00
Reimar Döffinger 1a534c7f1e Add and use a public API for RC4 and DES, analogous to the AES API.
Originally committed as revision 16970 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-03 14:20:55 +00:00
Diego Biurrun 0d08e27015 Add necessary header for LIBAVUTIL_VERSION_MAJOR, fixes the warning:
libavutil/lzo.c:235:5: warning: "LIBAVUTIL_VERSION_MAJOR" is not defined

Originally committed as revision 16962 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-02 23:13:18 +00:00
Reimar Döffinger 679f5c2542 Documentation for LZO error return value flags
Originally committed as revision 16950 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-02 20:42:06 +00:00
Reimar Döffinger a545f067f3 Move doxygen documentation from lzo.c to lzo.h
Originally committed as revision 16949 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-02 20:30:36 +00:00
Reimar Döffinger 0b178e5629 Add av_ prefix to LZO stuff and thus make it officially part of the public API.
Keep lzo1x_decode until the next major version bump for binary compatibility.

Originally committed as revision 16946 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-02 20:16:00 +00:00
Diego Biurrun bad5537e2c Use full internal pathname in doxygen @file directives.
Otherwise doxygen complains about ambiguous filenames when files exist
under the same name in different subdirectories.

Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-01 02:00:19 +00:00
Diego Biurrun 674bd4f691 cosmetics: Use 'num' instead of 'nom' as abbreviation for numerator.
Originally committed as revision 16910 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-01 00:20:45 +00:00
Diego Biurrun 9d52d54df3 Add required header mem.h, av_malloc and friends are used.
Originally committed as revision 16863 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-30 18:52:51 +00:00
Diego Biurrun dbef3f46b9 cosmetics: Move all #includes together at the beginning of the file.
Originally committed as revision 16862 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-30 18:46:39 +00:00
Diego Biurrun 4d55404fca Rename string.c to avstring.c so that the name of header and C file match.
Originally committed as revision 16853 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-29 22:12:36 +00:00
Diego Biurrun 7d685b486b spelling/grammar/consistency review part III
Originally committed as revision 16849 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-28 23:16:49 +00:00
Diego Biurrun bfe3676feb spelling/grammar/consistency review part II
Originally committed as revision 16848 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-28 23:03:17 +00:00
Reimar Döffinger 7b484a7a17 Add "const" to AES function arguments where possible without generating
more warnings.

Originally committed as revision 16847 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-28 17:48:26 +00:00
Diego Biurrun b69201a82c Add common.h #include, necessary for av_const.
Originally committed as revision 16844 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-28 08:50:10 +00:00
Diego Biurrun 89c9ff504b spelling/grammar/consistency review part I
Originally committed as revision 16840 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-28 00:16:05 +00:00
Aurelien Jacobs eded5c4309 add a ff_gcd() function again, for compatibility with old libavcodec
Originally committed as revision 16814 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-27 00:46:18 +00:00
Diego Biurrun 811bfa76ce Remove misleading comment about how to build SHA1 test program.
Generating the test program is integrated into the build system already.

Originally committed as revision 16804 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-26 11:15:47 +00:00
Diego Biurrun 8076c4731f Reorganize header #includes: Unconditionally #include standard C headers,
group all local #includes together.

Originally committed as revision 16796 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-25 23:21:02 +00:00
Diego Biurrun 1e60e93355 10l: Add #undefs for system free/malloc/realloc, which must be used here.
Originally committed as revision 16794 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-25 22:59:05 +00:00
Diego Biurrun 77652a6aaf C files should #include the header files of the same name.
Originally committed as revision 16792 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-25 22:40:43 +00:00
Diego Biurrun b58f29a171 Disambiguate the macros used to disable fprintf/printf/puts functions.
Originally committed as revision 16790 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-25 22:05:26 +00:00
Diego Biurrun ed0fd852a3 Add required limits.h header.
Originally committed as revision 16789 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-25 21:54:05 +00:00
Diego Biurrun 0f73b510f0 Restore _MSC_VER case in DECLARE_ALIGNED/DECLARE_ASM_CONST macro declaration.
This compiler might be supported in the future or we might some day decide
to export these macros.

Originally committed as revision 16786 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-25 19:51:07 +00:00
Diego Biurrun 3bb13a4770 Drop _MSC_VER case from macro declaration.
This compiler will never see our internal headers.

Originally committed as revision 16783 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-25 19:24:47 +00:00
Diego Biurrun 5090122f90 Drop deprecated av_fifo_write function with the next libavutil version bump.
Originally committed as revision 16782 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-25 19:22:47 +00:00
Diego Biurrun 4ce9492339 Move DECLARE_ALIGNED and DECLARE_ASM_CONST to internal.h.
Their definition depends on preprocessor directives from config.h,
thus they cannot be declared in a public header since public headers
cannot #include config.h.

Originally committed as revision 16781 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-25 19:18:56 +00:00
Diego Biurrun 692c315e3a Do not #include common.h without necessity.
This eliminates the need to work around common.h overriding certain system
functions which are required in this header.

Originally committed as revision 16776 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-25 17:36:48 +00:00
Diego Biurrun f3c04c1385 Remove redundant av_log2_16bit forward declaration, fixes checkheaders warning:
libavutil/internal.h:167: warning: redundant redeclaration of `av_log2_16bit'
libavutil/common.h:143: warning: previous definition of `av_log2_16bit' was here

Originally committed as revision 16773 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-25 14:01:23 +00:00
Diego Biurrun 6b8b7258e4 Move internal.h #include to the end of the file so that it is after
the declaration of av_log2_16bit, which it uses.

Originally committed as revision 16772 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-25 14:00:21 +00:00
Diego Biurrun dfcb6b56f9 Directly #include a bunch of indirectly #included headers.
Originally committed as revision 16748 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-24 14:55:30 +00:00
Diego Biurrun 7a845019c1 Avoid unused variable warning when compiling DES test program.
Originally committed as revision 16715 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-21 23:55:51 +00:00
Diego Biurrun 448887a6bb Make base64 test program compilable as a standard test program.
Originally committed as revision 16713 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-21 17:34:40 +00:00
Diego Biurrun 40f5cd89c9 Add void keyword to parameterless function declaration.
Originally committed as revision 16712 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-21 14:28:16 +00:00
NVIDIA Corporation c5b42f4a80 Add VDPAU hardware accelerated decoding for WMV3 and VC1 which can
be used by video players.

Original patch by NVIDIA corporation.

Originally committed as revision 16699 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-20 09:28:36 +00:00
Diego Biurrun 406792e7b0 cosmetics: Remove pointless period after copyright statement non-sentences.
Originally committed as revision 16684 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-19 15:46:40 +00:00
Stefano Sabatini 796dff07de Drop the deprecated av_init_random() at the next libavutil major bump.
Originally committed as revision 16683 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-18 23:07:30 +00:00
Stefano Sabatini 9c868219e9 Replace calls to the deprecated function av_init_random() with
corresponding calls to av_random_init().

Originally committed as revision 16682 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-18 23:04:33 +00:00
Aurelien Jacobs 199436b952 moves mid_pred() into mathops.h (with arch specific code split by directory)
Originally committed as revision 16681 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-18 22:57:40 +00:00
Stefano Sabatini b097312492 Deprecate av_init_random() in favour of av_random_init(), with a more natural
name and order of parameters.

Originally committed as revision 16679 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-18 22:50:57 +00:00
Aurelien Jacobs 2bb6eba21d remove ff_get_fourcc() and use AV_RL32() instead
Originally committed as revision 16654 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-17 12:21:01 +00:00
Aurelien Jacobs 9ce6c13879 export gcd function as av_gcd()
Originally committed as revision 16653 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-17 11:13:33 +00:00
NVIDIA Corporation d37edddc09 Add VDPAU hardware accelerated decoding for MPEG1 and MPEG2 which can
be used by video players.

Original patch by NVIDIA corporation.

Originally committed as revision 16628 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-16 02:14:07 +00:00
Aurelien Jacobs d80a7fe50a move NULL_IF_CONFIG_SMALL() definition into internal header
Originally committed as revision 16619 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-15 23:01:26 +00:00
Aurelien Jacobs 2f5421d513 move timer related code in a new timer.h file
Originally committed as revision 16618 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-15 22:58:35 +00:00
Aurelien Jacobs b250f9c66d 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
2009-01-13 23:44:16 +00:00
Aurelien Jacobs af5f434f8c add the necessary include for LIBAV*_VERSION_*
Originally committed as revision 16571 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-13 00:14:43 +00:00
Diego Biurrun 7b5e8a274a Extend 'checkheaders' target to architecture-specific subdirectories.
Originally committed as revision 16559 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-11 22:48:07 +00:00
Michael Kostylev 7b04b8a057 Add truncf() replacement function.
Patch by Michael Kostylev <mik at it-1 dot ru>

Originally committed as revision 16555 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-11 22:10:04 +00:00
Diego Biurrun e503674c4a Add necessary, remove unnecessary #includes.
Originally committed as revision 16547 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-11 21:03:42 +00:00
Diego Biurrun ff8769e205 Drop unnecessary intreadwrite.h and bswap.h #includes.
Originally committed as revision 16546 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-11 20:26:53 +00:00
Ramiro Polla 1f91cdce0b Use posix_memalign() if available.
Originally committed as revision 16488 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-07 23:36:34 +00:00
Diego Biurrun c47d146be8 Add missing 'void' keyword to parameterless function declarations.
Originally committed as revision 16436 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-05 13:57:43 +00:00
NVIDIA Corporation 369122dd77 Add VDPAU hardware accelerated decoding for H264 which can be used by
video players.

Original patch by NVIDIA corporation.

Originally committed as revision 16431 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-04 23:55:27 +00:00
Aurelien Jacobs 045cbba92d cosmetic: indent
Originally committed as revision 16423 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-04 17:48:54 +00:00
Aurelien Jacobs d8bd113ef4 add a termination condition
Originally committed as revision 16422 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-04 17:48:19 +00:00
Diego Biurrun 79cb09b2f7 consistency cosmetics: Rename POWERPC identifiers to PPC.
Originally committed as revision 16359 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-27 11:33:26 +00:00
Carl Eugen Hoyos af4c0bcb6e Silence the following icc warnings:
warning #1292: attribute "force_align_arg_pointer" ignored
warning #1292: attribute "alloc_size" ignored
warning #1292: attribute "cold" ignored

Originally committed as revision 16258 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-21 22:51:33 +00:00
Carl Eugen Hoyos 52476c1bee Use AV_GCC_VERSION_AT_LEAST() to simplify gcc version checks.
Originally committed as revision 16246 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-20 17:33:35 +00:00
Måns Rullgård f8c5adaf9c ARM: make FASTDIV() an inline function
Originally committed as revision 16193 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-17 20:04:39 +00:00
Måns Rullgård a2fc0f6a6d ARM: replace "armv4l" with "arm"
Originally committed as revision 16179 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-17 00:54:54 +00:00
Diego Biurrun f0e602351e cosmetics: Consistently place HEADERS before OBJS in all Makefiles.
Originally committed as revision 15896 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-20 22:53:18 +00:00
Diego Biurrun ecad9872fb Initialize variable to silence the warning:
libavutil/pca.c:72: warning: ‘k’ may be used uninitialized in this function

Originally committed as revision 15760 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-10-31 06:52:37 +00:00
Måns Rullgård ede725104b cosmetic: align backslashes in makefiles
Originally committed as revision 15717 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-10-26 15:21:45 +00:00
Måns Rullgård b98f10c08a ARM: faster ARMv6 FASTDIV()
Originally committed as revision 15712 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-10-25 18:54:23 +00:00
Måns Rullgård 3a90480ac4 split bswap.h into per-arch files
Originally committed as revision 15663 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-10-21 22:29:57 +00:00
Aurelien Jacobs 37d3e0667a uses FF_ARRAY_ELEMS() where appropriate
Originally committed as revision 15662 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-10-21 21:40:24 +00:00
Michael Niedermayer 03092e1408 Port read_time() that works on x86_32 and 64 from noe.
Originally committed as revision 15661 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-10-21 14:57:55 +00:00
Måns Rullgård e80b267536 ARM: Kill warning in bswap_32()
Originally committed as revision 15648 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-10-20 00:03:25 +00:00
Diego Pettenò be449fca79 Convert asm keyword into __asm__.
Neither the asm() nor the __asm__() keyword is part of the C99
standard, but while GCC accepts the former in C89 syntax, it is not
accepted in C99 unless GNU extensions are turned on (with -fasm). The
latter form is accepted in any syntax as an extension (without
requiring further command-line options).

Sun Studio C99 compiler also does not accept asm() while accepting
__asm__(), albeit reporting warnings that it's not valid C99 syntax.

Originally committed as revision 15627 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-10-16 13:34:09 +00:00
Benoit Fouet c49d0e0fe2 Bump minor version after addition of FF_ARRAY_ELEMS macro.
Originally committed as revision 15623 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-10-15 08:06:12 +00:00
Benoit Fouet ac809e814e Add a macro to get the number of elements in a table.
Originally committed as revision 15619 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-10-15 07:24:54 +00:00
Carl Eugen Hoyos 89493e10ef Don't include byteswap.h anymore.
Originally committed as revision 15603 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-10-12 19:50:24 +00:00
Carl Eugen Hoyos aaa0df02d3 Allow using DECLARE_ALIGNED with Sun cc.
Originally committed as revision 15509 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-10-02 10:47:05 +00:00
Stefano Sabatini 05b90fc0c5 Implement av_nearer_q() and av_find_nearest_q_idx() functions.
Originally committed as revision 15415 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-09-25 19:23:13 +00:00
Michael Niedermayer eed3607564 Avoid undefined behavior for removing elements that were not in the tree.
Originally committed as revision 15368 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-09-19 12:41:12 +00:00
Michael Niedermayer 53e9d0105f Fix generated md5, it was wrong for some input lengths.
Fix issue634.

Originally committed as revision 15335 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-09-15 22:10:28 +00:00
Diego Biurrun 9be50e3922 Only define x86 register names on x86.
Originally committed as revision 15328 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-09-14 22:17:40 +00:00
Stefano Sabatini 6123abad2e Remove wrong and unnecessary condition. VHOOK filters are not special
so they are not supposed to use the printf, fprintf, perror and puts
functions but av_log instead.

Originally committed as revision 15221 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-09-06 07:26:05 +00:00
Michael Niedermayer 991945d0e4 Fix typo.
Originally committed as revision 15199 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-09-04 20:39:09 +00:00
Stefano Sabatini 987903826b Globally rename the header inclusion guard names.
Consistently apply this rule: the guard name is obtained from the
filename by stripping the leading "lib", converting '/' and '.'  to
'_' and uppercasing the resulting name. Guard names in the root
directory have to be prefixed by "FFMPEG_".

Originally committed as revision 15120 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-31 07:39:47 +00:00
Stefano Sabatini b76e3424ca Cosmetics: remove a redundant and misplaced doxy.
Originally committed as revision 14856 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-19 22:17:13 +00:00
Stefano Sabatini e8e2b2ef17 Deprecate av_fifo_realloc(). av_fifo_realloc2() should be used instead.
Originally committed as revision 14855 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-19 22:15:05 +00:00
Stefano Sabatini 8257b835cf Implement av_fifo_realloc2().
Originally committed as revision 14846 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-19 18:43:34 +00:00
Michael Niedermayer a8aefc8aed Copy and paste LGPL from tree.h, the previous one referred to a non-existing
version.

Originally committed as revision 14818 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-17 19:32:51 +00:00
Diego Biurrun 82ed0b763a Add missing stdint.h header to fix 'make checkheaders'.
Originally committed as revision 14816 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-17 19:15:33 +00:00
Justin Ruggles ec0350c983 use LFG instead of Mersenne Twister for AC-3 PRNG
Originally committed as revision 14815 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-17 17:41:48 +00:00
Michael Niedermayer 8cb2db4edb restore alphabetical order of TESTS
Originally committed as revision 14813 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-17 16:58:47 +00:00
Michael Niedermayer 31bcb290cc Add PCA to TESTS.
Originally committed as revision 14812 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-17 16:44:13 +00:00
Michael Niedermayer 4869f47eca Add multiple inclusion guards for consistency and to avoid them being
forgotten in case they ever become neccessary.

Originally committed as revision 14810 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-17 15:53:12 +00:00
Michael Niedermayer ab1388e435 Move context struct to c file.
Originally committed as revision 14809 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-17 15:51:20 +00:00
Michael Niedermayer f43ad0fe74 Add prototypes to header (based on code by ramiro)
Originally committed as revision 14808 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-17 15:50:20 +00:00
Michael Niedermayer 6441737591 Make ff_pca_init() allocate it struct instead of letting the user provide
one (more robust ABI wise).

Originally committed as revision 14807 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-17 15:46:20 +00:00
Michael Niedermayer 7b0a6612c6 Do not mix declarations and statements (by ramiro).
Originally committed as revision 14806 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-17 15:35:55 +00:00
Michael Niedermayer 88ccaf6f31 put testing code under #ifdef TEST
Originally committed as revision 14805 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-17 15:33:17 +00:00
Michael Niedermayer cd5cd37741 Testing code uses random().
Originally committed as revision 14804 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-17 15:32:50 +00:00
Michael Niedermayer a50bd69d9d fix includes
Originally committed as revision 14803 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-17 15:32:13 +00:00
Michael Niedermayer 7a0d00d49e Principal component analysis
(will be cleaned up in next commits)

Originally committed as revision 14802 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-17 15:28:12 +00:00
Diego Biurrun 2b409ca9d6 Remove hackish support for fastmemcpy from MPlayer.
Originally committed as revision 14764 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-14 20:40:36 +00:00
Aurelien Jacobs 5af4f1f3e3 move M_PI definition along with other math definitions
Originally committed as revision 14727 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-13 16:01:21 +00:00
Aurelien Jacobs d1a12956a0 define some math constants so as not to depend on _XOPEN_SOURCE
Originally committed as revision 14725 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-13 10:04:59 +00:00
Stefano Sabatini 76eb5c0523 Cosmetics: fix weird indent.
Originally committed as revision 14670 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-08 19:50:35 +00:00
Stefano Sabatini 7f0026dded Implement avutil_version().
Originally committed as revision 14665 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-08 18:32:20 +00:00
Benoit Fouet bc02bc8686 Remove unused redefinition of av_log for test.
Originally committed as revision 14657 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-07 07:01:54 +00:00
Benoit Fouet c3b9f5fbce Remove a useless directive.
Originally committed as revision 14645 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-06 12:04:35 +00:00
Benoit Fouet 2daefd2c00 Cosmetics: indentation
Originally committed as revision 14644 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-06 12:03:51 +00:00
Peter Ross 6ba10f338a Add av_memcpy_backptr(): deliberately overlapping memcpy variant.
Originally committed as revision 14641 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-06 08:17:03 +00:00
Diego Biurrun 354de1d0b5 misc spelling/wording fixes
Originally committed as revision 14539 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-04 21:54:50 +00:00
Måns Rullgård c8fd5da42f fix ARMv6 FASTDIV for divisor <=2
Originally committed as revision 14481 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-31 02:38:40 +00:00
Michael Niedermayer f39e8b03c8 1000l typo my new PRNG converged to -1.
Originally committed as revision 14479 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-30 23:17:41 +00:00
Michael Niedermayer 310d442456 Add a multiplicative LFG for those thinking the additive is not good
enough, just 4 lines of code.

Originally committed as revision 14478 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-30 23:08:07 +00:00
Diego Biurrun 9f31c7ef37 USE_FASTMEMCPY is now called CONFIG_FASTMEMCPY in MPlayer.
Originally committed as revision 14475 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-30 12:02:22 +00:00
Michael Niedermayer 2cf3c8632c Document av_lfg_get().
Originally committed as revision 14461 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-28 15:47:06 +00:00
Michael Niedermayer e80d474119 Warning about MTs speed.
Originally committed as revision 14460 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-28 15:44:00 +00:00
Michael Niedermayer 2754fe8ba5 Simple lagged fibonacci PRNG.
3.5 times faster than our mersene twister.
10 times less memory needed. (=less cache trashing)

Originally committed as revision 14458 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-28 15:35:04 +00:00
Diego Biurrun 58fe735631 Add random to list of test programs.
Originally committed as revision 14441 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-27 21:11:06 +00:00
Diego Biurrun cf160899dd Change return type of main function to int to avoid a warning.
Originally committed as revision 14440 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-27 21:10:32 +00:00
Diego Biurrun 00c6161d5a Move #includes, which are only used in the test program, below the #ifdef
surrounding the test program to save an #ifdef at the top of the file.

Originally committed as revision 14439 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-27 21:05:12 +00:00
Michael Niedermayer 51be0eb482 Change benchmarking code so it returns comparable values.
Originally committed as revision 14434 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-27 20:53:30 +00:00
Michael Niedermayer b6ff078b7b Make the selftesting code use and compileable.
Originally committed as revision 14433 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-27 20:50:24 +00:00
Diego Biurrun ca74c0a180 cosmetics: Fix two common typos: wont --> will not, lets --> let us.
Originally committed as revision 14372 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-24 17:09:28 +00:00
Diego Biurrun 80a61f08d2 Remove AltiVec vector declaration compiler compatibility macros.
The original problem was that FSF and Apple gcc used a different syntax
for vector declarations, i.e. {} vs. (). Nowadays Apple gcc versions support
the standard {} syntax and versions that support {} are available on all
relevant Mac OS X versions. Thus the greater compatibility is no longer
worth cluttering the code with macros.

Originally committed as revision 14366 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-24 10:53:32 +00:00
Måns Rullgård b7b38fb28a intreadwrite: support DEC compiler __unaligned type qualifier
Originally committed as revision 14275 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-18 01:18:59 +00:00
Måns Rullgård fbbea48eb3 Rearrange AV_[RW][BL]*() macros
Originally committed as revision 14265 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-17 18:42:19 +00:00
Måns Rullgård 6651ce17b8 ARM: ARMv6 optimised FASTDIV
Originally committed as revision 14242 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-15 19:06:18 +00:00
Måns Rullgård c696a863d4 ARM: fix ARCH_ARM -> ARCH_ARMV4L test in bswap_32()
Originally committed as revision 14240 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-15 19:06:03 +00:00
Måns Rullgård ea66f252a8 ARM: ARMv6 optimised bswap_16/32
Originally committed as revision 14239 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-15 19:05:49 +00:00
Alexander Strange b1e12f99a2 Print the address of the AVCodecContext in av_log().
This makes debug output much easier to read when the
same codec is open more than once.

Originally committed as revision 14237 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-15 17:17:35 +00:00
Vitor Sessak 4138ad961c Add av_clipf() function to common.h and use it in ra288.c
Originally committed as revision 14213 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-13 19:59:44 +00:00
Loren Merritt f27e1d645e simplify vorbis windowing
Originally committed as revision 14205 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-13 14:56:01 +00:00
Peter Ross d7bd0b3dea Only define AltiVec vector syntax macro when AltiVec is enabled.
patch by Peter Ross, pross xvid org

Originally committed as revision 14073 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-05 08:10:47 +00:00
Michael Niedermayer 8cd8eaa546 Make START/STOP_TIMER not require -v 2.
Originally committed as revision 13711 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-08 10:55:34 +00:00
Måns Rullgård 40c13fecfa alloc_size attribute is new to gcc 4.3; don't use it with lesser versions
Originally committed as revision 13665 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-05 19:49:47 +00:00
Rafaël Carré d326dd9797 Fix embarassing __GNU__ vs. __GNUC__ typo in preprocessor condition.
patch by Rafaël Carré, funman videolan org

Originally committed as revision 13652 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-03 22:10:53 +00:00
Stefano Sabatini 4a567b40b1 Macro suggested by Michael which will be used to disable the
definition of long_name strings in libavcodec and libavformat.
Patch by: Stefano Sabatini, stefano.sabatini-lala poste it

Originally committed as revision 13595 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-06-01 07:37:43 +00:00
Diego Biurrun b006b26c83 Implement a proper configure test for AltiVec vector declaration syntax.
Originally committed as revision 13555 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-30 10:58:48 +00:00
Michael Niedermayer fa3b98182d Ensure that one can store X bytes in a fifo of size X.
Fixed issue417.

Originally committed as revision 13405 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-25 23:04:09 +00:00
Michael Niedermayer 0871ae1a93 Make av_fifo*_read() ignore the available amount of data.
This is more efficient as in practice the check is redundant most of the
time. Callers which do not know if enough data is available have to check
it with av_fifo_size(). Doing the check in *read() means the caller has
no choice to skip the check when its known to be redundant.
Also the return value was never documented in a public header so
changing it should not break the API. Besides this fixes the case where
read() failed on a 100% full fifo.

Originally committed as revision 13404 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-25 22:20:39 +00:00
Michael Niedermayer 19757f6169 indent
Originally committed as revision 13251 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-23 12:37:52 +00:00
Michael Niedermayer fdf35f265a make av_strdup(NULL) return NULL
Originally committed as revision 13250 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-23 12:37:32 +00:00
Diego Biurrun c38e75fc52 Add required stdint.h header.
Originally committed as revision 13096 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-09 11:10:20 +00:00
Ramiro Polla 40d0e665d0 Do not misuse long as the size of a register in x86.
typedef x86_reg as the appropriate size and use it instead.

Originally committed as revision 13081 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-08 21:11:24 +00:00
Diego Biurrun ccd425e799 Remove unnecessary parentheses from return calls.
Originally committed as revision 13069 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-06 09:16:36 +00:00
Diego Biurrun 91605c69fb minor wording fix
Originally committed as revision 13068 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-06 08:41:13 +00:00
Diego Biurrun e4a957d1a7 minor spelling fix
Originally committed as revision 13066 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-06 08:03:30 +00:00
Måns Rullgård 7c43009358 add necessary #includes in headers
Originally committed as revision 13043 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-03 13:29:39 +00:00
Baptiste Coudurier b842ecbefc add FFMIN3
Originally committed as revision 12982 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-04-26 12:47:02 +00:00
Stefano Sabatini 95a6a015e3 Enhance documentation for AVClass
Patch by Stefano Sabatini stefanodotsabatini-lalaatpostedotit

Originally committed as revision 12934 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-04-24 10:13:38 +00:00
Vladimir Voroshilov 159ef4b02a Implement FFMAX3(a,b,c) - maximum over three arguments.
Originally committed as revision 12910 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-04-19 17:07:58 +00:00
Diego Biurrun 93826f561d Fix des-test compilation.
Originally committed as revision 12889 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-04-18 07:05:49 +00:00
Diego Biurrun c88c253d8b cosmetics: __asm__ __volatile__ --> asm volatile
Originally committed as revision 12885 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-04-17 21:57:52 +00:00
Stefano Sabatini 07c37ca7fc remove useless extern keyword.
patch by Stefano Sabatini: stefano sabatini-lala poste it

Originally committed as revision 12790 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-04-11 14:18:33 +00:00
Benoit Fouet 95c76e1180 cosmetics (by Björn Axelsson)
Originally committed as revision 12774 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-04-09 11:36:50 +00:00
Björn Axelsson 49cec1998a Add a generic write function to av_fifo.
Patch by Björn Axelsson: bjorn axelsson intinor se
Original thread: [FFmpeg-devel] [RFC][PATCH] av_fifo_write_from_bytestream()
Date: 04/03/2008 12:14 PM

Originally committed as revision 12773 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-04-09 11:35:16 +00:00
Måns Rullgård 71c61f62a3 non-recursive makefiles
Originally committed as revision 12760 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-04-07 21:16:31 +00:00
Michael Niedermayer 4764fdc987 simplify
Originally committed as revision 12755 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-04-05 10:52:27 +00:00
Michael Niedermayer ed0d3048c0 Merge declaratio and initialization.
Originally committed as revision 12677 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-04-03 19:20:32 +00:00
Michael Niedermayer 11362767b8 Merge declaration and initialization.
Originally committed as revision 12676 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-04-03 19:18:14 +00:00
Alexander Strange df22c35dfb Split MANGLE macro into LOCAL_MANGLE AND EXTERN_PREFIX parts
so that LOCAL_MANGLE can be used without EXTERN_PREFIX.
patch by Alexander Strange, astrange ithinksw com

Originally committed as revision 12558 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-22 18:15:12 +00:00
Zuxy Meng 98a6fff98c Apply 'cold' attribute to init/uninit functions in libavcodec
Originally committed as revision 12525 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-21 03:11:20 +00:00
Måns Rullgård 3540b950ec add missing #include "common.h" to libavutil headers
Originally committed as revision 12502 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-19 08:47:31 +00:00
Zuxy Meng e6e70d9bdc Cosmetic change: remove the whitespace after 'defined'
Originally committed as revision 12501 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-19 07:43:43 +00:00
Zuxy Meng 0fd48faca5 'malloc' attribute isn't supported in old gcc.
Originally committed as revision 12500 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-19 07:42:50 +00:00
Zuxy Meng cca6d953c2 Apply "alloc_size" attribute to av_alloc, av_realloc and av_mallocz
Originally committed as revision 12499 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-19 07:30:34 +00:00
Zuxy Meng 85074d3c93 Reapply r12489: Add pure, const and malloc attributes to proper functions
in libavutil.
Fix a compilation failure in r12489.

Originally committed as revision 12498 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-19 06:17:43 +00:00
Måns Rullgård 3662d880ed 32/64-bit agnostic x86 bswap
Originally committed as revision 12496 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-18 22:28:33 +00:00
Måns Rullgård 70fa2e27ec cosmetics: sanitise asm() statements in bswap.h
Originally committed as revision 12494 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-18 20:52:37 +00:00
Benoit Fouet 2119bb8f51 revert r12489.
Originally committed as revision 12490 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-18 16:29:47 +00:00
Zuxy Meng 6544f48f03 Pure, const and malloc attributes to libavutil.
Patch by Zuxy Meng: zuxy meng gmail com
Original thread:
[FFmpeg-devel] [PATCH] Pure, const and malloc attributes to libavutil
Date: 03/18/2008 6:09 AM

Originally committed as revision 12489 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-18 15:27:15 +00:00
Måns Rullgård b4d96ba2a8 check for prefix on extern symbols in configure
Originally committed as revision 12484 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-18 02:01:20 +00:00
Måns Rullgård 3c9bcb42cf add REGd definition
Originally committed as revision 12481 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-17 23:08:17 +00:00
Diego Biurrun 08e89160e4 cosmetics: indentation
Originally committed as revision 12471 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-17 09:22:39 +00:00
Diego Biurrun edfd6975cf Simplify MANGLE macro preprocessor condition checks.
Originally committed as revision 12470 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-17 09:22:11 +00:00
İsmail Dönmez 8e9ccb6c7e Fix MANGLE macro on Mac OS X.
Allows compiling a 64 bit FFmpeg on Mac OS X without using --disable-mmx.
patch by İsmail Dönmez  ismail namtrac org

Originally committed as revision 12468 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-17 07:49:03 +00:00
Diego Biurrun 768a920572 #include stddef.h instead of sys/types.h, the former is a standard C header.
Originally committed as revision 12435 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-13 18:30:07 +00:00
Diego Biurrun 32573a74bf #include stdint.h instead of inttypes.h like all libavutil headers do.
Originally committed as revision 12433 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-13 18:17:03 +00:00
Diego Biurrun a087028ad8 Add #include "config.h" to headers that need it.
Originally committed as revision 12431 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-13 18:04:21 +00:00
Diego Biurrun 6ef2912879 Add missing stdint.h #include to headers that use it.
Originally committed as revision 12429 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-13 00:20:15 +00:00
Diego Biurrun 2cab640129 typo fixes
Originally committed as revision 12428 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-12 23:58:46 +00:00
Diego Biurrun 7ce6892373 misc spelling fixes
Originally committed as revision 12410 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-10 18:42:09 +00:00
Diego Biurrun c123486e44 #error in case we do not know how to provide alignment.
Originally committed as revision 12382 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-08 20:30:15 +00:00
Måns Rullgård 6bd859d67e check for x86 bswap instruction
Originally committed as revision 12375 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-08 18:33:07 +00:00
Diego Biurrun 9b25f4a65f cosmetics: Consistently move NAME and FFLIBS to the top of each Makefile.
Originally committed as revision 12364 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-08 14:39:43 +00:00
Måns Rullgård 0e32c8c65a simplify library version handling
Originally committed as revision 12362 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-07 19:27:17 +00:00
Reimar Döffinger 7e14b8082d Use cltd instead of cdq asm mnemonic, ICC and gcc support both, but
SunStudio 12 only supports the former.

Originally committed as revision 12275 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-28 17:01:35 +00:00
Måns Rullgård 2e98d87cfc simplify lzo-test rule
Originally committed as revision 12269 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-27 21:38:36 +00:00
Måns Rullgård 800c289a66 less preprocessor magic in version number macros
Originally committed as revision 12246 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-26 20:37:59 +00:00
Peter Ross fe0c188b4a This header just needs stdint.h, not inttypes.h, which is a superset of
stdint.h.  This has the sideeffect of fixing the build on Interix.
patch by Pete Ross, pross xvid org

Originally committed as revision 12225 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-26 09:12:55 +00:00
Eddie Pang a02dd7ebdd Fix MSVC identification, patch by Eddie Pang.
Originally committed as revision 12218 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-25 18:32:55 +00:00
Michael Niedermayer 4fa1f6cc5c Make code C conformant.
Originally committed as revision 12217 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-25 18:25:49 +00:00
Diego Biurrun 4bfc91a07b cosmetics: prettyprint
Originally committed as revision 12213 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-25 14:53:55 +00:00
Eddie Pang 5cbd67ea43 10l: Correctly use preprocessor conditionals.
patch by Eddie Pang, eddpang gmail com

Originally committed as revision 12159 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-20 18:48:49 +00:00
Måns Rullgård e97ac1e6f5 Clean up lib* version definitions
Updating version numbers now requires changing only one place.

Originally committed as revision 12154 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-19 22:50:28 +00:00
Diego Biurrun 27af15dc5c prettyprinting cosmetics
Originally committed as revision 11941 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-15 14:58:18 +00:00
avcoder 90d30570d8 Avoid void*-arithmetic.
Patch by mvplayer: ffmpeg gmail com

Originally committed as revision 11932 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-14 08:16:07 +00:00
Diego Biurrun 7cb1fc766b Add fallback for DECLARE_ALIGNED and DECLARE_ASM_CONST.
Originally committed as revision 11919 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-13 08:36:04 +00:00
Diego Biurrun b89bb8581d Mark MSVC compiler macros as such.
Originally committed as revision 11918 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-13 08:33:05 +00:00
Diego Biurrun 7433ca2982 Disentangle nested preprocessor directives.
Originally committed as revision 11917 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-13 08:08:03 +00:00
Carl Eugen Hoyos 7ce3e4a882 Allow compilation with icc 10.1.
Originally committed as revision 11889 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-09 20:47:11 +00:00
Michael Niedermayer f522310b6d Missing const found by -Wwrite-strings.
Originally committed as revision 11838 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-03 21:56:13 +00:00
Reimar Döffinger 5e038b4f08 LZO decoder input is const
Originally committed as revision 11797 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-01 16:30:51 +00:00
Michael Niedermayer ff794171c9 Do not cast const away.
Originally committed as revision 11707 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-01 03:14:50 +00:00
Michael Niedermayer 89ef2c29a0 Merge declaration and initialization.
Originally committed as revision 11701 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-01 01:33:49 +00:00
Michael Niedermayer 070144671d Dont cast const away.
Originally committed as revision 11700 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-01 01:33:16 +00:00
Michael Niedermayer b8fe8ab062 Fix the following using void* casts, proper casts are less readable and
avoiding casts would be even less readable, but other suggestions are welcome.
lls.c:56: warning: initialization from incompatible pointer type
lls.c:57: warning: initialization from incompatible pointer type

Originally committed as revision 11697 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-31 20:52:14 +00:00
Michael Niedermayer 59abc29e69 fixing warning
md5.c:150: warning: passing argument 2 of 'av_md5_update' from incompatible pointer type

Originally committed as revision 11665 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-30 04:50:09 +00:00
Benoit Fouet dd670dedf9 Remove integer.h inclusion.
Originally committed as revision 11654 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-28 17:23:57 +00:00
Diego Biurrun bca9e0bcf1 Move common test program infrastructure to common.mak.
Originally committed as revision 11645 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-27 23:28:56 +00:00
Diego Biurrun fe34942e92 Move some lines in preparation for an upcoming commit.
Originally committed as revision 11644 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-27 23:27:13 +00:00
Diego Biurrun 4942a0e8ee Add Makefile rules for test programs.
Originally committed as revision 11643 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-27 22:39:30 +00:00
Diego Biurrun cff7ccdd44 Do not install integer.h, it is not part of the public API.
Originally committed as revision 11642 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-27 21:03:54 +00:00
Reimar Döffinger 766324fc49 Add and use DECLARE_ASM_CONST for constants used in assembler code.
Should make it easier to work around compilation problems with e.g. ICC.

Originally committed as revision 11641 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-27 20:50:16 +00:00
Michael Niedermayer 51198a8737 Comment to explain how the add/remove core works.
Originally committed as revision 11603 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-23 21:03:21 +00:00
Michael Niedermayer c448a09624 Faster ff_sqrt()
Originally committed as revision 11586 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-21 13:33:18 +00:00
Diego Biurrun 59ec6991ac Disallow puts(), av_log() should be used instead.
Originally committed as revision 11548 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-17 08:32:31 +00:00
Michael Niedermayer 5d1e3d2210 Print removing of nodes in the test code.
Originally committed as revision 11534 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-16 01:54:56 +00:00
Michael Niedermayer 3f161c7eab simplify
Originally committed as revision 11533 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-16 01:54:18 +00:00
Sigbjørn Skjæret 9ad5675f25 Add a couple of missing consts.
patch by Sigbjørn Skjæret, cisc broadpark no

Originally committed as revision 11528 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-14 22:10:19 +00:00
Diego Biurrun f3635240b7 Fix a couple of 'return type defaults to int' and 'control reaches end of
non-void function' warnings in test code.

Originally committed as revision 11491 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-10 10:35:37 +00:00
Diego Biurrun f0cb505aeb Allow compilation of test programs when TEST is defined.
Originally committed as revision 11473 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-08 22:54:49 +00:00
Diego Biurrun a005768d25 Remove unused variable j.
Originally committed as revision 11472 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-08 22:53:25 +00:00
Diego Biurrun 38c162c1a9 Remove unused variable variance.
Originally committed as revision 11471 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-08 22:48:26 +00:00
Diego Biurrun 43bfaa8920 Fix test program compilation, random() needs to be undefined.
Originally committed as revision 11470 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-08 22:40:25 +00:00
Aurelien Jacobs 03d83abcc6 Fix access to the last element of the table.
(size of the table vs. number of elements in the table)

Originally committed as revision 11448 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-07 13:19:38 +00:00
Aurelien Jacobs 977cbe79d8 install crc.h which is now part of public API
Originally committed as revision 11410 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-04 23:47:10 +00:00
Aurelien Jacobs 3abe5fbdc4 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
2008-01-04 23:09:58 +00:00
Michael Niedermayer a35bf971c6 indent
Originally committed as revision 11405 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-04 19:16:38 +00:00
Michael Niedermayer 2e1d287329 Flip key and element so types match, not that it matters for any code
using it in libav*.

Originally committed as revision 11404 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-04 18:58:36 +00:00
Michael Niedermayer b57cb96836 Document O() time.
Originally committed as revision 11403 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-04 18:55:14 +00:00
Michael Niedermayer efbaf4deee Document node removial API.
Originally committed as revision 11402 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-04 18:46:53 +00:00
Michael Niedermayer d5cb5fe86b Fix selftest.
Originally committed as revision 11401 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-04 18:21:36 +00:00
Michael Niedermayer f05dda3b7a Support removing elements.
Originally committed as revision 11400 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-04 18:20:03 +00:00
Michael Niedermayer 6e8b982bcc Move *malloc() out of tree.c, that way the code can be used with
flat arrays which have lower overhead than millions of mallocd() elements.

Originally committed as revision 11399 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-04 17:52:16 +00:00
Michael Niedermayer 116d15ccf1 Always set next correctly, even if a matching element is found (that is
how it is documented and used).

Originally committed as revision 11391 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-04 10:14:21 +00:00
Michael Kostylev a33cab3a9a Check for the presence of llrint(), lrint(), round() and roundf()
and provide simple replacements if they are unavailable.
patch by Michael Kostylev, mik niipt ru

Originally committed as revision 11326 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-27 01:53:02 +00:00
Diego Biurrun 52d086084e Remove outdated comment.
Originally committed as revision 11325 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-27 01:42:46 +00:00
Michael Kostylev 4f365f37b5 djgpp port, first part
patch by Michael Kostylev, mik niipt ru

Originally committed as revision 11313 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-24 12:49:27 +00:00
Måns Rullgård a309073bf4 use av_log_get/set_level()
Originally committed as revision 11209 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-12 21:48:50 +00:00
Luca Barbato 0bc308de56 kill a warning, av_sha1_update accepts uint8_t * not uint64_t *
Originally committed as revision 11208 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-12 21:03:11 +00:00
Luca Barbato 537c8e7a48 Provide sha1 to outside applications
Patch from Diego Pettenò flameeyesATgmailDOTcom

Originally committed as revision 11207 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-12 20:58:41 +00:00
Diego Biurrun f0a838e525 Add missing #includes to fix 'make checkheaders'.
Originally committed as revision 11087 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-11-24 10:08:02 +00:00
Diego Biurrun f8a80fd69d main() --> main(void)
Originally committed as revision 11079 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-11-23 00:52:56 +00:00
Luca Abeni c5a2fe8f1f Generate a linking error if perror() is used in libav*
Originally committed as revision 11061 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-11-19 10:40:11 +00:00
Luca Abeni 7f0cd6a529 Remove perror() usage from libavutil
Originally committed as revision 11057 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-11-19 07:39:55 +00:00
Luca Abeni 353fa898bb Reindent the code after last commit
Originally committed as revision 10958 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-11-08 11:59:39 +00:00
Luca Abeni cd250e581b Remove redundant "if(len)"
Originally committed as revision 10957 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-11-08 11:56:50 +00:00
Stefano Sabatini 0ee97f0d3f Doxyfication, patch by Stefano Sabatini %stefano P sabatini-lala A poste P it%
Originally committed as revision 10906 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-11-02 19:48:13 +00:00
Stefano Sabatini 22baf42c83 doxy/cosmetics fixes. Patch by Stefano Sabatini %stefano P sabatini-lala A posteP it %
Originally committed as revision 10893 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-11-01 11:51:51 +00:00
Luca Abeni e76e2bbc09 Mark the source buffer as "const"
Originally committed as revision 10877 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-30 15:32:52 +00:00
Reimar Döffinger 46fb896b9d Document ff_des_encdec
Originally committed as revision 10822 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-20 14:45:07 +00:00
Jeremy Mordkoff 4f9c008cd5 Fix typo.
Patch by Jeremy Mordkoff: jlm zazzletech com

Originally committed as revision 10812 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-19 15:39:02 +00:00
Diego Biurrun 1b1ab19816 cosmetics: Add #endif comment.
Originally committed as revision 10811 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-19 09:54:16 +00:00
Reimar Döffinger 2e9ad69aaf Add support for DES en- and decryption.
Originally committed as revision 10810 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-19 09:31:41 +00:00
Diego Biurrun 5b21bdabe4 Add FFMPEG_ prefix to all multiple inclusion guards.
Originally committed as revision 10765 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-17 09:37:46 +00:00
Diego Biurrun 52703a6459 Use filename as multiple inclusion guard.
Originally committed as revision 10760 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-17 09:16:21 +00:00
Diego Biurrun 8a2d973dfc misc Doxygen spelling/grammar fixes
Originally committed as revision 10754 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-15 23:07:03 +00:00
Reimar Döffinger 3f30c42b61 Fix rc4 header, #ifndef -> #define
Originally committed as revision 10733 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-14 12:08:41 +00:00
Diego Biurrun d02f15476f Add multiple inclusion guards.
Originally committed as revision 10732 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-14 09:51:38 +00:00
Diego Biurrun c1d5a67c56 Add standard license header.
Originally committed as revision 10731 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-14 09:32:06 +00:00
Diego Biurrun d5a8a02326 Consistently place comments in file header.
Originally committed as revision 10730 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-14 09:30:53 +00:00
Diego Biurrun 547972fdad cosmetics: sort()
Originally committed as revision 10729 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-14 09:29:59 +00:00
Reimar Döffinger 80b1c5a858 Add RC4 encryption/decryption function
Originally committed as revision 10723 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-13 10:42:11 +00:00
Aurelien Jacobs b70335a28d add support for yuva420p colorspace (yuv420p + alpha)
Originally committed as revision 10565 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-24 13:21:41 +00:00
Stefano Sabatini d3de3ee2bd Document libavutil/mem.h:av_strdup.
patch by Stefano Sabatini, stefano.sabatini-lala poste it

Originally committed as revision 10456 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-09 13:23:34 +00:00
Diego Biurrun 1e97ce4a31 cosmetics: Sort some lines, whitespace changes.
Originally committed as revision 10268 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-30 23:11:24 +00:00
Diego Biurrun c97f54020d Change SYS_DARWIN preprocessor checks to __APPLE__, they are specific
to Mac OS X rather than to Darwin.

Originally committed as revision 10247 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-27 09:17:03 +00:00
Diego Biurrun 8008a04325 Move Apple gcc AltiVec vector declaration syntax to libavutil.
Originally committed as revision 10207 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-24 15:04:00 +00:00
Diego Biurrun 9d16f87ffd Rename CONFIG_DARWIN to SYS_DARWIN, it is not configurable (in FFmpeg).
Originally committed as revision 10190 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-22 22:46:39 +00:00
Reimar Döffinger 45e3c163a9 Additional documentation for CRC functions
Originally committed as revision 10151 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-20 16:54:47 +00:00
Reimar Döffinger 7b07d3e8fe Use defines instead of raw hex numbers to specify CRC polynomials
Originally committed as revision 10143 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-19 12:36:15 +00:00
Ramiro Polla c8f9ef613e CONFIG_7REGS -> HAVE_7REGS
Originally committed as revision 10121 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-15 21:19:13 +00:00
Ramiro Polla 5e4c7ca224 Add attribute that forces alignment of stack to functions that need it.
Necessary for systems that don't align by default to 16 bytes, required by some
SSE instructions.
Requires GCC >= 4.2.
Based on patch by Gaël Chardon.

Originally committed as revision 10106 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-13 15:28:29 +00:00
Aurelien Jacobs ddb8ebe7a1 add a new av_clip_int16() function to libavutil
Originally committed as revision 10076 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-11 21:59:01 +00:00
Aurelien Jacobs b9c684a2b8 ensure av_noinline is always defined
Originally committed as revision 10075 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-11 21:52:40 +00:00
Roman Shaposhnik 905694d96e * renaming (ST|LD)(16|32|64) -> AV_(R|W)N(16|32|64)
Originally committed as revision 10023 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-09 17:01:15 +00:00
Roman Shaposhnik b6c748edba * Making [START|STOP]_TIMER work on architectures that support gethrtime()
Originally committed as revision 9998 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-09 00:12:40 +00:00
Luca Abeni 1e7f363804 Implement av_strlcatf(): a strlcat which adds a printf style formatted string
Originally committed as revision 9753 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-19 06:36:02 +00:00
Reimar Döffinger ef0d7a0d4f Document aes init code writing on purpose beyond round_key array into state array.
Originally committed as revision 9734 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-18 12:22:07 +00:00
Andreas Öman 4196cfb75b add YUV440P and YUVJ440P support
patch by Andreas Öman: \andreas olebyn nu/
original thread: [FFmpeg-devel] half vertical chroma resolution from JPEGs..
date: 07/03/2007 01:29 PM

Originally committed as revision 9732 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-18 08:11:16 +00:00
Måns Rullgård 318049b8ed move #include of system headers to top of file
Originally committed as revision 9646 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-14 14:34:40 +00:00
Alex Beregszaszi 7eed4aef83 10l to Mans, assert is included later with proper DEBUG/NDEBUG ifdefs
Originally committed as revision 9636 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-14 11:33:16 +00:00
Alex Beregszaszi 71e4199485 match doxygen comment with other parts of the file
Originally committed as revision 9635 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-14 00:15:01 +00:00
Ramiro Polla 7c9dcd4bba Remove unnecessary MINGW ifdef.
These were added for MSVC++, which is no longer supported.

Originally committed as revision 9595 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-11 13:50:59 +00:00
Ramiro Polla 36564c514c Remove MinGW lrint hack.
It has been in mingw-runtime at least since version 2.4

Originally committed as revision 9594 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-11 13:44:50 +00:00
Ramiro Polla 7c37e504f0 Remove OS/2 support
Originally committed as revision 9586 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-10 21:52:04 +00:00
Måns Rullgård 059eeabf35 10l: fix av_str[i]start()
Originally committed as revision 9585 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-10 21:43:35 +00:00
Måns Rullgård 84662c01c9 undef forbidden names before we #define them in case they are macros in libc
Originally committed as revision 9545 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-08 15:56:31 +00:00
Diego Biurrun e5a389a1b7 license header consistency cosmetics
Originally committed as revision 9484 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-05 10:40:25 +00:00
Diego Biurrun 7b94177e37 Group all copyright and author notices together.
Originally committed as revision 9483 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-05 10:37:29 +00:00
Vitor Sessak 3299fb4523 Make error message more helpful and forbid random()
Originally committed as revision 9472 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-05 05:02:47 +00:00
Diego Biurrun 2eb697a455 Move comment to a slightly better place.
Originally committed as revision 9462 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-02 17:00:51 +00:00
Diego Biurrun 224906414b Remove leading underscores from specifiers, they are reserved.
Originally committed as revision 9461 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-02 17:00:04 +00:00
Diego Biurrun 3d44f15cfc Add proper license header.
Originally committed as revision 9444 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-06-27 07:58:37 +00:00
Reimar Döffinger c08be350da intreadwrite.h needs bswap.h if HAVE_FAST_UNALIGNED is set, so include it.
Originally committed as revision 9414 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-06-24 14:29:52 +00:00
Reimar Döffinger 272605c73e more av_strl* adjustments
Originally committed as revision 9412 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-06-24 12:23:34 +00:00
Luca Barbato 3565e10b44 bump micro version: new string functions
Originally committed as revision 9405 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-06-24 09:18:20 +00:00
Måns Rullgård fc78ce803b add some string functions
Originally committed as revision 9400 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-06-23 23:10:26 +00:00
Michel Bardiaux 4fc3d23ffe Clarify comments about PIX_FMT_MONOWHITE/MONOBLACK
Thread: PIX_FMT_MONOWHITE

Originally committed as revision 9373 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-06-20 08:18:04 +00:00
Guillaume Poirier efb775777f add a comment to indicate which #endif belong to which #define
Originally committed as revision 9356 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-06-17 18:59:28 +00:00
Måns Rullgård 699b3f99d0 add multiple inclusion guards to headers
Originally committed as revision 9345 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-06-17 00:01:30 +00:00
Måns Rullgård 99545457bf include all prerequisites in header files
Originally committed as revision 9344 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-06-16 22:59:13 +00:00
Marc Hoffman f70c273902 Blackfin - read_time primitive
note this primitive currently uses a union to concatenate 2x32bit registers because of poor compiler support
around DImode and asm.

Originally committed as revision 9302 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-06-13 11:09:07 +00:00
Diego Biurrun 90b5b51eab misc typo fixes
Originally committed as revision 9291 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-06-12 18:50:50 +00:00
Reimar Döffinger 6f74b71ef0 Part of MPlayer patch:
"Replace implicit use of fast_memcpy via macro by explicit use to allow
for future optimization."
This is not yet done for ffmpeg when compiled within MPlayer.

Originally committed as revision 9225 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-06-05 14:33:27 +00:00
Carl Eugen Hoyos 154e30f6c2 rename attribute_unused to av_unused and moves its declaration to common.h
patch by Carl Eugen Hoyos cehoyos chez ag or at
original thread: [FFmpeg-devel] [PATCH] attribute_unused -> av_unused
date: 05/29/2007 01:23 PM

Originally committed as revision 9155 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-05-30 09:32:25 +00:00
Diego Biurrun 605315248c Remove extern C declarations for C++.
FFmpeg is pure C and not all public headers have the declarations.

Originally committed as revision 9037 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-05-16 12:25:54 +00:00
Michael Niedermayer 79d4c96a1a correct last element inited check
Originally committed as revision 9018 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-05-13 19:14:18 +00:00
Jindřich Makovička 803ca89ca1 Proper fix for r8963
Patch by Jindrich Makovicka, makovick at gmail dot com
Reference thread:
Subject: Re: [PATCH] make libavcodec use bytestream functions
Date: Thu, 10 May 2007 07:49:43 +0200

Originally committed as revision 8982 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-05-10 18:28:44 +00:00
Ivo van Poorten 9e010b41e6 add AV_[RW][BL]64 support
Originally committed as revision 8924 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-05-07 13:12:33 +00:00
Michael Niedermayer 45221f7f61 reduce number of shifts
Originally committed as revision 8891 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-05-04 22:35:56 +00:00
Michael Niedermayer fd735e4b77 simplify
Originally committed as revision 8890 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-05-04 21:22:43 +00:00
Attila Kinali 69ae947874 add missing include of bswap.h
Originally committed as revision 8853 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-04-27 20:22:01 +00:00
Diego Biurrun e69364b700 Mark code parts that cannot work on AMD64 due to broken relocations as such.
This allows building shared libraries on AMD64 again.
based on a patch by Diego 'Flameeyes' Pettenò and suggestions by Michael
original thread:
Date: Wed, 18 Apr 2007 11:26:12 +0200
Subject: [Ffmpeg-devel] [PATCH] (try 2) Build shared libraries on AMD64 again

Originally committed as revision 8849 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-04-27 09:32:31 +00:00
Ramiro Polla bf5d7db5a0 reorder bswap functions into bit-depth, special-casing inside the functions.
patch by Ramiro Polla ramiro lisha ufsc br

Originally committed as revision 8823 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-04-26 08:20:21 +00:00
Ramiro Polla 853d15c2f8 make 2 functions "return x;" to simplify next patch
patch by Ramiro Polla ramiro lisha ufsc br

Originally committed as revision 8822 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-04-26 08:15:39 +00:00
Ramiro Polla 7b829d2ab6 "fast unaligned" bytestream functions
patch by Ramiro Polla ramiro lisha ufsc br
original thread:
date: 03/11/2007 03:06 AM
subject: [Ffmpeg-devel] [PATCH] Machine endian bytestream functions

Originally committed as revision 8803 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-04-25 08:47:15 +00:00
Marc Hoffman 20d45dc2a8 Faster 32 bit byteswaping code for Blackfin.
200% faster on BF537 compiled with gcc 4.1.
patch by Marc Hoffman, mmh pleasantst com

Originally committed as revision 8802 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-04-24 23:21:29 +00:00
Diego Biurrun 85b1a7222d cosmetics: Reorder endianness macros by bit depth, alignment prettyprinting.
Originally committed as revision 8796 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-04-24 07:16:47 +00:00
Diego Biurrun 245626d045 Move ebx_available and ebp_available from CONFIG_LIST to HAVE_LIST,
it's not configurable by the user.

Originally committed as revision 8795 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-04-24 07:06:30 +00:00
Alex Beregszaszi 61bc79ec9c remove possibly broken wince cruft
Originally committed as revision 8763 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-04-20 23:45:53 +00:00
Ramiro Polla 8c2e2040aa Add first and second output to earlyclobbers in COPY3_IF_LT macro.
patch by Ramiro Ribeiro Polla, ramiro lisha.ufsc br
Original thread:
date: Mar 27, 2007 11:21 PM
subject: [Ffmpeg-devel] [PATCH] fix build for --cpu=i686

Originally committed as revision 8604 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-04-03 11:21:16 +00:00
Panagiotis Issaris 449659919c Fix compilation when using the --disable-opts parameter. This to help those
interested in using a debugger to debug FFmpeg.

Original thread:
Subject: [PATCH] Fix compilation when using --disable-opts
Date: 2007-03-15 16:58:35 GMT

Originally committed as revision 8549 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-29 14:20:30 +00:00
Michael Niedermayer c367d06702 prevent exit missuse
Originally committed as revision 8536 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-27 21:47:03 +00:00
Luca Barbato bd03c380ce expose av_base64_decode and av_base64_encode
Originally committed as revision 8448 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-19 00:48:47 +00:00
Michael Niedermayer ad73e79cab 160 bytes smaller object file, ask gcc devels why
Originally committed as revision 8407 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-14 19:47:58 +00:00
Michael Niedermayer f1505ce3bc explain where the T table comes from
Originally committed as revision 8406 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-14 19:43:31 +00:00
Michael Niedermayer 08cb195020 kill 3 more av_mallocz_static()
Originally committed as revision 8397 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-14 01:59:53 +00:00
Michael Niedermayer e057461dac cosmetic (order context variables like in sha1)
Originally committed as revision 8386 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-13 12:40:13 +00:00
Michael Niedermayer 248b25f878 s/context/ctx/
Originally committed as revision 8385 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-13 12:26:11 +00:00
Michael Niedermayer e657aa3415 #undef printf under #ifdef TEST (needed for testing)
Originally committed as revision 8384 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-13 12:20:04 +00:00
Michael Niedermayer ef3c7c3328 borrow finalization algo from sha1 (100byte smaller)
Originally committed as revision 8383 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-13 12:19:20 +00:00
Michael Niedermayer e1b62250ac get rid of b_used variable (same size with CONFIG_SMALL)
Originally committed as revision 8382 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-13 11:57:26 +00:00
Michael Niedermayer 36c7fa7ea5 smaller av_sha1_update()
Originally committed as revision 8381 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-13 11:25:57 +00:00
Michael Niedermayer 104c30ee06 use CONFIG_SMALL
Originally committed as revision 8380 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-13 10:53:15 +00:00
Michael Niedermayer 2001304500 put state[5] last so no padding is needed on arch where uint64_t needs 8byte alignment
Originally committed as revision 8379 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-13 10:48:22 +00:00
Michael Niedermayer 5fd7f87b8d cosmetic
Originally committed as revision 8378 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-13 10:46:18 +00:00
Michael Niedermayer 15b6cae245 dont memcpy() simpler and same speed
Originally committed as revision 8377 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-13 10:45:41 +00:00
Michael Niedermayer 476f9b74ec simplify
Originally committed as revision 8376 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-13 10:40:59 +00:00
Michael Niedermayer f6a3477bb5 remove middle variant (keep fastest and smallest)
Originally committed as revision 8375 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-13 10:36:49 +00:00
Michael Niedermayer 965ea9ba66 10l
Originally committed as revision 8374 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-13 10:34:52 +00:00
Michael Niedermayer fca447a911 double ;;
Originally committed as revision 8373 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-13 01:25:59 +00:00
Michael Niedermayer 2fa3a22d23 factorize VARIANT2 (smaller and slower)
Originally committed as revision 8372 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-13 01:13:38 +00:00
Michael Niedermayer d6cf780419 revert 2% speed loss change (r8360)
so VARIANT0 will be big and a few % faster, VARIANT1/2 are unaffected

Originally committed as revision 8371 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-13 00:35:18 +00:00
Michael Niedermayer cb496e1f12 zero byte idea by rich
Originally committed as revision 8368 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-13 00:19:26 +00:00
Michael Niedermayer 6573578d7b 2 other variants of how to implement the core part
benchmarks welcome ...

Originally committed as revision 8367 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-13 00:17:55 +00:00
Michael Niedermayer 20bd4e0799 cosmetic cleanup
Originally committed as revision 8362 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-12 22:23:30 +00:00
Michael Niedermayer 3884689bd5 cosmetic cleanup
Originally committed as revision 8361 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-12 22:14:33 +00:00
Michael Niedermayer 913cbde41a 10% smaller object file, 2% slower
Originally committed as revision 8360 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-12 22:12:36 +00:00
Michael Niedermayer c6fd617aea very slightly smaller object file
Originally committed as revision 8358 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-12 21:33:38 +00:00
Michael Niedermayer 11bf0eb69a make count count bytes not bits (this is simpler and leads to a very slightly smaller object file)
Originally committed as revision 8357 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-12 21:29:39 +00:00
Michael Niedermayer de953b6b67 remove bigger and slower code
Originally committed as revision 8356 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-12 21:23:33 +00:00
Michael Niedermayer 82da03f717 dont recommand testing with -O3
Originally committed as revision 8355 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-12 21:21:57 +00:00
Michael Niedermayer aa59433af6 avoid silly ring buffer logic (faster with -O2, -O3 is always slower then -O2)
Originally committed as revision 8354 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-12 21:21:12 +00:00
Michael Niedermayer 3479b72bc2 its faster to copy the data to the stack it seems ...
Originally committed as revision 8353 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-12 21:14:33 +00:00
Michael Niedermayer ae76034cbb explain how to test it
Originally committed as revision 8352 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-12 21:07:38 +00:00
Michael Niedermayer 7c60e55bff simple SHA-1 implementation
Originally committed as revision 8351 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-12 21:05:56 +00:00
Panagiotis Issaris 43cd2d3225 Install mem.h on "make install" as:
* the mem.h functions are part of the public API
* common.h includes mem.h and common.h is installed

Originally committed as revision 8345 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-12 15:23:18 +00:00
Panagiotis Issaris 792098c2ec Move the memory related functions out of common.h into their own header file
mem.h.

Originally committed as revision 8342 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-12 14:45:49 +00:00
Michel Bardiaux 318c5e0524 Give context to dprintf
Originally committed as revision 8338 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-12 12:36:41 +00:00
Panagiotis Issaris 0d8f16acf9 Fix typo in Doxygen comments.
Originally committed as revision 8307 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-09 15:18:07 +00:00
Michel Bardiaux bdb4b698d8 Corrections so that builds with DEBUG work
Originally committed as revision 8295 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-08 14:49:43 +00:00
Alex Beregszaszi 1586238717 add little endian 24bit read/write
Originally committed as revision 8269 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-06 13:04:47 +00:00
Panagiotis Issaris d7f654692a Move unaltered av_freep() comments to the header file.
Originally committed as revision 8253 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-05 13:51:03 +00:00
Panagiotis Issaris f690ee715d Move unaltered av_free() comments to the header file.
Originally committed as revision 8252 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-05 13:50:03 +00:00
Panagiotis Issaris d6def91a3b Move unaltered av_realloc() comments to the header file.
Originally committed as revision 8251 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-05 13:46:47 +00:00
Panagiotis Issaris 9a07029916 Move unaltered av_malloc() comments to the header file.
Originally committed as revision 8250 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-05 13:45:52 +00:00
Panagiotis Issaris 395722ba67 Move av_log2_i()'s unaltered comments to the header file.
Originally committed as revision 8232 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-04 23:26:53 +00:00
Panagiotis Issaris 37b2f1d073 Move av_i2int()'s unaltered comments to the header file.
Originally committed as revision 8231 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-04 23:26:01 +00:00
Panagiotis Issaris c1f567875a Move av_int2i()'s unaltered comments to the header file.
Originally committed as revision 8230 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-04 23:25:00 +00:00
Panagiotis Issaris fb7d4f7908 Move av_cmp_i()'s unaltered comment to the header file.
Originally committed as revision 8229 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-04 23:20:54 +00:00
Panagiotis Issaris 886368e989 Move av_shr_i()'s unaltered comments to the header file.
Originally committed as revision 8228 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-04 23:18:44 +00:00
Panagiotis Issaris 9375cdd5ab Move av_div_i()'s comments to the header file. The comments are unaltered.
Originally committed as revision 8227 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-04 23:14:12 +00:00
Panagiotis Issaris 607da27c64 Move av_mod_i()'s comment to the header file. The moved comment is unmodified.
Originally committed as revision 8226 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-04 23:10:38 +00:00
Panagiotis Issaris 3ec9a7873f Move the unaltered Doxygen docs from the log source code to the accompanying
header file.

Originally committed as revision 8225 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-04 23:04:49 +00:00
Baptiste Coudurier 626b7c0f1a add R/WB24 functions
Originally committed as revision 8216 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-04 02:48:32 +00:00
Diego Biurrun 82ffe1919a Improve Doxygen documentation, inspired by Michael's description.
Originally committed as revision 8187 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-03-02 10:09:51 +00:00
Luca Barbato 558b86a5d0 Reverting stray commit part II, r8156 had the base64 export patch mixed with the nutdec patch
Originally committed as revision 8158 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-28 03:40:23 +00:00
Luca Barbato 9fca9c0316 Reverting stray commit part I
Originally committed as revision 8157 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-28 03:37:54 +00:00
Luca Barbato bb0eb714bd get_packetheader() forgot to read the header_checksum in big packets
patch from Clemens Ladisch cladisch AT fastmail dot net
(stray base64 patch reverted in the next commits)

Originally committed as revision 8156 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-28 03:28:31 +00:00
Dujardin Bernard 1faf7dc807 Doxygen documentation for all functions, patch by Dujardin Bernard,
dujardin.iut numericable fr with some further changes by me.

Originally committed as revision 8151 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-27 17:49:00 +00:00
Diego Biurrun f5a90186d7 Add missing license headers.
Originally committed as revision 8149 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-27 16:05:19 +00:00
Diego Biurrun 32bbf7f70a Remove superfluous comment.
Originally committed as revision 8148 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-27 15:58:38 +00:00
Diego Biurrun e4a4c870cb Add Doxygen author and file description, rephrase a Doxygen comment.
Originally committed as revision 8147 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-27 14:41:03 +00:00
Diego Biurrun 3cee76e6c9 Remove useless conditional.
Originally committed as revision 8139 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-27 00:18:38 +00:00
Diego Biurrun 876e4194c2 spelling/grammar fixes for the Doxygen comments
Originally committed as revision 8138 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-27 00:16:39 +00:00
Diego Biurrun 7122f7c771 Revert previous commit that contained an unrelated hunk.
Originally committed as revision 8137 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-27 00:11:14 +00:00
Diego Biurrun a93575fa3d spelling/grammar fixes for a Doxygen comment
Originally committed as revision 8136 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-26 22:59:16 +00:00
Diego Biurrun 549b2c0cc3 Remove unused #define.
Originally committed as revision 8135 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-26 22:56:02 +00:00
Guillaume Poirier ca9049efc8 fix 2 mistakes in doxy comments, spotted by Michael
Originally committed as revision 8133 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-26 14:53:42 +00:00
Dujardin Bernard 0b0065992e move doxy comments from rational.c to rational.h and add some new comments
patch by Dujardin Bernard %dujardin P iut A numericable P fr%

Originally committed as revision 8132 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-26 14:27:29 +00:00
Dujardin Bernard 1c95ef8b97 Doxygenize some comments
Patch by Dujardin Bernard % dujardin P iut A numericable P fr %

Originally committed as revision 8131 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-26 08:52:21 +00:00
Måns Rullgård 738940e802 remove [U]INT64_C definition
Originally committed as revision 8127 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-25 19:30:55 +00:00
Reimar Döffinger f66e4f5f9e Add av_ prefix to clip functions
Originally committed as revision 8122 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-25 10:27:12 +00:00
Ramiro Polla 5dff169489 remove fallback definitions of PRIxNN macros,
patch by Ramiro Polla ramiro =a= lisha =d= ufsc =d= br

Originally committed as revision 8118 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-24 19:46:54 +00:00
Diego Biurrun eafcac6ac8 cosmetics: Fix another common typo, dependAnt --> dependEnt.
Originally committed as revision 8114 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-24 09:41:43 +00:00
Diego Biurrun 804de96a83 cosmetics: fix usefuLL --> usefuL typo
Originally committed as revision 8061 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-22 00:07:42 +00:00
Panagiotis Issaris 0f482cfcb2 Adds Doxygen docs for the av_log function.
Originally committed as revision 8040 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-20 12:41:47 +00:00
Michael Niedermayer 410bf2731d av_noinline
Originally committed as revision 7992 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-16 21:19:42 +00:00
François Revol 8fa36ae09d This fixes error handling for BeOS, removing the need for some ifdefs.
AVERROR_ defines are moved to avcodec.h as they are needed in there as well. Feel free to move that to avutil/common.h.
Bumped up avcodec/format version numbers as though it's binary compatible we will want to rebuild apps as error values changed.
Please from now on use return AVERROR(EFOO) instead of the ugly return -EFOO in your code.
This also removes the need for berrno.h.

Originally committed as revision 7965 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-13 18:26:14 +00:00
Carl Eugen Hoyos 034ef0e8c3 Move base64.[ch] to libavutil.
patch by Carl Eugen Hoyos, cehoyos ag.or at

Originally committed as revision 7963 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-13 08:21:47 +00:00
Michael Niedermayer 9b0dfb27ab slightly improve *_TIMER
Originally committed as revision 7948 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-12 14:25:48 +00:00
François Revol ea65a753eb Remove unused ENODATA define
Originally committed as revision 7943 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-11 22:07:06 +00:00
Baptiste Coudurier 57d7b036ea make key parameter const
Originally committed as revision 7935 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-11 16:57:17 +00:00
Reimar Döffinger 80a289b9bf mxf aes decryption support, patch by Reimar, simplified to only look for first crypto context, will be extended once we get files with multiple cryptocontext, and hope that they won't have broken container ul
Originally committed as revision 7925 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-11 12:50:33 +00:00
Michael Niedermayer fbabf1e0b6 av_random() by Ryan Martell rdm4 name-server-seperator martellventures d0t com
Originally committed as revision 7885 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-08 22:09:05 +00:00
Reimar Döffinger a264a081b2 special-case AES-128 decrypter is no longer necessary, the more general
AES-implementation works at least as well in all case I tested.

Originally committed as revision 7884 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-08 21:09:11 +00:00
Diego Biurrun 4e960d0a5e 1000l: Revert accidentally committed change.
Originally committed as revision 7868 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-07 10:54:10 +00:00
Diego Biurrun 71e445fca3 Replace deprecated PIX_FMT names by the newer variants.
Originally committed as revision 7867 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-07 01:48:09 +00:00
Michael Niedermayer 7d4495dafe simplify and remove useless index in AV_W*
Originally committed as revision 7852 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-02-06 19:10:17 +00:00
Reimar Döffinger 4302963daa Move lzo decompression to libavutil
Originally committed as revision 7789 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-31 22:58:53 +00:00
Luca Abeni 434f2c18e8 Increase the av_log() levels, and add some documentation for them
Originally committed as revision 7614 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-21 20:47:10 +00:00
Alex Beregszaszi a3550abd08 add AV_WB/WL for lswriting, similar to AV_RB/RL (also increment version)
Originally committed as revision 7588 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-19 22:26:10 +00:00
Alex Beregszaszi fead30d444 rename BE/LE_8/16/32 to AV_RL/B_8/16/32
Originally committed as revision 7587 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-19 22:12:59 +00:00
Michael Niedermayer 50b4468598 change while loops to do-while as the condition is true the first time and the check just wastes cpu cycles
Originally committed as revision 7576 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-18 00:22:24 +00:00
Michael Niedermayer 4497712f09 simpler branch structure in init (16 bytes smaller object file)
Originally committed as revision 7575 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-17 20:14:02 +00:00
Michael Niedermayer be65b41f90 doxygenize
Originally committed as revision 7574 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-17 20:12:12 +00:00
Michael Niedermayer 3da97cfdfc avoid code duplication
Originally committed as revision 7573 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-17 20:11:23 +00:00
Michael Niedermayer 0726982cdb better to set things to NULL instead of random in case of out of mem
Originally committed as revision 7572 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-17 20:06:38 +00:00
Michael Niedermayer 96e39edc59 simplify av_fifo_realloc()
Originally committed as revision 7571 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-17 20:05:31 +00:00
Michael Niedermayer 765d4f3b4a remove near duplicate function
Originally committed as revision 7570 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-17 19:46:33 +00:00
Michael Niedermayer 870a12d1c2 simplify
Originally committed as revision 7569 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-17 19:30:23 +00:00
Michael Niedermayer f81b99b82b simplify
Originally committed as revision 7568 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-17 19:19:03 +00:00
Michael Niedermayer ca2560dff6 10l (aes_crypt -> av_aes_crypt)
Originally committed as revision 7559 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-17 00:49:48 +00:00
Michael Niedermayer 97f6d1545e fix CONFIG_SMALL again
Originally committed as revision 7554 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-16 19:50:49 +00:00
Michael Niedermayer 5d1b539348 30byte smaller object file
Originally committed as revision 7553 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-16 19:30:43 +00:00
Michael Niedermayer 519773e3a5 10l typo
Originally committed as revision 7552 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-16 19:18:50 +00:00
Michael Niedermayer 6eb7df5c6d public API
Originally committed as revision 7551 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-16 19:14:27 +00:00
Michael Niedermayer 97e3458c46 cbc support
Originally committed as revision 7550 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-16 19:08:52 +00:00
Michael Niedermayer 2d3475ae6a avoid memcpy()
Originally committed as revision 7549 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-16 17:58:11 +00:00
Michael Niedermayer 7465619af8 give crypt a src and dst
same speed, 100bytes larger object file

Originally committed as revision 7548 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-16 17:51:54 +00:00
Michael Niedermayer b0642c7409 change subshift a little, this reduces the object size a litlle
Originally committed as revision 7546 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-16 17:40:40 +00:00
Michael Niedermayer 298dd6b7c8 use 2 state arrays so that fewer temporary variables are needed
Originally committed as revision 7545 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-16 17:17:05 +00:00
Michael Niedermayer cc6b4da83a remove useless parameter
Originally committed as revision 7544 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-16 16:29:01 +00:00
Michael Niedermayer 14bc38498a unused variable
Originally committed as revision 7543 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-16 16:24:43 +00:00
Michael Niedermayer 1aa72a703c merge shift into mix
this need -fno-strict-aliasing to work (needs to be fixed of course)

Originally committed as revision 7534 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-15 13:45:48 +00:00
Michael Niedermayer 1f83576b48 make aes_en/decrypt() static until we decided on the public API
Originally committed as revision 7533 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-15 10:37:34 +00:00
Michael Niedermayer 0d80bd2f56 move #include log.h into the selftesting code where it belongs
Originally committed as revision 7529 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-15 01:33:56 +00:00
Michael Niedermayer 6572e1a4d2 remove dependancy on *malloc()
Originally committed as revision 7528 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-15 01:32:06 +00:00
Michael Niedermayer 347c27988d check the last? entry written for detecting already initalized tables
Originally committed as revision 7527 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-15 01:05:40 +00:00
Michael Niedermayer 96b103086e replace / by >> this makes the .o ~150 bytes smaller
Originally committed as revision 7525 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-15 01:01:56 +00:00
Michael Niedermayer e42244e9df cosmetic
Originally committed as revision 7524 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-15 00:55:51 +00:00
Michael Niedermayer f32f5122ce av_aes_init()
Originally committed as revision 7521 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-15 00:10:25 +00:00
Michael Niedermayer 6287dc9aae the missing header ...
Originally committed as revision 7520 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-15 00:07:39 +00:00
Michael Niedermayer 597e3232ef simplify
Originally committed as revision 7504 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 21:40:21 +00:00
Michael Niedermayer 7200f5d054 simplify multiply table init
Originally committed as revision 7503 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 21:30:54 +00:00
Michael Niedermayer d65dc0cdc6 simplify selftest
Originally committed as revision 7501 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 21:20:15 +00:00
Michael Niedermayer f25b650a5b revert simplification (broke 192 bit keys)
Originally committed as revision 7500 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 21:13:14 +00:00
Michael Niedermayer 8d4ae47c3f simplify
Originally committed as revision 7499 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 21:03:15 +00:00
Michael Niedermayer 1b10524312 fix 2 warnings
Originally committed as revision 7498 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 19:58:41 +00:00
Michael Niedermayer 034f5fbaf2 seems i didnt copy anything from aes128.c so this should be more correct ?
Originally committed as revision 7497 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 19:51:23 +00:00
Michael Niedermayer c2fd2b20e5 unneeded
Originally committed as revision 7496 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 19:45:27 +00:00
Michael Niedermayer a6e923c9db unused think
Originally committed as revision 7495 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 19:41:57 +00:00
Michael Niedermayer 0c5d2819a5 merge encrypt and decrypt so the source is simpler and the compiler can choose with inlining if it wants speed or small size
Originally committed as revision 7494 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 19:39:38 +00:00
Michael Niedermayer 28b5123546 indent
Originally committed as revision 7493 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 19:24:34 +00:00
Michael Niedermayer 954bd264c1 remove duplicate round_key
one context is now either for encoding or decoding (makes more sense in reality too)

Originally committed as revision 7492 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 19:24:06 +00:00
Michael Niedermayer 54b78b2495 make decode look more like encode
Originally committed as revision 7491 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 19:02:59 +00:00
Michael Niedermayer cc85897055 dont use encode tables for decoding
Originally committed as revision 7490 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 19:01:17 +00:00
Michael Niedermayer 73374bf4d0 remove no longer corret comment
Originally committed as revision 7489 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 18:58:45 +00:00
Michael Niedermayer 179dc91160 unused stuff removial
Originally committed as revision 7488 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 18:51:09 +00:00
Michael Niedermayer f12cf3d215 merge inv_sbox into inv_mix
Originally committed as revision 7487 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 18:47:01 +00:00
Michael Niedermayer 0458e79074 merge sbox with mix on the encryption side
add one more test vector

yes this needs a cleanup ...

Originally committed as revision 7485 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 18:17:45 +00:00
Michael Niedermayer 2592438dd8 1 test vector
Originally committed as revision 7483 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 17:43:45 +00:00
Michael Niedermayer 95d1236bf5 fix CONFIG_SMALL case
Originally committed as revision 7482 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 17:19:04 +00:00
Michael Niedermayer 388b5e69ec simplify special round
Originally committed as revision 7481 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 16:49:35 +00:00
Michael Niedermayer cf5773e95f benchmark
Originally committed as revision 7480 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 16:45:34 +00:00
Michael Niedermayer ff8f659429 init multbl
code can now decrypt its own encryption correctly
can anyone provide me with a correct test AES key + cyphertext + plaintext?

Originally committed as revision 7479 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 16:43:32 +00:00
Michael Niedermayer b58ecac647 ascii
Originally committed as revision 7478 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 16:19:51 +00:00
Reimar Döffinger 28221dd0fb 128bit-only AES implementation under development.
Originally committed as revision 7474 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 14:08:02 +00:00
Michael Niedermayer b1e5c29485 cosmetic
Originally committed as revision 7472 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 13:47:15 +00:00
Michael Niedermayer ba554c025e simplify round_key generation by writing over the end but ensuring that theres some irrelevant stuff afterwards
Originally committed as revision 7471 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 13:46:20 +00:00
Michael Niedermayer 84c72fb129 cosmetics
Originally committed as revision 7470 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 13:38:10 +00:00
Michael Niedermayer 7acc1a27bc memcpy
Originally committed as revision 7469 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 13:37:19 +00:00
Michael Niedermayer 1070eba2a2 seems the larger rcon values are never accessed
Originally committed as revision 7468 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 13:30:37 +00:00
Michael Niedermayer 12d6a1c813 copyright fix
Originally committed as revision 7467 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 13:16:29 +00:00
Michael Niedermayer cd0968c4ca stealing multbl trick from reimar
Originally committed as revision 7466 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 13:15:26 +00:00
Michael Niedermayer e8fc93136d stealing reimars XOR_BLOCK
Originally committed as revision 7464 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 12:40:32 +00:00
Michael Niedermayer d43a297579 cosmetic
Originally committed as revision 7463 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 09:27:11 +00:00
Michael Niedermayer eade86e2f5 memleak
Originally committed as revision 7462 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 09:25:52 +00:00
Michael Niedermayer 2c3427eb2a simplify sbox init
Originally committed as revision 7461 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 09:14:05 +00:00
Michael Niedermayer 3306dfd544 aes support (unfinished)
Originally committed as revision 7460 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-14 09:06:13 +00:00
Axel Holzinger 411983c1f2 Allow to uninstall a custom log callback
patch by Axel Holzinger % aholzinger A gmx P de %
original thread:
date: Jan 11, 2007 4:54 PM
subject: [Ffmpeg-devel] [PATCH] uninstall custom log callback

Originally committed as revision 7446 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-13 17:10:34 +00:00
Christophe Mutricy d0b456ba1e Avoid "HAVE_CMOV not defined" warning.
patch by Christophe Mutricy, xtophe nxtelevision com

Originally committed as revision 7443 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-13 04:01:35 +00:00
Michael Niedermayer 6880edab82 fix av_reduce() with things like 1/0 and 0/0
Originally committed as revision 7431 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-09 11:58:06 +00:00
Luca Abeni 40628be0ed __attribute__((unused)) works with gcc 2.95 too
Originally committed as revision 7421 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-01-07 11:11:49 +00:00
Måns Rullgård 849f10351d rename always_inline to av_always_inline and move to common.h
Originally committed as revision 7256 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-12-08 00:35:08 +00:00
Måns Rullgård 1845bf1fdf merge #ifdef HAVE_AV_CONFIG_H sections
Originally committed as revision 7254 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-12-07 20:06:11 +00:00
Måns Rullgård a77caa4dc9 fix mingw shared build, and get rid of FF_IMPORT_ATTR
Originally committed as revision 7253 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-12-07 19:27:00 +00:00
Måns Rullgård 8da9266cea use the standard INT64_C() macro for 64-bit constants
Originally committed as revision 7240 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-12-06 23:46:11 +00:00
Måns Rullgård cd10789691 move more macros to internal.h
Originally committed as revision 7239 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-12-06 23:23:20 +00:00
Måns Rullgård 5403f8576b move some __attribute__ macros to internal.h
Originally committed as revision 7238 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-12-06 21:27:08 +00:00
Måns Rullgård c48e633b9e remove 'restrict' definition, it is always #defined in config.h
Originally committed as revision 7237 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-12-06 20:31:39 +00:00
Reimar Döffinger cf1e119bb2 Move BE_*/LE_*/ST*/LD* macros to a common place. Some further
optimization/cleanup would be desirable (e.g. LE_* and LD*
should be the same on x86).

Originally committed as revision 7218 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-12-03 16:35:30 +00:00
Diego Biurrun c6c367254f spelling cosmetics: cliped --> clipped
Originally committed as revision 7208 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-12-02 14:19:49 +00:00
Michael Niedermayer fc0b041637 doxy
Originally committed as revision 7188 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-30 12:00:29 +00:00
Michael Niedermayer 62b9fc1571 fix overflow and remove wrong comment
Originally committed as revision 7187 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-30 11:43:08 +00:00
Michael Niedermayer 3db1b8b538 return optimal fraction
based on a patch by Uoti Urpala

Originally committed as revision 7186 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-30 01:18:57 +00:00
Reimar Döffinger 40a08c7e9a Correct GET/PUT_UTF8 comment: the get/put functions might be called up
to 7 times, though only up to 4 times for valid utf-8 values.

Originally committed as revision 7124 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-19 09:43:26 +00:00
Reimar Döffinger a99cfb0d0e Fix typo in comment
Originally committed as revision 7123 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-19 09:33:50 +00:00
Alex Beregszaszi 20d46c038a Remove alpha channel from RGB555
Originally committed as revision 7106 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-16 20:46:36 +00:00
Baptiste Coudurier 3666f75d33 make option field const
Originally committed as revision 7093 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-16 00:29:15 +00:00
Måns Rullgård 7e5f82dc06 move comment
Originally committed as revision 7072 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-14 21:57:27 +00:00
Måns Rullgård 576a85f7c9 remove workaround for missing inttypes.h
Originally committed as revision 7068 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-14 20:00:55 +00:00
Michael Niedermayer eaaa48b29e 0.5l
Originally committed as revision 7052 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-14 10:04:09 +00:00
Måns Rullgård 81dc56e76e clean up inttypes.h and int_fastxx_t types detection
Originally committed as revision 7050 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-14 04:02:58 +00:00
Måns Rullgård f940f7c9d2 merge CONFIG_WINCE sections
Originally committed as revision 7047 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-14 03:37:44 +00:00
Måns Rullgård 635eb0cc3d indentation
Originally committed as revision 7046 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-14 03:35:50 +00:00
Michael Niedermayer 3320687691 improve enumerate so arbitrary ranges can be enumerated quickly
Originally committed as revision 7033 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-14 01:06:15 +00:00
Michael Niedermayer 9eb88fdeba AVL tree
Originally committed as revision 7031 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-14 01:02:30 +00:00
Måns Rullgård 9ddbcae667 rename MEMALIGN_HACK to CONFIG_MEMALIGN_HACK, use common code in configure
Originally committed as revision 7025 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-14 00:35:21 +00:00
Måns Rullgård 36cd306907 rename inverse -> ff_inverse
Originally committed as revision 6990 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-12 18:49:36 +00:00
Måns Rullgård 997baf0141 allow spaces in source and build directory names
out of tree builds from a source dir with spaces is impossible
due to how make handles vpath

Originally committed as revision 6938 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-08 00:02:15 +00:00
Guillaume Poirier d73427e347 Add doxy comments for macro GET_UTF8
another fix in PUT_UTF8 doxy description

Originally committed as revision 6917 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-06 12:38:00 +00:00
Guillaume Poirier 34d3376902 Fix wrong params name in PUT_UTF8 doxy comments
Originally committed as revision 6913 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-06 10:39:07 +00:00
Guillaume Poirier 0e8c148b59 woops, fix missplaced doxy comment
Originally committed as revision 6912 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-06 10:35:54 +00:00
Zuxy Meng 360932f76d 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
Subject: [Ffmpeg-devel] PUT_UTF8 & asf format enhancement

Originally committed as revision 6911 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-06 10:32:48 +00:00
Steve L'Homme 949b1a13bf Replace most of the %lld and %llx by their (cleaner) PRI*64 counterparts.
patch by Steve Lhomme, slhomme divxcorp com

Originally committed as revision 6868 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-01 22:39:58 +00:00
Steve L'Homme 523fc7c17d Define fallback for PRIX64, taken from a patch by Steve L'Homme.
Originally committed as revision 6867 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-01 22:37:56 +00:00
Diego Biurrun 1345f4ed6c Rename SWAP macro to FFSWAP.
Originally committed as revision 6865 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-01 21:28:36 +00:00
Diego Biurrun 3cd52279c9 Use common define for x86_32 and x86_64.
Originally committed as revision 6859 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-01 18:34:40 +00:00
Diego Biurrun 419b878494 Add ARCH_X86_32 as a new define for 32 bit x86 architectures and change
the semantics of ARCH_X86 to mean both 32 and 64 bits.

Originally committed as revision 6852 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-01 17:01:33 +00:00
Diego Biurrun 6c02f9e7ee better #endif comment
Originally committed as revision 6851 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-01 16:59:18 +00:00
Kostya Shishkov 34380af0e1 16-bit grayscale support
Originally committed as revision 6778 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-24 04:57:43 +00:00
Guillaume Poirier 94e4c3a333 Protect code that uses CMOV instructions with HAVE_CMOV,
Make configure set CMOV_IS_FAST on arches on which cmov has a low latency
(typically non-Netburst based processor)

Originally committed as revision 6749 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-20 17:53:19 +00:00
Diego Biurrun c26abfa541 Rename ABS macro to FFABS.
Originally committed as revision 6666 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-11 23:17:58 +00:00
Diego Biurrun 02305ff38f Rename SIGN macro to FFSIGN to avoid clashes with system headers.
Originally committed as revision 6665 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-11 22:59:37 +00:00
Diego Biurrun dadb850a50 Move CFLAGS handling to common.mak.
Originally committed as revision 6642 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-11 08:30:13 +00:00
Diego Biurrun a22b7322cc Move sign macro to libavutil.
Originally committed as revision 6620 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-10 07:49:10 +00:00
Diego Biurrun b78e7197a8 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
2006-10-07 15:30:46 +00:00
Diego Biurrun cbeee4d8e5 Replace -I../-I. by -I$(BUILD_ROOT).
Originally committed as revision 6572 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-07 09:22:44 +00:00
Siarhei Siamashka eeebe6ad1f add FASTDIV macro for ARM. Reported speed-up on MPEG-4 decoding: 1.8%
Patch by Siarhei Siamashka %siarhei P siamashka A gmail P com%
Original thread:
Date: Sep 28, 2006 2:26 AM
Subject: [Ffmpeg-devel] [PATCH] ARM implementation of FASTDIV

Originally committed as revision 6366 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-28 08:04:16 +00:00
Luca Barbato 79e47000c8 move memory functions from avcodec to avutil
Originally committed as revision 6330 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-25 15:23:40 +00:00
Loren Merritt 8e06f20abf remove a division from STOP_TIMER
Originally committed as revision 6315 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-21 18:00:05 +00:00
Loren Merritt 7e611a0e8c simplify asm mid_pred, as suggested by michaelni.
Originally committed as revision 6314 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-21 17:48:45 +00:00
Roman Shaposhnik f5a478f65d * Moving FifoBuffer out of libavformat/avformat.h and
libavformat/utils.c into libavutil

Originally committed as revision 6310 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-21 07:31:53 +00:00
Loren Merritt 93a319f13b asm implementation of mid_pred.
20% faster huffyuv decoding, 4% faster ffv1.

Originally committed as revision 6254 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-15 00:36:49 +00:00
Diego Biurrun 04d7f60143 Add official LGPL license headers to the files that were missing them.
Originally committed as revision 6219 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-10 14:02:42 +00:00
Panagiotis Issaris af0ad8f0c1 Remove unused defines, patch by takis P issaris A uhasselt P be
Original thread:
Re: [Ffmpeg-devel] [PATCH] Remove unused internal macros
Sep 7 2006, 14:05

Originally committed as revision 6188 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-07 13:42:36 +00:00
Diego Biurrun af41dd8216 Exchange informal LGPL notice by official license header.
Originally committed as revision 6164 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-04 09:31:30 +00:00
Diego Biurrun 7494517673 Add license from zlib.h instead of referring to it.
Originally committed as revision 6155 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-03 14:13:32 +00:00
Luca Barbato 9814587500 Align the input buffer in ffplay, introduce a public macro for aligned declarations
Update the avcodec_decode_audio and the float_to_int16 descriptions accordingly

Originally committed as revision 6147 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-31 19:14:00 +00:00
Luca Abeni 001299bfe8 Add some new pixel formats to libavutil
Originally committed as revision 6112 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-28 09:06:04 +00:00
Michael Niedermayer 27cd2c10b0 compatibility warning
Originally committed as revision 6035 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-20 18:10:45 +00:00
Michael Niedermayer 0cb5cfb615 cleanup PixelFormat a little
Originally committed as revision 6034 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-20 13:04:19 +00:00
Michael Niedermayer 955ab9a4d8 attribute_deprecated
Originally committed as revision 6033 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-20 10:42:11 +00:00
Michael Niedermayer 67eca72dc0 SWAP
Originally committed as revision 6030 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-19 20:55:02 +00:00
Diego Biurrun f4bd289a04 Explicitly include fastmemcpy.h from libvo/.
Originally committed as revision 6021 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-18 13:38:24 +00:00
Diego Biurrun 7981555d89 Move all internal -I parameters to the front of CFLAGS to avoid using external
header files that happen to have the same name as internal ones.

Originally committed as revision 6016 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-17 16:32:08 +00:00
Michael Niedermayer 0a7c36af54 revert aligned realloc() changesm this should be identical to r5784
Originally committed as revision 6008 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-17 08:18:48 +00:00
Michael Niedermayer 732692d94c trying to fix av_realloc()
Originally committed as revision 5996 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-13 21:09:00 +00:00
Michael Niedermayer 75c413ae77 align av_realloc()
Originally committed as revision 5992 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-13 00:47:16 +00:00
Guillaume Poirier 71295009be Add #define REGc
Originally committed as revision 5988 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-12 16:29:05 +00:00
Baptiste Coudurier 1ce83a36bf use C99 standard constant, thanks to Foxy Shadis
Originally committed as revision 5986 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-11 21:39:09 +00:00
Michael Niedermayer a2fd60437d floating point "emulation" code
unused currently, but might come in handy for some fpu-less cpus

Originally committed as revision 5955 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-08 07:58:10 +00:00
Diego Biurrun 538389c981 Fix FSF postal address.
Originally committed as revision 5829 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-26 01:12:26 +00:00
Reimar Döffinger aab7715910 do not include bswap.h in common.h for external programs, since the former
is not installed currently.

Originally committed as revision 5809 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-21 19:36:59 +00:00
Michael Niedermayer 918a45917c removing redundant mess next time we break compatiility
Originally committed as revision 5804 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-20 11:55:08 +00:00
Michael Niedermayer 79dc59b726 simplify
Originally committed as revision 5802 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-20 10:14:06 +00:00
Michael Niedermayer 0912bf577a for floats fabs is better & smaller then ABS
Originally committed as revision 5801 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-20 09:06:23 +00:00
Michael Niedermayer f296446564 simpler, smaller and faster
Originally committed as revision 5800 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-20 08:34:01 +00:00
Luca Abeni 47adb88609 Install log.h
Originally committed as revision 5790 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-19 12:10:01 +00:00
Michael Niedermayer 1d94a6620f simplify
Originally committed as revision 5786 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-19 08:39:50 +00:00
Luca Abeni cea8f6f323 Move av_malloc(), av_realloc(), and av_free() from libavcodec to libavutil
Originally committed as revision 5784 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-19 07:28:58 +00:00
Luca Abeni 4b45de0e87 Move av_log() & friends to libavutil
Originally committed as revision 5781 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-18 11:00:55 +00:00
Reimar Döffinger 05020c89eb Split common.h in two parts, purely internal stuff (internal.h) and things
available to external programs as well.
Also make more things available to external programs like GET_UTF8, MKTAG etc.

Originally committed as revision 5765 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-16 16:32:48 +00:00
Michael Niedermayer 408ec4e2a6 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
2006-07-15 23:43:38 +00:00
Michael Niedermayer 2c779260a9 unneeded #include
Originally committed as revision 5743 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-14 12:01:53 +00:00
Michael Niedermayer 6b7f5b3eb8 adding a \ so we can add more lines without having to do a "cosmetic" change in the previous line
Originally committed as revision 5741 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-14 10:04:29 +00:00
Michael Niedermayer 82ab5ad7b2 linear least squares solver using cholesky factorization
Originally committed as revision 5740 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-14 10:03:09 +00:00
Måns Rullgård 29e4710a70 indent
Originally committed as revision 5739 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-14 00:28:16 +00:00
Måns Rullgård 0339e2b49f simplify
Originally committed as revision 5738 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-14 00:25:58 +00:00
Måns Rullgård 6d3d62b3d3 simplify
Originally committed as revision 5737 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-14 00:20:04 +00:00
Måns Rullgård 1dd590619a remove impossible #ifdef case
Originally committed as revision 5736 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-14 00:04:40 +00:00
Måns Rullgård b2b48c77ca remove old msvc cruft
Originally committed as revision 5735 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-13 23:47:16 +00:00
Måns Rullgård 43756fa17f remove redundant #include <math.h>
Originally committed as revision 5734 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-13 23:10:28 +00:00
Måns Rullgård 4b65d88fd7 replace -D_GNU_SOURCE with -D_ISOC9X_SOURCE to avoid accidental use
of gnu extensions

Originally committed as revision 5733 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-13 23:10:01 +00:00
Måns Rullgård 38603ff65d cleanup suggested by Michael Niedermayer
Originally committed as revision 5732 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-13 21:41:28 +00:00
Måns Rullgård b9a73d8d2f move adler32 to libavutil
Originally committed as revision 5731 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-13 21:29:01 +00:00
Diego Biurrun 2f30a81d19 CONFIG_WIN32 implies MinGW and Cygwin and possibly more, so use just
CONFIG_MINGW or __MINGW32__ instead.

Originally committed as revision 5718 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-11 21:45:45 +00:00
Diego Biurrun f7facfbf23 cosmetics: Fix indentation after last commit.
Originally committed as revision 5710 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-11 14:17:28 +00:00
Diego Biurrun 4bbefe6b5e Remove old MSVC remnants.
Originally committed as revision 5709 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-11 14:15:56 +00:00
Michael Niedermayer 18769c0a79 cosmetic
Originally committed as revision 5690 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-09 10:56:39 +00:00
Michael Niedermayer a7702890bd remove STATS code (probably hasnt been used for years ..., and its not completely clear what it was good for anyway)
Originally committed as revision 5689 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-09 10:33:49 +00:00
Michael Niedermayer a08d38ee82 put the code which is specific for the large crc table under #ifndef CONFIG_SMALL
Originally committed as revision 5676 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-08 20:23:19 +00:00
Michael Niedermayer 9d82b0dda1 moving utf8 reading function to libavutil
Originally committed as revision 5664 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-07 22:43:32 +00:00
Diego Biurrun a020e2c5f0 Add proper LGPL header.
Originally committed as revision 5634 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-05 22:57:47 +00:00
Diego Biurrun da2e9781bb spelling typo
Originally committed as revision 5633 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-05 22:56:45 +00:00
Luca Barbato 24dd8c616d Make ffmpeg better support pic - from Diego Pettenò <flameeyes@gentoo.org>
Originally committed as revision 5631 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-05 20:32:19 +00:00
Diego Biurrun f130fd4630 cosmetics: Break overly long lines.
Originally committed as revision 5622 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-05 14:12:00 +00:00
Måns Rullgård 959e63c9ba floorf() is not used, and causes warnings on Solaris
Originally committed as revision 5617 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-04 22:39:23 +00:00
Michael Niedermayer 767aeb11fb simplify
Originally committed as revision 5597 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-03 12:09:10 +00:00
Luca Barbato 5351c29cbe fix endianess build in a better way
Originally committed as revision 5596 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-03 11:11:22 +00:00
Luca Abeni 9c39071d6d Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
Originally committed as revision 5595 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-03 10:52:07 +00:00
Luca Barbato a8d88e03d2 big endian fix
Originally committed as revision 5592 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-03 09:16:13 +00:00
Måns Rullgård d10fda8ee2 1l: put that int i back
Originally committed as revision 5587 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-02 20:20:28 +00:00
Måns Rullgård 4dddc5e10c kill warnings
Originally committed as revision 5585 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-02 19:26:22 +00:00
Ivo van Poorten fb9cc9e7aa compile md5 and include in libavutil.a
Originally committed as revision 5584 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-02 19:01:52 +00:00
Ivo van Poorten 93d6aeb0a4 add missing declaration for av_md5_sum
Originally committed as revision 5583 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-02 19:01:09 +00:00
Ivo van Poorten f28660eb3f cast pointers to make compiler happy
remove test define

Originally committed as revision 5582 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-02 19:00:15 +00:00
Michael Niedermayer 94d85eaf34 md5 support
depending on CONFIG_SMALL this can either be compiled to a fully unrolled kernel / rfc reference style md5 routine
or a single loop similar to what mplayer uses

Originally committed as revision 5565 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-01 10:02:08 +00:00
Diego Pettenò 72468a035a make sure NDEBUG is not defined already before defining it
Patch by Diego 'Flameeyes' Petteno flameeyes AA gentoo PP org
Original thread:
Date: Jun 30, 2006 1:09 AM
Subject: [Ffmpeg-devel] [PATCH] Avoid warning on NDEBUG redefinition

Originally committed as revision 5557 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-06-30 07:45:31 +00:00
Måns Rullgård 42225a3058 remove redundant make variable SUBDIR
Originally committed as revision 5442 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-06-01 21:57:44 +00:00
Michael Niedermayer fc861443d3 improve selftest
Originally committed as revision 5424 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-05-29 19:44:17 +00:00
Diego Biurrun fefbdd2e67 Remove some lines that are duplicated in common.mak.
Originally committed as revision 5392 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-05-17 23:40:32 +00:00
Aurelien Jacobs 77177335f0 document clip functions
Originally committed as revision 5338 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-05-01 00:27:24 +00:00
Panagiotis Issaris 3a1fda0a37 clip_uint8 should return an uint8_t instead of an int (patch by Panagiotis Issaris < takis.issaris _at_ uhasselt.be >)
Originally committed as revision 5336 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-04-30 17:49:11 +00:00
Michael Niedermayer 2bda41e5b2 extend range used for testing (larger range should work too but testing code overflows)
Originally committed as revision 5334 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-04-29 16:02:28 +00:00
Michael Niedermayer 5c1cb3792d <= vs. >= 10l bug
Originally committed as revision 5333 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-04-29 15:38:20 +00:00
Måns Rullgård d1c9b76287 add newline at end of file
Originally committed as revision 5330 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-04-28 19:45:16 +00:00
Michael Niedermayer fdb3a34156 avoid AVInteger usage in av_rescale
disable integer.* (unused)
libavutil.a 45k -> 32k

Originally committed as revision 5311 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-04-23 10:28:54 +00:00
Måns Rullgård d2fbcb3bc8 #define [U]INT32_{MIN,MAX} if missing
Originally committed as revision 5261 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-04-01 22:29:20 +00:00
Luca Abeni 5d6ed7c141 move enum PixelFormat from libavcodec to libavutil
----------------------------------------------------------------------

Originally committed as revision 5248 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-03-30 16:24:38 +00:00
Sam Hocevar 5f112e1f96 Proper mangling information for symbols in OS X Mach-O shared objects.
patch by Samuel Hocevar, sam ..at.. zoy ..dot.. org

Originally committed as revision 5120 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-03-06 22:06:33 +00:00
Michael Niedermayer 43a80ccee5 generic crc calculation code
Originally committed as revision 5115 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-03-06 14:13:01 +00:00
Ivan Kalvachev afe6a4a0be Use native bswap32 instruction when __CPU__ is x86_64 instead of generic 386 code.
Originally committed as revision 5049 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-02-22 10:28:44 +00:00
Måns Rullgård 8b2121e3de move common parts of makefiles into common.mak
Originally committed as revision 5015 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-02-13 12:53:25 +00:00
Diego Biurrun dc2a1ce5c0 Simplify header installation.
Originally committed as revision 4986 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-02-11 19:30:55 +00:00
Diego Biurrun b12f8273fa Separate library install into static and shared installation.
Originally committed as revision 4983 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-02-11 18:50:45 +00:00
Diego Biurrun f29f3b5d9f Separate header file installation from the general install target.
Originally committed as revision 4981 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-02-11 17:44:06 +00:00
Michael Niedermayer f11288dab4 AIFF format support by (Patrick Guimond <patg a.t patg d.o.t homeunix d.o.t org)
Originally committed as revision 4924 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-02-02 15:21:19 +00:00
Dieter a851b8e898 add missing #includes
patch by Dieter <freebsd at sopwith solgatos com>

Originally committed as revision 4912 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-01-30 23:32:14 +00:00
Diego Biurrun 320d060ae9 On MinGW it is not possible to build shared and static libraries at once.
Add means to disable building the static libraries and fix a few issues
with the MinGW build.
All the hard work done by Alexander Strasser, minor changes by myself.

Originally committed as revision 4909 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-01-30 00:22:41 +00:00
Diego Biurrun c0af384013 Simplify LDFLAGS handling for MinGW.
Originally committed as revision 4907 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-01-29 18:32:55 +00:00
Diego Biurrun 04c07634d6 Remove obscure Makefile.bak entry from distclean rules.
Originally committed as revision 4901 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-01-26 23:42:30 +00:00
Gildas Bazin ac44871c77 WinCE cross-compilation support
patch by Gildas Bazin < gbazin **@** altern **.** org >

Originally committed as revision 4881 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-01-22 18:34:17 +00:00
Diego Biurrun 29a10be0d4 Don't use 'rm -f *$(SLIBSUF)' in a clean rule, $(SLIBSUF) might be empty.
Remove all possible shared libs suffixes instead.

Originally committed as revision 4860 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-01-15 00:28:36 +00:00
Diego Biurrun 4bdd05e76f Move library name generation to configure, simplifies build system a bit more.
Originally committed as revision 4856 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-01-14 15:54:58 +00:00
Diego Biurrun f3b6010916 Create symbolic links for all library sonames and clean up Makefiles.
based on a patch by Luca Barbato < lu_zero -- at -- gentoo -- dot -- org >

Originally committed as revision 4851 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-01-14 03:39:02 +00:00
Diego Biurrun 5509bffa88 Update licensing information: The FSF changed postal address.
Originally committed as revision 4842 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-01-12 22:43:26 +00:00
Diego Biurrun fb3d46da69 Move Darwin shared library build peculiarities to configure.
Originally committed as revision 4838 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-01-12 00:00:00 +00:00
Diego Biurrun bb270c0896 COSMETICS: tabs --> spaces, some prettyprinting
Originally committed as revision 4764 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-12-22 01:10:11 +00:00
Diego Biurrun 115329f160 COSMETICS: Remove all trailing whitespace.
Originally committed as revision 4749 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-12-17 18:14:38 +00:00
François Revol 86f77a493a Add some more PRIfooNN crap so it builds again here. Why can't ppl add defaults when they use such things ?
Originally committed as revision 4741 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-12-13 20:24:31 +00:00
Fredrik Orderud 765c344060 Define EMULATE_INTTYPES for all windows-systems, except Cygwin and MinGW
to simplify usage on Windows.
patch by Fredrik Orderud fredrik - . - orderud - @ - idi - . - ntnu - . - no

Originally committed as revision 4736 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-12-12 00:48:42 +00:00
Luca Barbato 5a872801d5 SONAME support for shared libs
patch by Luca Barbato < .. lu_zero .. @@ .. gentoo .. . .. org .. >

Originally committed as revision 4730 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-12-10 17:14:24 +00:00
François Revol e684b35d62 fix for systems not defining PRIu64, not everyone knows C99.
Originally committed as revision 4721 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-12-05 23:14:55 +00:00
Alexander Strasser e852beeee3 Fixed format specifier in STOP_TIMER macro.
Originally committed as revision 4713 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-12-01 18:20:15 +00:00
Fredrik Orderud 25f8db58ee Put double-quotes around the install path in the "install-headers" section
of the makefiles for libavcodec, libavformat and libavutil.
Fixes installing into paths with spaces in them, i.e. Windows.
patch by Fredrik Orderud < fredrik . orderud -- at -- idi . ntnu . no >

Originally committed as revision 4680 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-11-07 01:32:29 +00:00
Diego Biurrun 4e159595b5 support for building dynamic libraries on Mac OS X
based on a patch by Lina Pezzella <J4rg0n -- at -- gentoo -- dot -- org>

Originally committed as revision 4616 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-09-26 10:05:13 +00:00
Diego Biurrun 7df6545556 Move lrintf implementation from libavcodec/dsputil.h to libavutil/common.h
where it makes more sense.

Originally committed as revision 4599 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-09-19 23:26:47 +00:00
Diego Biurrun 978844ccaa Wrong comment after #endif.
Noticed by Fred Rothganger < rothgang -- at -- uiuc -- dot -- edu >

Originally committed as revision 4566 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-09-06 15:06:16 +00:00
Måns Rullgård bf4e3bd2d0 kill a bunch of compiler warnings
Originally committed as revision 4522 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-08-14 15:42:40 +00:00
j@v2v.cc 31abdc45e0 add libavutil.pc + fix version in pkg-config files patch by (j, v2v cc)
Originally committed as revision 4496 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-08-06 10:03:08 +00:00
Alexander Strasser c11c2bc20b libavutil: Utility code from libavcodec moved to a separate library.
Originally committed as revision 4489 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-08-01 20:07:05 +00:00