public static Bool fcGifWriteFile(fcGIFContext ctx, string path, int begin_frame = 0, int end_frame = -1) { fcStream fstream = fcCreateFileStream(path); Bool ret = fcGifWrite(ctx, fstream, begin_frame, end_frame); fcDestroyStream(fstream); return(ret); }
[DllImport("FrameCapturer")] private static extern int fcGifAddFrameTextureDeferred(fcGIFContext ctx, IntPtr tex, fcPixelFormat fmt, Bool keyframe, double timestamp, int id);
[DllImport("FrameCapturer")] public static extern void fcGifDestroyContext(fcGIFContext ctx);
public static extern void fcGifGetFrameData(fcGIFContext ctx, IntPtr tex, int frame);
public static extern Bool fcGifWrite(fcGIFContext ctx, fcStream stream, int begin_frame=0, int end_frame=-1);
public static int fcGifAddFrameTexture(fcGIFContext ctx, RenderTexture tex, bool keyframe, double timestamp, int id) { return(fcGifAddFrameTextureDeferred(ctx, tex.GetNativeTexturePtr(), fcGetPixelFormat(tex.format), keyframe, timestamp, id)); }
[DllImport("FrameCapturer")] public static extern int fcGifGetExpectedDataSize(fcGIFContext ctx, int begin_frame, int end_frame);
[DllImport("FrameCapturer")] public static extern int fcGifGetFrameCount(fcGIFContext ctx);
public static extern void fcGifClearFrame(fcGIFContext ctx);
public static extern void fcGifAddFrame(fcGIFContext ctx, IntPtr tex);
public static extern int fcGifWriteMemory(fcGIFContext ctx, IntPtr out_buf, int begin_frame=0, int end_frame=-1);
public static extern bool fcGifWriteFile(fcGIFContext ctx, string path, int begin_frame=0, int end_frame=-1);
private static extern int fcGifAddFrameTextureDeferred(fcGIFContext ctx, IntPtr tex, fcPixelFormat fmt, Bool keyframe, double timestamp, int id);
public static Bool fcGifWriteFile(fcGIFContext ctx, string path, int begin_frame = 0, int end_frame = -1) { fcStream fstream = fcCreateFileStream(path); Bool ret = fcGifWrite(ctx, fstream, begin_frame, end_frame); fcDestroyStream(fstream); return ret; }
[DllImport("FrameCapturer")] public static extern Bool fcGifWrite(fcGIFContext ctx, fcStream stream, int begin_frame = 0, int end_frame = -1);
[DllImport("FrameCapturer")] public static extern void fcGifClearFrame(fcGIFContext ctx);
public static extern void fcGifDestroyContext(fcGIFContext ctx);
[DllImport("FrameCapturer")] public static extern void fcGifGetFrameData(fcGIFContext ctx, IntPtr tex, int frame);
public static extern void fcGifEraseFrame(fcGIFContext ctx, int begin_frame, int end_frame);
[DllImport("FrameCapturer")] public static extern void fcGifEraseFrame(fcGIFContext ctx, int begin_frame, int end_frame);
public static extern int fcGifGetExpectedDataSize(fcGIFContext ctx, int begin_frame, int end_frame);
public static extern int fcGifGetFrameCount(fcGIFContext ctx);
public static int fcGifAddFrameTexture(fcGIFContext ctx, RenderTexture tex, bool keyframe, double timestamp, int id) { return fcGifAddFrameTextureDeferred(ctx, tex.GetNativeTexturePtr(), fcGetPixelFormat(tex.format), keyframe, timestamp, id); }