9 years agoZero palette in case not all entries are initialized later
Kostya Shishkov [Fri, 22 Jan 2010 18:28:41 +0000 (18:28 +0000)]
Zero palette in case not all entries are initialized later

Originally committed as revision 21384 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoMake style a little bit more K&R'ish.
Ronald S. Bultje [Fri, 22 Jan 2010 16:12:55 +0000 (16:12 +0000)]
Make style a little bit more K&R'ish.

Originally committed as revision 21383 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoRename a function which is no longer ipv6-specific. Patch by Martin Storsjö
Martin Storsjö [Fri, 22 Jan 2010 16:10:08 +0000 (16:10 +0000)]
Rename a function which is no longer ipv6-specific. Patch by Martin Storsjö
<$firstname () $firstname st>.

Originally committed as revision 21382 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoUse the control URI from the SDP (if present) rather than the input filename,
Alan Steremberg [Fri, 22 Jan 2010 16:04:15 +0000 (16:04 +0000)]
Use the control URI from the SDP (if present) rather than the input filename,
if present. This fixes playback of a number of MS-RTSP streams, mostly these
for which playback contains a session key in the URI. Fixes issue 1697.
Patch by Alan Steremberg <$firstname dot $lastname () gmail com>.

Originally committed as revision 21381 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoMove array specifiers outside DECLARE_ALIGNED() invocations
Måns Rullgård [Fri, 22 Jan 2010 03:26:30 +0000 (03:26 +0000)]
Move array specifiers outside DECLARE_ALIGNED() invocations

Originally committed as revision 30385 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

9 years agoSuppress TMS470 warnings about alignment directives
Måns Rullgård [Fri, 22 Jan 2010 03:25:27 +0000 (03:25 +0000)]
Suppress TMS470 warnings about alignment directives

Originally committed as revision 21380 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoDECLARE_ALIGNED macro for TMS470 compiler
Måns Rullgård [Fri, 22 Jan 2010 03:25:25 +0000 (03:25 +0000)]
DECLARE_ALIGNED macro for TMS470 compiler

This compiler supports gcc-style alignment attributes for struct,
but not for global variables.  For the latter, alignment can be
specified with a pragma, which does not work for struct members or
local variables.  By using both pragma and attribute, one or the
other will always take effect.

Unfortunately, no means exists for aligning stack variables.

Originally committed as revision 21379 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoAdd an AV_PRAGMA() macro for constructing _Pragma() directives
Måns Rullgård [Fri, 22 Jan 2010 03:25:21 +0000 (03:25 +0000)]
Add an AV_PRAGMA() macro for constructing _Pragma() directives

The seemingly equivalent _Pragma(AV_STRINGIFY(x)) is not accepted
by some compilers.

Originally committed as revision 21378 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoMove array specifiers outside DECLARE_ALIGNED() invocations
Måns Rullgård [Fri, 22 Jan 2010 03:25:11 +0000 (03:25 +0000)]
Move array specifiers outside DECLARE_ALIGNED() invocations

Originally committed as revision 21377 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoconfigure: fix --cpu=host
Måns Rullgård [Fri, 22 Jan 2010 03:14:19 +0000 (03:14 +0000)]
configure: fix --cpu=host

The awk command used inadvertently relied on non-standard features.

Originally committed as revision 21376 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoGcc idiocy fixes related to filter_mb_edge*.
Michael Niedermayer [Fri, 22 Jan 2010 01:59:17 +0000 (01:59 +0000)]
Gcc idiocy fixes related to filter_mb_edge*.
Change order of operands as gcc uses a hardcoded register per operand it seems
even for static functions
thus reducing unneeded moved (now functions try to pass the same argument in
the same spot).
Change signed int to unsigned int for array indexes as signed requires signed
extension while unsigned is free.
move the +52 up and merge it where it will end as a lea instruction, gcc always
splits the 52 out there turning the free +52 into an expensive one otherwise.
The changed code becomes a little faster.

Originally committed as revision 21375 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoUpdate regression tests after r21372
David Conrad [Thu, 21 Jan 2010 23:35:26 +0000 (23:35 +0000)]
Update regression tests after r21372

Originally committed as revision 21374 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoMove dquant check into qscale overflow check.
Michael Niedermayer [Thu, 21 Jan 2010 21:01:26 +0000 (21:01 +0000)]
Move dquant check into qscale overflow check.
This should be faster (couldnt meassue a difference), and its less picky
on slightly out of spec dquant.

Originally committed as revision 21373 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agomkvenc: Write TrackTimecodeScale
Rafaël Carré [Thu, 21 Jan 2010 20:49:27 +0000 (20:49 +0000)]
mkvenc: Write TrackTimecodeScale
patch by Rafael (dot) Carre (a) gmail (d) com

Originally committed as revision 21372 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoRemove reply and content_ptr arguments from rtsp_send_cmd_async(), since
Ronald S. Bultje [Thu, 21 Jan 2010 20:04:17 +0000 (20:04 +0000)]
Remove reply and content_ptr arguments from rtsp_send_cmd_async(), since
they are unused.

Originally committed as revision 21371 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoChange on rtsp_send_cmd() to the _async() version since we don't use the
Ronald S. Bultje [Thu, 21 Jan 2010 20:01:11 +0000 (20:01 +0000)]
Change on rtsp_send_cmd() to the _async() version since we don't use the
response anyway.

Originally committed as revision 21370 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoReindent after r21368.
Ronald S. Bultje [Thu, 21 Jan 2010 19:50:40 +0000 (19:50 +0000)]
Reindent after r21368.

Originally committed as revision 21369 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoPretty embarassing bug; we shouldn't use av_strlcatf() on an uninitialized
Ronald S. Bultje [Thu, 21 Jan 2010 19:48:30 +0000 (19:48 +0000)]
Pretty embarassing bug; we shouldn't use av_strlcatf() on an uninitialized
buffer, that is doomed to not work at some point.

Originally committed as revision 21368 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoMake output-example.c handle AAC audio.
Martin Storsjö [Thu, 21 Jan 2010 17:10:13 +0000 (17:10 +0000)]
Make output-example.c handle AAC audio.
Patch by Martin Storsjö martin martin st

Originally committed as revision 21367 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoMake calculation of mask_edge free of branches, faster of course but probably
Michael Niedermayer [Thu, 21 Jan 2010 16:50:31 +0000 (16:50 +0000)]
Make calculation of mask_edge free of branches, faster of course but probably
little effect overall as this is not that often executed.

Originally committed as revision 21366 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoRemove IPv4-only codepath. Patch by Martin Storsjö <$first $first st>.
Martin Storsjö [Thu, 21 Jan 2010 15:42:05 +0000 (15:42 +0000)]
Remove IPv4-only codepath. Patch by Martin Storsjö <$first $first st>.

Originally committed as revision 21365 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoClarify CODEC_CAP_SUBFRAMES.
Michael Niedermayer [Thu, 21 Jan 2010 13:49:47 +0000 (13:49 +0000)]

Originally committed as revision 21364 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoMake DECLARE_ALIGNED macros work with external array specifiers
Måns Rullgård [Thu, 21 Jan 2010 12:59:22 +0000 (12:59 +0000)]
Make DECLARE_ALIGNED macros work with external array specifiers

The macro implementation might need the name of the variable being
declared for compiler-specific syntax.  Moving array specifiers outside
the macro invocation allows this to work.

Originally committed as revision 21363 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoSet CODEC_CAP_SUBFRAMES for adpcm decoders
Måns Rullgård [Thu, 21 Jan 2010 12:57:24 +0000 (12:57 +0000)]
Set CODEC_CAP_SUBFRAMES for adpcm decoders

This makes ffmpeg stop printing millions of
  Multiple frames in a packet from stream 0
when decoding adpcm.

Originally committed as revision 21362 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoMore const-correctness for sws_scale
David Conrad [Thu, 21 Jan 2010 09:52:11 +0000 (09:52 +0000)]
More const-correctness for sws_scale

Originally committed as revision 30381 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

9 years agoSet start_time and duration in AVStream instead of AVFormatContext for
David Conrad [Thu, 21 Jan 2010 09:47:02 +0000 (09:47 +0000)]
Set start_time and duration in AVStream instead of AVFormatContext for
formats with only one stream; the AVFormatContext values will be derived from
the AVStream and this helps in calculating stream bitrate.

