看了android  SkMovie_gif.cpp 对gif图片的解码,发现在解每一帧时是这样判断这一帧有没有解完:前面解析时得到了当前帧图
像的宽width,高height,imageSize=width*height,将imageSize 传进解码函数DGifGetLine
(GifFile, sp->RasterBits, ImageSize),当解码后的数剧量等于ImageSize时认为当前帧解码完成。这里用解
码后的数据量是否达到该帧解码为8位的RGB源数据总量来作为一帧解完的标志。我现在要把DGifGetLine(GifFile, sp-
>RasterBits, ImageSize)去掉,只是用原来的控制信息,这样要知道流指针要偏移多少字节才取得到下一个控制块,所以要知道当前帧
数据块的个数.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to