ImageVerifierCode 换一换
格式:DOC , 页数:3 ,大小:497.62KB ,
资源ID:8915380      下载积分:8 金币
验证码下载
登录下载
邮箱/手机:
图形码:
验证码: 获取验证码
温馨提示:
支付成功后,系统会自动生成账号(用户名为邮箱或者手机号,密码是验证码),方便下次登录下载和查询订单;
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

开通VIP
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.zixin.com.cn/docdown/8915380.html】到电脑端继续下载(重复下载【60天内】不扣币)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

开通VIP折扣优惠下载文档

            查看会员权益                  [ 下载后找不到文档?]

填表反馈(24小时):  下载求助     关注领币    退款申请

开具发票请登录PC端进行申请。


权利声明

1、咨信平台为文档C2C交易模式,即用户上传的文档直接被用户下载,收益归上传人(含作者)所有;本站仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。所展示的作品文档包括内容和图片全部来源于网络用户和作者上传投稿,我们不确定上传用户享有完全著作权,根据《信息网络传播权保护条例》,如果侵犯了您的版权、权益或隐私,请联系我们,核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
2、文档的总页数、文档格式和文档大小以系统显示为准(内容中显示的页数不一定正确),网站客服只以系统显示的页数、文件格式、文档大小作为仲裁依据,个别因单元格分列造成显示页码不一将协商解决,平台无法对文档的真实性、完整性、权威性、准确性、专业性及其观点立场做任何保证或承诺,下载前须认真查看,确认无误后再购买,务必慎重购买;若有违法违纪将进行移交司法处理,若涉侵权平台将进行基本处罚并下架。
3、本站所有内容均由用户上传,付费前请自行鉴别,如您付费,意味着您已接受本站规则且自行承担风险,本站不进行额外附加服务,虚拟产品一经售出概不退款(未进行购买下载可退充值款),文档一经付费(服务费)、不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
4、如你看到网页展示的文档有www.zixin.com.cn水印,是因预览和防盗链等技术需要对页面进行转换压缩成图而已,我们并不对上传的文档进行任何编辑或修改,文档下载后都不会有水印标识(原文档上传前个别存留的除外),下载后原文更清晰;试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓;PPT和DOC文档可被视为“模板”,允许上传人保留章节、目录结构的情况下删减部份的内容;PDF文档不管是原文档转换或图片扫描而得,本站不作要求视为允许,下载前可先查看【教您几个在下载文档中可以更好的避免被坑】。
5、本文档所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用;网站提供的党政主题相关内容(国旗、国徽、党徽--等)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
6、文档遇到问题,请及时联系平台进行协调解决,联系【微信客服】、【QQ客服】,若有其他问题请点击或扫码反馈【服务填表】;文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“【版权申诉】”,意见反馈和侵权处理邮箱:1219186828@qq.com;也可以拔打客服电话:4009-655-100;投诉/维权电话:18658249818。

注意事项

本文(swf文件结构中的基本数据类型.doc)为本站上传会员【綻放】主动上传,咨信网仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知咨信网(发送邮件至1219186828@qq.com、拔打电话4009-655-100或【 微信客服】、【 QQ客服】),核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载【60天内】不扣币。 服务填表

swf文件结构中的基本数据类型.doc

1、CHAPTER 4 Basic Data Types This section describes the basic data types that make up the more complex data structures in the Macromedia Flash (SWF) file format. All other structures in the SWF file format are built on these fundamental types. 这章节描述基本数据类型—在 SWF 文件里可以创建更多复杂数据结构。所有在 SWF 文件里

2、的其它结构都是由这些基本类型创建的。 Coordinates and twips 坐标和缇 The SWF file format stores all x-y coordinates as integers, usually in a unit of measurement called a twip. In the SWF format, a twip is 1/20th of a logical pixel. A logical pixel is the same as a screen pixel when the file is played at 100%

3、that is, without scaling. — For example, a rectangle 800 twips wide by 400 twips high is rendered as 40 by 20 logical pixels. Fractional pixel sizes are approximated with anti-aliasing. A rectangle 790 by 390 twips (39.5 by 19.5 pixels) appears to have slightly blurred edges. Twips are a

