summaryrefslogtreecommitdiff
path: root/libavfilter/vf_drawtext.c
Commit message (Collapse)AuthorAge
* 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
|
* AVOptions: rename FF_OPT_TYPE_* => AV_OPT_TYPE_*Anton Khirnov2011-10-12
|
* AVOptions: deprecate av_opt_set_defaults2Anton Khirnov2011-09-07
| | | | | | It's a hack which was created to allow for multiple options with different defaults to refer to same field (e.g. 'b' vs 'ab'). There is no need for it anymore.
* vf_drawtext: Remove some write-only variables.Diego Biurrun2011-07-07
| | | | | libavfilter/vf_drawtext.c:427:22: warning: variable 'dst_pixel' set but not used libavfilter/vf_drawtext.c:463:22: warning: variable 'dst_pixel' set but not used
* drawtext: add braces around initialisers for option defaultsStefano Sabatini2011-06-20
| | | | | | | | Fix warnings of the type: vf_drawtext.c:NNN: warning: missing braces around initializer vf_drawtext.c:NNN: warning: (near initialization for ‘drawtext_options[X].default_val’) Signed-off-by: Anton Khirnov <anton@khirnov.net>
* drawtext: reindent after the previous commitStefano Sabatini2011-06-20
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* drawtext: fix strftime() text expansionStefano Sabatini2011-06-20
| | | | | | | The feature was dropped after the filter was partially rewritten and recommitted. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* vf_drawtext: Replace FFmpeg by Libav in license boilerplate.Diego Biurrun2011-05-31
|
* drawtext: add shadow support.Michael Niedermayer2011-05-07
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* drawtext: factor draw_glyphs.Michael Niedermayer2011-05-07
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* drawtext: fix and optimize yuv blend.Michael Niedermayer2011-05-07
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* drawtext: get rid of divisions in the inner loop.Michael Niedermayer2011-05-07
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* drawtext: simplify chroma blend and fix chroma alpha.Michael Niedermayer2011-05-07
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavfi: Port drawtext filter by Hemanth from the libavfilter soc repoStefano Sabatini2011-05-07
With the following additions: * support to anti-aliased glyph rendering * support to UTF-8 text and Unicode chars rendering * support for RGB packed formats * fix minor errors and typos in the filter description * extend/clarify examples in the filter description Signed-off-by: Anton Khirnov <anton@khirnov.net>