ffmpeg.git
10 years agoUse qstride = 0 and allocate only a single line for qscale_table since
Reimar Döffinger [Sat, 23 Jan 2010 18:01:38 +0000 (18:01 +0000)]
Use qstride = 0 and allocate only a single line for qscale_table since
for this codecs all quants are the same for a single frame.

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

10 years agoAdded ff_dxva2_ prefix to get_surface(_index) and commit_buffer functions.
Laurent Aimar [Sat, 23 Jan 2010 18:01:28 +0000 (18:01 +0000)]
Added ff_dxva2_ prefix to get_surface(_index) and commit_buffer functions.

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

10 years agoReindent the content of one if(){} in ff_dxva2_common_end_frame.
Laurent Aimar [Sat, 23 Jan 2010 18:00:51 +0000 (18:00 +0000)]
Reindent the content of one if(){} in ff_dxva2_common_end_frame.

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

10 years agoMoved reusable code from dxva2_h264.c:end_frame to ff_dxva2_common_end_frame.
Laurent Aimar [Sat, 23 Jan 2010 17:59:08 +0000 (17:59 +0000)]
Moved reusable code from dxva2_h264.c:end_frame to ff_dxva2_common_end_frame.

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

10 years agoSet edges based on cbp and mv partitioning, not just skiped MBs.
Michael Niedermayer [Sat, 23 Jan 2010 15:28:34 +0000 (15:28 +0000)]
Set edges based on cbp and mv partitioning, not just skiped MBs.
This is faster for videos that have lots of MBs that fall in this category.

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

10 years agoUse AVPALETTE_COUNT instead of hard-coding 256.
Reimar Döffinger [Sat, 23 Jan 2010 15:22:48 +0000 (15:22 +0000)]
Use AVPALETTE_COUNT instead of hard-coding 256.
This is consistent with other codecs and will also avoid a crash on the
memcpy to data[1] if AVPALETTE_SIZE ever increases.

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

10 years agoRemove redundant initialization of the palette, it is part of the context
Reimar Döffinger [Sat, 23 Jan 2010 15:19:34 +0000 (15:19 +0000)]
Remove redundant initialization of the palette, it is part of the context
and that one is always 0-initialized already.

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

10 years agoOptimize filter_mb_mbaff_edge*()
Michael Niedermayer [Sat, 23 Jan 2010 14:50:56 +0000 (14:50 +0000)]
Optimize filter_mb_mbaff_edge*()

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

10 years agoOptmize 8x8dct check used to skip some borders in the loop filter.
Michael Niedermayer [Sat, 23 Jan 2010 13:54:02 +0000 (13:54 +0000)]
Optmize 8x8dct check used to skip some borders in the loop filter.
4 cpu cycles faster.

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

10 years agoUse av_freep intead of av_free to free pointers in vp56 context.
Reimar Döffinger [Sat, 23 Jan 2010 13:49:09 +0000 (13:49 +0000)]
Use av_freep intead of av_free to free pointers in vp56 context.

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

10 years agoZero the frame data on allocation for VB codec, e.g. the FATE sample seems to
Reimar Döffinger [Sat, 23 Jan 2010 10:25:22 +0000 (10:25 +0000)]
Zero the frame data on allocation for VB codec, e.g. the FATE sample seems to
rely on this.

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

10 years agoMake url_read_complete retry on EAGAIN and return how much data it read
Reimar Döffinger [Sat, 23 Jan 2010 10:23:47 +0000 (10:23 +0000)]
Make url_read_complete retry on EAGAIN and return how much data it read
if it reached EOF, making it useful in more cases.

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

10 years agoPrint a warning when DATA chunk is encountered in the middle of chunk.
Ronald S. Bultje [Sat, 23 Jan 2010 09:42:52 +0000 (09:42 +0000)]
Print a warning when DATA chunk is encountered in the middle of chunk.
From multirate RM patch by Ronald S. Bultje

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

10 years agoExport wma_critical_freqs as ff_wma_critical_freqs
Daniel Verkamp [Sat, 23 Jan 2010 08:39:50 +0000 (08:39 +0000)]
Export wma_critical_freqs as ff_wma_critical_freqs

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

10 years agoFix heap overflow with -async.
Michael Niedermayer [Sat, 23 Jan 2010 01:25:19 +0000 (01:25 +0000)]
Fix heap overflow with -async.
Fixes issue1666

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

10 years agoThe SSSE3 version of dct_quantize in mpegvideo_mmx_template.c needs
Reimar Döffinger [Fri, 22 Jan 2010 23:40:18 +0000 (23:40 +0000)]
The SSSE3 version of dct_quantize in mpegvideo_mmx_template.c needs
inv_zigzag_direct16 16-byte aligned, so mark it appropriately.
Fixes encoder crashes e.g. with MPlayer's -vf lavc.

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

10 years agoRemove conditional M_PI definition, it is already defined in
Stefano Sabatini [Fri, 22 Jan 2010 23:16:23 +0000 (23:16 +0000)]
Remove conditional M_PI definition, it is already defined in
libavutil/mathematics.h indirectly included by libavformat/avformat.h.

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

10 years agoReplace deprecated guess_format() with av_guess_format().
Martin Storsjö [Fri, 22 Jan 2010 23:09:08 +0000 (23:09 +0000)]
Replace deprecated guess_format() with av_guess_format().

Patch by Martin Storsjö reverse(<ts.nitram@nitram>).

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

10 years agoImplement an sse version of scalarproduct_float().
Alex Converse [Fri, 22 Jan 2010 23:07:58 +0000 (23:07 +0000)]
Implement an sse version of scalarproduct_float().

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

10 years agoCheck for chunk boundaries when decoding VB codec data
Kostya Shishkov [Fri, 22 Jan 2010 19:07:44 +0000 (19:07 +0000)]
Check for chunk boundaries when decoding VB codec data

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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

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

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

10 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

10 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

10 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

10 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

10 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

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

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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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
process.

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

10 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:
http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2008-November/056561.html

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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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