status_t TimedTextASSSource::start() { if(mASSFlag == TextDescriptions::IN_BAND_TEXT_ASS) { return in_start(); } else// if(mASSFlag == TextDescriptions::OUT_OF_BAND_TEXT_ASS) { return ex_start(); } }
status_t TimedTextSSASource::start() { if(mSSAFlag == TextDescriptions::IN_BAND_TEXT_SSA) { return in_start(); } else// if(mSSAFlag == TextDescriptions::OUT_OF_BAND_TEXT_SSA) { return ex_start(); } }
/* in WIN32, the executive can run in two mode, i.e., the SoftPLC mode or the simulator mode. in SoftPLC mode, the executive will try to probe additional IO drivers and perform IOs during execution, while in simulator mode, no IO is performed. */ KSERVER_API int kserver_main2(int c, char **v) { int flags; char * mode = 0; int port = 0; __bool dbgMode; int leakDetect = 0; BEGIN_ARGS ARG("mode=", mode, "char *", "mode specifiers") ARG("port=", port, "int", "agent port") ARG("leak=", leakDetect, "int", "detect memory leakage") ARG("--debug", dbgMode, "tbool", "debug mode") END_ARGS if(process_args_1(c, v)<0){ print_usage_1(); return F8_SYNTAX; } if(leakDetect){ _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); _CrtSetBreakAlloc(leakDetect); } if(mode){ CArgs a; parse_arg_ex(mode, &a, "+/|-= ,;:"); int i; flags = 0; for(i=0; i<a.argc; i++){ if(!strcmp(a.argv[i], "sched")){ flags |= KERN_F_ENABLE_SCHEDULER; }else if(!strcmp(a.argv[i], "standby")){ flags |= KERN_F_ENABLE_STANDBY; }else if(!strcmp(a.argv[i], "io")){ flags |= KERN_F_ENABLE_IO; }else if(!strcmp(a.argv[i], "sio")){ flags |= KERN_F_SERIALIZED_IO; }else if(!strcmp(a.argv[i], "agent")){ flags |= KERN_F_ENABLE_AGENT; }else if(!strcmp(a.argv[i], "single")){ flags = KERN_F_ENABLE_SCHEDULER | KERN_F_ENABLE_IO | KERN_F_ENABLE_AGENT; break; }else if(!strcmp(a.argv[i], "all")){ flags = KERN_F_ENABLE_SCHEDULER | KERN_F_ENABLE_IO | KERN_F_ENABLE_AGENT | KERN_F_ENABLE_STANDBY; break; }else if(!strcmp(a.argv[i], "headless")){ flags = KERN_F_ENABLE_SCHEDULER | KERN_F_ENABLE_AGENT | KERN_F_ENABLE_STANDBY; break; } } }else{ flags = KERN_F_ENABLE_SCHEDULER | KERN_F_ENABLE_IO | KERN_F_ENABLE_AGENT | KERN_F_ENABLE_STANDBY; } ex_init(); g_kernel = ke_get_default_kernel(); ex_start(flags, port); sections = ke_get_blk(g_kernel, NULL); return F8_SUCCESS; }