Originally committed as revision 21361 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoUse two separate memory arguments since 8+() is invalid gas syntax
David Conrad [Thu, 21 Jan 2010 09:46:57 +0000 (09:46 +0000)]
Use two separate memory arguments since 8+() is invalid gas syntax

Originally committed as revision 21360 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoIndent
Måns Rullgård [Wed, 20 Jan 2010 22:55:55 +0000 (22:55 +0000)]

Originally committed as revision 21359 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoAlways call avcodec_thread_init()
Måns Rullgård [Wed, 20 Jan 2010 22:55:50 +0000 (22:55 +0000)]
Always call avcodec_thread_init()

The various avcodec_thread_init() functions are updated to return
immediately after setting avctx->thread_count.  This allows -threads 0
to pass through to codecs.  It also simplifies the usage for apps
using libavcodec.

Originally committed as revision 21358 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoTranslate -mfpu=vfpv3 for TMS470
Måns Rullgård [Wed, 20 Jan 2010 20:58:04 +0000 (20:58 +0000)]
Translate -mfpu=vfpv3 for TMS470

Originally committed as revision 21357 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoIgnore annoying armcc warnings
Måns Rullgård [Wed, 20 Jan 2010 20:06:11 +0000 (20:06 +0000)]
Ignore annoying armcc warnings

Originally committed as revision 21356 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoAttempt to fix asm compilation failure.
Michael Niedermayer [Wed, 20 Jan 2010 19:23:19 +0000 (19:23 +0000)]
Attempt to fix asm compilation failure.
Only tested on gcc 4 & x86_64.

Originally committed as revision 21355 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoAdded myself as dxva2 maintainer.
Laurent Aimar [Wed, 20 Jan 2010 18:55:38 +0000 (18:55 +0000)]
Added myself as dxva2 maintainer.

Originally committed as revision 21354 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoH264 DXVA2 implementation
Laurent Aimar [Wed, 20 Jan 2010 18:54:51 +0000 (18:54 +0000)]
H264 DXVA2 implementation

 It allows VLD H264 decoding using DXVA2 (GPU assisted decoding API under
VISTA and Windows 7).
 It is implemented by using AVHWAccel API. It has been tested successfully