4、good compromise between size and precision. They provide sub-pixel accuracy for zooming and precise placement of objects, while consuming very few bits per coordinate.Coordinates in the SWF file format use the traditional graphics axes: x is horizontal and proceeds from minimum values at the left to

5、 maximum values at the right, and y is vertical and proceeds from minimumvalues at the top to maximumvalues at the bottom. swf 文件格式用整数来存储 X-Y 坐标,它的单位默认的是缇(twip),20 twip=1 pixel。在没 有缩放的情况下,就是 100%播放时,swf 中的一个逻辑像素和屏幕上的一个像素是对应的。 使用缇的好处就是能够获得比使用像素更高的精度。 比如,一个 800twips 宽,400twips 高的矩形,就会被解释成 40×20

6、像素的大小,这时矩形的 边缘是没有锯齿的。如果是 790×390twips(39.5× 19.5 像素)的话,它的就会有轻微的模 糊边缘。 Twips 一个大小与精度之间好的折衷方案。当处理少数坐标位时,它们规定支持了缩放的亚 像素的精确度(sub-pixel)和对象放置的精度。在 swf 的坐标系里面,它采用的是传统的图 像的坐标,x 轴是水平方向,并且是从左到右值是增大的;y 轴是垂直方向的,并且从下到上 是增加的。 Integer types and byte order 整数类型和字节顺序 The SWF file format us

7、es 8-bit, 16-bit, 32-bit, 64-bit, signed, and unsigned integer types. All integer values are stored in the SWF file by using little-endian byte order: the least significant byte is stored first, and the most significant byte is stored last, in the same way as the Intel x86 architecture. The bit orde

8、r within bytes in the SWF file format is big-endian: the most significant bit is stored first, and the least significant bit is stored last. swf 文件中使用的 8 位、16 位、32 位、64 位有符号和无符号的整数。这些整数在 swf 文件中 是以 little-endian 的顺序来存储的:低字节在前,高字节在后,同样方法应用于 Intel X86 体系 结构。而每个字节的每一位则是按 big-endian 的顺序来排列的:即高位在先,低位

9、在后。 For example:The 32-bit value 0x456e7120 is stored as 20 71 6e 45. The 16-bit value 0xe712 is stored as 12 e7. All integer types must be byte aligned. That is, the first bit of an integer value must be stored in the first bit of a byte in the SWF file. 比如一个 32 位的整数:0x456e7120 ,它在文件中

10、就是以 20 71 6e 45 的格式存储的。一个 16 位的整数:0xe712,它在文件中就是以 12 e7 的格式存储的。这种方式就称为 little-endian。 在 SWF 文件中,所有整数类型必须是字节对齐的。也就是,一个整数值的第一位必须存储在 一个字节的第一位。 little-endian 主要用在我们现在的 PC 的 CPU 中,big-endian 则应用在目前的 Mac 机器中(是指 Power 系列处理器)。 Signed integers are represented by using traditional 2's-comple

11、ment bit patterns. These are the signed integer representations used on most modern computer platforms. In the 2's complement system, negative numbers have 1 as the first bit, and zero and positive numbers have 0 as the first bit. A negative number, -n, is represented as the bitwise opposite of

