// timestamp=-1 is treated as current time. [DllImport("fccore")] public static extern Bool fcWebMAddVideoFramePixels(fcWebMContext ctx, byte[] pixels, fcPixelFormat fmt, double timestamp = -1.0);
// timestamp=-1 is treated as current time. [DllImport("fccore")] public static extern Bool fcWebMAddAudioSamples(fcWebMContext ctx, float[] samples, int num_samples);
[DllImport("fccore")] public static extern void fcWebMAddOutputStream(fcWebMContext ctx, fcStream stream);
// timestamp=-1 is treated as current time. [DllImport("fccore")] public static extern Bool fcWebMAddAudioFrame(fcWebMContext ctx, float[] samples, int num_samples, double timestamp = -1.0);
[DllImport("fccore")] private static extern void fcWebMDestroyContext(fcWebMContext ctx);
public static fcDeferredCall fcWebMAddVideoFrameTexture(fcWebMContext ctx, RenderTexture tex, double time, fcDeferredCall id) { return(fcWebMAddVideoFrameTexture(ctx, tex.GetNativeTexturePtr(), fcGetPixelFormat(tex.format), time, id)); }
[DllImport("fccore")] private static extern fcDeferredCall fcWebMAddVideoFrameTexture(fcWebMContext ctx, IntPtr tex, fcPixelFormat fmt, double timestamp, fcDeferredCall id);