summaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_drawtext.c
Commit message (Collapse)AuthorAgeFilesLines
* lavfi/drawtext: Fix microsecond display.Carl Eugen Hoyos2016-01-031-1/+1
| | | | Fixes ticket #4792.
* lavfi/vf_drawtext: replace round by llrintGanesh Ajjanagadde2015-12-211-1/+1
| | | | | | llrint is at least as fast, and avoids an implicit cast. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* lavfi/drawtext: fix shadow[xy] descriptionsClément Bœsch2015-12-211-2/+2
|
* lavfi/drawtext: hide first font load warning when fontconfig is presentClément Bœsch2015-12-211-0/+2
|
* lavfi/drawtext: fix crash when no text, file or timecode providedClément Bœsch2015-12-211-6/+6
|
* avutil/tree: add additional const qualifier to the comparatorGanesh Ajjanagadde2015-10-241-1/+1
| | | | | | | | | | | | | libc's qsort comparator has a const qualifier on both arguments. This adds a missing const qualifier to exactly match the comparator API. Existing usages of av_tree_find, av_tree_insert are appropriately modified: type signature changes of the comparators, and removal of unnecessary void * casts of function pointers. Reviewed-by: Henrik Gramner <henrik@gramner.com> Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* all: remove some casts of function pointer to void *Ganesh Ajjanagadde2015-10-241-1/+1
| | | | | | | | | | These casts are unnecessary, and may safely be removed. Found by enabling -Wpedantic on clang 3.7. Tested with FATE. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* avfilter/drawtext: allow to format pts with strftimeAlex Agranovsky2015-10-121-1/+11
| | | | Signed-off-by: Alex Agranovsky <alex@sighthound.com>
* avfilter/drawtext: use AV_OPT_TYPE_BOOL for a few optionsClément Bœsch2015-09-081-5/+5
|
* Merge commit '9b2c57bef5e2f3f61a5fd708ba7d5351f5b3f386'Michael Niedermayer2015-04-211-5/+46
|\ | | | | | | | | | | | | | | | | | | | | * commit '9b2c57bef5e2f3f61a5fd708ba7d5351f5b3f386': drawtext: Add an alpha option Conflicts: doc/filters.texi libavfilter/vf_drawtext.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * drawtext: Add an alpha optionLuca Barbato2015-04-211-10/+38
| | | | | | | | | | | | And document both `draw` and `alpha`. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
| * Replace av_dlog with normal av_log at trace levelVittorio Giovara2015-04-191-1/+1
| | | | | | | | This applies to every library where performance is not critical.
| * lavfi: Increase drawtext font size limitsМихаил Муковников2014-12-071-1/+1
| | | | | | | | | | | | Raise the maximum font size to a larger value. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | avfilter/drawtext: fix frame mem leakIvan Efimov2015-04-141-2/+6
| | | | | | | | | | Signed-off-by: Ivan Efimov <ioefimov@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avfilter: handle error in query_formats() in bunch of filtersPaul B Mahol2015-04-081-2/+1
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | vf_drawtext: add support for setting box border widthMarton Balint2015-03-311-1/+4
| | | | | | | | | | Signed-off-by: Marton Balint <cus@passwd.hu> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avfilter/vf_drawtext: Change enums to int, which are accessed via AVOption ↵Michael Niedermayer2015-03-081-1/+1
| | | | | | | | | | | | as int This fixes depending on implementation defined behavior
* | avfilter/vf_drawtext: use gm_time_r() for thread safteyMichael Niedermayer2014-11-021-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '6b9b42cc5576e1819ad1e29d98940066fd14b2d6'Michael Niedermayer2014-10-261-7/+1
|\ \ | |/ | | | | | | | | | | | | | | | | * commit '6b9b42cc5576e1819ad1e29d98940066fd14b2d6': drawtext: Remove the ifdef for localtime_r Conflicts: libavfilter/vf_drawtext.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * drawtext: Remove the ifdef for localtime_rMartin Storsjö2014-10-261-3/+1
| | | | | | | | | | | | | | | | If it isn't available in the system, we've got a fallback to the normal localtime function, so normal code can assume it is available as long as time_internal.h is included. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit 'f401792595dd7760f531e8a3bd2336e9033bd45a'Michael Niedermayer2014-10-181-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | * commit 'f401792595dd7760f531e8a3bd2336e9033bd45a': vf_drawtext: Do not leak the mmapped textfile Conflicts: libavfilter/vf_drawtext.c See: 6956b048d8198dce5126c8942dece21cfb1a7978 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * vf_drawtext: Do not leak the mmapped textfileLuca Barbato2014-10-181-1/+4
| | | | | | | | | | | | | | And validate its size while at it. CC: libav-stable@libav.org Bug-Id: CID 1244189
* | avfilter: remove obsolete FF_API_DRAWTEXT_OLD_TIMELINE cruftJames Almer2014-10-121-44/+0
| |
* | vf_drawtext: add missing clear of pointers after av_expr_free()Karl Kiniger2014-10-111-0/+2
| | | | | | | | | | | | | | | | | | | | Fixes segfault when using sendcmd with drawtext. Since LIBAVFILTER_VERSION_MAJOR 5 FF_API_DRAWTEXT_OLD_TIMELINE evaluates to 0. Signed-off-by: Karl Kiniger <karl.kiniger@med.ge.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | vf_drawtext: move "static const" before "struct".Reimar Döffinger2014-08-311-2/+2
| | | | | | | | | | | | This is consistent with all other occurrences. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | Add missing "const" all over the place.Reimar Döffinger2014-08-291-1/+1
| | | | | | | | | | | | Only "./configure --enable-gpl" on x86 was tested. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | lavfi/drawtext: add alias "expr_int_format" to expansion function "eif"Andrey Utkin2014-07-181-1/+2
| | | | | | | | | | Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavfi/drawtext: add fontcolor_expr optionAndrey Utkin2014-07-171-5/+21
| | | | | | | | | | | | Allow to dynamically evaluate the font color. Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* | lavfi/drawtext: add expansion function eif()Andrey Utkin2014-07-171-0/+62
| | | | | | | | | | | | | | | | | | It evaluates expression and outputs it as integer value, using specified format. Address trac ticket #3699. Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* | avfilter/drawtext: Add basic text shaping using libfribidiMarc Jeffreys2014-07-161-6/+117
| | | | | | | | | | | | | | Fixes ticket #3758 Reviewed-by: Andrey Utkin <andrey.krieger.utkin@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avfilter/vf_drawtext: Add #if HAVE_UNISTD_H around #include <unistd.h>Michael Niedermayer2014-07-081-0/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavfi/drawtext: do not allocate FT_Glyph, but keep it in the Glyph structureStefano Sabatini2014-07-051-11/+9
| | | | | | | | Slightly simplify.
* | avfilter/vf_drawtext: fix resource leakLeandro Santiago2014-07-031-4/+7
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | drawtext: drop unused draw_glyphs() arg "rgbcolor"Andrey Utkin2014-06-221-4/+4
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavfi/drawtext: allow to format pts as HH:MM:SS.mmm.Nicolas George2014-04-291-2/+35
| |
* | avfilter/vf_drawtext: fix resource leaksMichael Niedermayer2014-04-271-1/+5
| | | | | | | | | | | | Fixes CID1206649 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '58400ac133bcfb6bf8196b4e5208bc178307739b'Michael Niedermayer2014-04-191-2/+2
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '58400ac133bcfb6bf8196b4e5208bc178307739b': lavfi: name anonymous structs Conflicts: libavfilter/buffersink.c libavfilter/f_select.c libavfilter/src_movie.c libavfilter/vf_drawbox.c libavfilter/vf_drawtext.c libavfilter/vf_overlay.c libavfilter/vf_showinfo.c libavfilter/vf_unsharp.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavfi: name anonymous structsVittorio Giovara2014-04-191-2/+2
| |
* | Merge commit 'f1b239ec8b38474d31f3bfea1f0b1693774fa432'Michael Niedermayer2014-04-171-38/+68
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | * commit 'f1b239ec8b38474d31f3bfea1f0b1693774fa432': drawtext: Add fontconfig support Conflicts: configure doc/filters.texi libavfilter/vf_drawtext.c See: 40b7a27bad8b8b35cb215bf4f4cba02a00d6f9e2 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * drawtext: Add fontconfig supportLuca Barbato2014-04-171-4/+96
| | | | | | | | | | | | Introduce the `font` option and make it optional to pass a fontfile. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
| * drawtext: Drop pointless headerLuca Barbato2014-01-061-1/+0
| | | | | | | | It should be forward compatible with newer freetype.
* | Fix compilation with msvc/icl due to missing header and define.Matt Oliver2014-02-031-1/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavfi/drawtext: fix reinit commandAndrey Utkin2014-02-021-0/+2
| | | | | | | | | | | | | | Problem was that reinit argument wasn't used. Regression came in at commit fd6228e65711e63a9e35e9a1087d7ce62040e6e3 Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* | lavfi/drawtext: add option for drawing border around textRamiro Polla2014-01-251-8/+45
| | | | | | | | | | Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavfi/drawtext: get bitmap from glyph in a separate stepRamiro Polla2014-01-251-4/+10
| | | | | | | | | | | | | | | | This change makes it possible to transform the glyph or get its border before turning it into a bitmap. Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | configure: Special case libfreetype testAlexander Strasser2013-12-081-1/+0
| | | | | | | | | | | | | | | | | | | | | | Include the freetype header, in-directly through a macro, like it is done in the drawtext filter. Do not break if the header is moved. Unfortunately the drawtext filter included the file where the include macros are defined in a wrong way. This is not needed and breaks the build. Remove that #include line too. Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-10-291-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: lavfi: do not export the filters from shared objects Conflicts: libavfilter/af_amix.c libavfilter/af_anull.c libavfilter/asrc_anullsrc.c libavfilter/f_select.c libavfilter/f_settb.c libavfilter/split.c libavfilter/src_movie.c libavfilter/vf_aspect.c libavfilter/vf_blackframe.c libavfilter/vf_colorbalance.c libavfilter/vf_copy.c libavfilter/vf_crop.c libavfilter/vf_cropdetect.c libavfilter/vf_drawbox.c libavfilter/vf_format.c libavfilter/vf_framestep.c libavfilter/vf_frei0r.c libavfilter/vf_hflip.c libavfilter/vf_libopencv.c libavfilter/vf_lut.c libavfilter/vf_null.c libavfilter/vf_overlay.c libavfilter/vf_scale.c libavfilter/vf_transpose.c libavfilter/vf_unsharp.c libavfilter/vf_vflip.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavfi: do not export the filters from shared objectsAnton Khirnov2013-10-281-1/+1
| |
* | avfilter/vf_drawtext: remove dead initializationPaul B Mahol2013-10-071-1/+1
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avfilter: various cosmeticsPaul B Mahol2013-09-121-11/+10
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
OpenPOWER on IntegriCloud