-
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
-
UniButton
Control Unicode Button
- 2014-02-25 13:33:27下载
- 积分:1
-
pvgrid-connectedsystem
光伏并网逆变器参考程序,基于DSP2818的程序。(PV grid-connected system )
- 2011-11-16 10:58:00下载
- 积分:1
-
VC_moving-dec
VC编程实现运动目标检测,背景差分,亲测可用哦(VC programming to realize moving target detection
)
- 2015-03-29 19:40:00下载
- 积分:1
-
Explorer
MFC Explorer Sample Code
- 2014-02-13 15:01:09下载
- 积分:1
-
P2P
一个P2P语音即时通信软件的源代码(来自《P2P网络技术原理与C++开发案例》,在本机可运行)(P2P)
- 2010-05-26 16:52:25下载
- 积分:1
-
1
说明: DSP如果是CE以上版本的需要用新的烧写库跟CMD文件(DSP )
- 2011-07-05 21:28:29下载
- 积分:1
-
hex2dual
HEX to Dual file source code
- 2020-06-26 19:00:01下载
- 积分:1
-
3trainsimulation
利用VC++和OpenGVS结合编的一个关于火车运行的三维模拟程序。是OpenGVS三维初学者的应该参考的好范例。(VC and OpenGVS combination of a series of trains running on the three-dimensional simulation program. OpenGVS 3D is the beginners can learn from the good examples.)
- 2020-09-14 19:17:56下载
- 积分:1
-
ANSYS2FLAC3D
将ansys模型导入到flac软件,解决flac建模困难的问题(Ansys model imported to flac software to solve the difficult problem of flac modeling)
- 2012-12-11 15:33:39下载
- 积分:1