/// <summary> /// The AVIFileCreateStream function creates a new stream in an existing /// file and creates an interface to the new stream. /// </summary> /// <param name="pfile">Handle to an open AVI file.</param> /// <param name="ppavi">Pointer to the new stream interface.</param> /// <param name="streaminfo">Pointer to a structure containing information /// about the new stream, including the stream type and its sample rate.</param> /// <returns>Returns zero if successful or an error otherwise. /// Unless the file has been opened with write permission, this function returns AVIERR_READONLY.</returns> /// <remarks> /// This function starts a reference count for the new stream. /// </remarks> public static AviError AVIFileCreateStream(int pfile, out IntPtr ppavi, ref AVIStreamInfo streaminfo) { return Native.AVIFileCreateStream(pfile, out ppavi, ref streaminfo); }
internal static extern AviError AVIFileCreateStream(int pfile, out IntPtr ppavi, ref AVIStreamInfo streaminfo);
internal static extern int AVIStreamInfo(int pAVIStream, ref AVIStreamInfo psi, int lSize);
/// <summary> /// The AVIStreamInfo function obtains stream header information. /// </summary> /// <param name="pAVIStream">Handle to an open stream (pointer to an IAVIStream interface).</param> /// <param name="psi">Pointer to a structure to contain the stream information</param> /// <param name="lSize">Size, in bytes, of the structure used for psi</param> /// <returns>Returns zero if successful or an error otherwise</returns> public static int AVIStreamInfo(int pAVIStream, ref AVIStreamInfo psi, int lSize) { return Native.AVIStreamInfo(pAVIStream, ref psi, lSize); }
/// <summary> /// The AVIFileCreateStream function creates a new stream in an existing /// file and creates an interface to the new stream. /// </summary> /// <param name="pfile">Handle to an open AVI file.</param> /// <param name="ppavi">Pointer to the new stream interface.</param> /// <param name="streaminfo">Pointer to a structure containing information /// about the new stream, including the stream type and its sample rate.</param> /// <returns>Returns zero if successful or an error otherwise. /// Unless the file has been opened with write permission, this function returns AVIERR_READONLY.</returns> /// <remarks> /// This function starts a reference count for the new stream. /// </remarks> public static AviError AVIFileCreateStream(int pfile, out IntPtr ppavi, ref AVIStreamInfo streaminfo) { return(Native.AVIFileCreateStream(pfile, out ppavi, ref streaminfo)); }
internal static extern AviError AVIFileCreateStream(int pfile, out IntPtr ppavi, ref AVIStreamInfo streaminfo);
internal static extern int AVIStreamInfo(int pAVIStream, ref AVIStreamInfo psi, int lSize);
/// <summary> /// The AVIStreamInfo function obtains stream header information. /// </summary> /// <param name="pAVIStream">Handle to an open stream (pointer to an IAVIStream interface).</param> /// <param name="psi">Pointer to a structure to contain the stream information</param> /// <param name="lSize">Size, in bytes, of the structure used for psi</param> /// <returns>Returns zero if successful or an error otherwise</returns> public static int AVIStreamInfo(int pAVIStream, ref AVIStreamInfo psi, int lSize) { return(Native.AVIStreamInfo(pAVIStream, ref psi, lSize)); }