|
Hi Qasem,
I found that the size of output from RasterImageFormat.Jpeg(using video callback filter) & StillFormat_JPEG444 (using playback Ctrl) are not the same. Can you advise?
Video CallBack Filter RasterViewPerspective viewPerspective; try { if (!Session.captureMode || inCapturingStillImage) { return; }
if (bTopDown == 1) viewPerspective = RasterViewPerspective.TopLeft; else viewPerspective = RasterViewPerspective.BottomLeft;
image = new RasterImage( RasterMemoryFlags.User, lWidth, lHeight, lBitCount, RasterByteOrder.Bgr, viewPerspective, null, IntPtr.Zero, 0); image.SetUserData(new IntPtr(pData), lSize);
codecs = new RasterCodecs(); codecs.Save(image.Clone(), "abc.jpg", RasterImageFormat.Jpeg, 24); inCapturingStillImage = false; } catch(System.Exception ex) { throw new Exception(ex.Message); } System.Windows.Forms.Application.DoEvents(); }
Playback Control axltmmPlayCtrl.SaveStillBitmap("abc.jpg", (int)LTMMLib.ltmmPlay_StillFormat.ltmmPlay_StillFormat_JPEG444, 2, 0, 1000);
The output file from video capture are follows: 640*480, 150*150 dpi, 24 bits = 218 KB
The output file from playback ctrl are follows: 640*480, 96*96 dpi, 24 bits = 304KB
How can get the same quality and size from two methods?
|