]> git.sesse.net Git - ffmpeg/log
ffmpeg
10 years agoavfilter/vf_transpose: Avoid using non public AV_PIX_FMT_NB
Michael Niedermayer [Tue, 27 May 2014 15:43:03 +0000 (17:43 +0200)]
avfilter/vf_transpose: Avoid using non public AV_PIX_FMT_NB

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavfilter/vf_swapuv: Avoid using non public AV_PIX_FMT_NB
Michael Niedermayer [Tue, 27 May 2014 15:43:03 +0000 (17:43 +0200)]
avfilter/vf_swapuv: Avoid using non public AV_PIX_FMT_NB

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavfilter/vf_noise: Avoid using non public AV_PIX_FMT_NB
Michael Niedermayer [Tue, 27 May 2014 15:43:03 +0000 (17:43 +0200)]
avfilter/vf_noise: Avoid using non public AV_PIX_FMT_NB

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavfilter/vf_mergeplanes: Avoid using non public AV_PIX_FMT_NB
Michael Niedermayer [Tue, 27 May 2014 15:43:03 +0000 (17:43 +0200)]
avfilter/vf_mergeplanes: Avoid using non public AV_PIX_FMT_NB

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavfilter/il: Avoid using non public AV_PIX_FMT_NB
Michael Niedermayer [Tue, 27 May 2014 15:43:03 +0000 (17:43 +0200)]
avfilter/il: Avoid using non public AV_PIX_FMT_NB

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavfilter/hflip: Avoid using non public AV_PIX_FMT_NB
Michael Niedermayer [Tue, 27 May 2014 15:43:03 +0000 (17:43 +0200)]
avfilter/hflip: Avoid using non public AV_PIX_FMT_NB

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavfilter/crop: Avoid using non public AV_PIX_FMT_NB
Michael Niedermayer [Tue, 27 May 2014 15:43:03 +0000 (17:43 +0200)]
avfilter/crop: Avoid using non public AV_PIX_FMT_NB

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavfilter/formats: Avoid using non public AV_PIX_FMT_NB
Michael Niedermayer [Tue, 27 May 2014 15:43:03 +0000 (17:43 +0200)]
avfilter/formats: Avoid using non public AV_PIX_FMT_NB

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoImprove the detection of architecture x86.
Andreas Cadhalpun [Mon, 26 May 2014 16:07:55 +0000 (18:07 +0200)]
Improve the detection of architecture x86.

This fixes building on Debian GNU/Hurd.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agox86/dsputilenc: use HADDD in ff_sse16_sse2
James Almer [Tue, 27 May 2014 07:27:37 +0000 (04:27 -0300)]
x86/dsputilenc: use HADDD in ff_sse16_sse2

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agox86/dsputilenc: implement SSE2 version of diff_pixels
James Almer [Mon, 26 May 2014 06:49:35 +0000 (03:49 -0300)]
x86/dsputilenc: implement SSE2 version of diff_pixels

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/x86/dsputilenc: set the count of SSE registers correctly for get_pixels
Michael Niedermayer [Tue, 27 May 2014 03:51:42 +0000 (05:51 +0200)]
avcodec/x86/dsputilenc: set the count of SSE registers correctly for get_pixels

Found-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit '7cc4c9f32f446feaec5447e3d097e8147e35f156'
Michael Niedermayer [Tue, 27 May 2014 01:22:45 +0000 (03:22 +0200)]
Merge commit '7cc4c9f32f446feaec5447e3d097e8147e35f156'

* commit '7cc4c9f32f446feaec5447e3d097e8147e35f156':
  lavfi/formats: avoid using AV_{PIX,SAMPLE}_FMT_NB

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit 'b03b2d86aa9d79670825b42d8a8a7c41f59cb444'
Michael Niedermayer [Tue, 27 May 2014 01:12:49 +0000 (03:12 +0200)]
Merge commit 'b03b2d86aa9d79670825b42d8a8a7c41f59cb444'

