Source

gnome-record-screen / GNOME-Record-Screen / src / UI / MpegConfigurationPane.cs

Full commit
/**
 * MpegConfigurationPane.cs
 *
 * :copyright: 2008 mitsuhiko.
 * :license: BSD
 */


using System;

namespace Gnome.RecordScreen.UI {
	
	public partial class MpegConfigurationPane : ConfigurationPane {
		
		public MpegConfigurationPane ()
		{
			Build ();
			
			foreach (string name in MpegVideoEncoder.MpegFormats)
				format.AppendText (name);
			format.Active = 0;
		}
		
		public int BitRate {
			get { return (int)bitrate.Value; }
			set { bitrate.Value = (double)value; }
		}
		
		public int Format {
			get { return format.Active; }
			set { format.Active = value; }
		}
	}
}