37 #define OFFSET(x) offsetof(TextContext, x)
38 #define SD AV_OPT_FLAG_SUBTITLE_PARAM | AV_OPT_FLAG_DECODING_PARAM
40 {
"keep_ass_markup",
"Set if ASS tags must be escaped",
OFFSET(keep_ass_markup),
AV_OPT_TYPE_INT, {.i64=0}, 0, 1, .flags=
SD },
50 const char *ptr = avpkt->
data;
53 const int ts_duration = avpkt->duration != -1 ?
57 if (ptr && avpkt->size > 0 && *ptr) {
64 *got_sub_ptr = sub->num_rects > 0;
68 #define DECLARE_CLASS(decname) static const AVClass decname ## _decoder_class = { \
69 .class_name = #decname " decoder", \
70 .item_name = av_default_item_name, \
71 .option = decname ## _options, \
72 .version = LIBAVUTIL_VERSION_INT, \
75 #if CONFIG_TEXT_DECODER
76 #define text_options options
87 .priv_class = &text_decoder_class,
91 #if CONFIG_VPLAYER_DECODER || CONFIG_PJS_DECODER || CONFIG_SUBVIEWER1_DECODER || CONFIG_STL_DECODER
100 #if CONFIG_VPLAYER_DECODER
101 #define vplayer_options options
111 .
init = linebreak_init,
112 .priv_class = &vplayer_decoder_class,
116 #if CONFIG_STL_DECODER
117 #define stl_options options
127 .
init = linebreak_init,
128 .priv_class = &stl_decoder_class,
132 #if CONFIG_PJS_DECODER
133 #define pjs_options options
143 .
init = linebreak_init,
144 .priv_class = &pjs_decoder_class,
148 #if CONFIG_SUBVIEWER1_DECODER
149 #define subviewer1_options options
152 AVCodec ff_subviewer1_decoder = {
153 .
name =
"subviewer1",
159 .
init = linebreak_init,
160 .priv_class = &subviewer1_decoder_class,