Justin Ruggles
a0a5fed908
vorbisenc: set AVCodecContext.bit_rate to 0
...
The Vorbis encoder is always VBR.
13 years ago
Justin Ruggles
890fddd0ea
vorbisenc: fix quality parameter
...
This generates output with bitrates similar to libvorbis for a given quality
value.
13 years ago
Justin Ruggles
4b0e0f31bf
lpc: fix alignment of windowed samples for odd maximum LPC order
...
Fixes crash on x86 due to alignment requirements for w_data in
lpc_apply_welch_window_sse2().
13 years ago
Justin Ruggles
f24cc1b2f1
alacenc: use s16p sample format as input
13 years ago
Justin Ruggles
358078d9bb
alacenc: remove unneeded sample_fmt check
13 years ago
Justin Ruggles
ec7a212f9f
alacenc: fix max_frame_size calculation for the final frame
13 years ago
Justin Ruggles
5d4ef004bf
adpcm_swf: Use correct sample offsets when using trellis.
...
Fixes invalid reads when encoding mono streams when trellis is used.
13 years ago
Michael Niedermayer
ac33016158
mjpegdec: support AVRn interlaced
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Diego Biurrun
6fa488678f
build: x86: Only compile mpegvideo optimizations when necessary
13 years ago
Diego Biurrun
4264a0dd54
build: Make the E-AC-3 encoder select the AC-3 encoder
...
The E-AC-3 encoder depends on almost all of the code of the AC-3
encoder, so it makes no sense to enable one without the other.
13 years ago
Jordi Ortiz
72e8d86b19
dirac: use meaningful return values
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Mans Rullgard
44c56a1617
flacdec: simplify sample buffer handling
...
Pass pointer to sample buffer instead of channel number to various
functions called from decode_subframe(). Also simplify a few
expressions within this function.
13 years ago
Mans Rullgard
ea98507db0
flacdec: simplify loop in decode_residuals()
13 years ago
Diego Biurrun
deb23777f2
build: amrwb: Drop redundant lsp dependency declaration
13 years ago
Jan Ekström
1ab5a78042
lavc: add Ut Video encoder
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Anton Khirnov
677e763a55
mpegvideo_enc: remove stray duplicate line from 7f9aaa4
13 years ago
Mans Rullgard
4855022aa1
vorbisdec: remove some pointless comments
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
11434c9b13
pthread: add const to AVCodec pointers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Anton Khirnov
7f9aaa499b
mpegvideo_enc: don't use deprecated avcodec_encode_video().
13 years ago
Anton Khirnov
91e59fea30
lavc: add avcodec_descriptor_get_by_name().
13 years ago
Anton Khirnov
0a0f19b577
lavc: add const to AVCodec* function parameters.
13 years ago
Uoti Urpala
2e8f3cbcda
h264: vdpau: fix crash with unsupported colorspace
...
The h264_vdpau decoder crashed if output colorspace was not 8-bit 420.
Add a check to error out instead (current hardware does not support
other colorspaces, so successful decoding is not possible).
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
ca00a7e809
amrwbdec: Decode the fr_quality bit properly
...
The way this bit is decoded was accidentally flipped in b70feb405
,
leading to warnings "Encountered a bad or corrupted frame" for each
decoded frame.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Luca Barbato
4aa3d7b3f2
libvpxenc: use the default bitrate if not set
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Jan Ekström
77f47e3288
utvideo: Rename utvideo.c to utvideodec.c
...
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
13 years ago
Luca Barbato
0f64cd1e81
mjpegdec: more meaningful return values
13 years ago
Martin Storsjö
7ebe3962f3
Add missing includes for code relying on external libraries
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
232e35de2e
Fix even more missing includes after the common.h removal
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Diego Biurrun
f704a079a1
build: Factor out rangecoder dependencies to CONFIG_RANGECODER
...
A new hidden config variable is added for the codecs that depend on
the rangecoder parts.
13 years ago
Diego Biurrun
c292f6a24d
build: Factor out error resilience dependencies to CONFIG_ERROR_RESILIENCE
...
A new hidden config variable is added for the codecs that depend on
the error resilience parts.
13 years ago
Diego Biurrun
6961bdface
x86: avcodec: Consistently name all init files
13 years ago
Martin Storsjö
33e112847d
Add more missing includes after removing the implicit common.h
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
70766c2182
Add some more missing includes after removing the implicit common.h
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
1d9c2dc89a
Don't include common.h from avutil.h
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Anton Khirnov
661454aa28
api-example: use new video encoding API.
13 years ago
Diego Biurrun
29cfdd3767
x86: avcodec: Appropriately name files containing only init functions
13 years ago
Diego Biurrun
be12958937
mpegvideo_mmx_template: drop some commented-out cruft
13 years ago
Diego Biurrun
11928d24fe
w32pthreads: Add missing #includes to make header compile standalone
13 years ago
Maksalov Boris
c0f4cf7798
prores: interlaced ProRes encoding
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Mans Rullgard
0d230e9312
g723.1: simplify scale_vector()
...
It is impossible for bits to be 15 here so the special case is
not needed.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
a4b8fc3a8a
g723.1: simplify normalize_bits()
...
This function is always called with a non-negative argument, so
those special cases are not needed. In the places the argument
might be zero, the return value for a zero argument does not matter
since it would then be used to scale an array full of zeros.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Sebastien Zwickert
063910f54d
vda: cosmetics: fix Doxygen comment formatting
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Sebastien Zwickert
694be29f13
vda: better frame allocation
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Sebastien Zwickert
dc87ac55ab
vda: Merge implementation into one file
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Sebastien Zwickert
3c37970637
vda: support synchronous decoding
...
Note that the symbols used to run the hardware decoder in asynchronous mode
have been marked deprecated and will be dropped at a future version bump.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Sebastien Zwickert
cfc680ab39
vda: Reuse the bitstream buffer and reallocate it only if needed
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Diego Biurrun
ad08dfd594
build: Factor out mpegvideo encoding dependencies to CONFIG_MPEGVIDEOENC
...
A new hidden config variable is added for the codecs that depend on
the mpegvideo encoding parts.
13 years ago
Boris Maksalov
cee03436e6
proresenc: use the edge emulation buffer
...
Prevents reading past the end of frame buffer.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Mans Rullgard
d752509b74
Use log2(x) instead of log(x) / log(2)
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
8ec0204ee4
x86: cabac: allow building with suncc
...
This fixes two issues preventing suncc from building this code.
The undocumented 'a' operand modifier, causing gcc to omit a $ in
front of immediate operands (as required in addresses), is not
supported by suncc. Luckily, the also undocumented 'c' modifer
has the same effect and is supported.
On some asm statements with a large number of operands, suncc for no
obvious reason fails to correctly substitute some of the operands.
Fortunately, some of the operands in these statements are plain
numbers which can be inserted directly into the code block instead
of passed as operands.
With these changes, the code builds correctly with both gcc and
suncc.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago