?? cms_mmsdoc.h
字號:
/*=====================================================================
Copyright (c) 2001-2002 MobileSoft Corporation
All Rights Reserved.
$Logfile: "Cms_MMSDoc.h"
$Revision:
$vision: 1.00
$Date: 08/10/2002
$Author: mobilesoft app group
$Declare:
This document contains information proprietary to MobileSoft
Technology (Nanjing), Corp. Transmittal, receipt, or possession
of this document does not express, license, or imply any rights to
use, sell, design, or manufacture from this information. No reproduction,
publication, or disclosure of this information, in whole or in part,
shall be made without prior written authorization from an officer of
MobileSoft Technology (NanJing), Corp.
Abstract:
Modified By:xuelianb 05-09-21
Environment:
Revision History: 添加視頻標志video_flag
添加MMS_TYPE_3GP定義
=====================================================================*/
#ifndef MMSDOC_H
#define MMSDOC_H
//#include "Cms_MMSGlobal.h"
//#include "Cms_MMSCfg.h"
#ifndef CENT_FILL_FIELD1
#define CENT_FILL_FIELD1 char unuseful1;
#endif
#ifndef CENT_FILL_FIELD2
#define CENT_FILL_FIELD2 char unuseful1;\
char unuseful2;
#endif
#ifndef CENT_FILL_FIELD3
#define CENT_FILL_FIELD3 char unuseful1;\
char unuseful2; \
char unuseful3;
#endif
#ifndef MMS_FILE_NAME_LEN
#define MMS_FILE_NAME_LEN 128
#endif
#define MMS_TYPE_TEXT 0x01
#define MMS_TYPE_WBMP 0x02
#define MMS_TYPE_GIF 0x03
#define MMS_TYPE_JPEG 0x04
#define MMS_TYPE_WAV 0x05
#define MMS_TYPE_AMR 0x06 /*Adpatative Multi Rate*/
#define MMS_TYPE_MIDI 0x07
#define MMS_TYPE_MP3 0x08
#define MMS_TYPE_IMY 0x09
#define MMS_TYPE_MMF 0x0A
#define MMS_TYPE_BMP1 0x0B
#define MMS_TYPE_MP4 0x0C
#define MMS_TYPE_PNG 0x0D
#define MMS_TYPE_3GP 0x0E // xuelianb add[2005-09-21]
#define MMS_TYPE_UNKNOWNAUDIO 0x71
#define MMS_TYPE_UNKNOWNIMAGE 0x72 //20041118
#define DEFAULT_SLIDE_TIMES 3000 //
#define MMS_PLAY_WIDTH 128
#define MMS_PLAY_HEIGHT 160
typedef struct MMS_Content{
struct MMS_Content *prev, /*上一內(nèi)容*/
*next; /*下一內(nèi)容*/
int x, /*位置x*///可以考慮不要
y, /*位置y*/////可以考慮不要
width, /*顯示寬度*/
height; /*顯示高度*/
unsigned int type; /*內(nèi)容類型*/
unsigned int time_start, /*開始播放時間(ms)*/
time_end; /*結束播放時間(ms)*/
//unsigned char *data; /*text data, define for text content,image audio memory filename */
unsigned int color; /*色彩, define for text content */
char filename[MMS_FILE_NAME_LEN];
char forwardlock; /*1:drm forwardlocked content; 0 free content */
int contentsize; //the size of text or image file 2003.73
unsigned char size; /*大小, define for text content */
//CENT_FILL_FIELD3
}MMS_CONTENT,*pMMS_Content;
typedef struct MMS_Slide{
struct MMS_Slide *prev, /*上一幀*/
*next; /*下一幀*/
unsigned int times; /*播放總時間(ms)*/
unsigned int color; /*背景顏色*/
char audiofile[MMS_FILE_NAME_LEN];
char audio_type; /*背景聲音格式*/
char audio_forwardlock; /* 1:drm forwardlocked content; 0 free content */
char text_flag;
char image_flag;
char video_flag; // xuelianb modify[2005-09-21]
//CENT_FILL_FIELD1
pMMS_Content content_root, /*幀內(nèi)容結構*/
content_cur; /*幀當前內(nèi)容*/
int audiosize; //the size of audio file 2003.7.3
int textimage_order; /* support the display station */
}MMS_SLIDE,*pMMS_Slide;
typedef struct MMS_EDocument{
int width, /*默認屏幕寬度*/
height; /*默認屏幕高度*/
int ftype; /*文件類型*/
pMMS_Slide slide_root, /*MMS幀結構*/
slide_cur; /*MMS當前幀*/
int totalsize; // byte 2003.7.3
// int textimage_order;
}MMS_EDOCUMENT,*pMMS_EDocument;
typedef enum _textimageorder
{
TEXT_FIRST = 1,
IMAGE_FIRST
}TEXTIMAGEORDER;
/*
void MMS_Init();
void MMS_InitShow();
*/
int MMS_New_Audio(unsigned char *data,unsigned int type,pMMS_Slide pSlide,pMMS_EDocument pDocument); //2003.7.3
void MMS_DelAudio(pMMS_Slide pSlide,pMMS_EDocument pDocument);
pMMS_Content MMS_New_Content(unsigned char *data,unsigned int type,pMMS_Slide pSlide,pMMS_EDocument pDocument);
void MMS_DelContent(pMMS_Slide pSlide,pMMS_EDocument pDocument);
void MMS_PrevContent(pMMS_Slide pSlide,pMMS_EDocument pDocument);
void MMS_NextContent(pMMS_Slide pSlide,pMMS_EDocument pDocument);
pMMS_Slide MMS_New_Slide(pMMS_EDocument pDocument);
void MMS_DelSlide(pMMS_EDocument pDocument);
int MMS_PrevSlide(pMMS_EDocument pDocument);
int MMS_NextSlide(pMMS_EDocument pDocument);
void MMS_HeadSlide(pMMS_EDocument pDocument);
void MMS_TailSlide(pMMS_EDocument pDocument);
pMMS_Slide MMS_GetLastNullText(pMMS_EDocument theDocument);
pMMS_Slide MMS_GetLastNullAudio(pMMS_EDocument theDocument);
pMMS_Slide MMS_GetLastNullImage(pMMS_EDocument theDocument);
unsigned short MMSGetSlideCount(pMMS_EDocument pDocument);
unsigned short MMSGetAllContentCount(pMMS_EDocument pDocument);
void MMSDelAllSlide(pMMS_EDocument pDocument);
unsigned short MMSGetSlideIndex(pMMS_EDocument pDocument);
pMMS_EDocument MMS_New(void);
void MMSDelDocument(pMMS_EDocument pDocument);
//unsigned int MMS_Close(pMMS_EDocument pDocument);
void MMS_Cursor(int x,int y,pMMS_EDocument pDocument);
void MMS_Layout(pMMS_EDocument pDocument);
void MMSSetTextImageOrder(pMMS_EDocument pDocument,int order);
int MMSGetTextImageOrder(pMMS_EDocument pDocument);
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -