OSDN Git Service

coroid/ffmpeg_saccubus.git
13 years agoFix posix_memalign() usage when libavutil is compiled outside FFmpeg.
Ivan Kalvachev [Thu, 12 May 2011 13:11:27 +0000 (16:11 +0300)]
Fix posix_memalign() usage when libavutil is compiled outside FFmpeg.

To use posix_memalign() "#define _XOPEN_SOURCE 600" have to be defined.
FFmpeg configure defines it from the command line through config.mak,
but when libavutil is used outside of FFmpeg the define is missing.

Signed-off-by: Ivan Kalvachev <ikalvachev@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoasfdec: fix assert failure on invalid files
Uoti Urpala [Sun, 24 Apr 2011 04:21:30 +0000 (07:21 +0300)]
asfdec: fix assert failure on invalid files

Add an extra size validity check in asf_read_frame_header(). Without
this asf->packet_size_left may become negative, which triggers an
assertion failure later.

13 years agoRevert "asfdec: fix assert failure on invalid files"
Michael Niedermayer [Thu, 12 May 2011 14:04:13 +0000 (16:04 +0200)]
Revert "asfdec: fix assert failure on invalid files"

Reverting this pulled change as author considers this change buggy compared to his
original version.
This reverts commit 0bd433a916cd8d98fce47742fbf6d0f90ec941c4.

13 years agoAdd support for QT BMP 1bpp color mode
ami_stuff [Thu, 12 May 2011 10:16:43 +0000 (12:16 +0200)]
Add support for QT BMP 1bpp color mode

Fix trac issue #188

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoIf a MP3 file contains the string NSVs, the NSV probe will think it is a NSV file...
Thierry Foucu [Wed, 11 May 2011 23:36:39 +0000 (16:36 -0700)]
If a MP3 file contains the string NSVs, the NSV probe will think it is a NSV file instead of a MP3 file. Check for 0xBEEF after a Video/Audio chunck for more accuracy.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoMerge remote branch 'qatar/master'
Michael Niedermayer [Thu, 12 May 2011 02:51:24 +0000 (04:51 +0200)]
Merge remote branch 'qatar/master'

* qatar/master: (32 commits)
  10-bit H.264 x86 chroma v loopfilter asm
  Port SMPTE S302M audio decoder from FFmbc 0.3. [Copyright headers corrected]
  Fix crash of interlaced MPEG2 decoding
  h264pred: fix one more aliasing violation.
  doc/APIchanges: fill in missing hashes and dates.
  flacenc: use proper initializers for AVOption default values.
  lavc: deprecate named constants for deprecated antialias_algo.
  aac: workaround for compilation on cygwin
  swscale: extend YUV422p support to 10bits depth
  tiff: add support for inverted FillOrder for uncompressed data
  Remove unused softfloat implementation.
  h264pred: fix aliasing violations.
  rotozoom: Eliminate French variable name.
  rotozoom: Check return value of fread().
  rotozoom: Return an error value instead of calling exit().
  rotozoom: Make init_demo() return int and check for errors on invocation.
  rotozoom: Drop silly UINT8 typedef.
  rotozoom: Drop some unnecessary parentheses.
  rotozoom: K&R coding style cosmetics
  rtsp: Only do keepalive using GET_PARAMETER if the server supports it
  ...

Conflicts:
Changelog
cmdutils.c
doc/APIchanges
doc/general.texi
ffmpeg.c
ffplay.c
libavcodec/h264pred_template.c
libavcodec/resample.c
libavutil/pixfmt.h
libavutil/softfloat.c
libavutil/softfloat.h
tests/rotozoom.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
13 years agolibavformat/utils: Only consider dvb teletext timestamps for start time when they...
Michael Niedermayer [Thu, 12 May 2011 01:40:21 +0000 (03:40 +0200)]
libavformat/utils: Only consider dvb teletext timestamps for start time when they are consistent with the rest.

This fixes Ticket51.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoerror concealment: check last pictures motion_val before using it.
Michael Niedermayer [Thu, 12 May 2011 01:03:08 +0000 (03:03 +0200)]
error concealment: check last pictures motion_val before using it.

Fixes NULL pointer dereference.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agosws-PPC: fix after VOFW change.
Michael Niedermayer [Thu, 12 May 2011 00:26:22 +0000 (02:26 +0200)]
sws-PPC: fix after VOFW change.

It seems sws-PPC did hardcode 2048 at various places instead of using VOFW.
This also means that all past VOFW benchmarks on PPC are meaningless
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoregtests: add grayscale qtrle
Michael Niedermayer [Wed, 11 May 2011 21:58:17 +0000 (23:58 +0200)]
regtests: add grayscale qtrle

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoAdded PIX_FMT_GRAY8 to the formats supported by the QuickTime RLE encoder
John Horigan [Sun, 8 May 2011 18:52:54 +0000 (11:52 -0700)]
Added PIX_FMT_GRAY8 to the formats supported by the QuickTime RLE encoder

The QuickTime RLE encoder only supports 16, 24, and 32-bit color. This patch adds support
for 8-bit grayscale.

Signed-off-by: John Horigan <john@glyphic.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoUse VOFW 21503 as a default value for all types of the CPUs
ami_stuff [Tue, 10 May 2011 13:34:08 +0000 (15:34 +0200)]
Use VOFW 21503 as a default value for all types of the CPUs

13 years agoAdd "DAVC" FourCC
ami_stuff [Wed, 11 May 2011 20:18:15 +0000 (22:18 +0200)]
Add "DAVC" FourCC

This FourCC is used by "mpegable AVC" codec and the file encoded with this codec decodes correctly with FFmpeg's H264 decoder.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoFix crash of interlaced MPEG2 decoding
anatoly [Tue, 22 Feb 2011 09:04:50 +0000 (12:04 +0300)]
Fix crash of interlaced MPEG2 decoding

13 years agoav_compare_ts: Improve speed when calculations fit in 64bit.
Michael Niedermayer [Wed, 11 May 2011 18:41:19 +0000 (20:41 +0200)]
av_compare_ts: Improve speed when calculations fit in 64bit.

about 110 cpu cycles before 60 cpu cycles afterwards.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoconfigure: Fix SDL detection on OSX and win32
Kyle [Wed, 11 May 2011 18:22:33 +0000 (20:22 +0200)]
configure: Fix SDL detection on OSX and win32

13 years ago10-bit H.264 x86 chroma v loopfilter asm
Jason Garrett-Glaser [Wed, 11 May 2011 17:11:55 +0000 (10:11 -0700)]
10-bit H.264 x86 chroma v loopfilter asm

Also delete some unused deblock asm macros.

13 years agofate: Disable h264-conformance-frext-pph10i4_panasonic_a.
Michael Niedermayer [Wed, 11 May 2011 16:09:26 +0000 (18:09 +0200)]
fate: Disable h264-conformance-frext-pph10i4_panasonic_a.

The file does not decode correctly yet the checksums match this wrongly
decoded file. Thus the checksums must be wrong.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoPort SMPTE S302M audio decoder from FFmbc 0.3.
Baptiste Coudurier [Tue, 12 Apr 2011 22:29:09 +0000 (15:29 -0700)]
Port SMPTE S302M audio decoder from FFmbc 0.3.

13 years agoh264pred: fix one more aliasing violation.
Ronald S. Bultje [Wed, 11 May 2011 15:22:41 +0000 (17:22 +0200)]
h264pred: fix one more aliasing violation.

13 years agoh264-fate: Fix 10bit H264 tests on big endian.
Michael Niedermayer [Wed, 11 May 2011 14:32:35 +0000 (16:32 +0200)]
h264-fate: Fix 10bit H264 tests on big endian.

framecrc returns different values when one swiches endianness,
this apparently has been missed by "the fork" who added the 10bit fate
tests. Sorry for missing this during the merge.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoFix crash of interlaced MPEG2 decoding
Anatoly Nenashev [Sun, 27 Mar 2011 19:41:48 +0000 (21:41 +0200)]
Fix crash of interlaced MPEG2 decoding

Problem description, preliminary review discussion at
http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/127731

13 years agoh264pred: fix one more aliasing violation.
Ronald S. Bultje [Wed, 11 May 2011 12:30:02 +0000 (08:30 -0400)]
h264pred: fix one more aliasing violation.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agodoc/APIchanges: fill in missing hashes and dates.
Anton Khirnov [Wed, 11 May 2011 11:56:42 +0000 (13:56 +0200)]
doc/APIchanges: fill in missing hashes and dates.

13 years agoflacenc: use proper initializers for AVOption default values.
Anton Khirnov [Wed, 11 May 2011 11:45:12 +0000 (13:45 +0200)]
flacenc: use proper initializers for AVOption default values.

default_val was recently changes from double to a union, current code
wasn't updated for that.

13 years agolavc: deprecate named constants for deprecated antialias_algo.
Anton Khirnov [Wed, 11 May 2011 06:45:17 +0000 (08:45 +0200)]
lavc: deprecate named constants for deprecated antialias_algo.

13 years agoh264idct_template: fix include path
Michael Niedermayer [Wed, 11 May 2011 13:35:06 +0000 (15:35 +0200)]
h264idct_template: fix include path
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoaac: workaround for compilation on cygwin
Reinhard Tartler [Wed, 11 May 2011 11:51:11 +0000 (13:51 +0200)]
aac: workaround for compilation on cygwin

On cygwin, math.h needs to be included before float.h because of a bug
in the system headers. Including libavutil/libm.h first works around
this issue.

Longer discussion of the topic:
http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/128582

13 years agoswscale: extend YUV422p support to 10bits depth
Baptiste Coudurier [Wed, 11 May 2011 08:00:50 +0000 (10:00 +0200)]
swscale: extend YUV422p support to 10bits depth

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoh264: merge _internal & template files.
Michael Niedermayer [Wed, 11 May 2011 11:56:12 +0000 (13:56 +0200)]
h264: merge _internal & template files.

seems git missed them and we temporary lost our improvments in them.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agotiff: add support for inverted FillOrder for uncompressed data
Stefano Sabatini [Mon, 9 May 2011 19:59:20 +0000 (21:59 +0200)]
tiff: add support for inverted FillOrder for uncompressed data

Fix decoding of file b.tif, trac issue #168.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years agoRemove unused softfloat implementation.
Diego Biurrun [Wed, 11 May 2011 10:22:28 +0000 (12:22 +0200)]
Remove unused softfloat implementation.

The softfloat functionality is unused, not installed and incomplete.
On platforms without floating point units, the compiler provides a softfloat
implementation so there is no point in carrying this code around locally.

13 years agoh264pred: fix aliasing violations.
Ronald S. Bultje [Wed, 11 May 2011 00:23:08 +0000 (20:23 -0400)]
h264pred: fix aliasing violations.

Tested to fix Haiku H264/10bit fate failures, may also fix others.

13 years agoCheck syntax even if DEBUG is not defined.
Reimar Döffinger [Wed, 11 May 2011 10:26:25 +0000 (12:26 +0200)]
Check syntax even if DEBUG is not defined.

13 years agorotozoom: Eliminate French variable name.
Diego Biurrun [Mon, 9 May 2011 11:00:04 +0000 (13:00 +0200)]
rotozoom: Eliminate French variable name.

13 years agorotozoom: Check return value of fread().
Diego Biurrun [Mon, 9 May 2011 10:42:15 +0000 (12:42 +0200)]
rotozoom: Check return value of fread().

This fixes the warnings:
tests/rotozoom.c:252: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
tests/rotozoom.c:254: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result

13 years agorotozoom: Return an error value instead of calling exit().
Diego Biurrun [Mon, 9 May 2011 09:16:55 +0000 (11:16 +0200)]
rotozoom: Return an error value instead of calling exit().