* commit 'b03b2d86aa9d79670825b42d8a8a7c41f59cb444':
  buffersrc: avoid using AV_PIX_FMT_NB

Conflicts:
libavfilter/buffersrc.c

No change as AV_PIX_FMT_NB was not used by our buffersrc.c
See: 0d58bbb28d90a16bdb0ece6f5c67e12167a67a0f
Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit 'a7d070acb55c3ebbdd5e93e3366f32865732b8a3'
Michael Niedermayer [Tue, 27 May 2014 01:02:09 +0000 (03:02 +0200)]
Merge commit 'a7d070acb55c3ebbdd5e93e3366f32865732b8a3'

* commit 'a7d070acb55c3ebbdd5e93e3366f32865732b8a3':
  vf_fieldorder: avoid using AV_PIX_FMT_NB

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit '862f33c10ea38ea49fa4188725df5e5246dbd1d8'
Michael Niedermayer [Tue, 27 May 2014 00:54:58 +0000 (02:54 +0200)]
Merge commit '862f33c10ea38ea49fa4188725df5e5246dbd1d8'

* commit '862f33c10ea38ea49fa4188725df5e5246dbd1d8':
  vf_scale: use the pixfmt descriptor API

Conflicts:
libavfilter/vf_scale.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavfilter/vf_format: fix duplicate ;
Michael Niedermayer [Tue, 27 May 2014 00:53:17 +0000 (02:53 +0200)]
avfilter/vf_format: fix duplicate ;

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit '45fc73edfe071f9690e8671ed2dc402b1cb02ece'
Michael Niedermayer [Tue, 27 May 2014 00:46:56 +0000 (02:46 +0200)]
Merge commit '45fc73edfe071f9690e8671ed2dc402b1cb02ece'

* commit '45fc73edfe071f9690e8671ed2dc402b1cb02ece':
  vf_format: rework format list parsing

Conflicts:
libavfilter/vf_format.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit '4d8c28deab2488579f585406110b1be790896e59'
Michael Niedermayer [Tue, 27 May 2014 00:26:45 +0000 (02:26 +0200)]
Merge commit '4d8c28deab2488579f585406110b1be790896e59'

* commit '4d8c28deab2488579f585406110b1be790896e59':
  imgutils: make systematic palette opaque.

Conflicts:
libavutil/imgutils.c

See: 4d8c28deab2488579f585406110b1be790896e59
Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavformat/utils: set max analyze duration depending on the circumstances
Michael Niedermayer [Mon, 26 May 2014 20:10:41 +0000 (22:10 +0200)]
avformat/utils: set max analyze duration depending on the circumstances

Fixes Ticket3673

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavformat: move default for max_analyze_duration into utils.c
Michael Niedermayer [Mon, 26 May 2014 19:54:27 +0000 (21:54 +0200)]
avformat: move default for max_analyze_duration into utils.c

this way we can do better tha a single fixed constant value

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agolavfi/formats: avoid using AV_{PIX,SAMPLE}_FMT_NB
Anton Khirnov [Sat, 24 May 2014 09:15:15 +0000 (11:15 +0200)]
lavfi/formats: avoid using AV_{PIX,SAMPLE}_FMT_NB

Thatt hardcodes the number of formats into lavfi and will break when a
shared lavu is updated, adding new formats.

10 years agobuffersrc: avoid using AV_PIX_FMT_NB
Anton Khirnov [Sat, 24 May 2014 09:15:15 +0000 (11:15 +0200)]
buffersrc: avoid using AV_PIX_FMT_NB

That hardcodes the number of pixel formats into lavfi and will break
when a shared lavu is updated, adding new pixel formats.

10 years agovf_fieldorder: avoid using AV_PIX_FMT_NB
Anton Khirnov [Sat, 24 May 2014 09:15:15 +0000 (11:15 +0200)]
vf_fieldorder: avoid using AV_PIX_FMT_NB

That hardcodes the number of pixel formats into lavfi and will break
when a shared lavu is updated, adding new pixel formats.