for some time in VLC using an nvidia card on Windows 7.

 To compile it, you need to have the system header dxva2api.h (either from
microsoft or using http://downloads.videolan.org/pub/videolan/testing/contrib/dxva2api.h)
 The generated libavcodec.dll does not depend directly on any new lib as
the necessary objects are given by the application using FFmpeg.

Originally committed as revision 21353 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoUse the configure check from r21351 and use it to properly define struct
Martin Storsjö [Wed, 20 Jan 2010 17:26:14 +0000 (17:26 +0000)]
Use the configure check from r21351 and use it to properly define struct
sockaddr (in case it's not missing) so it always works on the system that
we are defining it for, in a RFC-2553/3493-compliant way (i.e. containing
a ss_family field). which is used in udp.c. Patch by Martin Storsjö
<$firstname $firstname st>.

Originally committed as revision 21352 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoAdd a check for struct sockaddr->sa_len, which is an indication of whether
Ronald S. Bultje [Wed, 20 Jan 2010 17:24:23 +0000 (17:24 +0000)]
Add a check for struct sockaddr->sa_len, which is an indication of whether
the system wants a length entry in all socket structures or not. Patch by
Martin Storsjö <$firstname $firstname st>.

Originally committed as revision 21351 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoUse $(CC_O) in %-test.o rules
Måns Rullgård [Wed, 20 Jan 2010 14:14:42 +0000 (14:14 +0000)]
Use $(CC_O) in %-test.o rules

Originally committed as revision 21350 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoconfigure: display --list-* output in three columns
Måns Rullgård [Wed, 20 Jan 2010 14:02:58 +0000 (14:02 +0000)]
configure: display --list-* output in three columns

Originally committed as revision 21349 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoconfigure: use nm -P on Solaris
Måns Rullgård [Wed, 20 Jan 2010 13:22:36 +0000 (13:22 +0000)]
configure: use nm -P on Solaris

Originally committed as revision 21348 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoAdd -timelimit option
Måns Rullgård [Wed, 20 Jan 2010 06:42:39 +0000 (06:42 +0000)]
Add -timelimit option

This option limits the CPU time used by ffmpeg to the number of seconds
specified.  After this time, the OS sends a SIGXCPU signal, which we
handle and attempt to exit cleanly.  If the process is stuck, the OS
will deliver a SIGKILL one second later, forcibly terminating the

This functionality is useful in automated setups where a runaway ffmpeg
process would otherwise go undetected.

Originally committed as revision 21347 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoMove COPY3_IF_LT to lavc/mathops.h
Måns Rullgård [Wed, 20 Jan 2010 06:01:54 +0000 (06:01 +0000)]
Move COPY3_IF_LT to lavc/mathops.h

This obscure macro is only used in motion_est.c so having it in lavc
makes more sense.  See discussion here:

Originally committed as revision 21346 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoH.264: Declare bS with DECLARE_ALIGNED_8 for uint64_t casts.
Alexander Strange [Wed, 20 Jan 2010 03:28:57 +0000 (03:28 +0000)]
H.264: Declare bS with DECLARE_ALIGNED_8 for uint64_t casts.

Originally committed as revision 21345 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoDocument some more of SwsContext.
Ramiro Polla [Wed, 20 Jan 2010 03:26:12 +0000 (03:26 +0000)]
Document some more of SwsContext.

Originally committed as revision 30380 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

9 years agoSimplify/Optimize another of the mbaff loop filter cases.
Michael Niedermayer [Wed, 20 Jan 2010 03:00:08 +0000 (03:00 +0000)]
Simplify/Optimize another of the mbaff loop filter cases.
Its faster but too rarely used to make a differnce.

Originally committed as revision 21344 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoUpdate documentation for make test.
Ramiro Polla [Wed, 20 Jan 2010 02:26:32 +0000 (02:26 +0000)]
Update documentation for make test.

Originally committed as revision 21343 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoOnly calculate the second chroma qp if it differs from the firstin the main
Michael Niedermayer [Wed, 20 Jan 2010 01:49:24 +0000 (01:49 +0000)]
Only calculate the second chroma qp if it differs from the firstin the main
loop filter. (a little faster for the common case where they are equal)

Originally committed as revision 21342 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoSet bS with 64bits at a time.
Michael Niedermayer [Wed, 20 Jan 2010 01:38:32 +0000 (01:38 +0000)]
Set bS with 64bits at a time.

Originally committed as revision 21341 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoMerge multiple IS_* macro uses where possible.
Michael Niedermayer [Wed, 20 Jan 2010 01:15:30 +0000 (01:15 +0000)]
Merge multiple IS_* macro uses where possible.

Originally committed as revision 21340 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoSimplify and optimize intra code in h264_loopfilter.c
Michael Niedermayer [Wed, 20 Jan 2010 00:44:03 +0000 (00:44 +0000)]
Simplify and optimize intra code in h264_loopfilter.c

Originally committed as revision 21339 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoFloating point discrete cosine transform
Vitor Sessak [Wed, 20 Jan 2010 00:39:47 +0000 (00:39 +0000)]
Floating point discrete cosine transform

Originally committed as revision 21338 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoUse constant offsets for memory operands since gcc is unable to
David Conrad [Wed, 20 Jan 2010 00:34:10 +0000 (00:34 +0000)]
Use constant offsets for memory operands since gcc is unable to
This fixes gcc failing to fit 6 memory locations into 7 registers on x86-32

Originally committed as revision 21337 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoAvoid more pointless tests, the input and output formats need to be
Stefano Sabatini [Wed, 20 Jan 2010 00:22:31 +0000 (00:22 +0000)]
Avoid more pointless tests, the input and output formats need to be
supported both as input and as output, as the conversion performed is:
yuva420p -> src -> dst -> yuva420p.

Originally committed as revision 30379 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

9 years agoSightly simplify initialization of int start.
Michael Niedermayer [Wed, 20 Jan 2010 00:17:16 +0000 (00:17 +0000)]
Sightly simplify initialization of int start.
No real speed change.

Originally committed as revision 21336 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoMove FASTDIV macro to intmath.h
Måns Rullgård [Tue, 19 Jan 2010 23:25:36 +0000 (23:25 +0000)]
Move FASTDIV macro to intmath.h

Originally committed as revision 21335 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoconfigure: do not use character classes with awk
Måns Rullgård [Tue, 19 Jan 2010 23:18:19 +0000 (23:18 +0000)]
configure: do not use character classes with awk

Some broken versions of awk (mawk, apparently used in debian)
do not handle character classes in regular expressions.

Originally committed as revision 21334 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoMark the h264 c loop filter as av_always_inline av_flatten to make sure its
Michael Niedermayer [Tue, 19 Jan 2010 22:54:13 +0000 (22:54 +0000)]
Mark the h264 c loop filter as av_always_inline av_flatten to make sure its
all inlined, its small and horizontal & vertical versions are build out of
them. no change as gcc already did this.

Originally committed as revision 21333 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoskip outer pixels if possible in h264_loop_filter_luma_c().
Michael Niedermayer [Tue, 19 Jan 2010 22:46:58 +0000 (22:46 +0000)]
skip outer pixels if possible in h264_loop_filter_luma_c().
overall 3.7% faster loop filtering (C version only)

Originally committed as revision 21332 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoSplit overly long line.
Stefano Sabatini [Tue, 19 Jan 2010 22:36:46 +0000 (22:36 +0000)]
Split overly long line.

Originally committed as revision 30378 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

9 years agoAdds -aq documentation to the ffmpeg docs.
John Van Sickle [Tue, 19 Jan 2010 22:13:51 +0000 (22:13 +0000)]
Adds -aq documentation to the ffmpeg docs.

Patch by John Van Sickle rot13(<wbua.inafvpxyr@tznvy.pbz>).

Originally committed as revision 21331 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoImprove section 3.2 of the faq by providing more useful examples and a
John Van Sickle [Tue, 19 Jan 2010 22:05:02 +0000 (22:05 +0000)]
Improve section 3.2 of the faq by providing more useful examples and a
simple batch script to rename images to a numerical sequence.

Patch by John Van Sickle printf("%s.%s@%s.com", john, vansickle, gmail).

Originally committed as revision 21330 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoMake selfTest() perform tests where both the input and output formats
Stefano Sabatini [Tue, 19 Jan 2010 21:52:00 +0000 (21:52 +0000)]
Make selfTest() perform tests where both the input and output formats
are supported, avoid pointless loops.

Originally committed as revision 30377 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

9 years agofetch flv duration from file if it is set to 0 in metadata
Baptiste Coudurier [Tue, 19 Jan 2010 19:41:24 +0000 (19:41 +0000)]
fetch flv duration from file if it is set to 0 in metadata

Originally committed as revision 21329 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoReenable ff_h264_filter_mb_fast() for all slices it supported before.
Michael Niedermayer [Tue, 19 Jan 2010 16:43:57 +0000 (16:43 +0000)]
Reenable ff_h264_filter_mb_fast() for all slices it supported before.

Originally committed as revision 21328 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoFix h264_loop_filter_strength_mmx2() so it works with b frames.
Michael Niedermayer [Tue, 19 Jan 2010 16:40:36 +0000 (16:40 +0000)]
Fix h264_loop_filter_strength_mmx2() so it works with b frames.

Originally committed as revision 21327 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoMake const prototypes for input sources of sws_scale_* stricter.
Alexis Ballier [Tue, 19 Jan 2010 16:30:20 +0000 (16:30 +0000)]
Make const prototypes for input sources of sws_scale_* stricter.
Patch by Alexis Ballier gmailify($firstname, $familyname)

Originally committed as revision 30374 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

9 years agoconfigure: inlcude sys/types.h when checking sys/socket.h
Måns Rullgård [Tue, 19 Jan 2010 15:59:04 +0000 (15:59 +0000)]
configure: inlcude sys/types.h when checking sys/socket.h

Silly BSD systems need this despite POSIX requiring nothing of the
kind.  Any system with sys/socket.h should also have sys/types.h,
so this is unlikely to break anything, and we already do this in
another place.

Originally committed as revision 21326 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoconfigure: drop -A flag to od
Måns Rullgård [Tue, 19 Jan 2010 15:52:43 +0000 (15:52 +0000)]
configure: drop -A flag to od

Originally committed as revision 21325 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoconfigure: be more liberal with nm output
Måns Rullgård [Tue, 19 Jan 2010 15:52:40 +0000 (15:52 +0000)]
configure: be more liberal with nm output

Originally committed as revision 21324 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoswscale-example: Add comment about the use of av_{malloc,free}.
Ramiro Polla [Tue, 19 Jan 2010 15:42:51 +0000 (15:42 +0000)]
swscale-example: Add comment about the use of av_{malloc,free}.

Originally committed as revision 30373 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

9 years agoRemove -2 -> -1 remapping, its not needed anymore as we must remap all
Michael Niedermayer [Tue, 19 Jan 2010 14:28:19 +0000 (14:28 +0000)]
Remove -2 -> -1 remapping, its not needed anymore as we must remap all
references per LUT anyway.

Originally committed as revision 21323 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoRemove useless forward declaration.
Ramiro Polla [Tue, 19 Jan 2010 11:35:04 +0000 (11:35 +0000)]
Remove useless forward declaration.

Originally committed as revision 30371 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

9 years agoUser friendly warning message that gives out names of source and target formats
Zuxy Meng [Tue, 19 Jan 2010 05:21:17 +0000 (05:21 +0000)]
User friendly warning message that gives out names of source and target formats

Originally committed as revision 30370 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

9 years agoUse avconfig.h in pixfmt.h
Måns Rullgård [Tue, 19 Jan 2010 04:40:18 +0000 (04:40 +0000)]
Use avconfig.h in pixfmt.h

Originally committed as revision 21322 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoCreate and install libavutil/avconfig.h
Måns Rullgård [Tue, 19 Jan 2010 04:40:16 +0000 (04:40 +0000)]
Create and install libavutil/avconfig.h

This file contains a safe subset of the config.h settings.
Only bigendian is included for now, more can be added as
need arises.

Originally committed as revision 21321 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoAdd rules to install generated headers
Måns Rullgård [Tue, 19 Jan 2010 04:40:13 +0000 (04:40 +0000)]
Add rules to install generated headers

Originally committed as revision 21320 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoconfigure: create dirs before generating config.*
Måns Rullgård [Tue, 19 Jan 2010 04:40:10 +0000 (04:40 +0000)]
configure: create dirs before generating config.*

Originally committed as revision 21319 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoconfigure: add cp_if_changed function and use for config.h
Måns Rullgård [Tue, 19 Jan 2010 04:40:08 +0000 (04:40 +0000)]
configure: add cp_if_changed function and use for config.h

Originally committed as revision 21318 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoUpdate libx264.c to use new libx264 features
Jason Garrett-Glaser [Tue, 19 Jan 2010 04:00:08 +0000 (04:00 +0000)]
Update libx264.c to use new libx264 features
With b_keyframe instead of IDR for detecting keyframes, ffmpeg should now
support periodic encoding with periodic intra refresh (although there is no
interface option for it yet).
Set the new timebase values for full VFR input support.
Bump configure to check for API version 83.

Originally committed as revision 21317 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoswscale-example: use av_malloc()
Måns Rullgård [Tue, 19 Jan 2010 03:47:11 +0000 (03:47 +0000)]
swscale-example: use av_malloc()

Image buffers require 16-byte alignment, so av_malloc() should be used.
Fixes crash on PPC.

Originally committed as revision 30369 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

9 years agoApply changes made in r21308 to svq3.c.
Jai Menon [Tue, 19 Jan 2010 03:16:48 +0000 (03:16 +0000)]
Apply changes made in r21308 to svq3.c.
Fixes compilation with gcc and -O0.

Originally committed as revision 21316 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoDont waste time initializing stuff for deblocking intra mbs, none of
Michael Niedermayer [Tue, 19 Jan 2010 03:14:45 +0000 (03:14 +0000)]
Dont waste time initializing stuff for deblocking intra mbs, none of
it is used.

Originally committed as revision 21315 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoRemove 2 checks from fetch_diagonal_mv() that apparently serve no purpose.
Michael Niedermayer [Tue, 19 Jan 2010 02:28:26 +0000 (02:28 +0000)]
Remove 2 checks from fetch_diagonal_mv() that apparently serve no purpose.

Originally committed as revision 21314 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoMove a few things into a deeper if() in fetch_diagonal_mv().
Michael Niedermayer [Tue, 19 Jan 2010 02:07:12 +0000 (02:07 +0000)]
Move a few things into a deeper if() in fetch_diagonal_mv().

Originally committed as revision 21313 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoRemove code that handles the case of a MB pair to our right being available.
Michael Niedermayer [Tue, 19 Jan 2010 01:23:19 +0000 (01:23 +0000)]
Remove code that handles the case of a MB pair to our right being available.
Thats not possible except maybe in FMO which noone uses anyway.
iam also not sure if this wasnt missing a part_width.

Originally committed as revision 21312 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoreindent
Baptiste Coudurier [Mon, 18 Jan 2010 23:58:10 +0000 (23:58 +0000)]

Originally committed as revision 21311 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoset average frame rate in mov demuxer
Baptiste Coudurier [Mon, 18 Jan 2010 23:56:04 +0000 (23:56 +0000)]
set average frame rate in mov demuxer

Originally committed as revision 21310 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoCosmetic, get rid of &x[0]
Michael Niedermayer [Mon, 18 Jan 2010 23:55:19 +0000 (23:55 +0000)]
Cosmetic, get rid of &x[0]

Originally committed as revision 21309 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoFix compilation with -O0.
Michael Niedermayer [Mon, 18 Jan 2010 23:41:12 +0000 (23:41 +0000)]
Fix compilation with -O0.

Originally committed as revision 21308 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoFix accumulated indention errors.
Michael Niedermayer [Mon, 18 Jan 2010 23:34:37 +0000 (23:34 +0000)]
Fix accumulated indention errors.

Originally committed as revision 21307 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoSplit long line.
Stefano Sabatini [Mon, 18 Jan 2010 23:34:07 +0000 (23:34 +0000)]
Split long line.

Originally committed as revision 30368 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

9 years agoConvert int -> enum PixelFormat in doTest().
Stefano Sabatini [Mon, 18 Jan 2010 23:33:17 +0000 (23:33 +0000)]
Convert int -> enum PixelFormat in doTest().

Originally committed as revision 30367 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

9 years agoOptimize top non_zero_count_cache init.
Michael Niedermayer [Mon, 18 Jan 2010 23:31:14 +0000 (23:31 +0000)]
Optimize top non_zero_count_cache init.

Originally committed as revision 21306 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoDont init chroma elements of non_zero_count_cache for deblock.
Michael Niedermayer [Mon, 18 Jan 2010 23:30:21 +0000 (23:30 +0000)]
Dont init chroma elements of non_zero_count_cache for deblock.

Originally committed as revision 21305 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoRemove unneeded for_deblock check, this code was alraedy under for_deblock.
Michael Niedermayer [Mon, 18 Jan 2010 23:27:53 +0000 (23:27 +0000)]
Remove unneeded for_deblock check, this code was alraedy under for_deblock.

Originally committed as revision 21304 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoconfigure: add --disable-asm option
Måns Rullgård [Mon, 18 Jan 2010 23:12:55 +0000 (23:12 +0000)]
configure: add --disable-asm option

Originally committed as revision 21303 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoconfigure: rename a variable in check_asm
Måns Rullgård [Mon, 18 Jan 2010 23:12:53 +0000 (23:12 +0000)]
configure: rename a variable in check_asm

Originally committed as revision 21302 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agomove aspect ratio code at the end of the track parsing, fix cathedral-beta2-400extra...
Baptiste Coudurier [Mon, 18 Jan 2010 21:38:39 +0000 (21:38 +0000)]
move aspect ratio code at the end of the track parsing, fix cathedral-beta2-400extra-crop-avc.mp4

Originally committed as revision 21301 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoconfigure: fix cpu=generic case
Måns Rullgård [Mon, 18 Jan 2010 21:32:57 +0000 (21:32 +0000)]
configure: fix cpu=generic case

Originally committed as revision 21300 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoRather call filter_mb_mbaff_edge*v() more often than do extra calculations
Michael Niedermayer [Mon, 18 Jan 2010 21:22:09 +0000 (21:22 +0000)]
Rather call filter_mb_mbaff_edge*v() more often than do extra calculations
in the innerst loop. ~150 cpu cycles faster

Originally committed as revision 21299 to svn://svn.ffmpeg.org/ffmpeg/trunk

9 years agoconfigure: simplify $cpu handling for some architectures
Måns Rullgård [Mon, 18 Jan 2010 21:05:12 +0000 (21:05 +0000)]
configure: simplify $cpu handling for some architectures

Originally committed as revision 21298 to svn://svn.ffmpeg.org/ffmpeg/trunk