13 years agorotozoom: Make init_demo() return int and check for errors on invocation.
Diego Biurrun [Mon, 9 May 2011 10:33:45 +0000 (12:33 +0200)]
rotozoom: Make init_demo() return int and check for errors on invocation.

13 years agorotozoom: Drop silly UINT8 typedef.
Diego Biurrun [Mon, 9 May 2011 10:26:00 +0000 (12:26 +0200)]
rotozoom: Drop silly UINT8 typedef.

13 years agorotozoom: Drop some unnecessary parentheses.
Diego Biurrun [Mon, 9 May 2011 10:23:55 +0000 (12:23 +0200)]
rotozoom: Drop some unnecessary parentheses.

13 years agorotozoom: K&R coding style cosmetics
Diego Biurrun [Mon, 9 May 2011 09:45:13 +0000 (11:45 +0200)]
rotozoom: K&R coding style cosmetics

13 years agortsp: Only do keepalive using GET_PARAMETER if the server supports it
Martin Storsjö [Mon, 9 May 2011 17:11:16 +0000 (20:11 +0300)]
rtsp: Only do keepalive using GET_PARAMETER if the server supports it

This is more like what VLC does. If the server doesn't mention
supporting GET_PARAMETER in response to an OPTIONS request,
VLC doesn't send any keepalive requests at all. After this patch,
libavformat will still send OPTIONS keepalives if GET_PARAMETER
isn't explicitly said to be supported.

Some RTSP cameras don't support GET_PARAMETER, and will
close the connection if this is sent as keepalive request
(but support OPTIONS just fine, but probably don't need any
keepalive at all). Some other cameras don't support using
OPTIONS as keepalive, but require GET_PARAMETER instead.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agoffmpeg: call pre_process_video_frame() only if decoding is needed
Stefano Sabatini [Wed, 20 Apr 2011 11:13:09 +0000 (13:13 +0200)]
ffmpeg: call pre_process_video_frame() only if decoding is needed

In output_packet(), move the pre_process_video_frame() call inside the
if (ist->decoding_needed) { } block. This way
pre_process_video_frame() is not called when stream-copy has been
selected.

Also simplify.

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoffmpeg: reformat resample condition code in transcode()
Stefano Sabatini [Sat, 16 Apr 2011 21:18:22 +0000 (23:18 +0200)]
ffmpeg: reformat resample condition code in transcode()

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoffmpeg: factorize resampling condition check in do_video_out()
Stefano Sabatini [Sat, 16 Apr 2011 21:11:01 +0000 (23:11 +0200)]
ffmpeg: factorize resampling condition check in do_video_out()

Simplify and improve readability.

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoffmpeg: prefer "dec" over "ist->st->codec" in do_video_out() snippet
Stefano Sabatini [Sat, 16 Apr 2011 23:38:09 +0000 (01:38 +0200)]
ffmpeg: prefer "dec" over "ist->st->codec" in do_video_out() snippet

Simplify, ease readability.

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoffmpeg: improve reporting if size/pixel format changes
Stefano Sabatini [Sat, 16 Apr 2011 20:58:13 +0000 (22:58 +0200)]
ffmpeg: improve reporting if size/pixel format changes

Use av_log() rather than fprintf(stderr, ...), and show information
related to the previous size/pixel format configuration.

Consistent with the corresponding message issued in case of audio
configuration change.

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoffmpeg: warns the user when the selected pixel format is ignored
Stefano Sabatini [Sat, 26 Mar 2011 14:26:45 +0000 (15:26 +0100)]
ffmpeg: warns the user when the selected pixel format is ignored

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoffplay: add a dummy option -i so that it is easy to switch between ffmpeg -i "file...
Benjamin Larsson [Tue, 8 Mar 2011 14:29:46 +0000 (15:29 +0100)]
ffplay: add a dummy option -i so that it is easy to switch between ffmpeg -i "file" and ffplay -i "file".

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoswscale: remove fork bug that i missed in the merge.
Michael Niedermayer [Wed, 11 May 2011 04:26:47 +0000 (06:26 +0200)]
swscale: remove fork bug that i missed in the merge.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agofix fate failures for 10bit H264 on some systems
Ronald S. Bultje [Wed, 11 May 2011 04:25:25 +0000 (06:25 +0200)]
fix fate failures for 10bit H264 on some systems

