summaryrefslogtreecommitdiff
path: root/libpostproc/postprocess_template.c
Commit message (Collapse)AuthorAgeFilesLines
* postproc/postprocess_template: remove FF_REG_sp from clobber listMichael Niedermayer2018-12-221-1/+1
| | | | | | | Future gcc may no longer support this Tested-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* postproc/postprocess_template: Avoid using %4 for the threshold compareMichael Niedermayer2018-12-221-4/+4
| | | | | | | | This avoids problems if %4 is the stack pointer the constraints do not allow %4 to be the stack pointer but gcc 9 may no longer support specifying such constraints Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* postproc: remove usage of deprecated QP_STORE_T defineJames Almer2017-08-301-2/+2
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* asm: FF_-prefix internal macros used in inline assemblyMatthieu Bouron2016-06-271-322/+322
| | | | See merge commit '39d6d3618d48625decaff7d9bdbb45b44ef2a805'.
* avutil/x86/asm: rename REG_SP to REG_spGanesh Ajjanagadde2015-08-221-1/+1
| | | | | | | | | REG_SP is defined by Solaris system headers. This fixes a sea of warnings while building on Solaris: http://fate.ffmpeg.org/report.cgi?time=20150820233505&slot=x86-opensolaris-gcc4.3 Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Remove a few occurences of "long long" from the libraries.Carl Eugen Hoyos2015-06-131-1/+1
|
* postproc: Avoid floats in maxClipped computationMichael Niedermayer2015-05-311-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* postproc/postprocess_template: Compute packedYScale and QPCorrecture without ↵Michael Niedermayer2015-05-311-5/+5
| | | | | | floats Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* postproc: Made QP, nonBQP, and pQPb arraysTucker DiNapoli2015-04-221-43/+38
| | | | | | | | | | | | Also pulled QP initialization out of inner loop, which removed some redundent code. Added some dummy fields to PPContext to allow current code to work while changing the rest of the postprocessing code to support the arrays. I also increased alignment requirements for some fields in the PPContext struct to support future avx2 code. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* postproc: Replaced inline asm for prefetching with prefetch functionsTucker DiNapoli2015-04-221-55/+71
| | | | | | | | | | Prefetching functions are defined in postprocess_template using the RENAME macro so that prefetching is used when available. For x86 targets inline asm is used and the functions are non-empty only for cpus where prefetching is available. For non x86 targets the gcc bultin prefetch is used if it is available, otherwise no prefetching is done. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* postproc: Removed unecessary if/else branch when getting QP.Tucker DiNapoli2015-03-281-8/+4
| | | | | | | There's still an if, as QP needs to be modified if isColor=0, but it still removes a unecessary branch. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* postproc/postprocess_template: split 2nd blockgroup loop outMichael Niedermayer2015-03-231-1/+30
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* postproc/postprocess_template: split first part of block loopMichael Niedermayer2015-03-231-4/+12
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* postproc/postprocess_template: Move QP initialization downMichael Niedermayer2015-03-231-23/+22
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* postproc/postprocess_template: Remove dead code and commentsMichael Niedermayer2015-03-231-27/+0
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* bpostproc/postprocess_template: drop avoidable #ifdefMichael Niedermayer2015-03-231-3/+2
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* postproc/postprocess_template: split loop in 2 (block groups of 4, blocks)Michael Niedermayer2015-03-231-1/+5
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* postproc: add basic deblock filter visualization supportMichael Niedermayer2014-09-241-4/+10
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* postproc/postprocess_template: mark unchanged function arguments constMichael Niedermayer2014-09-221-5/+5
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* postproc: Replace CLIP by av_clip_uint8Michael Niedermayer2014-09-191-16/+16
| | | | | | drop "#define CLIP av_clip_uint8" Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* postproc: use FFMIN/FFMAX where appropriateMichael Niedermayer2014-09-041-4/+4
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Fix libpostproc compilation with !HAVE_6REGS.Carl Eugen Hoyos2014-04-241-15/+15
|
* Automatically change MANGLE() into named inline asm operands when direct ↵Matt Oliver2014-03-181-0/+7
| | | | | | | | symbol reference in inline asm are not supported. This is part of the patch-set for intel C inline asm on windows support Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* postprocess_template: put rsp on the clobber list to prevent gcc from using ↵Michael Niedermayer2013-06-161-1/+1
| | | | | | | | it in "q" Fixes Ticket2675 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* postproc/postprocess_template: remove empty commentsMichael Niedermayer2013-05-231-21/+21
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* libpostproc: silence valgrind/fate warning about using uninitialized dataMichael Niedermayer2013-03-251-1/+3
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Fix libpostproc compilation on x86_32 with disable-optimizations.Carl Eugen Hoyos2013-02-091-2/+2
|
* libpostproc: alloc a few bytes more in the temporary bufferMichael Niedermayer2012-12-281-1/+1
| | | | | | | | | This avoids dering reading 4 bytes prior the buffer (1 byte can be used) Fixes Ticket2057 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* libpostproc: Fix off by 1 error in the C dering codeMichael Niedermayer2012-12-281-0/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* pp: fix a few typo in the template.Clément Bœsch2012-12-191-5/+5
|
* pp: add SSE2 deInterlaceInterpolateCubic().Clément Bœsch2012-11-181-4/+27
| | | | | | 2124 decicycles in deInterlaceInterpolateCubic_C, 67100774 runs, 8090 skips 458 decicycles in deInterlaceInterpolateCubic_MMX2, 67107146 runs, 1718 skips 382 decicycles in deInterlaceInterpolateCubic_SSE2, 67107086 runs, 1778 skips
* pp: add support for SSE2.Clément Bœsch2012-11-181-0/+11
|
* pp: rework the way templating is done.Clément Bœsch2012-11-161-94/+140
| | | | | | | | | | | This refactoring simplifies the usage of the template: define the profile and include the template is all that is required. It should now be easier to add more instruction sets. The HAVE_* flags are changed with TEMPLATE_PP_* setting to avoid messing them up. See the top comment in postprocess_template.c for details.
* pp: fix typo in avg() comment.Clément Bœsch2012-11-151-1/+1
|
* pp: avoid overflow in w*hMichael Niedermayer2012-10-131-1/+1
| | | | | Fixes CID700580 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* postproc: Fix unprotected inline asmDerek Buitenhuis2012-09-111-83/+83
| | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* rename the remaining instances of HAVE_MMX2 to HAVE_MMXEXTXhmikosR2012-08-201-49/+49
| | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-08-091-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: mpegvideo: reduce excessive inlining of mpeg_motion() mpegvideo: convert mpegvideo_common.h to a .c file build: factor out mpegvideo.o dependencies to CONFIG_MPEGVIDEO Move MASK_ABS macro to libavcodec/mathops.h x86: move MANGLE() and related macros to libavutil/x86/asm.h x86: rename libavutil/x86_cpu.h to libavutil/x86/asm.h aacdec: Don't fall back to the old output configuration when no old configuration is present. rtmp: Add message tracking rtsp: Support mpegts in raw udp packets rtsp: Support receiving plain data over UDP without any RTP encapsulation rtpdec: Remove an unused include rtpenc: Remove an av_abort() that depends on user-supplied data vsrc_movie: discourage its use with avconv. avconv: allow no input files. avconv: prevent invalid reads in transcode_init() avconv: rename OutputStream.is_past_recording_time to finished. Conflicts: configure doc/filters.texi ffmpeg.c ffmpeg.h libavcodec/Makefile libavcodec/aacdec.c libavcodec/mpegvideo.c libavformat/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Remove libpostproc.Diego Biurrun2012-02-231-3634/+0
| | | | | | | | | | | | | | | | This library does not fit into Libav as a whole and its code is just a maintenance burden. Furthermore it is now available as an external project, which completely obviates any reason to keep it around. URL: http://git.videolan.org/?p=libpostproc.git
* | libpostproc: fix out of array accesses detected by AddressSanitizer.Michael Niedermayer2012-02-291-2/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-01-051-2/+3
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (46 commits) mtv: Make sure audio_subsegments is not 0 v4l2: use V4L2_FMT_FLAG_EMULATED only if it is defined avconv: add symbolic names for -vsync parameters flvdec: Fix compiler warning for uninitialized variables rtsp: Fix compiler warning for uninitialized variable ulti: convert to new bytestream API. swscale: Use standard multiple inclusion guards in ppc/ header files. Place some START_TIMER invocations in separate blocks. v4l2: list available formats v4l2: set the proper codec_tag v4l2: refactor device_open v4l2: simplify away io_method v4l2: cosmetics v4l2: uniform and format options v4l2: do not force interlaced mode avio: exit early in fill_buffer without read_packet vc1dec: fix invalid memory access for small video dimensions rv34: fix invalid memory access for small video dimensions rv34: joint coefficient decoding and dequantization avplay: Don't call avio_set_interrupt_cb(NULL) ... Conflicts: Changelog avconv.c doc/APIchanges doc/indevs.texi libavcodec/adxenc.c libavcodec/dnxhdenc.c libavcodec/h264.c libavdevice/v4l2.c libavformat/flvdec.c libavformat/mtv.c libswscale/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Place some START_TIMER invocations in separate blocks.Diego Biurrun2012-01-041-2/+3
| | | | | | | | | | | | This fixes compilation failures related to START_TIMER/STOP_TIMER macros and -Werror=declaration-after-statement. START_TIMER declares variables and thus may not be placed after statements outside of a new block.
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-01-031-2/+2
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: mpegenc: use avctx->slices as number of slices v410enc: fix undefined signed left shift caused by integer promotion Release notes: mention cleaned up header includes fix Changelog file Fix a bunch of typos. Drop some pointless void* return value casts from av_malloc() invocations. wavpack: fix typos in previous cosmetic clean-up commit wavpack: cosmetics: K&R pretty-printing avconv: remove the 'codec framerate is different from stream' warning wavpack: determine sample_fmt before requesting a buffer bmv audio: implement new audio decoding API mpegaudiodec: skip all channels when skipping granules mpegenc: simplify muxrate calculation Conflicts: Changelog avconv.c doc/RELEASE_NOTES libavcodec/h264.c libavcodec/mpeg12.c libavcodec/mpegaudiodec.c libavcodec/mpegvideo.c libavformat/mpegenc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Fix a bunch of typos.Diego Biurrun2012-01-021-2/+2
| |
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-12-221-1/+2
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (27 commits) asfdec: add side data to ASFStream packet instead of output packet. idroqdec: set AVFMTCTX_NOHEADER and create streams as they occur. nellymoserdec: Indicate that the decoder can handle changed parameters libavcodec: Apply parameter change side data when decoding audio flvdec: Add param change side data if the sample rate or channels have changed libavformat: Add a utility function for adding parameter change side data libavcodec: Define a side data type for parameter changes aacdec: Handle new extradata passed as side data flvdec: Export new AAC/H.264 extradata as side data on the next packet libavcodec: Define a side data type for new extradata flacdec: skip all track indices at once instead of looping. mxf: Add PictureEssenceCoding UL for V210. mxfdec: consider QuantizationBits between 17 and 24 to be pcm_s24* mxfenc: Add support for MPEG-2 MP@HL-14 in mxf container. mxf: H.264/MPEG-4 AVC Intra support configure: Show whether the safe bitstream reader is enabled x86: Tighten register constraints for decode_significance*_x86. Replace Subversion revisions in comments by Git hashes. h264_cabac: synchronize decode_significance_*_x86 conditionals w32threads: wait for the waked thread in pthread_cond_signal. ... Conflicts: libavcodec/avcodec.h libavcodec/version.h libavformat/flvdec.c libavformat/utils.c tests/ref/lavfi/pixdesc tests/ref/lavfi/pixfmts_copy tests/ref/lavfi/pixfmts_null tests/ref/lavfi/pixfmts_scale tests/ref/lavfi/pixfmts_vflip Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * postproc: altivec: fix trivial cases of mixed declarations and codeMans Rullgard2011-12-211-1/+2
| | | | | | | | | | | | | | | | This moves declarations without initialisers or with constant initialisers to the start of a block, and adds do {} while(0) around some macros, thus allowing declarations within them. Signed-off-by: Mans Rullgard <mans@mansr.com>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-12-131-2/+2
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: doxygen: misc consistency, spelling and wording fixes vcr1: drop unnecessary emms_c() calls without MMX code Replace all uses of av_close_input_file() with avformat_close_input(). lavf: add avformat_close_input(). lavf: deprecate av_close_input_stream(). lavf doxy: add some basic demuxing documentation. lavf doxy: add some general lavf information. lavf doxy: add misc utility functions to a group. lavf doxy: add av_guess_codec/format to the encoding group. lavf doxy: add core functions to a doxy group. Add basic libavdevice documentation. lavc: convert error_recognition to err_recognition. avconv: update -map option help text x86: Require 7 registers for the cabac asm x86: bswap: remove test for bswap instruction bswap: make generic implementation more compiler-friendly h264: remove useless cast proresdec: fix decode_slice() prototype Conflicts: configure doc/APIchanges ffprobe.c libavcodec/avcodec.h libavcodec/celp_math.h libavcodec/h264.c libavfilter/src_movie.c libavformat/anm.c libavformat/avformat.h libavformat/version.h libavutil/avstring.h libavutil/bswap.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * doxygen: misc consistency, spelling and wording fixesDiego Biurrun2011-12-121-2/+2
| |
| * Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
| | | | | | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* | postproc: remove stray +Michael Niedermayer2011-10-301-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>