summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* x86: hpeldsp: implement SSE2 put_pixels16_xy2Christophe Gisquet2014-05-24
| | | | | | | | This is obviously equivalent to the avg version, without the avg. 3223(mmx) -> 2006(sse2) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* x86: hpeldsp: implement SSE2 versionsChristophe Gisquet2014-05-24
| | | | | | | | | | | | | 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>
* x86/hevc_deblock: improve chroma functions register allocationJames Almer2014-05-24
| | | | | Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* x86/dsputil: fix argument declaration in vector_clipfJames Almer2014-05-23
| | | | | | | Should fix fate failures in msvc x86_64 Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* x86/dsputil: fix VECTOR_CLIP_INT32 macroJames Almer2014-05-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* avcodec/dcadec: dont use hex float, msvc doesnt support itMichael Niedermayer2014-05-23
| | | | | Found-by: nevcairiel Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/dcadec: use a constant instead of assuming every compiler can ↵Michael Niedermayer2014-05-23
| | | | | | | optimize pow(2,-15) Idea-by: nevcairiel and wm4 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/dcadec: make dca_dmix_code() 650% fasterMichael Niedermayer2014-05-23
| | | | | | | This effectively replaces the ldexpf() function call by a multiplication with a constant. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge commit '21f68c2489cba2a1a4a41d0c5c828266e6162800'Michael Niedermayer2014-05-23
|\ | | | | | | | | | | | | | | | | | | * commit '21f68c2489cba2a1a4a41d0c5c828266e6162800': avcodec: bump version after rotation api Conflicts: libavcodec/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avcodec: bump version after rotation apiVittorio Giovara2014-05-23
| | | | | | | | Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* | dcadec: fix xxch_dmix_coeff and xxch_dmix_sf after mergeMichael Niedermayer2014-05-23
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '6b7b8585d73548f08b98959df39d80b97677662f'Michael Niedermayer2014-05-23
|\| | | | | | | | | | | | | | | | | | | * commit '6b7b8585d73548f08b98959df39d80b97677662f': dca: Convert dca_dmixtable to integers Conflicts: libavcodec/dcadec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * dca: Convert dca_dmixtable to integersNiels Möller2014-05-23
| | | | | | | | | | | | | | | | 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>
| * check: add libavcodec/vda_internal.h to SKIPHEADERS-$(CONFIG_VDA)Janne Grunau2014-05-20
| |
* | x86/diracdsp: mark all functions as yasmJames Almer2014-05-23
| | | | | | | | | | | | | | | | 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>
* | x86/dsputil: port ff_vector_clipf_sse to yasmJames Almer2014-05-23
| | | | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | x86: hpeldsp: avg_pixels_xy2 for mmx2&3dnowChristophe Gisquet2014-05-22
| | | | | | | | | | | | | | | | | | | | | | This is a port of the inline assembly of the mmx version to use the pavg(us|)b instruction. 8 16 mmx 1498 4355 mmx2 1242 3509 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | x86: hpeldsp: mark _xy2 versions as approximateChristophe Gisquet2014-05-22
| | | | | | | | | | | | | | | | | | | | Currently, only the mmx version is bitexact, the others (mmxext and 3dnow) are not, in spite of their naming. Therefore, make their name more obvious. Also restore a comment that was removed in 71155d7b. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | x86: hpeldsp: kill hpeldsp_mmx.cChristophe Gisquet2014-05-22
| | | | | | | | | | | | | | | | | | | | before: 1987 decicycles in 8_x2, 262121 runs, 23 skips after: 1902 decicycles in 8_x2, 262112 runs, 32 skips Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/proresdec2: Use av_malloc_array()Michael Niedermayer2014-05-22
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/pgssubdec: Use av_malloc(z)_array()Michael Niedermayer2014-05-22
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/vdpau_internal: move "struct vdpau_picture_context" up to avoid "#else"Michael Niedermayer2014-05-22
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Fix compilation error around struct visibility when VDPAU disabled.Dale Curtis2014-05-22
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | x86/dsputil: port ff_put_signed_pixels_clamped_mmx to yasmJames Almer2014-05-21
| | | | | | | | | | | | | | Also add an SSE2 version Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | x86/dsputil: port clear_block functions to yasmJames Almer2014-05-21
| | | | | | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com> Reviewed-by: Christophe Gisquet <christophe.gisquet@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/utils: add error message for the recode_subtitle() without iconv caseMichael Niedermayer2014-05-21
| | | | | | | | | | | | Based on the assert command which was removed in ef0c466a0fef4657d3f46cc9adea97e76a8e4faa Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Replace assert with AVERROR when recode_subtitle called w/o ICONV.Dale Curtis2014-05-21
| | | | | | | | | | | | | | | | recode_subtitle() is called implicitly by avformat_find_stream_info(). As such, clients which disable ICONV always crash if a file contains subtitles; even if they don't care about them. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/atrac3plusdec: Use av_mallocz_array()Michael Niedermayer2014-05-21
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/atrac3: Use av_mallocz_array()Michael Niedermayer2014-05-21
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/x86/hpeldsp_init: remove redundant if()Michael Niedermayer2014-05-21
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | hpeldsp: fix build without inline asmHendrik Leppkes2014-05-21
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | x86: kill fpel_mmx.cChristophe Gisquet2014-05-21
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/libvorbisenc: dont add the duration to AV_NOPTS_VALUEMichael Niedermayer2014-05-21
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Fix compilation errors when deprecated features are disabled.Dale Curtis2014-05-20
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/h264_picture: Fix build without error resilienceMichael Niedermayer2014-05-20
| | | | | | | | | | Found-by: Dale Curtis <dalecurtis@chromium.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/fate-idct8x8: Defined behavior: eliminate negative left-shifts.Katerina Barone-Adesi2014-05-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The original code left-shifts negative values, which is undefined in the C99 specification (the one used during normal FFmpeg compilation). This change multiplies by (1 << shift), which is functionally equivalent, but has defined behavior. With this change, fate-idct8x8 compiled with --fsanitize=undefined works. Bug-Id: 686 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> The assembly generated by gcc is unchanged by this commit
* | avcodec/smvjpegdec: Dont ignore avcodec_close() return codeMichael Niedermayer2014-05-20
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec: remove no longer needed ff_codec_close_recursive()Michael Niedermayer2014-05-20
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'lukaszmluki/master'Michael Niedermayer2014-05-20
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lukaszmluki/master: lavf/ftp: favour EPSV over PASV command lavf/audiointerleave: return more meaningful error codes lavf/audiointerleave: check for allocation failure lavf/audiointerleave: use av_fifo_alloc_array lavf/dvenc: use av_fifo_alloc_array lavc/flac_parser: use av_fifo_alloc_array lavc/frame_thread_encoder: use av_fifo_alloc_array lavfi/vf_fps: use av_fifo_alloc_array lavfi/buffersink: use av_fifo_alloc_array ffmpeg: use av_fifo_alloc_array lavd/jack_audio: use av_fifo_alloc_array lavu/fifo: add av_fifo_alloc_array function Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * | lavc/flac_parser: use av_fifo_alloc_arrayLukasz Marek2014-05-20
| | | | | | | | | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
| * | lavc/frame_thread_encoder: use av_fifo_alloc_arrayLukasz Marek2014-05-20
| | | | | | | | | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
* | | avcodec/dvdsubenc: accept forced flagOliver Fromme2014-05-20
|/ / | | | | | | | | Reviewed-by: Anshul <anshul.ffmpeg@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | x86/hevc_deblock: use constants instead of generating values at runtimeJames Almer2014-05-19
| | | | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/ppc/asm: fix build with ABI v2Thierry FAUCK2014-05-19
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavc: define STRIDE_ALIGN as 32 when compiling with AVX supportJames Almer2014-05-19
| | | | | | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com> Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/pthread_frame: remove unused variableMichael Niedermayer2014-05-19
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'bddd8cbf68551f6405b2bf77cc3e212af9fbe834'Michael Niedermayer2014-05-19
|\| | | | | | | | | | | | | | | | | | | | | | | * commit 'bddd8cbf68551f6405b2bf77cc3e212af9fbe834': Add transformation matrix API. Conflicts: libavcodec/avcodec.h libavcodec/utils.c libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Add transformation matrix API.Vittorio Giovara2014-05-19
| | | | | | | | | | | | | | | | | | | | | | Add AV_PKT_DATA_DISPLAYMATRIX and AV_FRAME_DATA_DISPLAYMATRIX as stream and frame side data (respectively) to describe a display transformation matrix for linear transformation operations on the decoded video. Add functions to easily extract a rotation angle from a matrix and conversely to setup a matrix for a given rotation angle. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | Merge commit '9929b3564c0dca42ed7baa6798ef15b6f0013c83'Michael Niedermayer2014-05-19
|\| | | | | | | | | | | | | | | | | | | * commit '9929b3564c0dca42ed7baa6798ef15b6f0013c83': pthread_frame: simplify the code by using new AVPacket API Conflicts: libavcodec/pthread_frame.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * pthread_frame: simplify the code by using new AVPacket APIAnton Khirnov2014-05-19
| | | | | | | | This also handles side data properly.