@@ -62,7 +62,7 @@ private FrameGrabber()
62
62
}
63
63
64
64
// MP1-4248 : Start* Line Code for Ambilight System Capture (Atmolight)
65
- public delegate void NewFrameHandler ( Int16 width , Int16 height , Int16 arWidth , Int16 arHeight , Surface pSurface , FrameSource FrameSource ) ;
65
+ public delegate void NewFrameHandler ( Int16 width , Int16 height , Int16 arWidth , Int16 arHeight , IntPtr pSurface , FrameSource FrameSource ) ;
66
66
67
67
public event NewFrameHandler OnNewFrame ;
68
68
// MP1-4248 : End* Ambilight Capture
@@ -315,7 +315,7 @@ public void OnFrameGUI(Surface surface)
315
315
{
316
316
unsafe
317
317
{
318
- OnFrame ( ( Int16 ) surface . Description . Width , ( Int16 ) surface . Description . Height , 0 , 0 , surface , FrameSource . GUI ) ;
318
+ OnFrame ( ( Int16 ) surface . Description . Width , ( Int16 ) surface . Description . Height , 0 , 0 , ( IntPtr ) surface , FrameSource . GUI ) ;
319
319
}
320
320
}
321
321
}
@@ -328,7 +328,7 @@ public void OnFrameGUI(Surface surface)
328
328
/// <param name="arWidth"></param>
329
329
/// <param name="arHeight"></param>
330
330
/// <param name="pTargetmadVrDib"></param>
331
- public void OnFrame ( Int16 width , Int16 height , Int16 arWidth , Int16 arHeight , IntPtr pTargetmadVrDib , FrameSource FrameSource )
331
+ public void OnFrameMadVrDib ( Int16 width , Int16 height , Int16 arWidth , Int16 arHeight , IntPtr pTargetmadVrDib , FrameSource FrameSource )
332
332
{
333
333
FrameGrabberD3D9Enable = false ;
334
334
//Dont pass GUI frames to GetCurrentImage() -> VideoModeSwitcher is using it
@@ -408,7 +408,7 @@ public void OnFrame(Int16 width, Int16 height, Int16 arWidth, Int16 arHeight, In
408
408
/// <param name="arWidth"></param>
409
409
/// <param name="arHeight"></param>
410
410
/// <param name="pSurface"></param>
411
- public void OnFrame ( Int16 width , Int16 height , Int16 arWidth , Int16 arHeight , Surface pSurface , FrameSource FrameSource )
411
+ public void OnFrame ( Int16 width , Int16 height , Int16 arWidth , Int16 arHeight , IntPtr pSurface , FrameSource FrameSource )
412
412
{
413
413
FrameGrabberD3D9Enable = true ;
414
414
// MP1-4248 :Start* Line Code for Ambilight System Capture (Atmolight)
@@ -471,7 +471,7 @@ public void OnFrame(Int16 width, Int16 height, Int16 arWidth, Int16 arHeight, Su
471
471
// Log.Debug("Calling VideoSurfaceToRGBSurface");
472
472
if ( rgbSurface != null )
473
473
{
474
- VideoSurfaceToRGBSurface ( ( IntPtr ) pSurface , ( IntPtr ) rgbSurface ) ;
474
+ VideoSurfaceToRGBSurface ( pSurface , ( IntPtr ) rgbSurface ) ;
475
475
}
476
476
lock ( grabNotifier )
477
477
{
0 commit comments