Beispiel #1
0
void RecordVideo::config_update()
{
	VideoDevice *vdevice = record->vdevice;
	vdevice->config_update();
	int width = vdevice->get_iwidth();
	int height = vdevice->get_iheight();
	double frame_rate = vdevice->get_irate();
	float awidth, aheight;
	MWindow::create_aspect_ratio(awidth, aheight, width, height);
	EDLSession *session = record->edl->session;
	SESSION->aspect_w = session->aspect_w = awidth;
	SESSION->aspect_h = session->aspect_h = aheight;
	SESSION->output_w = session->output_w = width;
	SESSION->output_h = session->output_h = height;
	Asset *rf_asset = SESSION->recording_format;
	Asset *df_asset = record->default_asset;
	rf_asset->width  = df_asset->width  = width;
	rf_asset->height = df_asset->height = height;
	rf_asset->frame_rate = df_asset->frame_rate = frame_rate;
}