12、the positive-zero number n-1. 符号整数通过使用 2 补数位形式(2's-complement bit patterns )来描述的。这种符号整数表示 法用于大多数现代微机平台。 在 2's complement 系统里,负数第一位设为 1,并且 0 和正数第 一位设为 0.一个负数,-n,描述成这个数的正数 n-1 的 反数(取反) 。 Integer Types Type SI8 SI16 SI32 SI8[n] SI16[n] UI8 UI16 UI32 UI8[n] UI16[n] UI24[

13、n] UI32[n] UI64[n] Comment Signed 8-bit integer value 带符号 8 位整数 Signed 16-bit integer value 带符号 16 位整数 Signed 32-bit integer value 带符号 32 位整数 Signed 8-bit array—n is the numberof array elements 带符号 8 位数组,n 是数组元素个数 Signed 16-bit array—n is the is number of array elements 带符号 16 位数组,n 是数组元素

14、个数 Unsigned 8-bit integer value 不带符号 8 位整数 Unsigned 16-bit integer value 不带符号 16 位整数 Unsigned 32-bit integer value 不带符号 32 位整数 Unsigned 8-bit array—n is the number of array elements 不带符号 8 位数组,n 是数组元素个数 Unsigned 16-bit array—n is the number of array elements 不带符号 16 位数组,n 是数组元素个数 Unsigned 24

15、bit array—n is the number of array elements 不带符号 24 位数组,n 是数组元素个数 Unsigned 32-bit array—n isthe number ofarray elements 不带符号 32 位数组,n 是数组元素个数 Unsigned 64-bit array—n is thenumber of array elements 不带符号 64 位数组,n 是数组元素个数 Fixed-point numbers The SWF file format supports two types of

16、fixed-point numbers: 32 bit and 16 bit.The 32-bit fixed-point numbers are 16.16. That is, the high 16 bits represent the number before the decimal point, and the low 16 bits represent the number after the decimal point. swf 文件格式支持两种类型的定点数: 位定点数和 16 位定点数。 位定点数的格式是 16.16 32 32 格式的,小数点前面和小数点后面的每

17、一部分各占 2 个字节(16 位)。 FIXED values are stored like 32-bit integers in the SWF file (using little-endian byte order) and must be byte aligned. 并且在 SWF 文件里,也是采用了 little-endian 的形式—定点数像 32 位整数一样存储,必须字 节对齐。 For example: The real value 7.5 is equivalent to: 0x0007.8000。This value is stored

18、 in the SWF file as: 00 80 07 00SWF 8 and later supports 16-bit 8.8 signed, fixed-point numbers. The high 8 bits represent the number before the decimal point, and the low 8 bits represent the number after the decimal point. FIXED8 values are stored like 16-bit integers in the SWF file (using little

19、endian byte order) and must be byte aligned. 比如一个 32 位的实数:7.5=0x0007.8000。在文件中就是以 00 80 07 00 的形式存储的。16 位的 定点数和 32 位的是类似的, 采用 8.8 格式, 也是 little-endian 的形式。 位的定点数是在 Flash8 16 及其以后版本中才被支持的。在 SWF 文件里 FIXED8 数据存储时就像 16 位整数一样使用 little-endian 字节序,并且必须字节对齐。 Fixed-Point Types Type Commen

20、t FIXED 32-bit 16.16 fixed-point number 32 位定点数 FIXED8 16-bit 8.8 fixed-point number16 位定点数 Floating-point numbers SWF 8 and later supports the use of IEEE Standard 754 compatible floating-point types. Three types of floating-point numbers are supported. Floating-Point

21、Types Type Comment FLOAT16 Half-precision (16-bit) floating-point number FLOAT Single-precision (32-bit)IEEE Standard 754 compatible DOUBLE Double-precision (64-bit) IEEE Standard 754 compatible FLOAT16 is identical to the characteristics of FLOAT except for changes to the number of

22、bits allocated to the exponent and mantissa: ■1 bit for the sign 1 位作为符号位 ■5 bits for the exponent, with an exponent bias of 16 5 位是分配给指数部分,实际的 指数是 5 位数表示的数和 16 的差值; ■10 bits for the mantissa 10 位用来表示尾数 swf8 及其后续的版本中支持和 IEEE Standard 754 兼容的浮点数类型。一共有三种类型,分 别是:Half-precision (16-bit)floating-point number 半精度、Single-precision(32-bit)单精度、 Double-precision(64-bit) 双精度。除了半精度的这种浮点型数据以外,其它两种都符合 IEEE Standard 754 的标准。 半精度的也是和 IEEE Standard 754 类似的,只是改变了标准中分配给尾数和指数的位数。在

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2025 宁波自信网络信息技术有限公司  版权所有

客服电话:4009-655-100  投诉/维权电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服