《手机动画移植设计说明书》由会员分享,可在线阅读,更多相关《手机动画移植设计说明书(74页珍藏版)》请在金锄头文库上搜索。
1、手机动画移植设计说明书一、 Mflash简介手机动画业务是指采用交互式矢量图形技术(VIS)制作多媒体动画内容,并通过移动互联网提供下载、播放等功能的一种服务。目前手机动画共有9个业务类型:动画屏保、动漫乐园、疯狂Game、闪卡Show、卡拉OK、火爆MTV、影视瞬间、动感资讯、娱教娱乐。今后将应用到电子商务、天气预报、手机化身(Avatar)、视频聊天、儿童监控、交通信息、动画 DIY等服务。二、 移植流程三、系统需求31、内存需求ARM7需要400kb以上,ARM9需要900kb以上。32、代码大小350360K四、任务分解Mflash移植可以分为两个部分:一部分是播放器(包括UI)及动画
2、文件管理的移植;另一部分是下载引擎部分(包括UI)的移植。五、 界面流程图1、播放器界面流程图2、动画文件管理界面流程图21、文件重命名22、文件删除23、查看文件属性24、设置铃声3、下载流程图31、下载至本机界面流程图32、下载预览界面流程图33、下载失败界面流程图34、重新下载界面流程图35、预览失败界面流程图六、 播放器移植61、数据结构、枚举及宏定义/* 数据类型 */611、s3_font/* 字体信息 */typedef struct _s3_font int id;/ 字体ID unsigned char width;/ 字体宽度 unsigned char height;/
3、字体高度 unsigned char support_style;/ 是否支持粗体 unsigned char variable_width;/ 是否可变宽s3_font;612、s3_timeval/* 储存时间信息 */typedef struct _s3_timeval long sec; / 秒 long usec; / 毫秒s3_timeval;613、s3_timezone/* 储存时区信息 */typedef struct _s3_timezone signed long minuteswest; / 格林威治时间 signed long dsttime; / DST调整时间s3
4、_timezone;614、s3_voice_info/* 语音数据 */typedef struct _s3_voice_info unsigned char* pvoice_buffer; unsigned int length; unsigned int user_data; unsigned short repeat_count; unsigned short sound_id; unsigned char type; unsigned char format;s3_voice_info;615、s3_midi_info/* Midi 数据信息 */typedef struct _s3
5、_midi_info unsigned char* pmidi_buffer; unsigned int length; unsigned int user_data; unsigned short repeat_count; unsigned short sound_id; unsigned char type; unsigned char format;s3_midi_info;616、s3_content_info/* 内容信息 */typedef struct _s3_content_info s3_content_type type; int version; unsigned lo
6、ng width; unsigned long height; unsigned char resizable; unsigned char has_global_transparency; unsigned long global_transparency_color; unsigned char has_text; unsigned char has_delay; unsigned long global_transparency_color_ex10;s3_content_info;617、s3_update_frame_info/* 更新屏幕内容 */typedef struct _s
7、3_update_frame_info unsigned char* pframe_buf; unsigned long x; unsigned long y; unsigned long width; unsigned long height; unsigned long pitch;s3_update_frame_info;618、s3_update_text_info/* 显示滚动文本 */typedef struct _s3_update_text_info unsigned int bk_color; unsigned int text_color; unsigned int tex
8、t_length; unsigned char text_type;/0:KSC_5601, 1:ASCII only, 2:ucs-20 char* pstring; s3_ta_alignment alignment;s3_update_text_info;619、s3_partial_update_frame_info/* 部分更新屏幕内容 */typedef struct _s3_partial_update_frame_info unsigned char* pframe_buf; unsigned long union_pitch; unsigned long union_x; u
9、nsigned long union_y; unsigned long union_width; unsigned long union_height; unsigned int count; s3_update_frame_info* frame_info;s3_partial_update_frame_info;6110、s3_content_info_ex/* 显示内容信息 */typedef struct _s3_content_info_ex s3_content_type type; union s3_sis_content_type sis_type; s3_vis_conten
10、t_type vis_type; s3_msf_content_type msf_type;subtype; unsigned char version; s3_frame_delay_type delay_type; unsigned char is_compressed; unsigned long total_frame; unsigned long width; unsigned long height; unsigned long* pdelay_array; unsigned char bsound; unsigned char bscalable; s3_network_info
11、 network_info; unsigned char bkaraoke; unsigned char bnon_commercial; unsigned char bgame; unsigned char user_defined_data; unsigned char charater_set; unsigned short cpname_len; unsigned char cpname64;s3_content_info_ex;6111、s3_network_info/* 显示流/下载有关的信息 */typedef struct _s3_network_info unsigned short struct_size; char urlCONTENT_URL_SIZE; unsigned short port; char cidCONTENT_ID_SIZE; char callback_urlCALLBACK_URL_SIZE; unsigned char content_nameCONTENT_NAME_SIZE; unsigned long