-
GifCodec
参考网上的资料写的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)
- 2015-01-17 20:22:25下载
- 积分:1
-
jisuan
进行电力网络的潮流计算
可以此进行无功优化等问题(electrical calculation)
- 2020-12-01 22:29:27下载
- 积分:1
-
Compiler-C
compiler on c++
good luck
- 2014-01-23 00:45:17下载
- 积分:1
-
test
用VC++6.0,通过OCX组件对力控组态软件的二次开发,实现油标准密度的计算(With VC++6.0, through OCX control configuration software component of the force the secondary development of the oil standard density calculation to achieve)
- 2010-06-29 14:43:34下载
- 积分:1
-
youxian
--- --- 算符优先(------ Operator priority)
- 2007-12-02 18:38:30下载
- 积分:1
-
VCC-DLL
这份资料让您能够很好的了解DLL动态链接,文档分析的很仔细,希望对大家有所帮助。。。。(This information allows you to very good understanding of DLL Dynamic Link, document analysis very carefully, hoping to help all of you. . . .)
- 2009-07-20 14:35:41下载
- 积分:1
-
motor2
ansys motor design
设计无刷直流电机的ansys设计过程,进行有限元仿真的(ansys motor design)
- 2012-01-30 08:43:32下载
- 积分:1
-
MESH--SIMPLE
可以简化obj,ply等三维模型,1:在VC++2008上运行oglpemsh.dsw 文件
2:选择要简化的模型,eg:huge_bunny.ply
3:选择简化
(Mesh Simplification Viewer
This program implements four different mesh simplification algorithms. After loading a mesh, the user can easily remove triangles from the mesh and the results are displayed in real time. The mesh can also be rotated and moved closer to or farther away from the viewer.
The goal of mesh simplification is to display a 3D polygonal mesh with fewer triangles while retaining the same shape. In the example above, the original cow model (upper left) is made up of over 5800 triangles. We can easily remove thousands of triangles from this mesh and still display a very similar cow model. While the 500 triangle cow is a cruder representation, this may not make a difference if the cow is far away from the viewer.
)
- 2014-07-10 11:37:50下载
- 积分:1
-
chat
局域网聊天,包含语音和视频,是很好的学习资料,值得大家采纳(LAN chat, including voice and video, is a good learning materials, it is worth to adopt)
- 2016-12-24 22:09:55下载
- 积分:1
-
BankSystem
ATM Project。简易ATM取款机系统,面向对象编程设计,易扩展,功能强大。
- 2010-11-13 10:56:19下载
- 积分:1