This is possibly a temporary solution

13 years agoMerge remote branch 'qatar/master'
Michael Niedermayer [Wed, 11 May 2011 03:34:17 +0000 (05:34 +0200)]
Merge remote branch 'qatar/master'

* qatar/master: (30 commits)
  AVOptions: make default_val a union, as proposed in AVOption2.
  arm/h264pred: add missing argument type.
  h264dsp_mmx: place bracket outside #if/#endif block.
  lavf/utils: fix ff_interleave_compare_dts corner case.
  fate: add 10-bit H264 tests.
  h264: do not print "too many references" warning for intra-only.
  Enable decoding of high bit depth h264.
  Adds 8-, 9- and 10-bit versions of some of the functions used by the h264 decoder.
  Add support for higher QP values in h264.
  Add the notion of pixel size in h264 related functions.
  Make the h264 loop filter bit depth aware.
  Template dsputil_template.c with respect to pixel size, etc.
  Template h264idct_template.c with respect to pixel size, etc.
  Preparatory patch for high bit depth h264 decoding support.
  Move some functions in dsputil.c into a new file dsputil_template.c.
  Move the functions in h264idct into a new file h264idct_template.c.
  Move the functions in h264pred.c into a new file h264pred_template.c.
  Preparatory patch for high bit depth h264 decoding support.
  Add pixel formats for 9- and 10-bit yuv420p.
  Choose h264 chroma dc dequant function dynamically.
  ...

Conflicts:
doc/APIchanges
ffmpeg.c
ffplay.c
libavcodec/alpha/dsputil_alpha.c
libavcodec/arm/dsputil_init_arm.c
libavcodec/arm/dsputil_init_armv6.c
libavcodec/arm/dsputil_init_neon.c
libavcodec/arm/dsputil_iwmmxt.c
libavcodec/arm/h264pred_init_arm.c
libavcodec/bfin/dsputil_bfin.c
libavcodec/dsputil.c
libavcodec/h264.c
libavcodec/h264.h
libavcodec/h264_cabac.c
libavcodec/h264_cavlc.c
libavcodec/h264_loopfilter.c
libavcodec/h264_ps.c
libavcodec/h264_refs.c
libavcodec/h264dsp.c
libavcodec/h264idct.c
libavcodec/h264pred.c
libavcodec/mlib/dsputil_mlib.c
libavcodec/options.c
libavcodec/ppc/dsputil_altivec.c
libavcodec/ppc/dsputil_ppc.c
libavcodec/ppc/h264_altivec.c
libavcodec/ps2/dsputil_mmi.c
libavcodec/sh4/dsputil_align.c
libavcodec/sh4/dsputil_sh4.c
libavcodec/sparc/dsputil_vis.c
libavcodec/utils.c
libavcodec/version.h
libavcodec/x86/dsputil_mmx.c
libavformat/options.c
libavformat/utils.c
libavutil/pixfmt.h
libswscale/swscale.c
libswscale/swscale_internal.h
libswscale/swscale_template.c
tests/ref/seek/lavf_avi

Merged-by: Michael Niedermayer <michaelni@gmx.at>
13 years agocosmetics: Fix crazy formatting in resample.
Alex Converse [Tue, 10 May 2011 23:58:01 +0000 (16:58 -0700)]
cosmetics: Fix crazy formatting in resample.

13 years agoAllow resampling with no channel count change for up to 8 channels.
Alex Converse [Tue, 10 May 2011 21:24:05 +0000 (14:24 -0700)]
Allow resampling with no channel count change for up to 8 channels.

13 years agoDon't allow unsupported resampling configurations.
Alex Converse [Tue, 10 May 2011 22:10:31 +0000 (15:10 -0700)]
Don't allow unsupported resampling configurations.

