~ppsspp/ppsspp/ffmpeg

« back to all changes in this revision

Viewing changes to libavcodec/ass.h

  • Committer: Henrik Rydgård
  • Date: 2014-01-03 10:44:32 UTC
  • Revision ID: git-v1:87c6c126784b1718bfa448ecf2e6a9fef781eb4e
Update our ffmpeg snapshot to a clone of the official repository.

This is because Maxim's at3plus support has been officially merged!

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#define AVCODEC_ASS_H
24
24
 
25
25
#include "avcodec.h"
 
26
#include "libavutil/bprint.h"
26
27
 
27
28
/**
28
29
 * @name Default values for ASS style
90
91
int ff_ass_add_rect(AVSubtitle *sub, const char *dialog,
91
92
                    int ts_start, int duration, int raw);
92
93
 
 
94
/**
 
95
 * Add an ASS dialog line to an AVBPrint buffer.
 
96
 *
 
97
 * @param buf pointer to an initialized AVBPrint buffer
 
98
 * @param dialog ASS dialog to add to sub
 
99
 * @param ts_start start timestamp for this dialog (in 1/100 second unit)
 
100
 * @param duration duration for this dialog (in 1/100 second unit), can be -1
 
101
 *                 to last until the end of the presentation
 
102
 * @param raw when set to 2, it indicates that dialog contains an ASS
 
103
 *                           dialog line as muxed in Matroska
 
104
 *            when set to 1, it indicates that dialog contains a whole SSA
 
105
 *                           dialog line which should be copied as is.
 
106
 *            when set to 0, it indicates that dialog contains only the Text
 
107
 *                           part of the ASS dialog line, the rest of the line
 
108
 *                           will be generated.
 
109
 * @return number of characters read from dialog. It can be less than the whole
 
110
 *         length of dialog, if dialog contains several lines of text.
 
111
 *         A negative value indicates an error.
 
112
 */
 
113
int ff_ass_bprint_dialog(AVBPrint *buf, const char *dialog,
 
114
                         int ts_start, int duration, int raw);
 
115
 
 
116
/**
 
117
 * Escape a text subtitle using ASS syntax into an AVBPrint buffer.
 
118
 * Newline characters will be escaped to \N.
 
119
 *
 
120
 * @param buf pointer to an initialized AVBPrint buffer
 
121
 * @param p source text
 
122
 * @param size size of the source text
 
123
 * @param linebreaks additional newline chars, which will be escaped to \N
 
124
 * @param keep_ass_markup braces and backslash will not be escaped if set
 
125
 */
 
126
void ff_ass_bprint_text_event(AVBPrint *buf, const char *p, int size,
 
127
                             const char *linebreaks, int keep_ass_markup);
93
128
#endif /* AVCODEC_ASS_H */