CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 Windows编程 文件操作

文件名称:GifCodec

  • 所属分类:
  • 标签属性:
  • 上传时间:
    2015-01-17
  • 文件大小:
    427.82kb
  • 已下载:
    0次
  • 提 供 者:
  • 相关连接:
  • 下载说明:
    别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容来自于网络,使用问题请自行百度

参考网上的资料写的gif编解码。



编码用gdi解析常用图片格式,然后组装成gif

解码吧gif的每一帧转换成dib



gif文件格式网上有很多介绍



gif用的变长lzw压缩算法:

没弄懂原理,只知道过程。压缩取一个字符作为后缀,看看字符串是否存在。存在,用对应的编码作为前缀继续取;不存在把字符串添加到字典,前缀添加到输出流,后缀作为前缀继续取。解压取一个编码看看字典中是否存在。存在用对应的字符串的第一个字符作为后缀,看看当前字符串是否存在,不存在添加到字典中,后缀作为前缀,前缀对应的字符串添加到输出流,继续取;编码不存在,前缀对应的字符串的第一个字符作为后缀(这时当前字符串肯定不存在,字典中下一个可用编码肯定等于刚取出的编码),字符串添加到字典中,编码作为前缀,前缀对应的字符串添加到输出流,继续取。

编码流转换成字节流是按位从低到高的,window是小端模式(低字节在低地址),字节内低位在右边。



24位dib转换成8位dib时使用的八叉树算法



图片拉伸时参考的网上的双线性插值算法。

字典满了位数加一,位数是12时不加-Online reference materials written gif codec.



Encoded using gdi resolve common image formats, and then assembled into a gif

Each frame decode it into a gif dib



There are many online gif file format introduced



gif lzw with variable length compression algorithm:

Did not understand the principle, only know the process. Compression takes a character as a suffix, and see if there is a string. Exist as a prefix to continue to take with the corresponding encoding there is no string to add to the dictionary, a prefix added to the output stream, the suffix as a prefix to continue to take. Take a look at extracting coding dictionary exists. Exist with the corresponding first character string as a suffix to see the current string exists, there is no add to the dictionary, the suffix as a prefix, the corresponding string to the output stream, continue to take coding does not exist, prefix corresponding first character string as a suffix (when the current string certainly does not exis
(系统自动生成,下载前可以参看下载内容)

下载文件列表

GifCode/Debug/GifCode.ilk
GifCode/GifCode/common/DefGifStruct.h
GifCode/GifCode/common/HelpStretch.cpp
GifCode/GifCode/common/HelpStretch.h
GifCode/GifCode/common/LZWGif.cpp
GifCode/GifCode/common/LZWGif.h
GifCode/GifCode/Debug/BuildLog.htm
GifCode/GifCode/decode/GifDecode.cpp
GifCode/GifCode/decode/GifDecode.h
GifCode/GifCode/decode/GiftImageItem.cpp
GifCode/GifCode/decode/GiftImageItem.h
GifCode/GifCode/decode/MemHelp.cpp
GifCode/GifCode/decode/MemHelp.h
GifCode/GifCode/DlgDecode.cpp
GifCode/GifCode/DlgDecode.h
GifCode/GifCode/DlgEncode.cpp
GifCode/GifCode/DlgEncode.h
GifCode/GifCode/encode/GifEncode.cpp
GifCode/GifCode/encode/GifEncode.h
GifCode/GifCode/encode/OctTree.cpp
GifCode/GifCode/encode/OctTree.h
GifCode/GifCode/GifCode.aps
GifCode/GifCode/GifCode.cpp
GifCode/GifCode/GifCode.h
GifCode/GifCode/GifCode.rc
GifCode/GifCode/GifCode.vcproj
GifCode/GifCode/GifCode.vcproj.PC-201405121907.Administrator.user
GifCode/GifCode/GifCodeDlg.cpp
GifCode/GifCode/GifCodeDlg.h
GifCode/GifCode/ReadMe.txt
GifCode/GifCode/Release/BuildLog.htm
GifCode/GifCode/res/GifCode.ico
GifCode/GifCode/res/GifCode.rc2
GifCode/GifCode/resource.h
GifCode/GifCode/stdafx.cpp
GifCode/GifCode/stdafx.h
GifCode/GifCode/targetver.h
GifCode/GifCode.exe
GifCode/GifCode.sln
GifCode/GifCode.suo
GifCode/GifCode/common
GifCode/GifCode/Debug
GifCode/GifCode/decode
GifCode/GifCode/encode
GifCode/GifCode/Release
GifCode/GifCode/res
GifCode/Debug
GifCode/GifCode
GifCode/Release
GifCode

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com