13 years agoPort x86 10-bit H.264 deblock asm from x264
Jason Garrett-Glaser [Tue, 10 May 2011 15:55:12 +0000 (08:55 -0700)]
Port x86 10-bit H.264 deblock asm from x264

13 years agoUpdate x86 H.264 deblock asm
Jason Garrett-Glaser [Tue, 10 May 2011 14:08:24 +0000 (07:08 -0700)]
Update x86 H.264 deblock asm

Includes AVX versions from x264.

13 years agoAllocate per codec options, now that options are freed between inputs and outputs.
Baptiste Coudurier [Tue, 10 May 2011 23:40:21 +0000 (16:40 -0700)]
Allocate per codec options, now that options are freed between inputs and outputs.

13 years agoerror_concealment: Use previous pictures motion vectors when the current ones have...
Michael Niedermayer [Tue, 10 May 2011 22:47:55 +0000 (00:47 +0200)]
error_concealment: Use previous pictures motion vectors when the current ones have been lost.

Looks better for some cases, worse for others, overall not much difference.
Its more correct though.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoMerging branch 'ffmpeg-mt/master'
Multiple Authors [Tue, 10 May 2011 21:12:44 +0000 (23:12 +0200)]
Merging branch 'ffmpeg-mt/master'

Just some cosmetics & comments, the only functional change
"error_resilience: use s->last_picture for accessing last MVs."
Is so buggy that it needs a full rewrite, guess -1.0 PSNR loss wasnt
enough for ronald to realize there was a problem.

13 years ago"Initialize" copy_tb like the other global variables.
Robert Leatherwood [Tue, 10 May 2011 22:57:42 +0000 (00:57 +0200)]
"Initialize" copy_tb like the other global variables.

13 years agotiff: prefer enum TiffCompr over int for TiffContext.compr
Stefano Sabatini [Mon, 9 May 2011 19:05:42 +0000 (21:05 +0200)]
tiff: prefer enum TiffCompr over int for TiffContext.compr

Help debugging, safer.

13 years agotiff: remove duplicated author information, fix @file doxy
Stefano Sabatini [Mon, 9 May 2011 17:21:26 +0000 (19:21 +0200)]
tiff: remove duplicated author information, fix @file doxy

13 years agotiff: perform minor cleanups in the header
Stefano Sabatini [Mon, 9 May 2011 17:19:04 +0000 (19:19 +0200)]
tiff: perform minor cleanups in the header

Add link to official specifications, remove author duplication and
others.

13 years ago8svx: remove pointless comments
Stefano Sabatini [Tue, 10 May 2011 08:22:24 +0000 (10:22 +0200)]
8svx: remove pointless comments

13 years ago8svx: add links to documentation resources
Stefano Sabatini [Mon, 9 May 2011 22:16:39 +0000 (00:16 +0200)]
8svx: add links to documentation resources

13 years ago8svx: remove duplicated author/file information
Stefano Sabatini [Mon, 9 May 2011 22:13:08 +0000 (00:13 +0200)]
8svx: remove duplicated author/file information

13 years agoiff: remove get_image_data() and get_image_size() wrappers
Stefano Sabatini [Mon, 9 May 2011 21:58:20 +0000 (23:58 +0200)]
iff: remove get_image_data() and get_image_size() wrappers

Remove one level of indirection, simplify code.

13 years agoiff: remove get_palette_size() wrapper
Stefano Sabatini [Mon, 9 May 2011 21:51:33 +0000 (23:51 +0200)]
iff: remove get_palette_size() wrapper

Remove one level of indirection/improve readability.

13 years agoiff: remove pointless get_palette_data() wrapper
Stefano Sabatini [Mon, 9 May 2011 21:45:47 +0000 (23:45 +0200)]
iff: remove pointless get_palette_data() wrapper

Also rename variable "extradata" to "palette" ff_cmap_read_palette()
and extract_header(), more meaningful.

13 years agomotion_est: fix ffmpeg compilation with DEBUG defined
Maksym Veremeyenko [Tue, 10 May 2011 12:12:40 +0000 (15:12 +0300)]
motion_est: fix ffmpeg compilation with DEBUG defined

Remove the problematic av_dlog() call

13 years agompegaudio: remove frame_count variable and its only usage, it is always 0.
Reimar Döffinger [Tue, 10 May 2011 16:46:54 +0000 (18:46 +0200)]
mpegaudio: remove frame_count variable and its only usage, it is always 0.

13 years agoAVOptions: make default_val a union, as proposed in AVOption2.
Anton Khirnov [Sat, 30 Apr 2011 05:43:26 +0000 (07:43 +0200)]
AVOptions: make default_val a union, as proposed in AVOption2.

This breaks API and ABI.

13 years agoAdded oggpagesize option for Ogg encoding. Allows setting a preferred page size....
Andres Gonzalez [Thu, 27 Jan 2011 09:14:21 +0000 (10:14 +0100)]
Added oggpagesize option for Ogg encoding. Allows setting a preferred page size. When set, if an Ogg stream buffer has enough data, a page is made, instead of filling maximum-size pages.

13 years agoffmpeg: Fix -t with files that do not have any timestamps.
Michael Niedermayer [Tue, 10 May 2011 15:31:32 +0000 (17:31 +0200)]
ffmpeg: Fix -t with files that do not have any timestamps.

This for example fixes -t with some frext h264 reference streams.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoarm/h264pred: add missing argument type.
Ronald S. Bultje [Tue, 10 May 2011 12:44:49 +0000 (08:44 -0400)]
arm/h264pred: add missing argument type.

13 years agoswscale: Fix scaling for unscaled dithered planar convertions.
Michael Niedermayer [Tue, 10 May 2011 12:40:05 +0000 (14:40 +0200)]
swscale: Fix scaling for unscaled dithered planar convertions.

This fixes some overflow in bright areas and ensures that the maximum brightness level is
mapped to the maximum without cliping and without showing dither patterens in flat max
brightness areas.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoh264dsp_mmx: place bracket outside #if/#endif block.
Ronald S. Bultje [Tue, 10 May 2011 12:39:38 +0000 (08:39 -0400)]
h264dsp_mmx: place bracket outside #if/#endif block.

Should fix compile on systems missing yasm/nasm.

13 years agolavf/utils: fix ff_interleave_compare_dts corner case.
Vitor Sessak [Sat, 7 May 2011 20:48:29 +0000 (22:48 +0200)]
lavf/utils: fix ff_interleave_compare_dts corner case.

This should fix behavior introduced by commit
96573c0d7605672d69b42ae1dcf18764ce47c71a. Av_rescale_rnd() is not
lossless so if two timestamps are equal after being rescaled they are
not always actually identical. This patch use av_compare_ts() to get
always a correct result.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agofate: add 10-bit H264 tests.
Ronald S. Bultje [Sat, 7 May 2011 01:46:54 +0000 (21:46 -0400)]
fate: add 10-bit H264 tests.

13 years agoh264: do not print "too many references" warning for intra-only.
Ronald S. Bultje [Fri, 6 May 2011 20:31:26 +0000 (16:31 -0400)]
h264: do not print "too many references" warning for intra-only.

Fixes issue 2679.

13 years agoEnable decoding of high bit depth h264.
Oskar Arvidsson [Tue, 29 Mar 2011 15:49:00 +0000 (17:49 +0200)]
Enable decoding of high bit depth h264.

This patch completes the high bit depth h264 decoding support.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoAdds 8-, 9- and 10-bit versions of some of the functions used by the h264 decoder.
Oskar Arvidsson [Tue, 29 Mar 2011 15:48:59 +0000 (17:48 +0200)]
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: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoAdd support for higher QP values in h264.
Oskar Arvidsson [Tue, 29 Mar 2011 15:48:58 +0000 (17:48 +0200)]
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: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoAdd the notion of pixel size in h264 related functions.
Oskar Arvidsson [Tue, 29 Mar 2011 15:48:57 +0000 (17:48 +0200)]
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: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoMake the h264 loop filter bit depth aware.
Oskar Arvidsson [Tue, 29 Mar 2011 15:48:56 +0000 (17:48 +0200)]
Make the h264 loop filter bit depth aware.

