求大神指点,如何利用giflib将一组连续的图像帧生成gif文件,图像帧已经经过了放缩

我不是3号 2016-06-24 11:12:10
如题。。。。。。。。。。。。。。。。。。。
...全文
234 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
shiter 2016-06-25
  • 打赏
  • 举报
回复
Encoding (egif_lib.c) The high-level function int EGifSpew(GifFileType *GifFile) writes a complete (possibly multi-image) GIF file to the indicated file handle from in-core allocated structures created by a previous DGifSlurp() or equivalent operations. Its argument is a GIF file descriptor, which imnplicitly points to storage previously allocated by DGifSlurp(). The file is written with a GIF87 stamp unless it contains one of the four special extension blocks defined in GIF89, in which case it is written with a GIF89 stamp. EGifSpew() finishes by closing the GIF (writing a termination record to it) and deallocating the associated storage. You can write to a GIF file through a function hook. Initialize with GifFileType *EGifOpen(void *userPtr, OutputFunc writeFunc, int *ErrorCode) and see the library header file for the type of OutputFunc. There is also a set of deprecated functions for sequential I/O, described in a later section. 不知道是不是这块? http://giflib.sourceforge.net/gif_lib.html#idm46571690348944 你研究研究给我们分享一下
zgl7903 2016-06-24
  • 打赏
  • 举报
回复
参考GIF编码一节 GifEncoder.cs
我不是3号 2016-06-24
  • 打赏
  • 举报
回复
引用 1 楼 zgl7903 的回复:
参考GIF编码一节 GifEncoder.cs
谢谢你的指点,不过我得到的已经是gif的像素数据了,需要做的不是对图像进行解析处理,只是需要将这些像素文件生成gif文件

19,469

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 图形处理/算法
社区管理员
  • 图形处理/算法社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