10 years agovf_scale: use the pixfmt descriptor API
Anton Khirnov [Sat, 24 May 2014 09:15:15 +0000 (11:15 +0200)]
vf_scale: use the pixfmt descriptor API

Avoid using AV_PIX_FMT_NB, since that hardcodes the number of pixel
formats into lavfi and will break when a shared lavu is updated, adding
new pixel formats.

10 years agovf_format: rework format list parsing
Anton Khirnov [Sat, 24 May 2014 09:15:15 +0000 (11:15 +0200)]
vf_format: rework format list parsing

Avoid using AV_PIX_FMT_NB, since that hardcodes the number of pixel
formats into lavfi and will break when a shared lavu is updated, adding
new pixel formats.

10 years agoMAINTAINERS: add Trac maintainers
Lou Logan [Mon, 26 May 2014 20:18:29 +0000 (12:18 -0800)]
MAINTAINERS: add Trac maintainers

Signed-off-by: Lou Logan <lou@lrcd.com>
10 years agodoc/ffmpeg: note that -t is also an input option
Lou Logan [Mon, 7 Apr 2014 19:59:51 +0000 (11:59 -0800)]
doc/ffmpeg: note that -t is also an input option

Signed-off-by: Lou Logan <lou@lrcd.com>
10 years agoconfigure: s/solving/solve
Lou Logan [Mon, 26 May 2014 19:54:35 +0000 (11:54 -0800)]
configure: s/solving/solve

Signed-off-by: Lou Logan <lou@lrcd.com>
10 years agodoc: add a tutorial for writing filters.
Clément Bœsch [Sat, 3 May 2014 22:56:59 +0000 (00:56 +0200)]
doc: add a tutorial for writing filters.

10 years agoavcodec/g723_1: fix writing into input frame data and warning
Michael Niedermayer [Mon, 26 May 2014 18:37:34 +0000 (20:37 +0200)]
avcodec/g723_1: fix writing into input frame data and warning

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoWrite the actual mp3 frame size when muxing into caf if available.
Carl Eugen Hoyos [Mon, 26 May 2014 17:06:23 +0000 (19:06 +0200)]
Write the actual mp3 frame size when muxing into caf if available.

Fixes ticket #3648.

10 years agoMerge remote-tracking branch 'cigaes/master'
Michael Niedermayer [Mon, 26 May 2014 14:35:47 +0000 (16:35 +0200)]
Merge remote-tracking branch 'cigaes/master'

* cigaes/master:
  ffmpeg: use thread message API.
  lavu: add thread message API.
  compat/w32pthreads: add return value to pthread_cond_init().

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoconfigure: uClibc native pthread requires -ldl
Neil Armstrong [Mon, 26 May 2014 13:21:03 +0000 (15:21 +0200)]
configure: uClibc native pthread requires -ldl

In the configure script, add a pthread detection with
-ldl added to cflags, because uClibc requires -ldl to
link with native libpthread.

Tested with a custom ARM toolchain with uClibc 0.9.33.2 and gcc 4.6.3.

Signed-off-by: Neil Armstrong <narmstrong@neotion.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agox86: hpeldsp: propagate changes across codecs
Christophe Gisquet [Sun, 25 May 2014 17:03:10 +0000 (19:03 +0200)]
x86: hpeldsp: propagate changes across codecs

Some codecs still use mmx versions, so have them use the versions
with newer instruction sets.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoffmpeg: use thread message API.
Nicolas George [Thu, 20 Feb 2014 13:14:53 +0000 (14:14 +0100)]
ffmpeg: use thread message API.

10 years agolavu: add thread message API.
Nicolas George [Thu, 20 Feb 2014 13:14:34 +0000 (14:14 +0100)]
lavu: add thread message API.

10 years agocompat/w32pthreads: add return value to pthread_cond_init().
Nicolas George [Mon, 21 Apr 2014 09:14:22 +0000 (11:14 +0200)]
compat/w32pthreads: add return value to pthread_cond_init().

