Data Structures | |
| struct | gavl_overlay_t |
| Overlay structure. More... | |
Typedefs | |
| typedef struct gavl_overlay_blend_context_s | gavl_overlay_blend_context_t |
| Opaque blend context. | |
Functions | |
| gavl_overlay_blend_context_t * | gavl_overlay_blend_context_create () |
| Create a blend context. | |
| void | gavl_overlay_blend_context_destroy (gavl_overlay_blend_context_t *ctx) |
| Destroy a blend context and free all associated memory. | |
| gavl_video_options_t * | gavl_overlay_blend_context_get_options (gavl_overlay_blend_context_t *ctx) |
| Get options from a blend context. | |
| int | gavl_overlay_blend_context_init (gavl_overlay_blend_context_t *ctx, const gavl_video_format_t *frame_format, gavl_video_format_t *overlay_format) |
| Initialize the blend context. | |
| void | gavl_overlay_blend_context_set_overlay (gavl_overlay_blend_context_t *ctx, gavl_overlay_t *ovl) |
| Set a new overlay. | |
| void | gavl_overlay_blend (gavl_overlay_blend_context_t *ctx, gavl_video_frame_t *dst_frame) |
| Blend overlay onto video frame. | |
Note that gavl doesn't (and never will) support text subtitles. To blend text strings onto a video frame, you must render it into a gavl_overlay_t with some typesetting library (e.g. freetype) first.
| typedef struct gavl_overlay_blend_context_s gavl_overlay_blend_context_t |
Opaque blend context.
You don't want to know what's inside.
| gavl_overlay_blend_context_t* gavl_overlay_blend_context_create | ( | ) |
Create a blend context.
| void gavl_overlay_blend_context_destroy | ( | gavl_overlay_blend_context_t * | ctx | ) |
Destroy a blend context and free all associated memory.
| ctx | A blend context |
| gavl_video_options_t* gavl_overlay_blend_context_get_options | ( | gavl_overlay_blend_context_t * | ctx | ) |
Get options from a blend context.
| ctx | A blend context |
| int gavl_overlay_blend_context_init | ( | gavl_overlay_blend_context_t * | ctx, | |
| const gavl_video_format_t * | frame_format, | |||
| gavl_video_format_t * | overlay_format | |||
| ) |
Initialize the blend context.
| ctx | A blend context | |
| frame_format | The format of the destination frames | |
| overlay_format | The format of the overlays |
| void gavl_overlay_blend_context_set_overlay | ( | gavl_overlay_blend_context_t * | ctx, | |
| gavl_overlay_t * | ovl | |||
| ) |
Set a new overlay.
| ctx | A blend context | |
| ovl | An overlay |
| void gavl_overlay_blend | ( | gavl_overlay_blend_context_t * | ctx, | |
| gavl_video_frame_t * | dst_frame | |||
| ) |
Blend overlay onto video frame.
| ctx | A blend context | |
| dst_frame | Destination frame |
1.5.5