src/audio_tab.c:		(global->Sound_enable > 0));
src/audio_tab.c:	if(global->Sound_UseDev==0) global->Sound_UseDev=global->Sound_DefDev;
src/audio_tab.c:	gtk_combo_box_set_active(GTK_COMBO_BOX(gwidget->SndDevice),global->Sound_UseDev);
src/audio_tab.c:	if (global->Sound_enable) gtk_widget_set_sensitive (gwidget->SndDevice, TRUE);
src/audio_tab.c:	if (global->Sound_SampRateInd>(i-1)) global->Sound_SampRateInd=0; /*out of range*/
src/audio_tab.c:	global->Sound_SampRate=stdSampleRates[global->Sound_SampRateInd];
src/audio_tab.c:	gtk_combo_box_set_active(GTK_COMBO_BOX(gwidget->SndSampleRate),global->Sound_SampRateInd); /*device default*/
src/audio_tab.c:	if (global->Sound_enable) gtk_widget_set_sensitive (gwidget->SndSampleRate, TRUE);
src/audio_tab.c:	switch (global->Sound_NumChanInd) 
src/audio_tab.c:			global->Sound_NumChan=1;
src/audio_tab.c:			global->Sound_NumChan=2;
src/audio_tab.c:			global->Sound_NumChan=NUM_CHANNELS;
src/audio_tab.c:	if (global->Sound_enable) gtk_widget_set_sensitive (gwidget->SndNumChan, TRUE);
src/audio_tab.c:	if (global->debug) g_printf("SampleRate:%d Channels:%d\n",global->Sound_SampRate,global->Sound_NumChan);
src/audio_tab.c:	switch (global->Sound_Format) 
src/audio_tab.c:			global->Sound_Format = ISO_FORMAT_MPEG12;
src/audio_tab.c:	if (global->Sound_enable) gtk_widget_set_sensitive (gwidget->SndComp, TRUE);
src/callbacks.c:		if (global->debug) g_printerr ("%s change to %d failed\n",c->name, val);
src/callbacks.c:			if (global->debug) g_printerr ("hardware value is %d\n", val);
src/callbacks.c:		if (global->debug) g_printerr ("%s change to %d failed\n",c->name, val);
src/callbacks.c:			if (global->debug) g_printerr ("hardware value is %d\n", val);
src/callbacks.c:	global->autofocus = val;
src/callbacks.c:		if (global->debug) g_printf("changed %s to %d\n",c->name,val);
src/callbacks.c:			if (global->debug) g_printf ("hardware value is %d\n", val);
src/callbacks.c:		if (global->debug) g_printf("changed %s to %d\n",c->name,val);
src/callbacks.c:	if(global->PanStep >0) global->PanStep= val * global->PanStep;
src/callbacks.c:	else global->PanStep= -val * global->PanStep;
src/callbacks.c:	global->VidFormat=gtk_combo_box_get_active (VidFormat);	
src/callbacks.c:	if(g_strcmp0(filename,global->vidFPath[0])!=0) 
src/callbacks.c:		global->vidFPath=splitPath((char *)filename, global->vidFPath);
src/callbacks.c:	global->vidFPath[0] = setVidExt(global->vidFPath[0], global->VidFormat);
src/callbacks.c:	gtk_entry_set_text(GTK_ENTRY(gwidget->VidFNameEntry),global->vidFPath[0]);
src/callbacks.c:	if(global->vid_inc>0) 
src/callbacks.c:		global->vid_inc=1; /*if auto naming restart counter*/
src/callbacks.c:	g_snprintf(global->vidinc_str,24,_("File num:%d"),global->vid_inc);
src/callbacks.c:	gtk_label_set_text(GTK_LABEL(gwidget->VidIncLabel), global->vidinc_str);
src/callbacks.c:	if(uvcPanTilt(videoIn->fd, pan * (global->PanStep), tilt * (global->TiltStep), reset)<0) 
src/callbacks.c:			pan * (global->PanStep),
src/callbacks.c:			tilt * (global->TiltStep),
src/callbacks.c:	g_free(global->videodevice);
src/callbacks.c:	global->videodevice = g_strdup(videoIn->listDevices->listVidDevices[index].device);
src/callbacks.c:		global->videodevice,
src/callbacks.c:	global->width=videoIn->listFormats->listVidFormats[videoIn->listFormats->current_format].listVidCap[index].width;
src/callbacks.c:	global->height=videoIn->listFormats->listVidFormats[videoIn->listFormats->current_format].listVidCap[index].height;
src/callbacks.c:		if ((videoIn->listFormats->listVidFormats[videoIn->listFormats->current_format].listVidCap[index].framerate_num[i]==global->fps_num) && 
src/callbacks.c:			(videoIn->listFormats->listVidFormats[videoIn->listFormats->current_format].listVidCap[index].framerate_denom[i]==global->fps)) 
src/callbacks.c:	global->fps_num=videoIn->listFormats->listVidFormats[videoIn->listFormats->current_format].listVidCap[index].framerate_num[deffps];
src/callbacks.c:	global->fps=videoIn->listFormats->listVidFormats[videoIn->listFormats->current_format].listVidCap[index].framerate_denom[deffps];
src/callbacks.c:		if((videoIn->listFormats->listVidFormats[videoIn->listFormats->current_format].listVidCap[i].height==global->height) &&
src/callbacks.c:			(videoIn->listFormats->listVidFormats[videoIn->listFormats->current_format].listVidCap[i].width==global->width) ) 
src/callbacks.c:				if ((videoIn->listFormats->listVidFormats[videoIn->listFormats->current_format].listVidCap[i].framerate_num[j]==global->fps_num) && 
src/callbacks.c:					(videoIn->listFormats->listVidFormats[videoIn->listFormats->current_format].listVidCap[i].framerate_denom[j]==global->fps))
src/callbacks.c:	global->format = videoIn->listFormats->listVidFormats[videoIn->listFormats->current_format].format;
src/callbacks.c:	get_PixMode(global->format, global->mode);
src/callbacks.c:	global->height=videoIn->listFormats->listVidFormats[videoIn->listFormats->current_format].listVidCap[defres].height;
src/callbacks.c:	global->width=videoIn->listFormats->listVidFormats[videoIn->listFormats->current_format].listVidCap[defres].width;
src/callbacks.c:	global->fps_num=videoIn->listFormats->listVidFormats[videoIn->listFormats->current_format].listVidCap[defres].framerate_num[deffps];
src/callbacks.c:	global->fps=videoIn->listFormats->listVidFormats[videoIn->listFormats->current_format].listVidCap[defres].framerate_denom[deffps];
src/callbacks.c:	global->fps=videoIn->fps;
src/callbacks.c:	global->fps_num=videoIn->fps_num;
src/callbacks.c:	global->Sound_SampRateInd = gtk_combo_box_get_active (SampleRate);
src/callbacks.c:	global->Sound_SampRate=stdSampleRates[global->Sound_SampRateInd];
src/callbacks.c:	global->imgFormat=gtk_combo_box_get_active (ImageType);	
src/callbacks.c:	if(g_strcmp0(filename,global->imgFPath[0])!=0) 
src/callbacks.c:		global->imgFPath=splitPath((char *)filename, global->imgFPath);
src/callbacks.c:	global->imgFPath[0] = setImgExt(global->imgFPath[0], global->imgFormat);
src/callbacks.c:	gtk_entry_set_text(GTK_ENTRY(gwidget->ImageFNameEntry),global->imgFPath[0]);
src/callbacks.c:	if(global->image_inc>0) 
src/callbacks.c:		global->image_inc=1; /*if auto naming restart counter*/
src/callbacks.c:	g_snprintf(global->imageinc_str,24,_("File num:%d"),global->image_inc);
src/callbacks.c:	gtk_label_set_text(GTK_LABEL(gwidget->ImageIncLabel), global->imageinc_str);
src/callbacks.c:	global->Sound_UseDev=gtk_combo_box_get_active (SoundDevice);
src/callbacks.c:	g_printf("using device id:%d\n",global->Sound_IndexDev[global->Sound_UseDev].id);
src/callbacks.c:	global->Sound_NumChanInd = gtk_combo_box_get_active (SoundChan);
src/callbacks.c:	global->Sound_NumChan=global->Sound_NumChanInd;
src/callbacks.c:			global->Sound_Format  = PA_FOURCC;
src/callbacks.c:			global->Sound_Format = ISO_FORMAT_MPEG12;
src/callbacks.c:			global->Sound_Format  = PA_FOURCC;
src/callbacks.c:	global->VidCodec=index;
src/callbacks.c:	gtk_widget_set_sensitive (gwidget->lavc_button, isLavcCodec(global->VidCodec));
src/callbacks.c:	global->Sound_enable = gtk_toggle_button_get_active (toggle) ? 1 : 0;
src/callbacks.c:	if (!global->Sound_enable) 
src/callbacks.c:		if(global->debug) g_printf("disabling sound.\n");
src/callbacks.c:		if(global->debug) g_printf("enabling sound.\n");
src/callbacks.c:	g_mutex_lock(global->mutex);
src/callbacks.c:		global->Frame_Flags = gtk_toggle_button_get_active (toggle) ? 
src/callbacks.c:			(global->Frame_Flags | filter) : 
src/callbacks.c:			(global->Frame_Flags & ~(filter));
src/callbacks.c:	g_mutex_unlock(global->mutex);
src/callbacks.c:	global->image_inc = gtk_toggle_button_get_active (toggle) ? 1 : 0;
src/callbacks.c:	g_snprintf(global->imageinc_str,24,_("File num:%d"),global->image_inc);
src/callbacks.c:	gtk_label_set_text(GTK_LABEL(gwidget->ImageIncLabel), global->imageinc_str);
src/callbacks.c:	global->vid_inc = gtk_toggle_button_get_active (toggle) ? 1 : 0;
src/callbacks.c:	g_snprintf(global->vidinc_str,24,_("File num:%d"),global->vid_inc);
src/callbacks.c:	gtk_label_set_text(GTK_LABEL(gwidget->VidIncLabel), global->vidinc_str);
src/callbacks.c:	if(g_strcmp0(fileEntr,global->imgFPath[0])!=0) 
src/callbacks.c:		if(global->image_inc) global->image_inc=1;
src/callbacks.c:		global->imgFPath=splitPath((char *)fileEntr, global->imgFPath);
src/callbacks.c:		gtk_entry_set_text(GTK_ENTRY(gwidget->ImageFNameEntry),global->imgFPath[0]);
src/callbacks.c:		global->imgFormat = check_image_type(global->imgFPath[0]);
src/callbacks.c:		gtk_combo_box_set_active(GTK_COMBO_BOX(gwidget->ImageType),global->imgFormat);
src/callbacks.c:	g_snprintf(global->imageinc_str,24,_("File num:%d"),global->image_inc);
src/callbacks.c:	gtk_label_set_text(GTK_LABEL(gwidget->ImageIncLabel), global->imageinc_str);
src/callbacks.c:	if ((global->image_timer == 0) && (global->image_inc>0)) 
src/callbacks.c:			global->imgFPath,
src/callbacks.c:			global->image_inc);
src/callbacks.c:		global->image_inc++;
src/callbacks.c:		videoIn->ImageFName = joinPath(videoIn->ImageFName, global->imgFPath);
src/callbacks.c:	if(global->image_timer > 0) 
src/callbacks.c:		if (global->image_timer_id > 0) g_source_remove(global->image_timer_id);
src/callbacks.c:		global->image_timer=0;
src/callbacks.c:		if(global->imgFormat == 3) 
src/callbacks.c:	if(g_strcmp0(fileEntr,global->vidFPath[0])!=0) 
src/callbacks.c:		if(global->vid_inc) global->vid_inc=1;
src/callbacks.c:		global->vidFPath=splitPath((char *)fileEntr, global->vidFPath);
src/callbacks.c:		gtk_entry_set_text(GTK_ENTRY(gwidget->VidFNameEntry),global->vidFPath[0]);
src/callbacks.c:	if(global->debug) g_printf("Cap Video toggled: %d\n", state);
src/callbacks.c:		global->vidFPath=splitPath((char *)fileEntr, global->vidFPath);
src/callbacks.c:		g_snprintf(global->vidinc_str,24,_("File num:%d"),global->vid_inc);
src/callbacks.c:		gtk_label_set_text(GTK_LABEL(gwidget->VidIncLabel), global->vidinc_str);
src/callbacks.c:		if (global->vid_inc>0) 
src/callbacks.c:				global->vidFPath,
src/callbacks.c:				global->vid_inc);
src/callbacks.c:			global->vid_inc++;
src/callbacks.c:			videoIn->VidFName = joinPath(videoIn->VidFName, global->vidFPath);
src/callbacks.c:	if(global->debug) g_printf("Profile dialog (%d)\n",*save);
src/callbacks.c:			global->profile_FPath[0]);
src/callbacks.c:		global->profile_FPath[1]);
src/callbacks.c:		global->profile_FPath=splitPath(filename,global->profile_FPath);
src/callbacks.c:	if(!global->vid_inc) 
src/callbacks.c:		global->vid_inc=1; /*just in case*/
src/callbacks.c:	global->VidButtPress = FALSE;
src/callbacks.c:	global->FpsCount = gtk_toggle_button_get_active (toggle) ? 1 : 0;
src/callbacks.c:	if(global->FpsCount > 0) 
src/callbacks.c:		global->timer_id = g_timeout_add(2*1000,FpsCount_callback, all_data);
src/callbacks.c:		if (global->timer_id > 0) g_source_remove(global->timer_id);
src/callbacks.c:		g_snprintf(global->WVcaption,10,"GUVCVideo");
src/callbacks.c:		SDL_WM_SetCaption(global->WVcaption, NULL);
src/close.c:	if (global->debug) g_printf("closed v4l2 strutures\n");
src/close.c:	if (global->debug) g_printf("free controls - vidState\n");
src/close.c:	if (global->debug) g_printf("Shuting Down Thread\n");
src/close.c:	if (global->debug) g_printf("waiting for thread to finish\n");
src/close.c:	if(!(global->control_only)) g_thread_join( video_thread );
src/close.c:	if (global->timer_id > 0) g_source_remove(global->timer_id);
src/close.c:	gtk_window_get_size(GTK_WINDOW(gwidget->mainwin),&(global->winwidth),&(global->winheight));//mainwin or widget
src/close.c:	global->boxvsize=gtk_paned_get_position (GTK_PANED(gwidget->boxv));
src/close.c:	g_snprintf(videodevice, 15, "%s", global->videodevice);
src/create_video.c:	const char *compression= get_vid4cc(global->VidCodec);
src/create_video.c:	videoF->vcodec = get_vcodec_id(global->VidCodec);
src/create_video.c:	switch (global->VidFormat)
src/create_video.c:				set_sensitive_vid_contrls(FALSE, global->Sound_enable, gwidget);
src/create_video.c:				//global->Vidstarttime = ms_time();
src/create_video.c:				if(global->Sound_enable > 0) 
src/create_video.c:					AVI_set_audio(videoF->AviOut, global->Sound_NumChan, 
src/create_video.c:						global->Sound_SampRate,
src/create_video.c:						global->Sound_bitRate,
src/create_video.c:						global->Sound_Format);
src/create_video.c:						global->Sound_enable=0;
src/create_video.c:						if (global->Sound_Format == ISO_FORMAT_MPEG12) 
src/create_video.c:							init_MP2_encoder(pdata, global->Sound_bitRate);    
src/create_video.c:			if(global->Sound_enable > 0) 
src/create_video.c:					global->Sound_enable=0;
src/create_video.c:					if (global->Sound_Format == ISO_FORMAT_MPEG12) 
src/create_video.c:						init_MP2_encoder(pdata, global->Sound_bitRate);    
src/create_video.c:			set_sensitive_vid_contrls(FALSE, global->Sound_enable, gwidget);
src/create_video.c:			//global->Vidstarttime = ms_time();
src/create_video.c:		tottime = (global->Vidstoptime - global->Vidstarttime) * 1000000; //miliseconds
src/create_video.c:		if (global->debug) g_printf("stop= %d start=%d \n",global->Vidstoptime,global->Vidstarttime);
src/create_video.c:			videoF->AviOut->fps = (double) (global->framecount * 1000) / tottime;
src/create_video.c:		if (global->debug) g_printf("VIDEO: %d frames in %d ms = %f fps\n",global->framecount,tottime,videoF->AviOut->fps);
src/create_video.c:		if (global->Sound_enable > 0) 
src/create_video.c:					if(global->Sound_Format == PA_FOURCC)
src/create_video.c:					else if (global->Sound_Format == ISO_FORMAT_MPEG12)
src/create_video.c:			if(global->Sound_Format == ISO_FORMAT_MPEG12) close_MP2_encoder();
src/create_video.c:		global->framecount = 0;
src/create_video.c:		global->Vidstarttime = 0;
src/create_video.c:		if (global->debug) g_printf ("close avi\n");
src/create_video.c:	global->Vidstoptime = ms_time();
src/create_video.c:	switch (global->VidFormat)
src/create_video.c:	set_sensitive_vid_contrls(TRUE, global->Sound_enable, gwidget);
src/create_video.c:	global->Vidstoptime = 0;
src/create_video.c:	global->Vidstarttime = 0;
src/create_video.c:	global->framecount = 0;
src/create_video.c:	switch (global->VidFormat)
src/create_video.c:			videoF->vpts = global->v_ts;
src/create_video.c:			ret = write_video_packet (buff, size, global->fps, videoF);
src/create_video.c:	switch (global->VidFormat)
src/create_video.c:					if (!(global->VidButtPress))
src/create_video.c:			global->framecount++;
src/create_video.c:			global->framecount++;
src/create_video.c:	switch (global->VidFormat)
src/create_video.c:				if(global->Sound_Format == PA_FOURCC) 
src/create_video.c:				else if(global->Sound_Format == ISO_FORMAT_MPEG12)
src/create_video.c:					if (!(global->VidButtPress))
src/create_video.c:						global->VidButtPress = TRUE;
src/create_video.c:				videoF->old_apts = pdata->a_ts - global->Vidstarttime;
src/create_video.c:				if(global->Sound_Format == PA_FOURCC) 
src/create_video.c:				else if(global->Sound_Format == ISO_FORMAT_MPEG12)
src/create_video.c:	switch (global->VidFormat)
src/create_video.c:				int synctime= pdata->snd_begintime - global->Vidstarttime; 
src/create_video.c:				if (global->debug) g_printf("shift sound by %d ms\n",synctime);
src/create_video.c:					if(global->Sound_Format == PA_FOURCC) 
src/create_video.c:						UINT32 shiftFrames = abs(synctime * global->Sound_SampRate / 1000);
src/create_video.c:						UINT32 shiftSamples = shiftFrames * global->Sound_NumChan;
src/create_video.c:						if (global->debug) g_printf("shift sound forward by %d samples\n", 
src/create_video.c:					else if(global->Sound_Format == ISO_FORMAT_MPEG12) 
src/create_video.c:						if (global->debug) g_printf("shift sound forward by %d bytes\n",size_mp2);
src/create_video.c:				int synctime= pdata->snd_begintime - global->Vidstarttime; 
src/create_video.c:				if (global->debug) g_printf("shift sound by %d ms\n",synctime);
src/create_video.c:					UINT32 shiftFrames = abs(synctime * global->Sound_SampRate / 1000);
src/create_video.c:					UINT32 shiftSamples = shiftFrames * global->Sound_NumChan;
src/create_video.c:					if (global->debug) g_printf("shift sound forward by %d samples\n", shiftSamples);
src/globals.c:	global->mutex = g_mutex_new();
src/globals.c:	global->debug = DEBUG;
src/globals.c:	global->videodevice = g_strdup("/dev/video0");
src/globals.c:	global->confPath = g_strjoin("/", home, ".guvcviewrc", NULL);
src/globals.c:	global->vidFPath = g_new(pchar, 2);
src/globals.c:	global->imgFPath = g_new(pchar, 2);
src/globals.c:	global->profile_FPath = g_new(pchar, 2);
src/globals.c:	global->vidFPath[1] = g_strdup(home);
src/globals.c:	global->imgFPath[1] = g_strdup(home);
src/globals.c:	global->profile_FPath[1] = g_strdup(home);
src/globals.c:	global->vidFPath[0] = g_strdup(DEFAULT_AVI_FNAME);
src/globals.c:	global->imgFPath[0] = g_strdup(DEFAULT_IMAGE_FNAME);
src/globals.c:	global->profile_FPath[0] = g_strdup("default.gpfl");
src/globals.c:	global->WVcaption = g_new(char, 32);
src/globals.c:	g_snprintf(global->WVcaption,10,"GUVCVIdeo");
src/globals.c:	global->stack_size=TSTACK;
src/globals.c:	global->image_inc=0;
src/globals.c:	global->imageinc_str = g_new(char, 25);
src/globals.c:	g_snprintf(global->imageinc_str,20,_("File num:%d"),global->image_inc);
src/globals.c:	global->vidinc_str = g_new(char, 25);
src/globals.c:	g_snprintf(global->vidinc_str,20,_("File num:%d"),global->vid_inc);
src/globals.c:	global->vid_sleep=0;
src/globals.c:	global->vidfile=NULL; /*vid filename passed through argument options with -n */
src/globals.c:	global->Capture_time=0; /*vid capture time passed through argument options with -t */
src/globals.c:	global->lprofile=0; /* flag for -l command line option*/
src/globals.c:	global->imgFormat=0; /* 0 -JPG 1-BMP 2-PNG*/
src/globals.c:	global->VidCodec=0; /*0-"MJPG"  1-"YUY2" 2-"DIB "(rgb32) 3-...*/ 
src/globals.c:	global->AVI_MAX_LEN=AVI_MAX_SIZE; /* ~2 Gb*/    
src/globals.c:	global->snd_begintime=0;/*begin time for audio capture*/
src/globals.c:	global->currtime=0;
src/globals.c:	global->lasttime=0;
src/globals.c:	global->Vidstarttime=0;
src/globals.c:	global->Vidstoptime=0;
src/globals.c:	global->framecount=0;
src/globals.c:	global->Sound_enable=TRUE; /*Enable Sound by Default*/
src/globals.c:	global->Sound_IndexDev=NULL;
src/globals.c:	global->Sound_SampRate=SAMPLE_RATE;
src/globals.c:	global->Sound_SampRateInd=0;
src/globals.c:	global->Sound_numInputDev=0;
src/globals.c:	global->Sound_Format=ISO_FORMAT_MPEG12; /*set MP2 by default*/
src/globals.c:	global->Sound_DefDev=0; 
src/globals.c:	global->Sound_UseDev=0;
src/globals.c:	global->Sound_NumChan=NUM_CHANNELS;
src/globals.c:	global->Sound_NumChanInd=0;
src/globals.c:	global->Sound_NumSec=NUM_SECONDS;
src/globals.c:	global->Sound_bitRate=160; /*160 Kbps = 20000 Bps*/
src/globals.c:	global->FpsCount=0;
src/globals.c:	global->timer_id=0;
src/globals.c:	global->image_timer_id=0;
src/globals.c:	global->image_timer=0;
src/globals.c:	global->image_npics=999;/*default max number of captures*/
src/globals.c:	global->frmCount=0;
src/globals.c:	global->PanStep=2;/*2 degree step for Pan*/
src/globals.c:	global->TiltStep=2;/*2 degree step for Tilt*/
src/globals.c:	global->DispFps=0;
src/globals.c:	global->fps = DEFAULT_FPS;
src/globals.c:	global->fps_num = DEFAULT_FPS_NUM;
src/globals.c:	global->bpp = 0; //current bytes per pixel
src/globals.c:	global->hwaccel = 1; //use hardware acceleration
src/globals.c:	global->grabmethod = 1;//default mmap(1) or read(0)
src/globals.c:	global->width = DEFAULT_WIDTH;
src/globals.c:	global->height = DEFAULT_HEIGHT;
src/globals.c:	global->winwidth=WINSIZEX;
src/globals.c:	global->winheight=WINSIZEY;
src/globals.c:	global->spinbehave=0;
src/globals.c:	global->boxvsize=0;
src/globals.c:	global->mode = g_new(char, 6);
src/globals.c:	g_snprintf(global->mode, 5, "mjpg");
src/globals.c:	global->format = V4L2_PIX_FMT_MJPEG;
src/globals.c:	global->Frame_Flags = YUV_NOFILT;
src/globals.c:	global->jpeg=NULL;
src/globals.c:	global->jpeg_size = 0;
src/globals.c:	global->jpeg_bufsize = 0;
src/globals.c:	global->autofocus = FALSE;
src/globals.c:	global->AFcontrol = FALSE;
src/globals.c:	global->VidButtPress = FALSE;
src/globals.c:	g_free(global->videodevice);
src/globals.c:	g_free(global->confPath);
src/globals.c:	g_free(global->vidFPath[1]);
src/globals.c:	g_free(global->imgFPath[1]);
src/globals.c:	g_free(global->imgFPath[0]);
src/globals.c:	g_free(global->vidFPath[0]);
src/globals.c:	g_free(global->profile_FPath[1]);
src/globals.c:	g_free(global->profile_FPath[0]);
src/globals.c:	g_free(global->vidFPath);
src/globals.c:	g_free(global->imgFPath);
src/globals.c:	g_free(global->profile_FPath);
src/globals.c:	g_free (global->WVcaption);
src/globals.c:	g_free(global->imageinc_str);
src/globals.c:	g_free(global->vidinc_str);
src/globals.c:	g_free(global->vidfile);
src/globals.c:	g_free(global->mode);
src/globals.c:	g_free(global->Sound_IndexDev);
src/globals.c:	g_mutex_free( global->mutex );
src/globals.c:	global->videodevice=NULL;
src/globals.c:	global->confPath=NULL;
src/globals.c:	global->vidfile=NULL;
src/globals.c:	global->mode=NULL;
src/globals.c:	g_free(global->jpeg);
src/globals.c:	global->jpeg=NULL;
src/guvcview.c:	if (global->debug) g_printf("language catalog=> dir:%s type:%s lang:%s cat:%s.mo\n",
src/guvcview.c:	gtk_window_resize(GTK_WINDOW(gwidget->mainwin),global->winwidth,global->winheight);
src/guvcview.c:	global->format = get_PixFormat(global->mode);
src/guvcview.c:	if(global->debug) g_printf("%s: setting format to %i\n", global->mode, global->format);
src/guvcview.c:					global->format = videoIn->listFormats->listVidFormats[0].format;
src/guvcview.c:					if(get_PixMode(global->format, global->mode) < 0)
src/guvcview.c:					global->width = videoIn->listFormats->listVidFormats[videoIn->listFormats->current_format].listVidCap[0].width;
src/guvcview.c:					global->width = videoIn->listFormats->listVidFormats[videoIn->listFormats->current_format].listVidCap[0].height;
src/guvcview.c:					global->fps_num = videoIn->listFormats->listVidFormats[videoIn->listFormats->current_format].listVidCap[0].framerate_num[0];
src/guvcview.c:					global->fps = videoIn->listFormats->listVidFormats[videoIn->listFormats->current_format].listVidCap[0].framerate_denom[0];
src/guvcview.c:	global->width = videoIn->width;
src/guvcview.c:	global->height = videoIn->height;
src/guvcview.c:	global->fps = videoIn->fps;
src/guvcview.c:	global->fps_num = videoIn->fps_num;
src/guvcview.c:	global->format = videoIn->formatIn;
src/guvcview.c:	videoIn->listFormats->current_format = get_FormatIndex(videoIn->listFormats, global->format);
src/guvcview.c:	global->jpeg_bufsize=((videoIn->width)*(videoIn->height))>>1;
src/guvcview.c:	if (global->lprofile > 0) LoadControls (s,global);
src/guvcview.c:	if(!(global->control_only)) /*control_only exclusion (video and Audio) */
src/guvcview.c:	if(!(global->control_only))/*control_only exclusion Image and video buttons*/
src/guvcview.c:		if(global->image_timer)
src/guvcview.c:		if (global->vidfile) 
src/guvcview.c:	if(global->boxvsize==0) 
src/guvcview.c:		global->boxvsize=global->winheight-122;
src/guvcview.c:	gtk_paned_set_position (GTK_PANED(gwidget->boxv),global->boxvsize);
src/guvcview.c:	if(!(global->control_only)) /*control_only exclusion (video and Audio) */
src/guvcview.c:	if (!(global->control_only)) /*control_only exclusion*/
src/guvcview.c:		if(global->AFcontrol) 
src/guvcview.c:			global->stack_size,       //stack size
src/guvcview.c:		if(global->image_timer)
src/guvcview.c:			global->image_timer_id=g_timeout_add(global->image_timer*1000,
src/guvcview.c:		if(global->vidfile) 
src/guvcview.c:			videoIn->VidFName = joinPath(videoIn->VidFName, global->vidFPath);
src/guvcview.c:			if (global->Capture_time) 
src/guvcview.c:				g_timeout_add(global->Capture_time*1000,timer_callback,&all_data);
src/guvcview.c:		if (global->FpsCount>0)
src/guvcview.c:			global->timer_id = g_timeout_add(2*1000,FpsCount_callback,&all_data);
src/img_controls.c:	if (global->debug) 
src/img_controls.c:				(global->PanStep < 0) ? TRUE : FALSE);
src/img_controls.c:			if ((c->id== V4L2_CID_FOCUS_LOGITECH) && !(global->control_only)) 
src/img_controls.c:				global->AFcontrol=1;
src/img_controls.c:					global->autofocus ? TRUE: FALSE);
src/img_controls.c:					if (global->debug) 
src/options.c:	if ((fp = g_fopen(global->confPath,"w"))!=NULL) 
src/options.c:		g_fprintf(fp,"stack_size=%d\n",global->stack_size);
src/options.c:		g_fprintf(fp,"vid_sleep=%i\n",global->vid_sleep);
src/options.c:		g_fprintf(fp,"resolution='%ix%i'\n",global->width,global->height);
src/options.c:		g_fprintf(fp,"windowsize='%ix%i'\n",global->winwidth,global->winheight);
src/options.c:		g_fprintf(fp,"vpane=%i\n",global->boxvsize);
src/options.c:		g_fprintf(fp,"spinbehave=%i\n", global->spinbehave);
src/options.c:		g_fprintf(fp,"mode='%s'\n",global->mode);
src/options.c:		g_fprintf(fp,"fps='%d/%d'\n",global->fps_num,global->fps);
src/options.c:		g_fprintf(fp,"fps_display=%i\n",global->FpsCount);
src/options.c:		g_fprintf(fp,"auto_focus=%i\n",global->autofocus);
src/options.c:		g_fprintf(fp,"bpp=%i\n",global->bpp);
src/options.c:		g_fprintf(fp,"hwaccel=%i\n",global->hwaccel);
src/options.c:		g_fprintf(fp,"grabmethod=%i\n",global->grabmethod);
src/options.c:		g_fprintf(fp,"avi_format=%i\n",global->VidCodec);
src/options.c:		g_fprintf(fp,"vid_mux=%i\n",global->VidFormat);
src/options.c:		g_fprintf(fp,"avi_max_len=%li\n",global->AVI_MAX_LEN);
src/options.c:		g_fprintf(fp,"avi_inc=%d\n",global->vid_inc);
src/options.c:		g_fprintf(fp,"sound=%i\n",global->Sound_enable);
src/options.c:		g_fprintf(fp,"snd_device=%i\n",global->Sound_UseDev);
src/options.c:		g_fprintf(fp,"snd_samprate=%i\n",global->Sound_SampRateInd);
src/options.c:		g_fprintf(fp,"snd_numchan=%i\n",global->Sound_NumChanInd);
src/options.c:		g_fprintf(fp,"snd_numsec=%i\n",global->Sound_NumSec);
src/options.c:		g_fprintf(fp,"snd_format=%i\n",global->Sound_Format);
src/options.c:		g_fprintf(fp,"snd_bitrate=%i\n",global->Sound_bitRate);
src/options.c:		g_fprintf(fp,"Pan_Step=%i\n",global->PanStep);
src/options.c:		g_fprintf(fp,"Tilt_Step=%i\n",global->TiltStep);
src/options.c:		g_fprintf(fp,"frame_flags=%i\n",global->Frame_Flags);
src/options.c:		g_fprintf(fp,"image_path='%s/%s'\n",global->imgFPath[1],global->imgFPath[0]);
src/options.c:		g_fprintf(fp,"image_inc=%d\n",global->image_inc);
src/options.c:		g_fprintf(fp,"avi_path='%s/%s'\n",global->vidFPath[1],global->vidFPath[0]);
src/options.c:		g_fprintf(fp,"profile_path='%s/%s'\n",global->profile_FPath[1],global->profile_FPath[0]);
src/options.c:		printf("write %s OK\n",global->confPath);
src/options.c:		g_printerr("Could not write file %s \n Please check file permissions\n",global->confPath);
src/options.c:	int fd = g_open (global->confPath, O_RDONLY, 0);
src/options.c:		printf("Could not open %s for read,\n will try to create it\n",global->confPath);
src/options.c:		ret=writeConf(global, global->videodevice);
src/options.c:		scanner->input_name = global->confPath;
src/options.c:						//	g_snprintf(global->videodevice,15,"%s",scanner->value.v_string);
src/options.c:							if(global->flg_res < 1)
src/options.c:									&(global->width), 
src/options.c:									&(global->height));
src/options.c:								&(global->winwidth), &(global->winheight));
src/options.c:							if(global->flg_mode < 1)
src/options.c:									g_snprintf(global->mode,5,"yuyv");
src/options.c:									g_snprintf(global->mode,5,"%s",scanner->value.v_string);
src/options.c:								&(global->fps_num), &(global->fps));
src/options.c:							if(global->flg_imgFPath < 1)
src/options.c:								global->imgFPath = splitPath(scanner->value.v_string,global->imgFPath);
src/options.c:								global->imgFormat = check_image_type(global->imgFPath[0]);
src/options.c:							if(global->vidfile == NULL)
src/options.c:								global->vidFPath=splitPath(scanner->value.v_string,global->vidFPath);
src/options.c:							if(global->lprofile < 1)
src/options.c:								global->profile_FPath=splitPath(scanner->value.v_string,
src/options.c:									global->profile_FPath);
src/options.c:							global->stack_size = scanner->value.v_int;
src/options.c:							global->vid_sleep = scanner->value.v_int;
src/options.c:							global->boxvsize = scanner->value.v_int;
src/options.c:							global->spinbehave = scanner->value.v_int;
src/options.c:							global->fps_num = scanner->value.v_int;
src/options.c:									global->fps = scanner->value.v_int;
src/options.c:							if(global->flg_FpsCount < 1)
src/options.c:								global->FpsCount = (short) scanner->value.v_int;
src/options.c:							global->autofocus = scanner->value.v_int;
src/options.c:							global->bpp = scanner->value.v_int;
src/options.c:							if(global->flg_hwaccel < 1)
src/options.c:								global->hwaccel = scanner->value.v_int;
src/options.c:							global->grabmethod = scanner->value.v_int;
src/options.c:							global->VidCodec = scanner->value.v_int;
src/options.c:							global->VidFormat = scanner->value.v_int;
src/options.c:							global->AVI_MAX_LEN = (ULONG) scanner->value.v_int;
src/options.c:							global->AVI_MAX_LEN = AVI_set_MAX_LEN (global->AVI_MAX_LEN);
src/options.c:							global->vid_inc = (DWORD) scanner->value.v_int;
src/options.c:							g_snprintf(global->vidinc_str,20,_("File num:%d"),global->vid_inc);
src/options.c:							global->Sound_enable = (short) scanner->value.v_int;
src/options.c:							global->Sound_UseDev = scanner->value.v_int;
src/options.c:							global->Sound_SampRateInd = scanner->value.v_int;
src/options.c:							global->Sound_NumChanInd = scanner->value.v_int;
src/options.c:							global->Sound_NumSec = scanner->value.v_int;
src/options.c:							global->Sound_Format = scanner->value.v_int;
src/options.c:							global->Sound_bitRate = scanner->value.v_int;
src/options.c:							global->PanStep = signal * scanner->value.v_int;
src/options.c:							global->TiltStep = signal * scanner->value.v_int;
src/options.c:							global->Frame_Flags = scanner->value.v_int;
src/options.c:							if(global->image_timer <= 0)
src/options.c:								global->image_inc = (DWORD) scanner->value.v_int;
src/options.c:								g_snprintf(global->imageinc_str,20,_("File num:%d"),global->image_inc);
src/options.c:		if (global->debug) 
src/options.c:			g_printf("video_device: %s\n",global->videodevice);
src/options.c:			g_printf("vid_sleep: %i\n",global->vid_sleep);
src/options.c:			g_printf("resolution: %i x %i\n",global->width,global->height);
src/options.c:			g_printf("windowsize: %i x %i\n",global->winwidth,global->winheight);
src/options.c:			g_printf("vert pane: %i\n",global->boxvsize);
src/options.c:			g_printf("spin behavior: %i\n",global->spinbehave);
src/options.c:			g_printf("mode: %s\n",global->mode);
src/options.c:			g_printf("fps: %i/%i\n",global->fps_num,global->fps);
src/options.c:			g_printf("Display Fps: %i\n",global->FpsCount);
src/options.c:			g_printf("bpp: %i\n",global->bpp);
src/options.c:			g_printf("hwaccel: %i\n",global->hwaccel);
src/options.c:			g_printf("grabmethod: %i\n",global->grabmethod);
src/options.c:			g_printf("avi_format: %i\n",global->VidCodec);
src/options.c:			g_printf("sound: %i\n",global->Sound_enable);
src/options.c:			g_printf("sound Device: %i\n",global->Sound_UseDev);
src/options.c:			g_printf("sound samp rate: %i\n",global->Sound_SampRateInd);
src/options.c:			g_printf("sound Channels: %i\n",global->Sound_NumChanInd);
src/options.c:			g_printf("Sound Block Size: %i seconds\n",global->Sound_NumSec);
src/options.c:			g_printf("Sound Format: %i \n",global->Sound_Format);
src/options.c:			g_printf("Sound bit Rate: %i Kbps\n",global->Sound_bitRate);
src/options.c:			g_printf("Pan Step: %i degrees\n",global->PanStep);
src/options.c:			g_printf("Tilt Step: %i degrees\n",global->TiltStep);
src/options.c:			g_printf("Video Filter Flags: %i\n",global->Frame_Flags);
src/options.c:			g_printf("image inc: %d\n",global->image_inc);
src/options.c:			g_printf("profile(default):%s/%s\n",global->profile_FPath[1],global->profile_FPath[0]);
src/options.c:		{ "verbose", 'v', 0, G_OPTION_ARG_NONE, &global->debug, N_("Displays debug information"), NULL },
src/options.c:		{ "control_only", 'o', 0, G_OPTION_ARG_NONE, &global->control_only, N_("Don't stream video (controls only)"), NULL},
src/options.c:		{ "cap_time", 'c', 0, G_OPTION_ARG_INT, &global->image_timer, N_("Image capture interval in seconds"), "TIME"},
src/options.c:		{ "npics", 'm', 0, G_OPTION_ARG_INT, &global->image_npics, N_("Number of Pictures to capture"), "NUMPIC"},
src/options.c:		{ "vid_time", 't', 0, G_OPTION_ARG_INT, &global->Capture_time,N_("Video capture time (in seconds)"), "TIME"},
src/options.c:			g_free(global->videodevice);
src/options.c:			global->videodevice=NULL;
src/options.c:			global->videodevice = g_strjoin("/",
src/options.c:			if(global->flg_config < 1)
src/options.c:					g_free(global->confPath);
src/options.c:					global->confPath=NULL;
src/options.c:					global->confPath = g_strjoin("", 
src/options.c:		g_free(global->confPath);
src/options.c:		global->confPath=NULL;
src/options.c:		global->confPath = g_strdup(config);
src/options.c:		global->flg_config = 1;
src/options.c:			g_snprintf(global->mode,5,"yuyv");
src/options.c:			g_snprintf(global->mode,5,"%s",format);
src/options.c:		global->flg_mode = 1;
src/options.c:		global->width = (int) g_ascii_strtoull(size, &separateur, 10);
src/options.c:			global->height = (int) g_ascii_strtoull(separateur, &separateur, 10);
src/options.c:		global->flg_res = 1;
src/options.c:		global->imgFPath=splitPath(image,global->imgFPath);
src/options.c:		global->imgFormat = check_image_type(global->imgFPath[0]);
src/options.c:		global->flg_imgFPath = 1;
src/options.c:	if(global->image_timer > 0 )
src/options.c:		global->image_inc=1;
src/options.c:		g_printf("capturing images every %i seconds",global->image_timer);
src/options.c:		global->vidfile = g_strdup(video);
src/options.c:		global->vidFPath=splitPath(global->vidfile,global->vidFPath);
src/options.c:		g_printf("capturing video: %s , from start",global->vidfile);
src/options.c:		global->lprofile=1;
src/options.c:		global->profile_FPath=splitPath(profile,global->profile_FPath);
src/options.c:		global->hwaccel = hwaccel;
src/options.c:		global->flg_hwaccel = 1;
src/options.c:		global->FpsCount = FpsCount;
src/options.c:		global->flg_FpsCount = 1;
src/profile.c:	filename = g_strjoin("/", global->profile_FPath[1], global->profile_FPath[0], NULL);
src/profile.c:	filename = g_strjoin("/", global->profile_FPath[1], global->profile_FPath[0], NULL);
src/snd_devices.c:		global->Sound_enable=0;
src/snd_devices.c:			if (global->debug) g_printf( "--------------------------------------- device #%d\n", it );
src/snd_devices.c:				if (global->debug) g_printf( "[ Default Input" );
src/snd_devices.c:				global->Sound_DefDev=global->Sound_numInputDev;/*default index in array of input devs*/
src/snd_devices.c:				if (global->debug) g_printf( "[ Default %s Input", hostInfo->name );
src/snd_devices.c:				global->Sound_DefDev=global->Sound_numInputDev;/*index in array of input devs*/
src/snd_devices.c:			 	if (global->debug) 
src/snd_devices.c:				if (global->debug)
src/snd_devices.c:				if (global->debug) g_printf( " ]\n" );
src/snd_devices.c:			if (global->debug) 
src/snd_devices.c:				global->Sound_numInputDev++;
src/snd_devices.c:				global->Sound_IndexDev = g_renew(sndDev, global->Sound_IndexDev, global->Sound_numInputDev);
src/snd_devices.c:				global->Sound_IndexDev[global->Sound_numInputDev-1].id=it; /*saves dev id*/
src/snd_devices.c:				global->Sound_IndexDev[global->Sound_numInputDev-1].chan=deviceInfo->maxInputChannels;
src/snd_devices.c:				global->Sound_IndexDev[global->Sound_numInputDev-1].samprate=deviceInfo->defaultSampleRate;
src/snd_devices.c:			if (global->debug) 
src/snd_devices.c:		if (global->debug) g_printf("----------------------------------------------\n");
src/sound.c:	if(global->Sound_SampRateInd==0)
src/sound.c:		global->Sound_SampRate=global->Sound_IndexDev[global->Sound_UseDev].samprate;/*using default*/
src/sound.c:	if(global->Sound_NumChanInd==0) 
src/sound.c:		global->Sound_NumChan=(global->Sound_IndexDev[global->Sound_UseDev].chan < 3) ? 
src/sound.c:			global->Sound_IndexDev[global->Sound_UseDev].chan : 2;
src/sound.c:	data->samprate = global->Sound_SampRate;
src/sound.c:	data->channels = global->Sound_NumChan;
src/sound.c:	data->numsec = global->Sound_NumSec;
src/sound.c:	data->inputParameters.device = global->Sound_IndexDev[global->Sound_UseDev].id; /* input device */
src/timers.c:	if(global->debug) g_printf("setting video toggle to FALSE\n");
src/timers.c:	//g_mutex_lock(global->mutex);
src/timers.c:		global->Capture_time=0; 
src/timers.c:	//g_mutex_unlock(global->mutex);
src/timers.c:			global->imgFPath,
src/timers.c:			global->image_inc);
src/timers.c:	//g_mutex_lock(global->mutex);
src/timers.c:		g_snprintf(global->imageinc_str,24,_("File num:%d"),global->image_inc);
src/timers.c:		gtk_label_set_text(GTK_LABEL(gwidget->ImageIncLabel), global->imageinc_str);
src/timers.c:		global->image_inc++;
src/timers.c:	//g_mutex_unlock(global->mutex);
src/timers.c:	if(global->image_inc > global->image_npics) 
src/timers.c:		//g_mutex_lock(global->mutex);
src/timers.c:			global->image_timer=0;
src/timers.c:		//g_mutex_unlock(global->mutex);
src/timers.c:	//g_mutex_lock(global->mutex);
src/timers.c:		global->DispFps = (double) global->frmCount / 2;
src/timers.c:	//g_mutex_unlock(global->mutex);
src/timers.c:	if (global->FpsCount>0) 
src/timers.c:		//g_mutex_lock(global->mutex);
src/timers.c:			g_snprintf(global->WVcaption,10,"GUVCVideo");
src/timers.c:			SDL_WM_SetCaption(global->WVcaption, NULL);
src/timers.c:		//g_mutex_unlock(global->mutex);
src/v4l2uvc.c:	char *device = global->videodevice;
src/v4l2uvc.c:	int width = global->width;
src/v4l2uvc.c:	int height = global->height;
src/v4l2uvc.c:	int format = global->format;
src/v4l2uvc.c:	int grabmethod = global->grabmethod;
src/v4l2uvc.c:	int fps = global->fps;
src/v4l2uvc.c:	int fps_num = global->fps_num;
src/v4l2uvc.c:	if(!(global->control_only))
src/vcodecs.c:	switch (global->VidCodec) 
src/vcodecs.c:			if((global->Frame_Flags==0) && (videoIn->formatIn==V4L2_PIX_FMT_MJPEG)) 
src/vcodecs.c:				if (!global->jpeg)
src/vcodecs.c:					global->jpeg = g_new0(BYTE, global->jpeg_bufsize);
src/vcodecs.c:				global->jpeg_size = encode_image(videoIn->framebuffer, global->jpeg, 
src/vcodecs.c:				ret = write_video_data (all_data, global->jpeg, global->jpeg_size);
src/vcodecs.c:				*lavc_data = init_lavc(videoIn->width, videoIn->height, videoIn->fps, global->VidCodec);
src/video.c:	if (global->AFcontrol) 
src/video.c:	if(global->hwaccel) 
src/video.c:	if (SDL_VideoDriverName(driver, sizeof(driver)) && global->debug) 
src/video.c:	if (info->wm_available && global->debug) g_printf("A window manager is available\n");
src/video.c:		if (global->debug) 
src/video.c:		if (global->debug) g_printf("Copy blits between hardware surfaces are accelerated\n");
src/video.c:	if (global->debug) 
src/video.c:	SDL_WM_SetCaption(global->WVcaption, NULL); 
src/video.c:		global->bpp,
src/video.c:			g_snprintf(global->WVcaption,20,"GUVCVideo - CRASHED");
src/video.c:			SDL_WM_SetCaption(global->WVcaption, NULL);
src/video.c:			if((global->framecount==0) && videoIn->capVid) 
src/video.c:				global->Vidstarttime = ns_time(); //miliseconds
src/video.c:				global->v_ts = 0;
src/video.c:				global->v_ts = ns_time() - global->Vidstarttime; //nanoseconds
src/video.c:				//printf("start: %lu, timestamp: %llu\n",(unsigned long) global->Vidstarttime, global->v_ts);
src/video.c:			if (global->FpsCount) 
src/video.c:				global->frmCount++;
src/video.c:				if (global->DispFps>0) 
src/video.c:					g_snprintf(global->WVcaption,24,"GUVCVideo - %3.2f fps",global->DispFps);
src/video.c:					SDL_WM_SetCaption(global->WVcaption, NULL);
src/video.c:					global->frmCount=0;/*resets*/
src/video.c:					global->DispFps=0;
src/video.c:			if (global->AFcontrol && (global->autofocus || AFdata->setFocus)) 
src/video.c:						if (global->debug) 
src/video.c:						if (global->debug) g_printf("Wait Frame: %d\n",AFdata->focus_wait);
src/video.c:		g_mutex_lock(global->mutex);
src/video.c:		if(global->Frame_Flags>0)
src/video.c:			if((global->Frame_Flags & YUV_MIRROR)==YUV_MIRROR) 
src/video.c:			if((global->Frame_Flags & YUV_UPTURN)==YUV_UPTURN)
src/video.c:			if((global->Frame_Flags & YUV_NEGATE)==YUV_NEGATE)
src/video.c:			if((global->Frame_Flags & YUV_MONOCR)==YUV_MONOCR) 
src/video.c:			if((global->Frame_Flags & YUV_PIECES)==YUV_PIECES)
src/video.c:		g_mutex_unlock(global->mutex);
src/video.c:			switch(global->imgFormat) 
src/video.c:					if((global->Frame_Flags==0) && (videoIn->formatIn==V4L2_PIX_FMT_MJPEG)) 
src/video.c:					else if ((global->Frame_Flags==0) && (videoIn->formatIn==V4L2_PIX_FMT_JPEG))
src/video.c:						if (!global->jpeg)
src/video.c:							global->jpeg = g_new0(BYTE, global->jpeg_bufsize);
src/video.c:						global->jpeg_size = encode_image(videoIn->framebuffer, global->jpeg, 
src/video.c:						if(SaveBuff(videoIn->ImageFName,global->jpeg_size,global->jpeg)) 
src/video.c:			if (global->debug) g_printf("saved image to:%s\n",videoIn->ImageFName);
src/video.c:			if ((global->Sound_enable) && (pdata->audio_flag>0)) 
src/video.c:					//if(global->debug) g_printf("audio: %lu frames per buffer and %d total samples\n",
src/video.c:				if(global->debug) g_printf(" total frames: %d  -- encoded: %d\n", global->framecount, nf);
src/video.c:				//if (global->framecount > nf)
src/video.c:				//	global->framecount = nf;
src/video.c:		if(global->vid_sleep)
src/video.c:			SDL_Delay(global->vid_sleep);
src/video.c:							uvcPanTilt (videoIn->fd,0,INCPANTILT*(global->TiltStep),0);
src/video.c:							uvcPanTilt (videoIn->fd,0,-INCPANTILT*(global->TiltStep),0);
src/video.c:							uvcPanTilt (videoIn->fd,-INCPANTILT*(global->PanStep),0,0);
src/video.c:							uvcPanTilt (videoIn->fd,INCPANTILT*(global->PanStep),0,0);
src/video.c:		global->Vidstoptime = ms_time();
src/video.c:		if (global->debug) g_printf("stoping Video capture\n");
src/video.c:	if (global->debug) g_printf("Thread terminated...\n");
src/video.c:	if (global->debug) g_printf("cleaning Thread allocations: 100%%\n");
src/video.c:	if (global->debug) g_printf("SDL Quit\n");
src/video_format.c:	if (global->Sound_enable > 0) 
src/video_format.c:				if(global->Sound_Format == PA_FOURCC)
src/video_format.c:				else if (global->Sound_Format == ISO_FORMAT_MPEG12)
src/video_format.c:		if(global->Sound_Format == ISO_FORMAT_MPEG12) close_MP2_encoder();
src/video_format.c:	if(global->Sound_enable > 0)
src/video_format.c:		switch (global->Sound_Format)
src/video_format.c:	set_mkvCodecPriv(global->VidCodec, videoIn->width, videoIn->height);
src/video_format.c:	int size = set_mkvCodecPriv(global->VidCodec, videoIn->width, videoIn->height);
src/video_format.c:                     get_mkvCodec(global->VidCodec),
src/video_format.c:                     get_mkvCodecPriv(global->VidCodec), size,
src/video_format.c:                     (int64_t) (global->fps_num * 1000000000/global->fps), //nano seconds
src/video_tab.c:		global->vidFPath=splitPath((gchar *) basename, global->vidFPath);
src/video_tab.c:			global->vidFPath[1]);
src/video_tab.c:			global->vidFPath[0]);
src/video_tab.c:			global->vidFPath=splitPath(fullname, global->vidFPath);
src/video_tab.c:			gtk_entry_set_text(GTK_ENTRY(gwidget->VidFNameEntry),global->vidFPath[0]);
src/video_tab.c:		global->imgFPath=splitPath((gchar *)basename, global->imgFPath);
src/video_tab.c:			global->imgFPath[1]);
src/video_tab.c:			global->imgFPath[0]);
src/video_tab.c:			global->imgFPath=splitPath(fullname, global->imgFPath);
src/video_tab.c:			gtk_entry_set_text(GTK_ENTRY(gwidget->ImageFNameEntry),global->imgFPath[0]);
src/video_tab.c:			global->imgFormat = check_image_type(global->imgFPath[0]);
src/video_tab.c:			gtk_combo_box_set_active(GTK_COMBO_BOX(gwidget->ImageType),global->imgFormat);
src/video_tab.c:			if(global->image_inc>0)
src/video_tab.c:				global->image_inc=1; /*if auto naming restart counter*/
src/video_tab.c:				g_snprintf(global->imageinc_str,24,_("File num:%d"),global->image_inc);
src/video_tab.c:				gtk_label_set_text(GTK_LABEL(gwidget->ImageIncLabel), global->imageinc_str);
src/video_tab.c:	vcodecs_data *codec_defaults = get_codec_defaults(global->VidCodec);
src/video_tab.c:	if (global->debug) 
src/video_tab.c:			if ((global->width==videoIn->listFormats->listVidFormats[videoIn->listFormats->current_format].listVidCap[i].width) && 
src/video_tab.c:				(global->height==videoIn->listFormats->listVidFormats[videoIn->listFormats->current_format].listVidCap[i].height))
src/video_tab.c:	videoIn->fps_num=global->fps_num;
src/video_tab.c:	videoIn->fps=global->fps;
src/video_tab.c:	if (global->debug) 
src/video_tab.c:		global->fps=videoIn->listFormats->listVidFormats[videoIn->listFormats->current_format].listVidCap[0].framerate_denom[0];
src/video_tab.c:		global->fps_num=videoIn->listFormats->listVidFormats[videoIn->listFormats->current_format].listVidCap[0].framerate_num[0];
src/video_tab.c:		videoIn->fps=global->fps;
src/video_tab.c:		videoIn->fps_num=global->fps_num;
src/video_tab.c:	gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(ShowFPS),(global->FpsCount > 0));
src/video_tab.c:	if(global->debug) 
src/video_tab.c:		if(global->format == videoIn->listFormats->listVidFormats[fmtind].format)
src/video_tab.c:	gtk_entry_set_text(GTK_ENTRY(gwidget->ImageFNameEntry),global->imgFPath[0]);
src/video_tab.c:	gwidget->ImageIncLabel=gtk_label_new(global->imageinc_str);
src/video_tab.c:	gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(gwidget->ImageInc),(global->image_inc > 0));
src/video_tab.c:	gtk_combo_box_set_active(GTK_COMBO_BOX(gwidget->ImageType),global->imgFormat);
src/video_tab.c:	if (global->vidfile) 
src/video_tab.c:		gtk_entry_set_text(GTK_ENTRY(gwidget->VidFNameEntry),global->vidfile);
src/video_tab.c:		gtk_entry_set_text(GTK_ENTRY(gwidget->VidFNameEntry),global->vidFPath[0]);
src/video_tab.c:	gwidget->VidIncLabel=gtk_label_new(global->vidinc_str);
src/video_tab.c:	gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(gwidget->VidInc),(global->vid_inc > 0));
src/video_tab.c:	gtk_combo_box_set_active(GTK_COMBO_BOX(gwidget->VidCodec),global->VidCodec);
src/video_tab.c:	gtk_widget_set_sensitive (gwidget->lavc_button, isLavcCodec(global->VidCodec));
src/video_tab.c:	gtk_combo_box_set_active(GTK_COMBO_BOX(gwidget->VidFormat),global->VidFormat);
src/video_tab.c:	gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(FiltMirrorEnable),(global->Frame_Flags & YUV_MIRROR)>0);
src/video_tab.c:	gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(FiltUpturnEnable),(global->Frame_Flags & YUV_UPTURN)>0);
src/video_tab.c:	gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(FiltNegateEnable),(global->Frame_Flags & YUV_NEGATE)>0);
src/video_tab.c:	gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(FiltMonoEnable),(global->Frame_Flags & YUV_MONOCR)>0);
src/video_tab.c:	gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(FiltPiecesEnable),(global->Frame_Flags & YUV_PIECES)>0);