Preparatory patch for high bit depth h264 decoding support.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoTemplate dsputil_template.c with respect to pixel size, etc.
Oskar Arvidsson [Tue, 29 Mar 2011 15:48:55 +0000 (17:48 +0200)]
Template dsputil_template.c with respect to pixel size, etc.

Preparatory patch for high bit depth h264 decoding support.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoTemplate h264idct_template.c with respect to pixel size, etc.
Oskar Arvidsson [Tue, 29 Mar 2011 15:48:54 +0000 (17:48 +0200)]
Template h264idct_template.c with respect to pixel size, etc.

Preparatory patch for high bit depth h264 decoding support.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoPreparatory patch for high bit depth h264 decoding support.
Oskar Arvidsson [Mon, 9 May 2011 15:18:37 +0000 (11:18 -0400)]
Preparatory patch for high bit depth h264 decoding support.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoMove some functions in dsputil.c into a new file dsputil_template.c.
Oskar Arvidsson [Tue, 29 Mar 2011 15:48:51 +0000 (17:48 +0200)]
Move some functions in dsputil.c into a new file dsputil_template.c.

The functions moved are used when decoding h264.
Preparatory patch for high bit depth h264 decoding support.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoMove the functions in h264idct into a new file h264idct_template.c.
Oskar Arvidsson [Tue, 29 Mar 2011 15:48:50 +0000 (17:48 +0200)]
Move the functions in h264idct into a new file h264idct_template.c.

Preparatory patch for high bit depth h264 decoding support.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoMove the functions in h264pred.c into a new file h264pred_template.c.
Oskar Arvidsson [Tue, 29 Mar 2011 15:48:49 +0000 (17:48 +0200)]
Move the functions in h264pred.c into a new file h264pred_template.c.

Preparatory patch for high bit depth h264 decoding support.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoPreparatory patch for high bit depth h264 decoding support.
Oskar Arvidsson [Mon, 9 May 2011 14:58:40 +0000 (10:58 -0400)]
Preparatory patch for high bit depth h264 decoding support.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoAdd pixel formats for 9- and 10-bit yuv420p.
Oskar Arvidsson [Tue, 29 Mar 2011 15:48:47 +0000 (17:48 +0200)]
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: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoChoose h264 chroma dc dequant function dynamically.
Oskar Arvidsson [Sun, 10 Apr 2011 20:42:36 +0000 (22:42 +0200)]
Choose h264 chroma dc dequant function dynamically.

Needed for high bit depth h264 decoding.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoh264: DSP'ize MBAFF loopfilter.
Ronald S. Bultje [Mon, 9 May 2011 13:48:21 +0000 (09:48 -0400)]
h264: DSP'ize MBAFF loopfilter.

13 years agoffmpeg: Simplify decode loop condition to not use next_pts
Alexander Strange [Tue, 10 May 2011 05:53:46 +0000 (01:53 -0400)]
ffmpeg: Simplify decode loop condition to not use next_pts

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agolavc: move some flac-specific options to its private context.
Anton Khirnov [Sat, 2 Apr 2011 10:28:01 +0000 (12:28 +0200)]
lavc: move some flac-specific options to its private context.

13 years agoffmpeg: remove unused fields AVOutputStream.original_width/height
Stefano Sabatini [Sat, 16 Apr 2011 21:14:44 +0000 (23:14 +0200)]
ffmpeg: remove unused fields AVOutputStream.original_width/height

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoffmpeg: remove unused variable padding_src in do_video_out()
Stefano Sabatini [Sat, 16 Apr 2011 20:51:04 +0000 (22:51 +0200)]
ffmpeg: remove unused variable padding_src in do_video_out()

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>