Martin Storsjö
957635ba14
libvo-*: Fix up the long codec names
...
Include VisualOn to clarify the codec name, but remove the
actual library name from the user-friendly description.
Also mention Android, to clarify which VisualOn implementation
this refers to, since they do sell other variants of the same
code, too.
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Martin Storsjö
567ad0e31d
libavcodec: Mark AVCodec->priv_class const
...
This avoids warnings of this kind, everywhere priv_class
is initialized:
warning: initialization discards qualifiers from pointer target type
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Martin Storsjö
2d3267936a
libvo-aacenc: Only produce extradata if the global header flag is set
...
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Anton Khirnov
c776732712
lavc: postpone removal of request_channels
...
No decoder uses the supposed replacement, request_channel_layout, yet.
14 years ago
Anton Khirnov
d6ead39ee7
lavc: postpone removal of audioconvert and sample_fmt wrappers
...
Those were moved to libavutil only recently.
14 years ago
Martin Storsjö
882221afde
libopencore-amr: Cosmetics: Rewrap and align
...
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Martin Storsjö
02c63a109f
libopencore-amr, libvo-amrbwenc: Rename variables and functions
...
Avoid camelCase names for functions and variables.
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Martin Storsjö
9b9c6405fd
libopencore-amr: Convert commented out debug logging into av_dlog
...
Also add the avctx as logging context.
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Martin Storsjö
89e7e640f7
libopencore-amr: Remove an unused state variable
...
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Martin Storsjö
5d211e034e
libvo-amrwbenc: Don't explicitly store bitrate modes in the bitrate table
...
The bitrate modes are equal to the array indices.
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Martin Storsjö
0e03f94d61
libopencore-amr: Remove a useless local variable
...
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Martin Storsjö
c48ce4eb50
libopencore-amr, libvo-amrwbenc: Make the bitrate/mode mapping array static const
...
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Martin Storsjö
900a129f4f
libopencore-amr, libvo-amrwbenc: Return proper error codes in most places
...
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Martin Storsjö
a8ec07c933
libopencore-amr: Don't print carriage returns in log messages
...
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Martin Storsjö
587331414b
libopencore-amr: Remove an old workaround for libamr header weirdness
...
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Martin Storsjö
57ddffe843
libopencore-amr: Make the opaque encoder pointer a void*
...
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Martin Storsjö
dbff4da914
libopencore-amr: Remove unused code fragments
...
This parts are heritage from the encoder part from the old
libamr code removed in SVN rev 19365.
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Alberto Delmas
d294015510
Check for successful h263 init in msmpeg4 init
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Martin Storsjö
c5e03cebd3
libvo-*: Don't use deprecated sample format names and enum names
...
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Martin Storsjö
c41eb2ade4
libavcodec: Use "const enum AVSampleFormat[]" in AVCodec initialization
...
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Alex Converse
2f072b55a4
Fix the conversion of AV_SAMPLE_FMT_FLT and _DBL to AV_SAMPLE_FMT_S32.
...
(1<<31) is undefined and seems to be evaluated by gcc to -2^31 when
these formulae require 2^31.
These conversions still need fate tests.
14 years ago
Alex Converse
187a537904
Convert some undefined 1<<31 shifts into 1U<<31.
...
According to ISO 9899:1999 S 6.5.7/4:
The result of E1 << E2 is E1 left-shifted E2 bit positions; vacated bits
are filled with zeros. If E1 has an unsigned type, the value of the
result is E1× 2^E2, reduced modulo one more than the maximum value
representable in the result type. If E1 has a signed type and
nonnegative value, and E1× 2^E2 is representable in the result type, then
that is the resulting value; otherwise, the behavior is undefined.
14 years ago
Martin Storsjö
f502ff3f61
Add support for AMR-WB encoding via libvo-amrwbenc
...
The wrapper code is based on the libamr wrapper removed in SVN rev 19365.
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Martin Storsjö
d89e738a0c
Add an AAC encoder by using the libvo-aacenc library
...
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Martin Storsjö
029f966c3a
g722: Return 8 bits per sample for g722 in av_get_bits_per_sample
...
This fixes a failing assert in ff_raw_read_header (in
fate-g722dec-1), where bits_per_coded_sample is set using this
function and is required to have a positive value.
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Alberto Delmás
768c525114
Parse sprite data for WMVP and WVP2, and decode sprites for the latter
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Alexander Strange
cf39b461d3
pthread: validate_thread_parameters() ignored slice-threading being intentionally off
...
The thread_type API allows you to request only FF_THREAD_FRAME (instead of
FRAME | SLICE), but it was being ignored.
We don't implement both of them at the same time, so there isn't an effect
on current codecs, except that you can request no kinds of threading now
(a bit useless).
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Reimar Döffinger
f82163cf1c
Use consistent condition for whether to run slice-threading execute function.
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Gwenole Beauchesne
da21440d46
vaapi: cope with VA-API 0.32, i.e. fix VC-1 decoding on Sandy Bridge.
...
(cherry picked from commit a18e7b4fb7
)
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
14 years ago
Gwenole Beauchesne
09ce846206
vaapi: filter out DELAYED_PIC_REF flag to determine field.
...
This fixes ticket #23 .
(cherry picked from commit 621f4c98df
)
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
14 years ago
Anton Khirnov
9f5ddd1e46
lavc: add a FF_API_REQUEST_CHANNELS deprecation macro
...
And hide request_channels AVOption under it.
14 years ago
Brad
1f6265e011
Fix parser: mark av_parser_parse() for removal on next major bump
...
Fix the breakage introduced with 9073ca6c6e
14 years ago
Nathan Caldwell
5371803dd5
psymodel: extend API to include PE and bit allocation.
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
14 years ago
Alexander Strange
ba9ef8d04e
Remove unnecessary parameter from ff_thread_init() and fix behavior
...
thread_count passed to ff_thread_init() is only used to set AVCodecContext.
thread_count, and can be removed. Instead move it to the legacy implementation
of avcodec_thread_init().
This also fixes the problem that calling avcodec_thread_init() with pthreads
enabled did not set it since ff1efc524c
.
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
14 years ago
Janne Grunau
d6f66edd65
Revert "aac_latm_dec: use aac context and aac m4ac"
...
This reverts commit 36864ac354
since it
breaks LATM decoding in ffplay.
14 years ago
Mans Rullgard
5f2e6c0fd1
ac3enc: NEON optimised extract_exponents
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
2310ee4b1c
ac3enc: move extract_exponents inner loop to ac3dsp
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Young Han Lee
57cc1ad35f
aacenc: reduce the number of loop index variables
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
14 years ago
Justin Ruggles
e05a3ac713
ac3enc: select bandwidth based on bit rate, sample rate, and number of
...
full-bandwidth channels.
This reduces high-frequency artifacts and improves the quality of the lower
frequency audio at low bit rates.
14 years ago
Mans Rullgard
f7653904c8
ARM: NEON fixed-point forward MDCT
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
dba9852935
ARM: NEON fixed-point FFT
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
79997def65
ac3enc: use generic fixed-point mdct
...
This makes the AC3 encoder use the shared fixed-point MDCT rather
than its own implementation. The checksum changes are due to
different rounding in the MDCT.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Anton Khirnov
4e3945fd28
lavc: deprecate AVCodecContext.antialias_algo
...
It's been unused since mp3float decoder was added.
14 years ago
Anton Khirnov
4a49d2d59c
lavc: mark mb_qmin/mb_qmax for removal on next major bump.
...
They've been unused and deprecated for about five years.
14 years ago
Mans Rullgard
bc154882e1
Fixed-point MDCT with 32-bit unscaled output
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Anton Khirnov
ed5fcd60b2
lavc: deprecate rate_emu
...
It's not used anywhere and apparrently hasn't been for a very long time.
14 years ago
Anton Khirnov
8ed2ae09a2
lavc: mark hurry_up for removal on next major bump
...
It has been deprecated for about five years, skip_idct/skip_frame should
be used instead.
14 years ago
Anton Khirnov
9073ca6c6e
parser: mark av_parser_parse() for removal on next major bump
...
Fixes build with the bump, since the prototype is already marked for
removal.
14 years ago
Anton Khirnov
6f3d3eacf6
lavc: add missing audioconvert includes
14 years ago
Anton Khirnov
b4b167ecbf
jvdec: don't use deprecated CODEC_TYPE_*/PKT_FLAG_KEY
14 years ago