10 years agoavformat/mov: allow seeking back to the begin even if nothing is marked as keyframe
Michael Niedermayer [Sun, 25 May 2014 23:23:16 +0000 (01:23 +0200)]
avformat/mov: allow seeking back to the begin even if nothing is marked as keyframe

Fixes Ticket 3663

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agodoc/APIchanges: fix typo in date
Michael Niedermayer [Sun, 25 May 2014 23:22:29 +0000 (01:22 +0200)]
doc/APIchanges: fix typo in date

10 years agoupdate APIchanges & version for c37d179
Michael Niedermayer [Sun, 25 May 2014 22:20:07 +0000 (00:20 +0200)]
update APIchanges & version for c37d179

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavformat: add format_probesize to allow tuning the maximum amount of bytes to identif...
Michael Niedermayer [Mon, 27 Jan 2014 22:09:38 +0000 (23:09 +0100)]
avformat: add format_probesize to allow tuning the maximum amount of bytes to identify the filetype

Currently probesize is cliped at 1mb before being used for format detection.
Alternatively this cliping could be removed but this would then tie various
things like stream analysis to the file detection.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/sgirledec: fix () in RBG323_TO_BGR8() macro
Michael Niedermayer [Sun, 25 May 2014 21:08:51 +0000 (23:08 +0200)]
avcodec/sgirledec: fix () in RBG323_TO_BGR8() macro

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/rv34: Fix () in GET_PTS_DIFF() macro
Michael Niedermayer [Sun, 25 May 2014 19:42:19 +0000 (21:42 +0200)]
avcodec/rv34: Fix () in GET_PTS_DIFF() macro

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/psymodel: Fix () in AAC_CUTOFF() macro
Michael Niedermayer [Sun, 25 May 2014 19:41:57 +0000 (21:41 +0200)]
avcodec/psymodel: Fix () in AAC_CUTOFF() macro

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/proresenc_anatoliy: Fix () in macros
Michael Niedermayer [Sun, 25 May 2014 19:41:35 +0000 (21:41 +0200)]
avcodec/proresenc_anatoliy: Fix () in macros

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoRevert "x86: dsputilenc: convert ff_sse{8, 16}_mmx() to yasm"
Michael Niedermayer [Sun, 25 May 2014 17:42:18 +0000 (19:42 +0200)]
Revert "x86: dsputilenc: convert ff_sse{8, 16}_mmx() to yasm"

This reverts commit ad733089b024e4a3ff8f024d247a032f79a50ac8.

breaks with --disable-yasm
revert requested by: Christophe Gisquet <christophe.gisquet@gmail.com>

10 years agoavcodec/msvideo1enc: Fix () in MKRGB555() macro
Michael Niedermayer [Sun, 25 May 2014 17:26:37 +0000 (19:26 +0200)]
avcodec/msvideo1enc: Fix () in MKRGB555() macro

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/opus: Fix () in ROUND_MULL() macro
Michael Niedermayer [Sun, 25 May 2014 17:25:58 +0000 (19:25 +0200)]
avcodec/opus: Fix () in ROUND_MULL() macro

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/opus_celt: Fix () in CELT_PVQ_V macro
Michael Niedermayer [Sun, 25 May 2014 17:25:29 +0000 (19:25 +0200)]
avcodec/opus_celt: Fix () in CELT_PVQ_V macro

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/pngdec: fix () in OP_* macros
Michael Niedermayer [Sun, 25 May 2014 17:24:30 +0000 (19:24 +0200)]
avcodec/pngdec: fix () in OP_* macros

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agox86: dsputilenc: convert ff_sse{8, 16}_mmx() to yasm
Timothy Gu [Sat, 24 May 2014 00:18:09 +0000 (17:18 -0700)]
x86: dsputilenc: convert ff_sse{8, 16}_mmx() to yasm

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoconfigure: try to fix the disappearing "r" bug in fate
Michael Niedermayer [Sun, 25 May 2014 13:44:27 +0000 (15:44 +0200)]
configure: try to fix the disappearing "r" bug in fate

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit 'e0d01dc7d7fc3ce4c23f286a10870e9599c8b8b9'
Michael Niedermayer [Sun, 25 May 2014 11:07:27 +0000 (13:07 +0200)]
Merge commit 'e0d01dc7d7fc3ce4c23f286a10870e9599c8b8b9'

