Vittorio Giovara
fef2f4722b
xvid: Check memory allocation
10 years ago
Vittorio Giovara
18db1286b0
libxvid: Make codec use the init-cleanup flag and mark it as init-thread-safe
...
This takes care of memory leaks on init error.
10 years ago
Himangi Saraogi
a1e2c47cd4
libxvid: Return meaningful error messages
10 years ago
Gabriel Dume
0a02426826
libxvid: K&R formatting cosmetics
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
10 years ago
Gabriel Dume
4b1f5e5090
cosmetics: Write NULL pointer inequality checks more compactly
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
11 years ago
Gabriel Dume
f929ab0569
cosmetics: Write NULL pointer equality checks more compactly
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
11 years ago
Diego Biurrun
67bc1ba5d7
libxvid: Drop PPC-specific CPU detection hack
...
It is doubtful if the hack (still) works and Xvid had ten years to fix it.
11 years ago
Anton Khirnov
6484149158
lavc: make the xvid-specific "gmc" flag a private option of libxvid
11 years ago
Vittorio Giovara
17a75a8c09
libxvid: fix missing end of line character
...
Error introduced in 5ce7ca68b8
.
11 years ago
Timothy Gu
c389a80494
libxvid: Add SSIM displaying through a libxvidcore plugin
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
11 years ago
Timothy Gu
5ce7ca68b8
libxvid: add working lumimasking and variance AQ
...
The old implementation is unusable due to changes in the Xvid API.
Further fixes by Michael Niedermayer <michaelni@gmx.at>.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
11 years ago
Anton Khirnov
ffe04c3303
libxvid: use the AVFrame API properly.
11 years ago
Diego Biurrun
b2bed9325d
cosmetics: Group .name and .long_name together in codec/format declarations
11 years ago
Anton Khirnov
5957aefc7c
libxvid: remove useless doxy comments.
12 years ago
Anton Khirnov
716d413c13
Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat
12 years ago
Anton Khirnov
36ef5369ee
Replace all CODEC_ID_* with AV_CODEC_ID_*
13 years ago
Diego Biurrun
c8b4a3999b
libxvid: Give more suitable names to libxvid-related files.
13 years ago
Diego Biurrun
5b432d66ce
libxvid: Separate libxvid encoder from libxvid rate control code.
...
This allows compiling the Xvid rate control code without the encoder.
13 years ago
Diego Biurrun
219a9ed19e
libxvid: Reorder functions to avoid forward declarations; make functions static.
13 years ago
Diego Biurrun
679481b3b6
Drop some pointless #ifdefs.
...
The files are only compiled if the #ifdef conditions are met.
13 years ago
Martin Storsjö
00c3b67b8a
cosmetics: Align codec declarations
...
Also break some long lines, remove codec function placeholder comments
and add spaces in sample/pixel format lists.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Diego Biurrun
a92be9b856
Replace memset(0) by zero initializations.
...
Also remove one pointless zero initialization in rangecoder.c.
13 years ago
Anton Khirnov
4da6d194e5
libxvid: switch to encode2().
13 years ago
Diego Biurrun
3dc99a18d4
cosmetics: drop some pointless parentheses
13 years ago
Diego Biurrun
20566eb0f0
Replace outdated references to ffmpeg tool with avconv.
13 years ago
Anton Khirnov
ec6402b7c5
lavc: use designated initialisers for all codecs.
...
It's more readable and less prone to breakage.
14 years ago
Diego Biurrun
d8dbe20241
libxvid: Add const qualifier to silence compiler warning.
...
libavcodec/libxvidff.c:752: warning: initialization discards qualifiers from pointer target type
14 years ago
Christian Schmidt
6c374bc0b4
libxvid: add missing include of libavutil/mathematics.h
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Biurrun
046f081b46
configure: Do not unconditionally add -D_POSIX_C_SOURCE to CPPFLAGS.
...
Adding _POSIX_C_SOURCE to CPPFLAGS globally produces all sorts of problems
since it causes certain system functions to be hidden on some (BSD) systems.
The solution is to only add the flag on systems that really require it, i.e.
glibc-based ones.
This change makes BSD systems compile out-of-the-box without the need for
adding specific flags manually. It also allows dropping a number of flags
set manually on a file-per-file basis, but were only present to work around
breakage introduced by the presence of _POSIX_C_SOURCE.
Also add _XOPEN_SOURCE to CPPFLAGS for glibc systems. We use XSI extensions
in several places already, so it is preferable to define it globally instead
of littering source files with individual #defines only needed for glibc.
14 years ago
Stefano Sabatini
975a1447f7
Replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*.
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Clément Bœsch
523d9407d5
Remove a few if (p) av_freep(&p) forms
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Clément Bœsch
437fb1c87d
Remove a few if (p) av_free(p) forms
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Elio Pettenò
d36beb3f69
Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.
...
None of these symbols should be accessed directly, so declare them as
hidden.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Nicolas George
f9b4eef457
Use forced key frames when encoding with libxvid.
...
Patch by Nicolas George, nicolas D george A normalesup D org
Originally committed as revision 25550 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Stefano Sabatini
c6c98d0897
Move mm_support() from libavcodec to libavutil, make it a public
...
function and rename it to av_get_cpu_flags().
Originally committed as revision 25076 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
9ec7458ddf
Remove reference to not anymore existing symbol has_altivec and use
...
mm_support instead.
Fix compilation if altivec is present and libxvidff.c is compiled.
Originally committed as revision 25075 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
a20df85886
Fix doxy that refers to the wrong variable.
...
Originally committed as revision 24549 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Víctor Paesa
4b04c5ca29
Current Cygwin has mkstemp().
...
Originally committed as revision 24144 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
9ebf4fb660
libxvid: add some const fixing a warning
...
Originally committed as revision 24138 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
a30b336061
Allow using libxvid RC without enabling encoding wrapper
...
Originally committed as revision 24137 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
a2ab5ad5f1
Rename av_tempfile() to ff_tempfile()
...
Originally committed as revision 24075 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
25cbc8b46e
Move av_tempfile() to libxvidff.c as only the xvid wrapper needs it
...
Originally committed as revision 24074 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
49bd8e4b84
Fix grammar errors in documentation
...
Originally committed as revision 23904 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
ba87f0801d
Remove explicit filename from Doxygen @file commands.
...
Passing an explicit filename to this command is only necessary if the
documentation in the @file block refers to a file different from the
one the block resides in.
Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
72415b2adb
Define AVMediaType enum, and use it instead of enum CodecType, which
...
is deprecated and will be dropped at the next major bump.
Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ramiro Polla
e644db613a
libxvid: Clear extradata pointer when freeing it.
...
Fixes crash when avcodec_close() tried freeing it again.
Fixes issue 1846.
Originally committed as revision 22691 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Aurelien Jacobs
2325bdad7b
libxvid is producing standard mpeg4 so it don't need its own codec id
...
Originally committed as revision 22489 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Carl Eugen Hoyos
30f7682404
Make the following functions static (and remove ff_), they are only used
...
inside libxvidff.c:
ff_xvid_encode_init(), ff_xvid_encode_frame(), ff_xvid_encode_close()
Originally committed as revision 22115 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
2ba8301769
Mark all pix_fmts and supported_framerates compound literals as const.
...
Makes no difference for gcc but at least icc can put them in .rodata then.
Originally committed as revision 19789 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago