Windows API Functions
35
void __stdcall MyCallbackProc(
BYTE * pBuffer,
int iBufferSize,
int iSyncPoint
)
{
if(iBufferSize>0 && pBuffer)
Mpg24Net_ServerSend(
hHandle,
pBuffer,
iBufferSize,
iSyncPoint
);
}
start()
{
// Open ADLink Hardware MPEG4 Device
Mpg24_EncoderOpen(0, 0);
// Set configuration: NTSC Full D1 30fps
4Mbps Microsoft MPEG-4
Mpg24_EncoderSetVideoFormat(0, 0,
VideoFormat_Standard, 0);
Mpg24_EncoderSetVideoFormat(0, 0,
VideoFormat_Size, 0);
Mpg24_EncoderSetVideoFormat(0, 0,
VideoFormat_FrameRate, 0);
Mpg24_EncoderSetVideoFormat(0, 0,
VideoFormat_TargetBitrate, 0);
Mpg24_EncoderSetVideoFormat(0, 0,
VideoFormat_SubType, 0);
Mpg24_EncoderSetVideoFormat(0, 0,
VideoFormat_MPEG4Mode, 1);
Mpg24_EncoderCallback(0, 0,
MyCallbackProc);
// Open a server instance
hHandle = Mpg24Net_ServerOpen(0);
// Start
Mpg24Net_ServerStart(hHandle, 5000);
Mpg24_EncoderRun(0, 0);
}
Summary of Contents for PCI-MPG24
Page 4: ......
Page 7: ...List of Tables iii List of Tables Table 2 1 Include Files 4 Table 2 2 Library File 4 ...
Page 8: ...iv List of Tables ...
Page 10: ...2 Introduction ...
Page 17: ...DirectShow Programming 9 ADLink Unicast Receiver ...
Page 18: ...10 DirectShow Programming ADLink Multicast Sender ...
Page 20: ...12 DirectShow Programming Unicast Receiver Preview File Save Multicast Sender ...
Page 36: ...28 DirectShow Programming ...
Page 51: ...Windows API Functions 43 Return Values See chapter 4 5 ...