* commit 'e0d01dc7d7fc3ce4c23f286a10870e9599c8b8b9':
  smoothstream: check malloc calls

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/webvttenc: do not use EOVERFLOW.
Clément Bœsch [Sun, 25 May 2014 08:27:33 +0000 (10:27 +0200)]
avcodec/webvttenc: do not use EOVERFLOW.

According to doc/errno.txt EOVERFLOW is not available everywhere. The
use of -1 is consistent with avcodec/srtenc.c.

10 years agoimgutils: make systematic palette opaque.
Carl Eugen Hoyos [Fri, 23 Dec 2011 10:43:29 +0000 (11:43 +0100)]
imgutils: make systematic palette opaque.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years agoavcodec/mss4: Fix () in MKVAL() macro
Michael Niedermayer [Sun, 25 May 2014 03:19:09 +0000 (05:19 +0200)]
avcodec/mss4: Fix () in MKVAL() macro

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/mss34dsp: fix () in SOP* macros
Michael Niedermayer [Sun, 25 May 2014 03:18:47 +0000 (05:18 +0200)]
avcodec/mss34dsp: fix () in SOP* macros

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/mlpdec: fix () in MSB_MASK() macro
Michael Niedermayer [Sun, 25 May 2014 03:17:51 +0000 (05:17 +0200)]
avcodec/mlpdec: fix () in MSB_MASK() macro

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/ivi_dsp: add some missing () to macros
Michael Niedermayer [Sun, 25 May 2014 01:39:08 +0000 (03:39 +0200)]
avcodec/ivi_dsp: add some missing () to macros

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/hevc: fix () in macros
Michael Niedermayer [Sun, 25 May 2014 01:36:03 +0000 (03:36 +0200)]
avcodec/hevc: fix () in macros

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/h264_slice: fix macro ()
Michael Niedermayer [Sun, 25 May 2014 01:33:46 +0000 (03:33 +0200)]
avcodec/h264_slice: fix macro ()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/h264: fix () in macros
Michael Niedermayer [Sun, 25 May 2014 01:30:13 +0000 (03:30 +0200)]
avcodec/h264: fix () in macros

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/golomb-test: fix () in EXTEND() macro
Michael Niedermayer [Sun, 25 May 2014 01:27:56 +0000 (03:27 +0200)]
avcodec/golomb-test: fix () in EXTEND() macro

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/aac: fix () in IS_CODEBOOK_UNSIGNED macro
Michael Niedermayer [Sun, 25 May 2014 01:19:47 +0000 (03:19 +0200)]
avcodec/aac: fix () in IS_CODEBOOK_UNSIGNED macro

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/webvttenc: add webvtt encoder
Aman Gupta [Fri, 23 May 2014 04:20:34 +0000 (21:20 -0700)]
avcodec/webvttenc: add webvtt encoder

Based off the srt encoder. The following features are unimplemented:

- fonts, colors, sizes
- alignment and positioning

The rest works well. For example, use ffmpeg to convert subtitles into the .vtt format:

  ffmpeg -i input.srt output.vtt

