⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.c

📁 一个用于智能手机的多媒体库适合S60 WinCE的跨平台开发库
💻 C
📖 第 1 页 / 共 5 页
字号:
		else if (!stricmp(arg, "-wrl")) dump_mode = 1 + GF_SM_DUMP_VRML;		else if (!stricmp(arg, "-x3dv")) dump_mode = 1 + GF_SM_DUMP_X3D_VRML;		else if (!stricmp(arg, "-x3d")) dump_mode = 1 + GF_SM_DUMP_X3D_XML;		else if (!stricmp(arg, "-lsr")) dump_mode = 1 + GF_SM_DUMP_LASER;		else if (!stricmp(arg, "-svg")) dump_mode = 1 + GF_SM_DUMP_SVG;		else if (!stricmp(arg, "-stat")) stat_level = 1;		else if (!stricmp(arg, "-stats")) stat_level = 2;		else if (!stricmp(arg, "-statx")) stat_level = 3;		else if (!stricmp(arg, "-diso")) dump_isom = 1;		else if (!stricmp(arg, "-dump-cover")) dump_cart = 1;		else if (!stricmp(arg, "-hash")) do_hash = 1;		else if (!stricmp(arg, "-dmp4")) {			dump_isom = 1;			fprintf(stdout, "WARNING: \"-dmp4\" is deprecated - use \"-diso\" option\n");		}		else if (!stricmp(arg, "-drtp")) dump_rtp = 1;		else if (!stricmp(arg, "-dts")) dump_ts = 1;		else if (!stricmp(arg, "-dcr")) dump_cr = 1;		else if (!stricmp(arg, "-ttxt") || !stricmp(arg, "-srt")) {			if ((i+1<(u32) argc) && (sscanf(argv[i+1], "%d", &trackID)==1)) {				char szTk[20];				sprintf(szTk, "%d", trackID);				if (!strcmp(szTk, argv[i+1])) i++;				else trackID=0;			} else {				trackID = 0;			}#ifdef GPAC_READ_ONLY			if (trackID) { fprintf(stdout, "Error: Read-Only version - subtitle conversion not available\n"); return 1; }#endif			if (!stricmp(arg, "-ttxt")) dump_ttxt = 1;			else dump_srt = 1;			import_subtitle = 1;		} else if (!stricmp(arg, "-dm2ts")) {			dump_m2ts = 1;			if ( ((i+1<(u32) argc) && inName) || (i+2<(u32) argc) ) {				if (argv[i+1][0] != '-') pes_dump = argv[i+1];				i++;			}		}#ifndef GPAC_READ_ONLY		/*SWF importer options*/		else if (!stricmp(arg, "-global")) swf_flags |= GF_SM_SWF_STATIC_DICT;		else if (!stricmp(arg, "-ctrl")) swf_flags |= GF_SM_SWF_SPLIT_TIMELINE;		else if (!stricmp(arg, "-no-text")) swf_flags |= GF_SM_SWF_NO_TEXT;		else if (!stricmp(arg, "-no-font")) swf_flags |= GF_SM_SWF_NO_FONT;		else if (!stricmp(arg, "-no-line")) swf_flags |= GF_SM_SWF_NO_LINE;		else if (!stricmp(arg, "-no-grad")) swf_flags |= GF_SM_SWF_NO_GRADIENT;		else if (!stricmp(arg, "-quad")) swf_flags |= GF_SM_SWF_QUAD_CURVE;		else if (!stricmp(arg, "-xlp")) swf_flags |= GF_SM_SWF_SCALABLE_LINE;		else if (!stricmp(arg, "-flatten")) {			CHECK_NEXT_ARG			swf_flatten_angle = (Float) atof(argv[i+1]);			i++;		}		else if (!stricmp(arg, "-isma")) { conv_type = GF_ISOM_CONV_TYPE_ISMA; open_edit = 1; }		else if (!stricmp(arg, "-3gp")) { conv_type = GF_ISOM_CONV_TYPE_3GPP; open_edit = 1; }		else if (!stricmp(arg, "-ipod")) { conv_type = GF_ISOM_CONV_TYPE_IPOD; open_edit = 1; }		else if (!stricmp(arg, "-ismax")) { conv_type = GF_ISOM_CONV_TYPE_ISMA_EX; open_edit = 1; }		else if (!stricmp(arg, "-no-sys") || !stricmp(arg, "-nosys")) { remove_sys_tracks = 1; open_edit = 1; }		else if (!stricmp(arg, "-no-iod")) { remove_root_od = 1; open_edit = 1; }		else if (!stricmp(arg, "-out")) { CHECK_NEXT_ARG outName = argv[i+1]; i++; }		else if (!stricmp(arg, "-tmp")) { CHECK_NEXT_ARG tmpdir = argv[i+1]; i++; }		else if (!stricmp(arg, "-cprt")) { CHECK_NEXT_ARG cprt = argv[i+1]; i++; open_edit = 1; }		else if (!stricmp(arg, "-chap")) { CHECK_NEXT_ARG chap_file = argv[i+1]; i++; open_edit = 1; }		else if (!stricmp(arg, "-inter") || !stricmp(arg, "-old-inter")) {			CHECK_NEXT_ARG			InterleavingTime = atof(argv[i+1]) / 1000;			open_edit = 1;			needSave = 1;			if (!stricmp(arg, "-old-inter")) old_interleave = 1;			i++;		} else if (!stricmp(arg, "-frag")) {			CHECK_NEXT_ARG			InterleavingTime = atof(argv[i+1]) / 1000;			open_edit = 1;			needSave = 1;			i++;			Frag = 1;		} 		else if (!stricmp(arg, "-itags")) { CHECK_NEXT_ARG itunes_tags = argv[i+1]; i++; open_edit = 1; }		else if (!stricmp(arg, "-hint")) { open_edit = 1; HintIt = 1; }		else if (!stricmp(arg, "-unhint")) { open_edit = 1; remove_hint = 1; }		else if (!stricmp(arg, "-copy")) HintCopy = 1;		else if (!stricmp(arg, "-tight")) {			FullInter = 1;			open_edit = 1;			needSave = 1;		} else if (!stricmp(arg, "-ocr")) force_ocr = 1;		else if (!stricmp(arg, "-latm")) hint_flags |= GP_RTP_PCK_USE_LATM_AAC;		else if (!stricmp(arg, "-rap")) hint_flags |= GP_RTP_PCK_SIGNAL_RAP;		else if (!stricmp(arg, "-ts")) hint_flags |= GP_RTP_PCK_SIGNAL_TS;		else if (!stricmp(arg, "-size")) hint_flags |= GP_RTP_PCK_SIGNAL_SIZE;		else if (!stricmp(arg, "-idx")) hint_flags |= GP_RTP_PCK_SIGNAL_AU_IDX;		else if (!stricmp(arg, "-static")) hint_flags |= GP_RTP_PCK_USE_STATIC_ID;		else if (!stricmp(arg, "-multi")) {			hint_flags |= GP_RTP_PCK_USE_MULTI;			if ((i+1<(u32) argc) && (sscanf(argv[i+1], "%d", &max_ptime)==1)) {				char szPt[20];				sprintf(szPt, "%d", max_ptime);				if (!strcmp(szPt, argv[i+1])) i++;				else max_ptime=0;			}		}		else if (!stricmp(arg, "-mpeg4")) {			hint_flags |= GP_RTP_PCK_FORCE_MPEG4;			import_flags |= GF_IMPORT_FORCE_MPEG4;		}		else if (!stricmp(arg, "-mtu")) { CHECK_NEXT_ARG MTUSize = atoi(argv[i+1]); i++; }		else if (!stricmp(arg, "-cardur")) { CHECK_NEXT_ARG car_dur = atoi(argv[i+1]); i++; }		else if (!stricmp(arg, "-rate")) { CHECK_NEXT_ARG rtp_rate = atoi(argv[i+1]); i++; }		else if (!stricmp(arg, "-add-sdp") || !stricmp(arg, "-sdp_ex")) {			char *id;			CHECK_NEXT_ARG			if (nb_sdp_ex>=MAX_CUMUL_OPS) {				fprintf(stdout, "Sorry - no more than %d extra SDP lines allowed\n", MAX_CUMUL_OPS);				return 1;			}			id = strchr(argv[i+1], ':');			if (id) {				id[0] = 0;				if (sscanf(argv[i+1], "%d", &sdp_lines[0].trackID)==1) {					id[0] = ':';					sdp_lines[nb_sdp_ex].line = id+1;				} else {					id[0] = ':';					sdp_lines[nb_sdp_ex].line = argv[i+1];					sdp_lines[nb_sdp_ex].trackID = 0;				}			} else {				sdp_lines[nb_sdp_ex].line = argv[i+1];				sdp_lines[nb_sdp_ex].trackID = 0;			}			nb_sdp_ex++;			i++;		}		else if (!stricmp(arg, "-single")) {			CHECK_NEXT_ARG			track_dump_type = GF_EXPORT_MP4;			trackID = atoi(argv[i+1]);			i++;		}		else if (!stricmp(arg, "-iod")) regular_iod = 1;		else if (!stricmp(arg, "-flat")) do_flat = 1;		else if (!stricmp(arg, "-new")) force_new = 1;		else if (!stricmp(arg, "-add") || !stricmp(arg, "-import") || !stricmp(arg, "-convert")) {			CHECK_NEXT_ARG			if (!stricmp(arg, "-import")) fprintf(stdout, "\tWARNING: \"-import\" is deprecated - use \"-add\"\n");			else if (!stricmp(arg, "-convert")) fprintf(stdout, "\tWARNING: \"-convert\" is deprecated - use \"-add\"\n");			if (nb_add>=MAX_CUMUL_OPS) {				fprintf(stdout, "Sorry - no more than %d add operations allowed\n", MAX_CUMUL_OPS);				return 1;			}			szTracksToAdd[nb_add] = argv[i+1];			nb_add++;			i++;		}		else if (!stricmp(arg, "-cat")) {			CHECK_NEXT_ARG			if (nb_cat>=MAX_CUMUL_OPS) {				fprintf(stdout, "Sorry - no more than %d cat operations allowed\n", MAX_CUMUL_OPS);				return 1;			}			szFilesToCat[nb_cat] = argv[i+1];			nb_cat++;			i++;		}		else if (!stricmp(arg, "-raw-cat")) {			CHECK_NEXT_ARG			raw_cat = argv[i+1];			i++;		}		else if (!stricmp(arg, "-rem")) {			CHECK_NEXT_ARG			if (nb_track_act>=MAX_CUMUL_OPS) {				fprintf(stdout, "Sorry - no more than %d track operations allowed\n", MAX_CUMUL_OPS);				return 1;			}			tracks[nb_track_act].act_type = 0;			tracks[nb_track_act].trackID = atoi(argv[i+1]);			open_edit = 1;			nb_track_act++;			i++;		}		else if (!stricmp(arg, "-par")) {			char szTK[20], *ext;			CHECK_NEXT_ARG			if (nb_track_act>=MAX_CUMUL_OPS) {				fprintf(stdout, "Sorry - no more than %d track operations allowed\n", MAX_CUMUL_OPS);				return 1;			}			tracks[nb_track_act].act_type = 4;			strcpy(szTK, argv[i+1]);			ext = strchr(szTK, '=');			if (!ext) {				fprintf(stdout, "Bad format for track par - expecting ID=PAR_NUM:PAR_DEN got %s\n", argv[i+1]);				return 1;			}			if (!stricmp(ext+1, "none")) {				tracks[nb_track_act].par_num = tracks[nb_track_act].par_den = -1;			} else {				sscanf(ext+1, "%d:%d", &tracks[nb_track_act].par_num, &tracks[nb_track_act].par_den);			}			ext[0] = 0;			tracks[nb_track_act].trackID = atoi(szTK);			open_edit = 1;			nb_track_act++;			i++;		}		else if (!stricmp(arg, "-lang")) {			char szTK[20], *ext;			CHECK_NEXT_ARG			if (nb_track_act>=MAX_CUMUL_OPS) {				fprintf(stdout, "Sorry - no more than %d track operations allowed\n", MAX_CUMUL_OPS);				return 1;			}			tracks[nb_track_act].act_type = 1;			tracks[nb_track_act].lang[3] = 0;			tracks[nb_track_act].trackID = 0;			strcpy(szTK, argv[i+1]);			ext = strchr(szTK, '=');			if (!strnicmp(argv[i+1], "all=", 4)) {				strncpy(tracks[nb_track_act].lang, argv[i+1]+1, 3);			} else if (!ext) {				strncpy(tracks[nb_track_act].lang, argv[i+1], 3);			} else {				strncpy(tracks[nb_track_act].lang, ext+1, 3);				ext[0] = 0;				tracks[nb_track_act].trackID = atoi(szTK);				ext[0] = '=';			}			open_edit = 1;			nb_track_act++;			i++;		}		else if (!stricmp(arg, "-delay")) {			char szTK[20], *ext;			CHECK_NEXT_ARG			if (nb_track_act>=MAX_CUMUL_OPS) {				fprintf(stdout, "Sorry - no more than %d track operations allowed\n", MAX_CUMUL_OPS);				return 1;			}			strcpy(szTK, argv[i+1]);			ext = strchr(szTK, '=');			if (!ext) {				fprintf(stdout, "Bad format for track delay - expecting ID=DLAY got %s\n", argv[i+1]);				return 1;			}			tracks[nb_track_act].act_type = 2;			tracks[nb_track_act].delay_ms = atoi(ext+1);			ext[0] = 0;			tracks[nb_track_act].trackID = atoi(szTK);			open_edit = 1;			nb_track_act++;			i++;		}		else if (!stricmp(arg, "-name")) {			char szTK[GF_MAX_PATH], *ext;			CHECK_NEXT_ARG			if (nb_track_act>=MAX_CUMUL_OPS) {				fprintf(stdout, "Sorry - no more than %d track operations allowed\n", MAX_CUMUL_OPS);				return 1;			}			strcpy(szTK, argv[i+1]);			ext = strchr(szTK, '=');			if (!ext) {				fprintf(stdout, "Bad format for track delay - expecting ID=DLAY got %s\n", argv[i+1]);				return 1;			}			tracks[nb_track_act].act_type = 5;			tracks[nb_track_act].hdl_name = ext+1;			ext[0] = 0;			tracks[nb_track_act].trackID = atoi(szTK);			ext[0] = '=';			open_edit = 1;			nb_track_act++;			i++;		}		else if (!stricmp(arg, "-dref")) import_flags |= GF_IMPORT_USE_DATAREF;		else if (!stricmp(arg, "-no-drop") || !stricmp(arg, "-nodrop")) import_flags |= GF_IMPORT_NO_FRAME_DROP;		else if (!stricmp(arg, "-packed")) import_flags |= GF_IMPORT_FORCE_PACKED;		else if (!stricmp(arg, "-sbr")) import_flags |= GF_IMPORT_SBR_IMPLICIT;		else if (!stricmp(arg, "-sbrx")) import_flags |= GF_IMPORT_SBR_EXPLICIT;		else if (!stricmp(arg, "-fps")) { 			CHECK_NEXT_ARG 			if (!strcmp(argv[i+1], "auto")) import_fps = 10000.0;			else import_fps = atof(argv[i+1]);			i++; 		}		else if (!stricmp(arg, "-agg")) { CHECK_NEXT_ARG agg_samples = atoi(argv[i+1]); i++; }		else if (!stricmp(arg, "-keep-sys") || !stricmp(arg, "-keepsys")) keep_sys_tracks = 1;		else if (!stricmp(arg, "-keep-all") || !stricmp(arg, "-keepall")) import_flags |= GF_IMPORT_KEEP_ALL_TRACKS;		else if (!stricmp(arg, "-ms")) { CHECK_NEXT_ARG mediaSource = argv[i+1]; i++; }		else if (!stricmp(arg, "-mp4")) { encode = 1; open_edit = 1; }		else if (!stricmp(arg, "-saf")) { do_saf = 1; }		else if (!stricmp(arg, "-log")) do_log = 1; 		else if (!stricmp(arg, "-def")) opts.flags |= GF_SM_ENCODE_USE_NAMES;		else if (!stricmp(arg, "-sync")) {			CHECK_NEXT_ARG			opts.flags |= GF_SM_ENCODE_RAP_INBAND;			opts.rap_freq = atoi(argv[i+1]);			i++;		} else if (!stricmp(arg, "-shadow")) {			CHECK_NEXT_ARG			opts.flags &= ~GF_SM_ENCODE_RAP_INBAND;			opts.flags |= GF_SM_ENCODE_RAP_SHADOW;			opts.rap_freq = atoi(argv[i+1]);			i++;		} else if (!stricmp(arg, "-carousel")) {			CHECK_NEXT_ARG			opts.flags &= ~(GF_SM_ENCODE_RAP_INBAND | GF_SM_ENCODE_RAP_SHADOW);			opts.rap_freq = atoi(argv[i+1]);			i++;		} 		/*LASeR options*/		else if (!stricmp(arg, "-resolution")) {			CHECK_NEXT_ARG			opts.resolution = atoi(argv[i+1]);			i++;		}		else if (!stricmp(arg, "-auto_quant")) {			CHECK_NEXT_ARG			opts.resolution = atoi(argv[i+1]);			opts.auto_qant = 1;			i++;		}		else if (!stricmp(arg, "-coord-bits")) {			CHECK_NEXT_ARG			opts.coord_bits = atoi(argv[i+1]);			i++;		}		else if (!stricmp(arg, "-scale-bits")) {			CHECK_NEXT_ARG			opts.scale_bits = atoi(argv[i+1]);			i++;		}		/*chunk encoding*/		else if (!stricmp(arg, "-ctx-out") || !stricmp(arg, "-outctx")) { CHECK_NEXT_ARG output_ctx = argv[i+1]; i++; }		else if (!stricmp(arg, "-ctx-in") || !stricmp(arg, "-inctx")) {			CHECK_NEXT_ARG			chunk_mode = 1;			input_ctx = argv[i+1];			i++;		}		else if (!strcmp(arg, "-crypt")) {			CHECK_NEXT_ARG			ismaCrypt = 1;			drm_file = argv[i+1];			open_edit = 1;			i += 1;		}		else if (!strcmp(arg, "-decrypt")) {			CHECK_NEXT_ARG			ismaCrypt = 2;			if (get_file_type_by_ext(argv[i+1])!=1) {				drm_file = argv[i+1];				i += 1;			}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -