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
Reimar Döffinger
a0f17473b3
ASS decoder also requires ass_split.o to be compiled.
14 years ago
Carl Eugen Hoyos
5c0068758f
Fix compilation with --disable-yasm.
14 years ago
Michael Niedermayer
8b7dc087e4
Add forgotten const to enum AVSampleFormat
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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
Carl Eugen Hoyos
4e54848bd1
Use const where appropriate.
...
Spotted by Reimar.
14 years ago
Carl Eugen Hoyos
72eb6dfe49
Mention VisualOn in the new codecs' long names to explain "libvo".
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
James Zern
8eeed0db05
vpxenc: add CQ_LEVEL mapping
...
via the equivalent AVCodecContext::crf modifying the range allowed by
options.c (0-51 -> 0-63)
update configure check to require libvpx 0.9.6 (Bali)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
James Zern
a299a261de
vpxenc: add VP8E_SET_STATIC_THRESHOLD mapping
...
via the equivalent AVCodecContext::mb_threshold
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Aurelien Jacobs
13d4ec844a
cosmetics: alignment
14 years ago
Aurelien Jacobs
6873cf9bc8
compute rects duration in ASS decoder
...
Signed-off-by: Aurelien Jacobs <aurel@gnuage.org>
14 years ago
Aurelien Jacobs
3ee8ca9b08
add avcodec_get_subtitle_defaults() to initialize AVSubtitle struct
...
Call this new function before decode() to replace the custom and
inconsistant initialization in various decoders.
This function is equivalent to avcodec_get_frame_defaults() for AVFrame.
Signed-off-by: Aurelien Jacobs <aurel@gnuage.org>
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
Michael Niedermayer
df2d5b16ef
H264: Allow templating hl_decode_mb based on pixel_size.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
179106ed78
H264: factor if() out of coef decoding loop of decode_cabac_residual_internal()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
a50f0bea25
H264: Split out hl_motion and template it, this seems a bit faster
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
e7077f5e7b
H264: replace pixel_size by pixel_shift
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
9b271ce656
h264: Print bpp Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Oskar Arvidsson
5e85298cb5
Enable decoding of high bit depth h264.
...
This patch completes the high bit depth h264 decoding support.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Oskar Arvidsson
8dbe585641
Adds 8-, 9- and 10-bit versions of some of the functions used by the h264 decoder.
...
This patch lets e.g. dsputil_init chose dsp functions with respect to
the bit depth to decode. The naming scheme of bit depth dependent
functions is <base name>_<bit depth>[_<prefix>] (i.e. the old
clear_blocks_c is now named clear_blocks_8_c).
Note: Some of the functions for high bit depth is not dependent on the
bit depth, but only on the pixel size. This leaves some room for
optimizing binary size.
Preparatory patch for high bit depth h264 decoding support.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Oskar Arvidsson
d268bed209
Add support for higher QP values in h264.
...
In high bit depth, the QP values may now be up to (51 + 6*(bit_depth-8)).
Preparatory patch for high bit depth h264 decoding support.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
436c4523ed
H264: fix prefetch
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Oskar Arvidsson
dc172ecc6e
Add the notion of pixel size in h264 related functions.
...
In high bit depth the pixels will not be stored in uint8_t like in the
normal case, but in uint16_t. The pixel size is thus 1 in normal bit
depth and 2 in high bit depth.
Preparatory patch for high bit depth h264 decoding support.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Oskar Arvidsson
86b0d9cd58
Make the h264 loop filter bit depth aware.
...
Preparatory patch for high bit depth h264 decoding support.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Oskar Arvidsson
63cc0e776e
Template dsputil_internal.h with respect to pixel size, etc.
...
Preparatory patch for high bit depth h264 decoding support.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Oskar Arvidsson
9abd87bbc6
Template h264idct_internal.h with respect to pixel size, etc.
...
Preparatory patch for high bit depth h264 decoding support.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Oskar Arvidsson
2b092f7a14
Template h264pred_internal.h with respect to bit depth, etc.
...
Preparatory patch for high bit depth h264 decoding support.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Oskar Arvidsson
21a7c9366f
Template h264dsp_internal.h with respect to pixel size, etc.
...
Preparatory patch for high bit depth h264 decoding support.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Oskar Arvidsson
8dffcca579
Move some functions in dsputil.c into a new file dsputil_internal.h.
...
The functions moved are used when decoding h264.
Preparatory patch for high bit depth h264 decoding support.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Oskar Arvidsson
7bc8032b07
Move the functions in h264idct into a new file h264idct_internal.h.
...
Preparatory patch for high bit depth h264 decoding support.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Oskar Arvidsson
c2f38da901
Move the functions in h264pred.c into a new file h264pred_internal.h.
...
Preparatory patch for high bit depth h264 decoding support.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Oskar Arvidsson
2431689bb3
Move the functions in h264dsp.c into a new file h264dsp_internal.h
...
Preparatory patch for high bit depth h264 decoding support.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Oskar Arvidsson
d4497f6dfb
Add pixel formats for 9- and 10-bit yuv420p.
...
Also add support for these formats in libswscale.
Needed for high bit depth h264 decoding.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Oskar Arvidsson
af0b2d6736
Choose h264 chroma dc dequant function dynamically.
...
Needed for high bit depth h264 decoding.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago