summaryrefslogtreecommitdiff
path: root/libavfilter/vf_drawtext.c
Commit message (Collapse)AuthorAge
* drawtext: Move the strftime expansion in a separate functionLuca Barbato2015-08-02
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* drawtext: Drop stray guardsLuca Barbato2015-08-02
| | | | | | There is a fallback for localtime_r and it is in use already. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* drawtext: Add an alpha optionLuca Barbato2015-04-21
| | | | | | 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-19
| | | | This applies to every library where performance is not critical.
* lavfi: Increase drawtext font size limitsМихаил Муковников2014-12-07
| | | | | | Raise the maximum font size to a larger value. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* drawtext: Remove the ifdef for localtime_rMartin Storsjö2014-10-26
| | | | | | | | 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>
* vf_drawtext: Do not leak the mmapped textfileLuca Barbato2014-10-18
| | | | | | | And validate its size while at it. CC: libav-stable@libav.org Bug-Id: CID 1244189
* lavfi: name anonymous structsVittorio Giovara2014-04-19
|
* drawtext: Add fontconfig supportLuca Barbato2014-04-17
| | | | | | 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-06
| | | | It should be forward compatible with newer freetype.
* lavfi: do not export the filters from shared objectsAnton Khirnov2013-10-28
|
* vf_drawtext: don't leak the expressions.Anton Khirnov2013-05-17
|
* vf_drawtext: do not reset the frame number in config_input.Anton Khirnov2013-05-17
| | | | | Frame number should be incremented normally even if the link properties change.
* vf_drawtext: use the name 's' for the pointer to the private contextAnton Khirnov2013-05-16
| | | | This is shorter and consistent across filters.
* lavfi: remove now unused args parameter from AVFilter.initAnton Khirnov2013-04-09
|
* vf_drawtext: switch to an AVOptions-based system.Anton Khirnov2013-04-09
|
* lavfi: switch to AVFrame.Anton Khirnov2013-03-08
| | | | | Deprecate AVFilterBuffer/AVFilterBufferRef and everything related to it and use AVFrame instead.
* Remove pointless #undefs of previously forbidden functions.Anton Khirnov2012-12-04
|
* lavfi: merge start_frame/draw_slice/end_frameAnton Khirnov2012-11-28
| | | | | Any alleged performance benefits gained from the split are purely mythological and do not justify added code complexity.
* vf_drawtext: do not use deprecated av_tree_node_sizeAnton Khirnov2012-11-02
|
* lavfi: do not use av_pix_fmt_descriptors directly.Anton Khirnov2012-10-12
|
* lavfi: convert input/ouput list compound literals to named objectsMans Rullgard2012-10-10
| | | | | | | A number of compilers, for example those from TI and IBM, choke on these initialisers. The current style is also quite ugly. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormatAnton Khirnov2012-10-08
|
* avopt: Store defaults for AV_OPT_TYPE_INT in the i64 union memberMartin Storsjö2012-09-04
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* avopt: Store defaults for AV_OPT_TYPE_FLAGS in the i64 union memberMartin Storsjö2012-09-04
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* avopt: Store defaults for AV_OPT_TYPE_CONST in the i64 union memberMartin Storsjö2012-09-04
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Add more missing includes after removing the implicit common.hMartin Storsjö2012-08-16
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* lavfi: add error handling to end_frame().Anton Khirnov2012-07-22
|
* lavfi: add error handling to draw_slice().Anton Khirnov2012-07-22
|
* lavfi: add error handling to start_frame().Anton Khirnov2012-07-22
|
* lavfi: use const for AVFilterPad declarations in all filters.Ronald S. Bultje2012-07-21
|
* lavfi: unref AVFilterLink.cur_buf in ff_end_frame().Anton Khirnov2012-07-20
| | | | | This reduces code duplication and prevents stale pointers from remaining on the link.
* vf_drawtext: don't give up its own reference to the input buffer.Anton Khirnov2012-07-20
| | | | | | Directly forwarding the input buffer to the next filter means that drawtext no longer owns any references to it and thus shouldn't refer to it in any way.
* lavfi: remove 'opaque' parameter from AVFilter.init()Anton Khirnov2012-06-26
| | | | | | It is not used in any filters currently and is inherently evil. If passing binary data to filters is required in the future, it should be done with some AVOptions-based system.
* lavfi: make AVFilterPad opaque after two major bumps.Anton Khirnov2012-06-13
| | | | It will allow adding new fields to it without ABI breaks.
* lavfi: remove request/poll and drawing functions from public API on next bumpAnton Khirnov2012-06-05
| | | | | They are only useful inside filters and we don't allow user filters for now.
* lavfi: make formats API private on next bump.Anton Khirnov2012-06-05
| | | | | It is only useful inside filters and we don't allow user filters for now.
* lavfi: remove avfilter_null_* from public API on next bump.Anton Khirnov2012-05-22
| | | | | Those functions are only useful inside filters. It is better to not support user filters until the API is more stable.
* Mark mutable static data const where appropriate.Alex Converse2012-02-21
|
* drawtext: add 'fix_bounds' option on coords fixingAndrey Utkin2012-02-06
| | | | | | | | | | Before, drawtext filter deliberately altered given text coordinates if text didn't fully fit on the picture. This breaks the use case of scrolling large text, e.g. movie closing credits. Add 'fix_bounds', to make it usable in such cases (by setting its value to 0). Default behavior is not changed, and non-fitting text coords are fixed. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* drawtext: fix text_{w, h} expression varsAndrey Utkin2012-02-06
| | | | | | Before, {text_,}{w,h} vars hadn't got initialized Signed-off-by: Anton Khirnov <anton@khirnov.net>
* drawtext: add missing braces around an if() block.Andrey Utkin2012-02-05
| | | | | | Prevents uninitialized read. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* cosmetics: Drop unnecessary parentheses around return values.Diego Biurrun2011-12-30
|
* drawtext: remove typoLuca Barbato2011-12-07
| | | | It slipped through the last two iterations.
* drawtext: introduce rand(min, max)Luca Barbato2011-12-07
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* drawtext: introduce explicit draw/hide variableLuca Barbato2011-12-07
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* drawtext: make x and y parametricLuca Barbato2011-12-03
| | | | | | Introduce variables "E", "PHI", "PI", "main_w"/"W", "main_h"/"H", "text_w"/"w", "text_h"/"h", "x", "y", "n" and "t" in line with vf_overlay and refactor the code accordingly.
* drawtext: manage memory allocation betterLuca Barbato2011-12-03
| | | | | Call dtext_prepare_text as early as possible Do not draw if the memory allocation failed
* drawtext: refactor draw_textLuca Barbato2011-12-03
| | | | Split the memory allocation from the actual drawing.
* Remove some stray unnecessary ffmpeg references.Diego Biurrun2011-11-02
|