Måns Rullgård
2ed6f39944
Replace many includes of libavutil/common.h with what is actually needed
...
This reduces the number of false dependencies on header files and
speeds up compilation.
Originally committed as revision 22407 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
297bfb2fe6
libm.h needs attributes.h
...
Originally committed as revision 22405 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
335ee1aadd
Move libm replacements to new header libm.h
...
ffmpeg.c uses lrintf(), which is missing on some systems. Previously
it picked up the replacement via libavutil/internal.h due to
HAVE_AV_CONFIG_H being erroneously defined.
Moving these replacements to a separate header enables ffmpeg.c to
use them without being exposed to internal interfaces.
This use of a non-public header is justified by the header in question
not being part of the internal interface either. It should rather be
considered as part of the build system, which is shared between the
libraries and the applications.
This header cannot be installed since the tested conditions depend on
the compiler.
Originally committed as revision 22399 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
b90b1b4c3c
Fix build on configurations without fast av_log2()
...
This is a bit hackish. I will try to think of something nicer, but
this will do for now.
Originally committed as revision 22366 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
f0a912d3b8
More descriptive names for av_stristr() parameters
...
Originally committed as revision 22349 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
3369888aa5
cosmetics: indent
...
Originally committed as revision 22348 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
2acb5e10b9
Merge two adjacent ifdef blocks
...
Originally committed as revision 22347 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
2791730dbf
Move gcc attribute macros to new header libavutil/attributes.h
...
Originally committed as revision 22346 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
94ca624fbc
Move ff_sqrt() to libavutil/intmath.h
...
Originally committed as revision 22345 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
f89c14027a
checkheaders: skip per-arch headers not meant for direct inclusion
...
Some of the per-arch headers are only meant to be used through
the parent header of the same name. Testing these standalone
does not make sense.
Originally committed as revision 22341 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
4a89e0a675
ARM: add some missing includes
...
Originally committed as revision 22340 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
9c9a0840d0
Add lots of missing includes
...
Originally committed as revision 22337 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
c18fb6310d
Bump minor number and add APIchanges entry after the inclusion of
...
av_stristr().
Originally committed as revision 22254 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
ac6ef8682d
Add av_stristr() function
...
This is a case-insensitive version of strstr().
Originally committed as revision 22251 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
84dc2d8afa
Remove DECLARE_ALIGNED_{8,16} macros
...
These macros are redundant. All uses are replaced with the generic
DECLARE_ALIGNED macro instead.
Originally committed as revision 22233 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
4b9905d1dc
Move DECLARE_ALIGNED_{8,16} macros to mem.h
...
These macros naturally belong next to the generic DECLARE_ALIGNED
macro.
Originally committed as revision 22230 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Janusz Krzysztofik
2b7cf1678e
Add initial support for 12-bit color mode.
...
Patch by Janusz Krzysztofik jkrzyszt tis icnet pl
Original thread:
Subject: [FFmpeg-devel] [PATCH v2] Add initial support for 12-bit color mode.
Date: Mon, 1 Mar 2010 02:05:07 +0100
Originally committed as revision 22220 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
ce7c717900
Declare the PIX_FMT_GRAY8 pixel format as a paletted format. This is
...
consistent with the allocation currently done for PIX_FMT_GRAY8
pictures.
No significant slow-downs have been measured.
See the thread:
Subject: [FFmpeg-devel] [PATCH] Is gray8 a paletted format?
Date: Sun, 15 Nov 2009 23:36:03 +0100
Originally committed as revision 22191 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Vitor Sessak
4b83fc0fe4
Plug memory leak in NUT muxer and demuxer
...
Originally committed as revision 22174 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
3d7b94ba5a
Fix build failure with fast_unaligned and non-gcc-compatible compilers
...
Originally committed as revision 22142 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Vitor Sessak
8a4d067dfc
Revert r22119 and partially revert 22120.
...
Originally committed as revision 22135 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Vitor Sessak
fee6faa2b6
Implement av_tree_destroy_free_elem() to destroy a tree and free all the
...
values stored on it.
Originally committed as revision 22119 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Carl Eugen Hoyos
0fcbcad140
Include sha1.h from sha.c: It contains several prototypes.
...
Originally committed as revision 22099 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
3314799368
Extend doxy for the src parameter of av_fifo_generic_write().
...
@patchby Tomas Härdin |tomas dot hardin at codemill dot se|
Originally committed as revision 22043 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
8ef4e65e94
AV_COPY16() & AV_ZERO16()
...
Originally committed as revision 22037 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Anton Khirnov
ae529ddb32
Add PUT_UTF16() macro.
...
Patch by Anton Khirnov <wyskas gmail com>.
Originally committed as revision 22030 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
fc323a5480
Clarify non constness of src in av_fifo_generic_write()
...
Originally committed as revision 21997 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
ac73f1a816
ARM: change argument/return type of bswap_16() to unsigned 32-bit
...
This avoids unnecessary masking otherwise added by the compilers.
Originally committed as revision 21953 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
94a5218c10
More accurate value for log2(10)
...
Originally committed as revision 21946 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
e4a35244fa
Replace log2f(10) with a constant
...
Originally committed as revision 21924 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
7ed63ca2e7
Add casts to correct return type in macros for missing libm funcs
...
Originally committed as revision 21922 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Carl Eugen Hoyos
8e339d4aa0
Gcc attribute may_alias is not supported (or silently ignored) by all supported compilers.
...
Originally committed as revision 21917 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
95c0d02ddc
TOMI: 16- and 32-bit intreadwrite functions
...
Originally committed as revision 21890 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
f4a7434f16
Add alias-safe aligned AV_[RW]N macros
...
Originally committed as revision 21880 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
7a6053ef72
Use alias-safe types in AV_COPY/SWAP/ZERO macros
...
Originally committed as revision 21879 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
0c76e635f5
Use alias-safe types in AV_[RW] macros
...
Originally committed as revision 21878 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
d10458c9e2
Add alias-safe union typedefs
...
Originally committed as revision 21877 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
f47a7cb777
Move read_line() and write_line() definition from pixdesc.h to
...
pixdesc.c, which are now not anymore marked as static inline.
Fix the inclusion of the private header intreadwrite.h in the public
header pixdesc.h.
Originally committed as revision 21854 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Kostya Shishkov
a768816c33
Simplify expression as suggested by Måns Rullgård
...
Originally committed as revision 21756 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Kostya Shishkov
045b60bf9b
Make SHA digest function write digest value with AV_WN32 instead of assuming
...
that output may be written as uint32_t since output buffer may not be aligned
(and it's silly to force alignment on it) and it does not work in that case
properly on some architectures.
Originally committed as revision 21754 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
8e05f06912
Define missing llrint() as macro instead of inline function
...
This fixes building on some broken systems.
Originally committed as revision 21735 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
b687c1aaac
Bump minor for av_compare_ts()
...
Originally committed as revision 21673 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
78b0182375
av_compare_ts()
...
Originally committed as revision 21671 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
351aff72a4
Fix grammar: write to DST THING -> write THING to DST.
...
Originally committed as revision 21576 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
22bf4592c8
Remove duplicated word in av_strlcat() doxy.
...
Originally committed as revision 21549 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
80a07f6e47
Implement av_get_pix_fmt(), and deprecate avcodec_get_pix_fmt().
...
Originally committed as revision 21545 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
6c88973a75
Add AV_COPY32
...
Originally committed as revision 21524 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
788627dea6
Define av_alias if supported by compiler
...
Originally committed as revision 21523 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
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
15 years ago
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
15 years ago