public static extern int fcMP4WriteMemory(fcMP4Context ctx, IntPtr dst, int begin_frame, int end_frame);
[DllImport("fccore")] public static extern Bool fcMP4AddAudioFrame(fcMP4Context ctx, float[] samples, int num_samples, double timestamp = -1.0);
public static extern int fcMP4GetExpectedDataSize(fcMP4Context ctx, int begin_frame, int end_frame);
public static extern void fcMP4GetFrameData(fcMP4Context ctx, IntPtr tex, int frame);
[DllImport("fccore")] public static extern Bool fcMP4AddAudioSamples(fcMP4Context ctx, float[] samples, int num_samples);
public static extern void fcMP4DestroyContext(fcMP4Context ctx);
[DllImport("FrameCapturer")] public static extern bool fcMP4AddVideoFrameTexture(fcMP4Context ctx, IntPtr tex);
public static int fcMP4AddVideoFrameTexture(fcMP4Context ctx, RenderTexture tex, double time, int id) { return(fcMP4AddVideoFrameTextureDeferred(ctx, tex.GetNativeTexturePtr(), fcGetPixelFormat(tex.format), time, id)); }
private static extern int fcMP4AddVideoFrameTextureDeferred(fcMP4Context ctx, IntPtr tex, fcPixelFormat fmt, double time, int id);
private static extern IntPtr fcMP4GetVideoEncoderInfo(fcMP4Context ctx);
public static string fcMP4GetVideoEncoderInfoS(fcMP4Context ctx) { return Marshal.PtrToStringAnsi(fcMP4GetVideoEncoderInfo(ctx)); }
public static int fcMP4AddVideoFrameTexture(fcMP4Context ctx, RenderTexture tex, double time, int id) { return fcMP4AddVideoFrameTextureDeferred(ctx, tex.GetNativeTexturePtr(), fcGetPixelFormat(tex.format), time, id); }
public static extern void fcMP4AddOutputStream(fcMP4Context ctx, fcStream s);
[DllImport("FrameCapturer")] public static extern void fcMP4AddOutputStream(fcMP4Context ctx, fcStream s);
[DllImport("FrameCapturer")] public static extern bool fcMP4AddVideoFramePixels(fcMP4Context ctx, IntPtr pixels, fcEColorSpace cs = fcEColorSpace.RGBA);
[DllImport("FrameCapturer")] private static extern int fcMP4AddVideoFrameTextureDeferred(fcMP4Context ctx, IntPtr tex, fcPixelFormat fmt, double time, int id);
[DllImport("FrameCapturer")] public static extern bool fcMP4AddAudioSamples(fcMP4Context ctx, float[] samples, int num_samples);
[DllImport("fccore")] private static extern IntPtr fcMP4GetVideoEncoderInfo(fcMP4Context ctx);
[DllImport("FrameCapturer")] public static extern void fcMP4ClearFrame(fcMP4Context ctx);
public static extern Bool fcMP4AddAudioFrame(fcMP4Context ctx, float[] samples, int num_samples, double time = -1.0);
[DllImport("FrameCapturer")] public static extern bool fcMP4WriteFile(fcMP4Context ctx, string path, int begin_frame, int end_frame);
public static extern void fcMP4EraseFrame(fcMP4Context ctx, int begin_frame, int end_frame);
[DllImport("FrameCapturer")] public static extern int fcMP4WriteMemory(fcMP4Context ctx, IntPtr dst, int begin_frame, int end_frame);
public static extern int fcMP4GetFrameCount(fcMP4Context ctx);
[DllImport("FrameCapturer")] public static extern int fcMP4GetFrameCount(fcMP4Context ctx);
public static extern bool fcMP4WriteFile(fcMP4Context ctx, string path, int begin_frame, int end_frame);
[DllImport("FrameCapturer")] public static extern void fcMP4GetFrameData(fcMP4Context ctx, IntPtr tex, int frame);
[DllImport("fccore")] private static extern void fcMP4DestroyContext(fcMP4Context ctx);
[DllImport("FrameCapturer")] public static extern int fcMP4GetExpectedDataSize(fcMP4Context ctx, int begin_frame, int end_frame);
[DllImport("FrameCapturer")] public static extern void fcMP4DestroyContext(fcMP4Context ctx);
[DllImport("FrameCapturer")] public static extern void fcMP4EraseFrame(fcMP4Context ctx, int begin_frame, int end_frame);
[DllImport("FrameCapturer")] private static extern IntPtr fcMP4GetVideoEncoderInfo(fcMP4Context ctx);
public static extern bool fcMP4AddAudioSamples(fcMP4Context ctx, float[] samples, int num_samples);
[DllImport("FrameCapturer")] public static extern Bool fcMP4AddAudioFrame(fcMP4Context ctx, float[] samples, int num_samples, double time = -1.0);
public static extern bool fcMP4AddVideoFramePixels(fcMP4Context ctx, IntPtr pixels, fcEColorSpace cs=fcEColorSpace.RGBA);
[DllImport("fccore")] public static extern void fcMP4AddOutputStream(fcMP4Context ctx, fcStream s);
public static extern bool fcMP4AddVideoFrameTexture(fcMP4Context ctx, IntPtr tex);
[DllImport("fccore")] public static extern Bool fcMP4AddVideoFramePixels(fcMP4Context ctx, byte[] pixels, fcPixelFormat fmt, double timestamp = -1.0);
public static extern void fcMP4ClearFrame(fcMP4Context ctx);
public static string fcMP4GetVideoEncoderInfoS(fcMP4Context ctx) { return(Marshal.PtrToStringAnsi(fcMP4GetVideoEncoderInfo(ctx))); }
[DllImport("fccore")] private static extern fcDeferredCall fcMP4AddVideoFrameTextureDeferred(fcMP4Context ctx, IntPtr tex, fcPixelFormat fmt, double time, fcDeferredCall id);