git-svn-id: http://svn.sourceforge.jp/svnroot/lipsync@10 b1f601f4-4f45-0410-8980-aecacb008692

This commit is contained in:
kbinani 2009-07-30 14:57:06 +00:00
parent 3bbc320365
commit ea047ec460

View File

@ -1774,19 +1774,17 @@ namespace LipSync {
if ( args.UseVfwEncoder ) { if ( args.UseVfwEncoder ) {
bmp = new Bitmap( size.Width, size.Height, System.Drawing.Imaging.PixelFormat.Format24bppRgb ); bmp = new Bitmap( size.Width, size.Height, System.Drawing.Imaging.PixelFormat.Format24bppRgb );
if ( is_raw_mode ) { if ( is_raw_mode ) {
AviWriterVcm awvcm = new AviWriterVcm(); RawAvi2Writer awraw = new RawAvi2Writer();
bool ret = awvcm.Open( args.AviFile, bool ret = awraw.Open( args.AviFile,
AppManager.SaveData.DwScale, AppManager.SaveData.DwScale,
AppManager.SaveData.DwRate, AppManager.SaveData.DwRate,
size.Width, size.Width,
size.Height, size.Height,
!is_raw_mode,
args.IsTransparent,
Process.GetCurrentProcess().MainWindowHandle ); Process.GetCurrentProcess().MainWindowHandle );
if ( !ret ) { if ( !ret ) {
return; return;
} }
writer = awvcm; writer = awraw;
} else { } else {
AviWriterVfw awvfw = new AviWriterVfw(); AviWriterVfw awvfw = new AviWriterVfw();
bool ret = awvfw.Open( args.AviFile, bool ret = awvfw.Open( args.AviFile,