OSDN Git Service
Mans Rullgard [Sun, 3 Jul 2011 01:34:27 +0000 (02:34 +0100)]
mjpeg: remove pointless braces around block of code
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Sat, 2 Jul 2011 21:10:25 +0000 (22:10 +0100)]
aes: fix invalid array indexing in init code
This makes the code work with clang/x86_32 and removes several warnings.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Sun, 3 Jul 2011 01:37:31 +0000 (02:37 +0100)]
h264: remove assert() immediately following return statement
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Sat, 2 Jul 2011 23:46:23 +0000 (00:46 +0100)]
aes: use direct assignments instead of memcpy() or loops
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Sat, 2 Jul 2011 17:24:13 +0000 (18:24 +0100)]
ARM: ac3: update ff_ac3_extract_exponents_neon per
8b7b2d6
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Sat, 2 Jul 2011 16:21:02 +0000 (17:21 +0100)]
ARM: NEON optimised vector_clip_int32()
Signed-off-by: Mans Rullgard <mans@mansr.com>
Ronald S. Bultje [Sun, 26 Jun 2011 22:52:01 +0000 (15:52 -0700)]
swscale: disable full_chroma_int when converting to non-24/32bpp RGB.
This functionality is only implemented for RGB24/32 and causes crashes
otherwise.
Stefano Sabatini [Sat, 2 Jul 2011 11:22:35 +0000 (13:22 +0200)]
suggest to use av_get_bytes_per_sample() in av_get_bits_per_sample_format() doxy
The previously suggested replacement - av_get_bits_per_sample_fmt() -
was also deprecated.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Stefano Sabatini [Sat, 2 Jul 2011 11:22:18 +0000 (13:22 +0200)]
ffmpeg: use av_get_bytes_per_sample() in place of av_get_bits_per_sample_fmt()
av_get_bits_per_sample_fmt() was deprecated.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Mans Rullgard [Sat, 2 Jul 2011 10:50:24 +0000 (11:50 +0100)]
put_bits: remove ALT_BITSTREAM_WRITER
The code for this variant does not compile.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Fri, 1 Jul 2011 15:35:37 +0000 (16:35 +0100)]
put_bits: always use intreadwrite.h macros
This fixes invalid unaligned stores in some ARM configurations.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Reinhard Tartler [Fri, 1 Jul 2011 18:50:33 +0000 (20:50 +0200)]
libavformat: Add an example how to use the metadata API
Also include it into the doxygen documentation
Reinhard Tartler [Fri, 1 Jul 2011 13:32:21 +0000 (15:32 +0200)]
doxygen: Prefer member groups over grouping into modules
Before this, almost all module groups have been used for grouping functions
and fields in structures semantically. This causes them to not appear
properly in the file documentation and needlessly clutters up the "Modules"
index.
Additionally, this commit streamlines some spelling and appearances.
Reinhard Tartler [Fri, 1 Jul 2011 18:53:09 +0000 (20:53 +0200)]
doxygen: be more permissive when searching for API examples
Reinhard Tartler [Fri, 1 Jul 2011 18:49:14 +0000 (20:49 +0200)]
avformat: doxify the Metadata API
convert the comment that documents the metadata API to use
the doxygen markup
Anton Khirnov [Fri, 24 Jun 2011 05:58:16 +0000 (07:58 +0200)]
lavf: restore old behavior for custom AVIOContex with an AVFMT_NOFILE format.
av_open_input_stream used to allow this, even though it makes no sense.
Make it just print a warning instead of failing, thus restoring
compatibility.
Note that avformat_open_input() will still reject this combination.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Anton Khirnov [Fri, 1 Jul 2011 19:24:17 +0000 (21:24 +0200)]
lavf: use the correct pointer in av_open_input_stream().
Alex Converse [Thu, 2 Jun 2011 00:33:38 +0000 (17:33 -0700)]
avidec: infer absolute vs relative index from first packet
Mans Rullgard [Fri, 1 Jul 2011 11:47:36 +0000 (12:47 +0100)]
get_bits: remove x86 inline asm in A32 bitstream reader
x86 does not use this variant so having inline asm there
is pointless.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Reinhard Tartler [Fri, 1 Jul 2011 13:49:53 +0000 (15:49 +0200)]
doc: Remove outdated information about our issue tracker
We have now switched to http://bugzilla.libav.org.
Alex Converse [Wed, 29 Jun 2011 20:30:09 +0000 (13:30 -0700)]
avidec: Factor out the sync fucntionality.
Alex Converse [Tue, 28 Jun 2011 06:12:55 +0000 (23:12 -0700)]
fate-aac: Expand coverage.
Add al05_44, al06_44, al17_44.
Justin Ruggles [Thu, 30 Jun 2011 21:48:44 +0000 (17:48 -0400)]
ac3dsp: add x86-optimized versions of ac3dsp.extract_exponents().
Justin Ruggles [Thu, 16 Jun 2011 20:55:33 +0000 (16:55 -0400)]
ac3dsp: simplify extract_exponents() now that it does not need to do clipping.
Justin Ruggles [Mon, 27 Jun 2011 18:29:33 +0000 (14:29 -0400)]
ac3enc: clip coefficients after MDCT.
This ensures that any processing between the MDCT and exponent extraction will
be using clipped coefficients.
Justin Ruggles [Thu, 2 Jun 2011 18:00:50 +0000 (14:00 -0400)]
ac3enc: add int32_t array clipping function to DSPUtil, including x86 versions.
Ronald S. Bultje [Fri, 1 Jul 2011 00:35:13 +0000 (17:35 -0700)]
swscale: for >8bit scaling, read in native bit-depth.
For 9/10bit, it means we don't have to upscale to 16bit before
actual scaling or pixel format conversion, and thus a performance
gain.
John Stebbins [Fri, 1 Jul 2011 15:57:42 +0000 (08:57 -0700)]
matroskadec: matroska_read_seek after after EBML_STOP leads to failure.
EBML_STOP leaves matroska->current_id set. Then matroska_read_seek changes
the stream position without resetting current_id. The next
matroska_parse_cluster fails due to calculation of incorrect pos. So clear
current_id when avio_seek happens in matroska_read_seek.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Reinhard Tartler [Thu, 30 Jun 2011 21:00:46 +0000 (23:00 +0200)]
doxygen: fix usage of @file directive in libavutil/{dict,file}.h
Reinhard Tartler [Thu, 30 Jun 2011 19:57:43 +0000 (21:57 +0200)]
doxygen: Help doxygen parser to understand the DECLARE_ALIGNED and offsetof macros
Without this, members that have been declare with the DECLARE_ALIGNED
macro don't show up at all in the generated documentation.
Diego Biurrun [Thu, 30 Jun 2011 18:53:59 +0000 (20:53 +0200)]
cosmetics: fix some then/than typos
Reinhard Tartler [Thu, 30 Jun 2011 19:06:25 +0000 (21:06 +0200)]
doxygen: Include libavcodec and libavformat examples into the documentation
Reinhard Tartler [Thu, 30 Jun 2011 18:44:46 +0000 (20:44 +0200)]
avutil: elaborate documentation for av_get_random_seed
Benjamin Larsson [Tue, 28 Jun 2011 06:39:12 +0000 (23:39 -0700)]
Add support for aac streams in mp4/mov without extradata.
Mans Rullgard [Thu, 30 Jun 2011 11:29:25 +0000 (12:29 +0100)]
aes: whitespace cosmetics
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Thu, 30 Jun 2011 09:15:10 +0000 (10:15 +0100)]
adler32: whitespace cosmetics
Signed-off-by: Mans Rullgard <mans@mansr.com>
Ronald S. Bultje [Thu, 30 Jun 2011 14:05:52 +0000 (07:05 -0700)]
swscale: fix another yuv range conversion overflow in 16bit scaling.
Mans Rullgard [Thu, 30 Jun 2011 13:03:54 +0000 (14:03 +0100)]
Fix cpu flags test program
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diego Biurrun [Sun, 26 Jun 2011 11:50:37 +0000 (13:50 +0200)]
opt-test: Add missing braces to silence compiler warnings.
libavutil/opt.c:604:1: warning: missing braces around initializer [-Wmissing-braces]
Diego Biurrun [Sat, 25 Jun 2011 16:12:36 +0000 (18:12 +0200)]
build: Eliminate obsolete test targets.
The targets are now part of FATE and can be run as individual FATE targets.
Martin Storsjö [Fri, 17 Jun 2011 07:08:23 +0000 (10:08 +0300)]
udp: Fix a compilation warning
This fixes this compilation warning, by making endptr a non-const
pointer, as required by strtol:
In function ‘udp_open’:
warning: passing argument 2 of ‘strtol’ from incompatible pointer type
Signed-off-by: Martin Storsjö <martin@martin.st>
Mohamed Naufal [Thu, 30 Jun 2011 08:57:32 +0000 (11:57 +0300)]
swscale: Unbreak build with --enable-small
This fixes building with --enable-small, by using the correct
variable name.
Signed-off-by: Martin Storsjö <martin@martin.st>
Mans Rullgard [Wed, 29 Jun 2011 22:34:09 +0000 (23:34 +0100)]
base64: add fate test
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Wed, 29 Jun 2011 22:27:07 +0000 (23:27 +0100)]
aes: improve test program and add fate test
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Wed, 29 Jun 2011 18:33:10 +0000 (19:33 +0100)]
adler32: make test program more useful and add fate test
Signed-off-by: Mans Rullgard <mans@mansr.com>
Ronald S. Bultje [Thu, 30 Jun 2011 04:04:45 +0000 (21:04 -0700)]
swscale: fix yuv range correction when using 16-bit scaling.
Alex Converse [Wed, 29 Jun 2011 21:33:33 +0000 (14:33 -0700)]
aacenc: Make chan_map const correct
Diego Biurrun [Sun, 26 Jun 2011 22:29:32 +0000 (00:29 +0200)]
rational-test: Add proper main() declaration to fix gcc warnings.
Diego Biurrun [Wed, 8 Jun 2011 17:43:45 +0000 (19:43 +0200)]
configure: Add vdpau and dxva2 to configure results output.
Mans Rullgard [Wed, 29 Jun 2011 22:38:05 +0000 (23:38 +0100)]
Remove unused, never built libavutil/pca.[ch]
Signed-off-by: Mans Rullgard <mans@mansr.com>
Ami Fischman [Wed, 29 Jun 2011 20:54:49 +0000 (13:54 -0700)]
matroskadec: forward parsing errors to caller.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Ami Fischman [Wed, 29 Jun 2011 20:50:21 +0000 (13:50 -0700)]
av_find_stream_info: simplify EAGAIN handling.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Nathan Caldwell [Wed, 29 Jun 2011 03:11:39 +0000 (21:11 -0600)]
aacenc: Fix determination of Mid/Side Mode.
In adjust_frame_information(), msc is incremented for each sfb in each
sub-window then compared against max_sfb which is for a single sub-window.
This resulted in frames using EIGHT_SHORT_SEQUENCE where the first few
sub-windows increment msc to a value that results in ms_mode == 2. Even
though only some of the bands are actually using Mid/Side.
Nathan Caldwell [Thu, 19 May 2011 05:23:22 +0000 (23:23 -0600)]
psymodel: Remove the single channel analysis function
Nathan Caldwell [Thu, 19 May 2011 05:14:59 +0000 (23:14 -0600)]
aacenc: Implement dummy channel group analysis that just calls the single channel analysis for each channel.
Nathan Caldwell [Wed, 15 Jun 2011 08:50:25 +0000 (02:50 -0600)]
psymodel: Add channels and channel groups to the psymodel.
Mans Rullgard [Wed, 29 Jun 2011 19:59:24 +0000 (20:59 +0100)]
ARM: remove check for PLD instruction
PLD is present in ARMv5TE and later, which is checked for separately.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Wed, 29 Jun 2011 18:01:25 +0000 (19:01 +0100)]
fate: move amr[nw]b test rules into separate files
Signed-off-by: Mans Rullgard <mans@mansr.com>
Ronald S. Bultje [Wed, 29 Jun 2011 05:24:21 +0000 (22:24 -0700)]
ogg: fix double free when finding length of small chained oggs.
ogg_save() copies streams[], but doesn't keep track of free()'ed
struct members. Thus, if in between a call to ogg_save() and
ogg_restore(), streams[].private was free()'ed, this would result
in a double free -> crash, which happened when e.g. playing small
chained ogg fragments.
Ronald S. Bultje [Wed, 29 Jun 2011 16:39:43 +0000 (09:39 -0700)]
swscale: implement >8bit scaling support.
This means that precision is retained when scaling between sample
formats with >8 bits per component (48bit RGB, 16bit grayscale,
9/10/16bit YUV).
Mans Rullgard [Wed, 29 Jun 2011 10:46:08 +0000 (11:46 +0100)]
build: fix creation of tools dir with make 3.81
GNU make 3.81 apparently does not support order-only prerequisites
with pattern rules, and thus fails to create the tools directory
if it is missing. Naming the objects explicitly in the rule makes
it work properly.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diego Biurrun [Tue, 7 Jun 2011 11:16:48 +0000 (13:16 +0200)]
build: Mark all-yes Makefile target as phony.
Can Wu [Wed, 29 Jun 2011 01:37:57 +0000 (09:37 +0800)]
pixfmt: fix YUV422/444 wrong endian comment
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Mans Rullgard [Tue, 28 Jun 2011 17:45:13 +0000 (18:45 +0100)]
build: create output directories as needed
Signed-off-by: Mans Rullgard <mans@mansr.com>
Jason Garrett-Glaser [Wed, 29 Jun 2011 01:22:23 +0000 (18:22 -0700)]
Add new yuv444 pixfmts to avcodec_align_dimensions2
Fixes draw_edges crashes with high-bit-depth 4:4:4 decoding.
Ronald S. Bultje [Tue, 28 Jun 2011 19:32:40 +0000 (21:32 +0200)]
swscale: Add Doxygen for hyscale_fast/hScale.
Mans Rullgard [Tue, 28 Jun 2011 21:37:42 +0000 (22:37 +0100)]
fate: enable lavfi-pixmt tests on big endian systems
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Tue, 28 Jun 2011 22:19:36 +0000 (23:19 +0100)]
PPC: swscale: disable altivec functions for unsupported formats
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Tue, 28 Jun 2011 20:24:35 +0000 (21:24 +0100)]
fate: merge identical pixdesc_be/le tests
Signed-off-by: Mans Rullgard <mans@mansr.com>
Ronald S. Bultje [Tue, 28 Jun 2011 17:42:17 +0000 (19:42 +0200)]
swscale: Add Doxygen for yuv2planar*/yuv2packed* functions.
Mans Rullgard [Tue, 28 Jun 2011 16:12:36 +0000 (17:12 +0100)]
build: call texi2pod.pl with full path instead of symlink
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Tue, 28 Jun 2011 16:08:00 +0000 (17:08 +0100)]
build: include sub-makefiles using full path instead of symlinks
Signed-off-by: Mans Rullgard <mans@mansr.com>
Ronald S. Bultje [Tue, 28 Jun 2011 03:49:12 +0000 (20:49 -0700)]
swscale: update big endian reference values after
dff5a835.
Kostya Shishkov [Tue, 28 Jun 2011 09:49:32 +0000 (11:49 +0200)]
wavpack: skip blocks with no samples
These blocks don't report audio stream parameters and they are not needed
for decoding.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Justin Ruggles [Thu, 23 Jun 2011 18:26:34 +0000 (14:26 -0400)]
cosmetics: remove outdated comment that is no longer true
Mans Rullgard [Tue, 28 Jun 2011 13:45:57 +0000 (14:45 +0100)]
build: replace some addprefix/addsuffix with substitution refs
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diego Biurrun [Sun, 26 Jun 2011 22:42:55 +0000 (00:42 +0200)]
avutil: Remove unused arbitrary precision integer code.
Diego Biurrun [Wed, 22 Jun 2011 21:30:15 +0000 (23:30 +0200)]
configure: Drop check for availability of ten assembler operands.
This was done to support gcc 2.95, which is an old legacy compiler
that fails to compile the current codebase anyway.
Nathan Caldwell [Mon, 20 Jun 2011 04:29:37 +0000 (22:29 -0600)]
aacenc: Save channel configuration for later use.
Alex Converse [Wed, 22 Jun 2011 06:12:42 +0000 (23:12 -0700)]
aacenc: Fix codebook trellising for zeroed bands.
Choose band type (codebook) zero, count its bits, and mark the other
states as unnavigable.
Ronald S. Bultje [Thu, 16 Jun 2011 16:04:26 +0000 (12:04 -0400)]
swscale: change prototypes of scaled YUV output functions.
Remove unused variables "flags" and "dstFormat" in yuv2packed1,
merge source rows per plane for yuv2packed[12], and make every
source argument int16_t (some where invalidly set to uint16_t).
This prevents stack pollution and is part of the Great Evil Plan
to simplify swscale.
Ronald S. Bultje [Fri, 24 Jun 2011 14:43:19 +0000 (07:43 -0700)]
swscale: re-add support for non-native endianness.
This works through some non-obvious hacks in utils.c.
Ronald S. Bultje [Thu, 16 Jun 2011 16:04:25 +0000 (12:04 -0400)]
swscale: disentangle yuv2rgbX_c_full() into small functions.
This is part of the Great Evil Plan to simplify swscale.
Ronald Bultje [Tue, 28 Jun 2011 01:10:03 +0000 (18:10 -0700)]
swscale: split yuv2packed[12X]_c() remainders into small functions.
This is part of the Great Evil Plan to simplify swscale.
Ronald S. Bultje [Thu, 16 Jun 2011 16:04:24 +0000 (12:04 -0400)]
swscale: split yuv2packedX_altivec in smaller functions.
This will likely lead to a considerable performance boost,
since it removes a branch from the inner loop. Part of the
Great Evil Plan to simplify swscale.
Ronald S. Bultje [Sun, 26 Jun 2011 22:52:00 +0000 (15:52 -0700)]
swscale: don't use planar output functions to write to NV12/21.
This prevents a crash when converting to NV12/21 without the bitexact
flags enabled.
Justin Ruggles [Mon, 27 Jun 2011 03:58:19 +0000 (23:58 -0400)]
ac3enc: move ff_ac3_encode_frame() to ac3enc_template.c
This avoids using function pointers for quite a few small functions, most of
which just call DSP functions.
Justin Ruggles [Mon, 27 Jun 2011 11:46:27 +0000 (07:46 -0400)]
ac3enc: merge log2_tab() into normalize_samples()
Justin Ruggles [Tue, 21 Jun 2011 16:59:11 +0000 (12:59 -0400)]
ac3enc: Remove bit allocation fallbacks.
They introduce too much complexity for very little benefit. The result is that
encoding will be more likely to fail at extremely low bitrates where quality
would be awful anyway.
Mans Rullgard [Sat, 25 Jun 2011 10:51:09 +0000 (11:51 +0100)]
build: improve rules for test programs
This generates dependencies for the *-test.o files ensuring
rebuilds when necessary.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Sat, 25 Jun 2011 10:57:32 +0000 (11:57 +0100)]
build: factor out the .c and .S compile commands as a macro
These commands have the same form, and using a common macro allows
it to be used elsewhere without further duplication.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Ronald S. Bultje [Sun, 26 Jun 2011 21:41:44 +0000 (14:41 -0700)]
swscale: remove unused xInc/srcW arguments from hScale().
Jason Garrett-Glaser [Sun, 26 Jun 2011 07:21:54 +0000 (00:21 -0700)]
H.264: disable 2tap qpel with CODEC_FLAG2_FAST and >8-bit
2tap qpel isn't implemented yet for high bit depth, so it just breaks decoding.
Jason Garrett-Glaser [Sun, 26 Jun 2011 02:40:05 +0000 (19:40 -0700)]
H.264: make filter_mb_fast support 4:4:4
Diego Biurrun [Sun, 26 Jun 2011 14:37:07 +0000 (16:37 +0200)]
mpeg4videoenc: Remove disabled variant of mpeg4_encode_block().
As a nice sideeffect this fixes the following warning:
libavcodec/mpeg4videoenc.c:302:20: warning: variable ‘rl’ set but not used [-Wunused-but-set-variable]
Alexis Ballier [Wed, 22 Jun 2011 20:25:14 +0000 (22:25 +0200)]
configure: allow post-fixed cpu strings for athlon64, k8, and opteron
when setting the -march flag.
This is to match gcc's {athlon64,k8,opteron}-sse3 -march flags.
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
Diego Biurrun [Tue, 14 Jun 2011 22:30:03 +0000 (00:30 +0200)]
Move some variable declarations below the proper #ifdefs.
This avoids warnings about set-but-unused variables.
Mans Rullgard [Sat, 25 Jun 2011 17:51:00 +0000 (18:51 +0100)]
ARM: silence some annoying armcc warnings
This silences warnings about pointer target sign mismatches as
already done for gcc with -Wno-pointer-sign.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diego Biurrun [Sat, 25 Jun 2011 12:09:40 +0000 (14:09 +0200)]
ffplay: Remove unused-but-set channels variable from update_sample_display().
Diego Biurrun [Sat, 25 Jun 2011 00:01:12 +0000 (02:01 +0200)]
build: Add DEP_LIBS dependency directly to the shared library build rule.
The dependency was added conditional to a variable that is always defined,
so it is safe to add it directly.