Signed-off-by: Aman Gupta <ffmpeg@tmm1.net>
Signed-off-by: Clément Bœsch <u@pkh.me>
10 years agox86/dsputilenc: make the SUM_ABS_DCTELEM macro more readable
James Almer [Sat, 24 May 2014 23:30:42 +0000 (20:30 -0300)]
x86/dsputilenc: make the SUM_ABS_DCTELEM macro more readable

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/opusdec: check alignment, misalignment could lead to crashes with avx
Michael Niedermayer [Sat, 24 May 2014 22:38:20 +0000 (00:38 +0200)]
avcodec/opusdec: check alignment, misalignment could lead to crashes with avx

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agox86/dsputilenc: port sum_abs_dctelem functions to yasm
James Almer [Sat, 24 May 2014 04:30:28 +0000 (01:30 -0300)]
x86/dsputilenc: port sum_abs_dctelem functions to yasm

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/asvenc: dont use a negative global_quality
Michael Niedermayer [Sat, 24 May 2014 18:33:49 +0000 (20:33 +0200)]
avcodec/asvenc: dont use a negative global_quality

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/aacenc: dont use global quality if its negative
Michael Niedermayer [Sat, 24 May 2014 18:32:37 +0000 (20:32 +0200)]
avcodec/aacenc: dont use global quality if its negative

Some applications used a negative value as default for "not set"

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agox86: hpeldsp: implement SSSE3 version of _xy2
Christophe Gisquet [Thu, 22 May 2014 21:47:06 +0000 (23:47 +0200)]
x86: hpeldsp: implement SSSE3 version of _xy2

Loading pb_1 rather than pw_8192 was benchmarked to be more efficient.
Loading of the 2 yields no advantage. Loading of one saves ~11 cycles.

decicycles count:
put8:  3223(mmx)    -> 2387
avg8:  2863(mmxext) -> 2125
put16: 4356(sse2)   -> 3553
avg16: 4481(sse2)   -> 3513

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit '8692e6284f5169257a537c8fc25addf32fc67c87'
Michael Niedermayer [Sat, 24 May 2014 11:20:14 +0000 (13:20 +0200)]
Merge commit '8692e6284f5169257a537c8fc25addf32fc67c87'

* commit '8692e6284f5169257a537c8fc25addf32fc67c87':
  rdt: check malloc calls

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavformat/vobsub: do not create empty streams.
Clément Bœsch [Sat, 24 May 2014 09:03:23 +0000 (11:03 +0200)]
avformat/vobsub: do not create empty streams.

Fixes NULL dereference in vobsub_read_packet() on vobsub->q[i]->subs.

Fixes ticket #3669.

10 years agosmoothstream: check malloc calls
Nidhi Makhijani [Thu, 22 May 2014 10:50:05 +0000 (16:20 +0530)]
smoothstream: check malloc calls

Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years agordt: check malloc calls
Nidhi Makhijani [Fri, 23 May 2014 13:42:02 +0000 (19:12 +0530)]
rdt: check malloc calls

Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years agoAdd metadata injection to blackdetect
Billy Shambrook [Thu, 22 May 2014 20:48:41 +0000 (21:48 +0100)]
Add metadata injection to blackdetect

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agox86: hpeldsp: implement SSE2 put_pixels16_xy2
Christophe Gisquet [Thu, 22 May 2014 17:48:20 +0000 (17:48 +0000)]
x86: hpeldsp: implement SSE2 put_pixels16_xy2

This is obviously equivalent to the avg version, without the avg.

3223(mmx) -> 2006(sse2)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agox86: hpeldsp: implement SSE2 versions
Christophe Gisquet [Thu, 22 May 2014 17:48:19 +0000 (17:48 +0000)]
x86: hpeldsp: implement SSE2 versions

Those are mostly used in codecs older than H.264, eg MPEG-2.

put16 versions:
      mmx  mmx2  sse2
x2:  1888  1185   552
y2:  1778  1092   510

avg16 xy2: 3509(mmx2) -> 2169(sse2)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMAINTAINERS: remove myself as website maintainer
Lou Logan [Sat, 24 May 2014 00:08:28 +0000 (16:08 -0800)]
MAINTAINERS: remove myself as website maintainer

I never implemented the plans I had for the site, and I prefer to work
in other areas of the project.

