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 },
 
   49     const char *ptr = avpkt->
data;
 
   52     const int ts_duration  = avpkt->duration != -1 ?
 
   56     if (ptr && avpkt->size > 0 && *ptr) {
 
   64     *got_sub_ptr = sub->num_rects > 0;
 
   69 #define DECLARE_CLASS(decname) static const AVClass decname ## _decoder_class = {   \ 
   70     .class_name = #decname " decoder",      \ 
   71     .item_name  = av_default_item_name,     \ 
   72     .option     = decname ## _options,      \ 
   73     .version    = LIBAVUTIL_VERSION_INT,    \ 
   76 #if CONFIG_TEXT_DECODER 
   77 #define text_options options 
   88     .priv_class     = &text_decoder_class,
 
   92 #if CONFIG_VPLAYER_DECODER || CONFIG_PJS_DECODER || CONFIG_SUBVIEWER1_DECODER 
  101 #if CONFIG_VPLAYER_DECODER 
  102 #define vplayer_options options 
  112     .
init           = linebreak_init,
 
  113     .priv_class     = &vplayer_decoder_class,
 
  117 #if CONFIG_PJS_DECODER 
  118 #define pjs_options options 
  128     .
init           = linebreak_init,
 
  129     .priv_class     = &pjs_decoder_class,
 
  133 #if CONFIG_SUBVIEWER1_DECODER 
  134 #define subviewer1_options options 
  137 AVCodec ff_subviewer1_decoder = {
 
  138     .
name           = 
"subviewer1",
 
  144     .
init           = linebreak_init,
 
  145     .priv_class     = &subviewer1_decoder_class,