X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fass_split.h;h=abb6e58f14b4d47d2d0b65d537859a2b35ff846a;hb=3ab178516ec85e7cf524f8c2e0791c5f000b532c;hp=defb5ccd7451ea12fc0132df8baa4e203fee3284;hpb=33215d3c4898165a9535f5dc3cdd40f7f041f3f3;p=ffmpeg diff --git a/libavcodec/ass_split.h b/libavcodec/ass_split.h index defb5ccd745..abb6e58f14b 100644 --- a/libavcodec/ass_split.h +++ b/libavcodec/ass_split.h @@ -69,6 +69,7 @@ typedef struct { * fields extracted from the [Events] section */ typedef struct { + int readorder; int layer; /**< higher numbered layers are drawn over lower numbered */ int start; /**< start time of the dialog in centiseconds */ int end; /**< end time of the dialog in centiseconds */ @@ -124,6 +125,20 @@ ASSSplitContext *ff_ass_split(const char *buf); ASSDialog *ff_ass_split_dialog(ASSSplitContext *ctx, const char *buf, int cache, int *number); +/** + * Free a dialogue obtained from ff_ass_split_dialog2(). + */ +void ff_ass_free_dialog(ASSDialog **dialogp); + +/** + * Split one ASS Dialogue line from a string buffer. + * + * @param ctx Context previously initialized by ff_ass_split(). + * @param buf String containing the ASS "Dialogue" line. + * @return Pointer to the split ASSDialog. Must be freed with ff_ass_free_dialog() + */ +ASSDialog *ff_ass_split_dialog2(ASSSplitContext *ctx, const char *buf); + /** * Free all the memory allocated for an ASSSplitContext. *