Signed-off-by: Lou Logan <lou@lrcd.com>
10 years agox86/hevc_deblock: improve chroma functions register allocation
James Almer [Fri, 23 May 2014 03:37:24 +0000 (00:37 -0300)]
x86/hevc_deblock: improve chroma functions register allocation

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoffplay: support rotated video.
Clément Bœsch [Fri, 18 Apr 2014 21:15:54 +0000 (23:15 +0200)]
ffplay: support rotated video.

with -f lavfi -i testsrc=s=hd1080 as source:
  rotate=90*PI/180  vs transpose=clock:   42fps -> 64fps
  rotate=180*PI/180 vs vflip,hflip:       75fps -> 77fps
  rotate=270*PI/180 vs transpose=cclock:  43fps -> 63fps

10 years agoavformat/mov: use av_display_rotation_get() for rotate metadata.
Clément Bœsch [Tue, 20 May 2014 17:51:27 +0000 (19:51 +0200)]
avformat/mov: use av_display_rotation_get() for rotate metadata.

10 years agoavutil/display: use hypot().
Clément Bœsch [Tue, 20 May 2014 17:51:03 +0000 (19:51 +0200)]
avutil/display: use hypot().

10 years agox86/dsputil: fix argument declaration in vector_clipf
James Almer [Fri, 23 May 2014 18:11:40 +0000 (15:11 -0300)]
x86/dsputil: fix argument declaration in vector_clipf

Should fix fate failures in msvc x86_64

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agox86/dsputil: fix VECTOR_CLIP_INT32 macro
James Almer [Fri, 23 May 2014 07:05:43 +0000 (04:05 -0300)]
x86/dsputil: fix VECTOR_CLIP_INT32 macro

The inline loop was incrementing and using the value of %%i
the wrong way.

Disassembly of ff_vector_clip_int32_sse2 before and after
this patch:

    movdqa (%rdx),%xmm0      |  movdqa (%rdx),%xmm0
    movdqa 0x10(%rdx),%xmm1  |  movdqa 0x10(%rdx),%xmm1
    movdqa 0x20(%rdx),%xmm2  |  movdqa 0x20(%rdx),%xmm2
    movdqa 0x30(%rdx),%xmm3  |  movdqa 0x30(%rdx),%xmm3
[...]                        |
    movdqa %xmm0,(%rcx)      |  movdqa %xmm0,(%rcx)
    movdqa %xmm1,0x10(%rcx)  |  movdqa %xmm1,0x10(%rcx)
    movdqa %xmm2,0x20(%rcx)  |  movdqa %xmm2,0x20(%rcx)
    movdqa %xmm3,0x30(%rcx)  |  movdqa %xmm3,0x30(%rcx)
    movdqa (%rdx),%xmm0      |  movdqa 0x40(%rdx),%xmm0
    movdqa 0x20(%rdx),%xmm1  |  movdqa 0x50(%rdx),%xmm1
    movdqa 0x40(%rdx),%xmm2  |  movdqa 0x60(%rdx),%xmm2
    movdqa 0x60(%rdx),%xmm3  |  movdqa 0x70(%rdx),%xmm3
[...]                        |
    movdqa %xmm0,(%rcx)      |  movdqa %xmm0,0x40(%rcx)
    movdqa %xmm1,0x20(%rcx)  |  movdqa %xmm1,0x50(%rcx)
    movdqa %xmm2,0x40(%rcx)  |  movdqa %xmm2,0x60(%rcx)
    movdqa %xmm3,0x60(%rcx)  |  movdqa %xmm3,0x70(%rcx)
    add    $0x80,%rdx        |  add    $0x80,%rdx
    add    $0x80,%rcx        |  add    $0x80,%rcx

Other versions were unaffected.

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/dcadec: dont use hex float, msvc doesnt support it
Michael Niedermayer [Fri, 23 May 2014 20:33:55 +0000 (22:33 +0200)]
avcodec/dcadec: dont use hex float, msvc doesnt support it

