Revision cf1d794a libavcodec/ass.c

View differences:

libavcodec/ass.c
22 22
#include "avcodec.h"
23 23
#include "ass.h"
24 24

  
25
int ff_ass_subtitle_header(AVCodecContext *avctx,
26
                           const char *font, int font_size,
27
                           int color, int back_color,
28
                           int bold, int italic, int underline,
29
                           int alignment)
25
/**
26
 * Generate a suitable AVCodecContext.subtitle_header for SUBTITLE_ASS.
27
 *
28
 * @param avctx pointer to the AVCodecContext
29
 * @param font name of the default font face to use
30
 * @param font_size default font size to use
31
 * @param color default text color to use (ABGR)
32
 * @param back_color default background color to use (ABGR)
33
 * @param bold 1 for bold text, 0 for normal text
34
 * @param italic 1 for italic text, 0 for normal text
35
 * @param underline 1 for underline text, 0 for normal text
36
 * @param alignment position of the text (left, center, top...), defined after
37
 *                  the layout of the numpad (1-3 sub, 4-6 mid, 7-9 top)
38
 * @return >= 0 on success otherwise an error code <0
39
 */
40
static int ff_ass_subtitle_header(AVCodecContext *avctx,
41
                                  const char *font, int font_size,
42
                                  int color, int back_color,
43
                                  int bold, int italic, int underline,
44
                                  int alignment)
30 45
{
31 46
    char header[512];
32 47

  

Also available in: Unified diff