assert(0);
ADM_assert(0);
uint8_t DIA_XVCDParam(char *title,COMPRESSION_MODE * mode, uint32_t * qz,		   				   uint32_t * br,uint32_t *fsize,FFcodecSetting *conf){	GtkWidget *dialog;	gchar *str;	char string[200];	int ret;	gint r,b;#define WID(x) lookup_widget(dialog,#x)#define CHECK_GET(x,y) {y=gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(WID(x)));}#define CHECK_SET(x,y) {gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON(WID(x)),y);}			dialog=create_dialog1();	gtk_transient(dialog);	  	gtk_window_set_title (GTK_WINDOW (dialog), title);	// set the right select button switch (*mode)	    {	    	case COMPRESS_CBR:			RADIO_SET(radioCBR,1);			b=*br/1000;			gtk_write_entry(WID(entryCBR),(int)b);			break;		case COMPRESS_2PASS:			RADIO_SET(radio2Pass,1);			gtk_write_entry(WID(entry2Pass),(int)*fsize);			break;	    	case COMPRESS_CQ:			RADIO_SET(radioCQ,1);			gtk_write_entry(WID(entryCQ),(int)*qz);			break;		}	gtk_write_entry(WID(entry_min),(int) (conf->minBitrate *8)/1000);	gtk_write_entry(WID(entry_max),(int) (conf->maxBitrate *8)/1000); 	gtk_option_menu_set_history (GTK_OPTION_MENU (WID(optionmenu1)),conf->user_matrix);	gtk_option_menu_set_history (GTK_OPTION_MENU (WID(optionmenu1)),conf->user_matrix); 	gtk_spin_button_set_value(GTK_SPIN_BUTTON(WID(spinbutton1)),(float)conf->gop_size) ;	CHECK_SET(checkbuttonxvid,conf->use_xvid_ratecontrol);	ret=-1;	while(ret==-1)	{	if(gtk_dialog_run(GTK_DIALOG(dialog))==GTK_RESPONSE_OK)	{			int r,value=0;				ret=1;    				conf->minBitrate=(gtk_read_entry(WID(entry_min))*1000)>>3;				conf->maxBitrate=(gtk_read_entry(WID(entry_max))*1000)>>3;				conf->user_matrix= getRangeInMenu(WID(optionmenu1));				conf->gop_size= gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(WID(spinbutton1)));				CHECK_GET(checkbuttonxvid,conf->use_xvid_ratecontrol);				r=RADIO_GET(radioCQ)+(2*RADIO_GET(radioCBR))+(4*RADIO_GET(radio2Pass));				printf("\n r: %d \n",r);				switch(r)				{				case 2:					*mode = COMPRESS_CBR;				      	value =		 gtk_read_entry(WID(entryCBR));		      			if (value < 9000)					{			  			value *= 1000;					}		      			if (value > 16 && value < 9000000)					{			    			*br = value;			    			ret = 1;		      			} else			  		ret = -1;		      			break;				case 1:					*mode = COMPRESS_CQ;		      			value =  gtk_read_entry(WID(entryCQ));		      			if (value >= 2 && value <= 32)						{			    			*qz = value;			    			ret = 1;		      				}		      			else						{							printf("\n incorrect Q parameter\n");				    		ret =-1;						}		  	  	  	break;				case 4:		     				*mode = COMPRESS_2PASS;		       						      				value = gtk_read_entry(WID(entry2Pass));        					if((value>0)&&(value<4000))          					{       							*fsize=value;				      			ret=1;           					}            					else             						ret=-1;         					break;		  		default:		      				assert(0);				}	}	else	ret=0;	gtk_widget_destroy(dialog);	}	return ret;}