summaryrefslogtreecommitdiff
path: root/libpostproc/postprocess.c
Commit message (Collapse)AuthorAge
* lib*/version: Move library version functions into files of their ownAndreas Rheinhardt2022-05-10
| | | | | | | This avoids having to rebuild big files every time FFMPEG_VERSION changes (which it does with every commit). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* libpostproc: Split version.hMartin Storsjö2022-03-16
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* avcodec/avcodec: Don't include cpu.hAndreas Rheinhardt2021-07-22
| | | | | | | It is not used here at all; instead, add it where it is used without including it or any of the arch-specific CPU headers. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* libavcodec, libpostproc: Remove outcommented START/STOP_TIMERAndreas Rheinhardt2020-03-14
| | | | | | | as well as includes of libavutil/timer.h. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Silence "string-plus-int" warning shown by clang.Carl Eugen Hoyos2020-01-06
| | | | libswscale/utils.c:89:42: warning: adding 'unsigned long' to a string does not append to the string [-Wstring-plus-int]
* postproc: remove usage of deprecated QP_STORE_T defineJames Almer2017-08-30
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* Merge commit 'ea7ee4b4e381e0fa731458de0cbf740430eeb013'Clément Bœsch2017-04-26
|\ | | | | | | | | | | | | * commit 'ea7ee4b4e381e0fa731458de0cbf740430eeb013': ppc: Centralize compiler-specific altivec.h #include handling in one place Merged-by: Clément Bœsch <u@pkh.me>
* | postproc: fix unaligned accessCarl Eugen Hoyos2016-02-23
| | | | | | | | | | Based on 59074310 by Andreas Cadhalpun. Fixes ticket #5259.
* | postproc: fix unaligned accessAndreas Cadhalpun2015-06-19
| | | | | | | | | | | | | | | | | | | | QP_store is only 8-bit-aligned, so accessing it as uint32_t causes SIGBUS crashes on sparc. The AV_RN32/AV_WN32 macros only do unaligned access in the HAVE_FAST_UNALIGNED case. Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* | postproc: Avoid floats in maxClipped computationMichael Niedermayer2015-05-31
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | postproc/postprocess: Use size_t to hold strlen()s valueMichael Niedermayer2015-05-10
| | | | | | | | | | | | This should make no difference but its more correct Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | postproc: Replaced inline asm for prefetching with prefetch functionsTucker DiNapoli2015-04-22
| | | | | | | | | | | | | | | | | | | | 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: mark alloc/free context functions as av_coldMichael Niedermayer2015-02-27
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | postproc/postprocess: Check for av_malloc() failureMichael Niedermayer2015-02-22
| | | | | | | | | | | | Fixes CID1271052 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | postproc/postprocess: Check for av_mallocz() failureMichael Niedermayer2015-02-22
| | | | | | | | | | | | Fixes CID1271050 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | postproc/postprocess: use av_mallocz()Michael Niedermayer2015-02-22
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Add FFMPEG_VERSION into the binary libsMichael Niedermayer2014-12-19
| | | | | | | | | | | | This simplifies identifying from which revision a binary of a lib came from Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | postproc: fix qp countMichael Niedermayer2014-10-13
| | | | | | | | | | Found-by: ubitux Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libpostproc: support grayscaleMichael Niedermayer2014-10-13
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | postproc/postprocess: fix quant store for fq modeMichael Niedermayer2014-10-12
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | postproc: add basic deblock filter visualization supportMichael Niedermayer2014-09-24
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | postprocess: prefetch* dont change anything, thus their arguments should be ↵Michael Niedermayer2014-09-22
| | | | | | | | | | | | const Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | postproc/postprocess: Avoid some ifs in do_a_deblock_C()Michael Niedermayer2014-09-19
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | postproc/postprocess: remove redundant castsMichael Niedermayer2014-09-18
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | postproc/postprocess: Use FF_ARRAY_ELEMS() in pp_free_context() instead of ↵Michael Niedermayer2014-09-18
| | | | | | | | | | | | hard-coding their size Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | postproc/postprocess: Remove unused argument from reallocAlign()Michael Niedermayer2014-09-18
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | postproc/postprocess: use av_strtok()Michael Niedermayer2014-09-18
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | postprocess: make some variables in pp_get_mode_by_name_and_quality() constMichael Niedermayer2014-09-18
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | postproc: simplify forwarding return codesMichael Niedermayer2014-09-18
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libpostproc/postprocess: avoid some if()Michael Niedermayer2014-09-18
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | postproc: use FFMIN/FFMAX where appropriateMichael Niedermayer2014-09-04
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Add missing "const" all over the place.Reimar Döffinger2014-08-29
| | | | | | | | | | | | Only "./configure --enable-gpl" on x86 was tested. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | Drop remaining unneeded != NULLMichael Niedermayer2014-08-15
| | | | | | | | | | Reviewed-by: Clément Bœsch <u@pkh.me> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'f929ab0569ff31ed5a59b0b0adb7ce09df3fca39'Michael Niedermayer2014-08-15
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'f929ab0569ff31ed5a59b0b0adb7ce09df3fca39': cosmetics: Write NULL pointer equality checks more compactly Conflicts: cmdutils.c ffmpeg_opt.c ffplay.c libavcodec/dvbsub.c libavcodec/dvdsubdec.c libavcodec/dvdsubenc.c libavcodec/dxa.c libavcodec/libxvid_rc.c libavcodec/mpegvideo.c libavcodec/mpegvideo_enc.c libavcodec/rv10.c libavcodec/tiffenc.c libavcodec/utils.c libavcodec/vc1dec.c libavcodec/zmbv.c libavdevice/v4l2.c libavformat/matroskadec.c libavformat/movenc.c libavformat/sdp.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Remove libpostproc.Diego Biurrun2012-02-23
| | | | | | | | | | | | | | | | 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
* | postproc: fix null pointer dereference with invalid option stringsMichael Niedermayer2013-12-11
| | | | | | | | | | Fixes CID1135760 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavfi/pp: switch to an AVOptions-based system.Clément Bœsch2013-04-10
| | | | | | | | | | Also add and use the '|' separator instead of ':' since it's incompatible with the new option system...
* | build: postproc cleanup.Clément Bœsch2012-12-30
| | | | | | | | | | This reverts 79f80f5c, moves postproc along with the other libraries, and fix the postproc dependency to libavutil.
* | libpostproc: alloc a few bytes more in the temporary bufferMichael Niedermayer2012-12-28
| | | | | | | | | | | | | | | | | | 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 leak of 2kbMichael Niedermayer2012-12-23
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | pp: add support for SSE2.Clément Bœsch2012-11-18
| |
* | pp: add auto detection cpu flag.Clément Bœsch2012-11-18
| |
* | pp: add various const for pointers.Clément Bœsch2012-11-18
| |
* | pp: simplify postProcess().Clément Bœsch2012-11-16
| |
* | pp: rework the way templating is done.Clément Bœsch2012-11-16
| | | | | | | | | | | | | | | | | | | | | | 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.
* | postproc: Fix unprotected inline asmDerek Buitenhuis2012-09-11
| | | | | | | | | | 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-20
| | | | | | | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | pp: check that the argument is not NULL as this is not supportedMichael Niedermayer2012-07-07
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | postprocess: fix another void returning void function.Michael Niedermayer2012-06-10
| | | | | | | | | | | | lets hope this makes suncc happy finally ... Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libpostproc: add bitexact mode, which is needed for regression testing.Michael Niedermayer2012-02-29
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>