next up previous contents index
Next: FMPPush Up: Push model functions Previous: FMPGetBuffer   Contents   Index

FMPOpen

This command opens the MPEG driver in push mode.

DWORD FMPOpen (dwflags, dwSize, dwCount, pCallback, dwContext);

Arguments
DWORD flags Specifies initial demux and stream playback mode on Open

FMPF_TRANSPORT Transport stream demux (push model)
FMPF_SYSTEM System stream demux (push model)
FMPF_SYSTEM Program stream demux (push model)
FMPF_VIDEO Video stream (MPEG1/MPEG2) (push model)
FMPF_MPEG_AUDIO MPEG Audio stream (push model)
FMPF_AC3 AC3 Audio stream (push model)
FMPF_DVD DVD Demux (push model)
FMPF_SVCD SVCD/VCD Demux (push model)
FMPF_CDDA CDDA demux (push model)
FMPF_PES pes stream support (push model)

DWORD dwSize Size of buffers (Memory Manager)

DWORD dwCount Number of buffers to allocate. The total size of the Memory Manager is dwSize * dwCount.

FUNCPTR pCallback User Callback to receive driver notifications.

DWORD dwContext Callback Context (reported when the callback is called)

Remarks
This command open the driver in push mode. The application has to feed the driver with data. Please refer to the streaming video section and the sample code for the details on the push model.

ReturnValue
Returns a 32 bit unsigned value. Typical return values might include one of the following :

\begin{figure}\begin{tabular}{\vert l\vert l\vert}
\hline
FMPE\_OK & No error \\...
...\_ENOUGH\_MEMORY & No more memory available \\
\hline
\end{tabular}\end{figure}

See also
FMPClose(1.5.2)

Figure 1.63: FMPOpen Operating Systems and Streaming Models
\begin{figure}\centering\begin{tabular}{\vert l\vert c\vert c\vert c\vert c\vert...
...bullet$& & & & \\
Linux & $\bullet$& & & & \\
\hline
\end{tabular}\end{figure}


next up previous contents index
Next: FMPPush Up: Push model functions Previous: FMPGetBuffer   Contents   Index
mabelsha 2002-03-26