Found-by: nevcairiel
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/dcadec: use a constant instead of assuming every compiler can optimize pow...
Michael Niedermayer [Fri, 23 May 2014 20:15:57 +0000 (22:15 +0200)]
avcodec/dcadec: use a constant instead of assuming every compiler can optimize pow(2,-15)

Idea-by: nevcairiel and wm4
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/dcadec: make dca_dmix_code() 650% faster
Michael Niedermayer [Fri, 23 May 2014 19:59:04 +0000 (21:59 +0200)]
avcodec/dcadec: make dca_dmix_code() 650% faster

This effectively replaces the ldexpf() function call by a multiplication
with a constant.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge remote-tracking branch 'cehoyos/master'
Michael Niedermayer [Fri, 23 May 2014 19:13:39 +0000 (21:13 +0200)]
Merge remote-tracking branch 'cehoyos/master'

* cehoyos/master:
  Refuse to mux H.264 with fourcc H264 into avi without startcode.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit '21f68c2489cba2a1a4a41d0c5c828266e6162800'
Michael Niedermayer [Fri, 23 May 2014 18:48:54 +0000 (20:48 +0200)]
Merge commit '21f68c2489cba2a1a4a41d0c5c828266e6162800'

* commit '21f68c2489cba2a1a4a41d0c5c828266e6162800':
  avcodec: bump version after rotation api

Conflicts:
libavcodec/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agodcadec: fix xxch_dmix_coeff and xxch_dmix_sf after merge
Michael Niedermayer [Fri, 23 May 2014 17:17:27 +0000 (19:17 +0200)]
dcadec: fix xxch_dmix_coeff and xxch_dmix_sf after merge

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit '6b7b8585d73548f08b98959df39d80b97677662f'
Michael Niedermayer [Fri, 23 May 2014 17:01:12 +0000 (19:01 +0200)]
Merge commit '6b7b8585d73548f08b98959df39d80b97677662f'

* commit '6b7b8585d73548f08b98959df39d80b97677662f':
  dca: Convert dca_dmixtable to integers

Conflicts:
libavcodec/dcadec.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec: bump version after rotation api
Vittorio Giovara [Tue, 20 May 2014 15:13:12 +0000 (11:13 -0400)]
avcodec: bump version after rotation api

Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
10 years agoRefuse to mux H.264 with fourcc H264 into avi without startcode.
Carl Eugen Hoyos [Fri, 23 May 2014 14:20:22 +0000 (16:20 +0200)]
Refuse to mux H.264 with fourcc H264 into avi without startcode.

Fixes ticket #3638.

10 years agodca: Convert dca_dmixtable to integers
Niels Möller [Tue, 6 May 2014 07:41:05 +0000 (09:41 +0200)]
dca: Convert dca_dmixtable to integers

Also include zero in the table, eliminating a special case in the
decoder.

Signed-off-by: Niels Möller <nisse@southpole.se>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years agox86/diracdsp: mark all functions as yasm
James Almer [Fri, 23 May 2014 03:33:27 +0000 (00:33 -0300)]
x86/diracdsp: mark all functions as yasm

No inline asm dirac code remains in the tree, so replace every relevant check.
This also moves all the dirac functions from dsputil_mmx.c to diracdsp_mmx.c

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavformat/mov: Dont blindly trust the stream duration in seting chapter times
Michael Niedermayer [Fri, 23 May 2014 02:39:55 +0000 (04:39 +0200)]
avformat/mov: Dont blindly trust the stream duration in seting chapter times

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavformat/utils: Check end time in avpriv_new_chapter()
Michael Niedermayer [Fri, 23 May 2014 02:33:05 +0000 (04:33 +0200)]
avformat/utils: Check end time in avpriv_new_chapter()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavformat/movenc: Check that packet duration is valid in ff_mov_write_packet()
Michael Niedermayer [Fri, 23 May 2014 01:59:32 +0000 (03:59 +0200)]
avformat/movenc: Check that packet duration is valid in ff_mov_write_packet()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>