aw_msg.h

来自「AMLOGIC DPF source code」· C头文件 代码 · 共 477 行 · 第 1/2 页

H
477
字号
/*****************************************************************
**                                                                 **
**  Copyright (C) 2004 Amlogic,Inc.                                **
**  All rights reserved                                            **
**        Filename : aw_msg.h /Project:AVOS                  ** 
**        Revision : 1.0                                           **
**                                                                 **
*****************************************************************/
#ifndef _AW_MSG_H
#define _AW_MSG_H
/**
 * @file aw_msg.h
 * @author LiChao, chao_li@amlogic.com.cn
 */

/** @defgroup application_msg Application message manage routines.
 * @ingroup gui
 */
 
/**
 * Message struct defination
 */
typedef struct
{
    ///the id of application which deal with this msg
    INT8U    app_id ; 
    ///message type         
    INT8U    msg_type;     
    ///message ID    
    INT16U    msg_id;     
    ///Message parameter    
    INT32U     msg_value;
    ///message identification
    INT16U  msg_counting;
} AWMSG ;

//#define AW_DYNAMIC_MALLOC_MSG
#ifdef AW_DYNAMIC_MALLOC_MSG
    #define AWMsgInit()
    #define AWMsgMalloc()    (AWMSG *)AVMem_umalloc(sizeof(AWMSG))
    #define AWMsgFree(a)    AVMem_ufree((void *)a)    
#else
void AWMsgInit(void) ;
AWMSG *AWMsgMalloc(void) ;
void AWMsgFree(AWMSG *pAWMsg) ;
#endif

///Following define the message type we used
///MSG_TYPE_DEFINE_SECTION_START
#define MSG_INPUT_EVENT                 0x01
#define MSG_PAINT                       0x02
#define MSG_NOTIFICATION                0x03
#define MSG_COMMAND                     0x04
#define MSG_COMMAND_SUCCESS             0x05
#define MSG_COMMAND_FAIL                0x06
#define MSG_COMMAND_FORBIDEN            0x07
#define MSG_COMMAND_NOT_SUPPORT         0x08
#define MSG_QUIT                        0x09
#define MSG_BROADCAST                   0x0a
#define MSG_TIMER_TIMEROUT              MSG_BROADCAST
#define MSG_INSTANT_COMMAND             0x0b
#define MSG_PRIVATE_COMMAND             0x0c

///MSG_TYPE_DEFINE_SECTION_END

///Following define the message id we used
/*************************** Window Message define ***************************/
#define WM_NULL                         0x0000
#define WM_CREATE                       0x0001
#define WM_DESTROY                      0x0002
#define WM_MOVE                         0x0003
#define WM_SIZE                         0x0005
#define WM_ACTIVATE                     0x0006
#define WM_SETFOCUS                     0x0007
#define WM_KILLFOCUS                    0x0008
#define WM_ENABLE                       0x000A
#define WM_SETTEXT                      0x000C
#define WM_GETTEXT                      0x000D
#define WM_GETTEXTLENGTH                0x000E
#define WM_PAINT                        0x000F
#define WM_CLOSE                        0x0010
#define WM_QUIT                         0x0012
#define WM_ERASEBKGND                   0x0014
#define WM_SHOWWINDOW                   0x0018
#define WM_HIDEWINDOW                   0x0019
#define WM_SETFONT                      0x0030
#define WM_GETFONT                      0x0031
#define WM_WINDOWPOSCHANGED             0x0047
#define WM_NCCALCSIZE                   0x0083
#define WM_NCHITTEST                    0x0084
#define WM_NCPAINT                      0x0085
#define WM_GETDLGCODE                   0x0087
#define WM_NCMOUSEMOVE                  0x00A0
#define WM_NCLBUTTONDOWN                0x00A1
#define WM_NCLBUTTONUP                  0x00A2
#define WM_NCLBUTTONDBLCLK              0x00A3
#define WM_NCRBUTTONDOWN                0x00A4
#define WM_NCRBUTTONUP                  0x00A5
#define WM_NCRBUTTONDBLCLK              0x00A6
#define WM_KEYFIRST                     0x0100
#define WM_KEYDOWN                      0x0100
#define WM_KEYUP                        0x0101
#define WM_CHAR                         0x0102
#define WM_DEADCHAR                     0x0103    
#define WM_SYSKEYDOWN                   0x0104    
#define WM_SYSKEYUP                     0x0105    
#define WM_SYSCHAR                      0x0106    
#define WM_SYSDEADCHAR                  0x0107    
#define WM_KEYLAST                      0x0108
#define WM_COMMAND                      0x0111
#define WM_TIMER                        0x0113
#define WM_HSCROLL                      0x0114
#define WM_VSCROLL                      0x0115
#define WM_DESTROY_CONTROL              0x0116
#define WM_PAINT_DRAW_INFO              0x0117
#define WM_PAINT_HELP_INFO              0x0118
#define WM_PAINT_DRAW_INFO_CENTER       0x0119
#define WM_PAINT_DRAW_INFO_CLEAR        0x011a
#define WM_PAINT_FINISH                 0x011b

#define WM_MOUSEFIRST                   0x0200
#define WM_MOUSEMOVE                    0x0200
#define WM_LBUTTONDOWN                  0x0201
#define WM_LBUTTONUP                    0x0202
#define WM_LBUTTONDBLCLK                0x0203
#define WM_RBUTTONDOWN                  0x0204
#define WM_RBUTTONUP                    0x0205
#define WM_RBUTTONDBLCLK                0x0206
#define WM_MBUTTONDOWN                  0x0207
#define WM_MBUTTONUP                    0x0208
#define WM_MBUTTONDBLCLK                0x0209
#define WM_MOUSEWHEEL                   0x020A
#define WM_MOUSELAST                    0x020B
#define WM_MOUSESCROLLUP                0x020C
#define WM_MOUSESCROLLDOWN              0x020D
#define WM_SECOND_TIMEOUT               0x020E
/*************************** End of Window Message define ***************************/

/****************** Notification Message define ****************************/
#define NM_COLLECT_DVD_INFO             0x0301
#define NM_SYS_INFO_CHANGED             0x0302
#define NM_END_OF_PLAY                  0x0303
#define NM_NEW_DEVICE_ADD               0x0304
#define NM_NEW_MEDIA_ADD                0x0305
#define NM_DEVICE_REMOVE                0x0306
#define NM_MEDIA_REMOVE                 0x0307
#define NM_MULTI_ANGLE_CHANGED          0x0308
#define NM_AUDIO_STREAM_CHANGED         0x0309
#define NM_SUBTITLE_STREAM_CHANGED      0x030A
#define NM_MULTI_ANGLE_TRACK_FOUND      0x030B
#define NM_PLAY_TIME_CHANGED            0x030C
#define NM_PLAY_TRACK_CHANGED           0x030D
#define NM_CREAT_DVD_INFO_BAR           0x030E
#define NM_DEL_DVD_INFO_BAR             0x030F
#define NM_GET_NEXT_PLAY_ITEM           0x0310
#define NM_COLLECT_VCD_INFO             0x0311
#define NM_HTTP_DOWNLOAD_INFO           0x0312
#define NM_SYSTEM_READY                 0x0313
#define NM_HTTP_DOWNLOAD_FAIL           0x0314
#define NM_PLAY_STATUS_CHANGED          0x0315
#define NM_DOING_PROCESS_CHANGE         0x0316
#define NM_PIC_INFO                     0x0317
#define NM_PLAY_AVI                     0x0318
#define NM_PLAY_VOB                     0x0319
#define NM_PLAY_GPLAYER                 0x031A
#define NM_PLAY_PIC                     0x031B
#define NM_SUBTITLE_TEXT                0x031C
#define NM_PLAY_GENERAL                 0x031D
#define NM_GET_NEXT                     0x031E
#define NM_GET_PREV                     0x031F

#define NM_GET_AUDIO_INFO               0x0320
#define NM_GET_PLAYING_AUDIO_INFO       0x0321
#define NM_GET_AUDIO_TOTAL_TIME         0x0322

#define NM_UPDATE_SPECTRUM              0x0323
#define NM_PLAY_CDA                     0x0324
#define NM_CDA_TYPE                     0x0325

#define NM_GET_AUDIO_TIME_TITLE         0x0326
#define NM_PLAY_MP3ONLY                 0x0327
#define NM_PAUSE                        0x328
#define NM_UNKNOW_FORMAT                0x329
#define NM_UNSUPPORT_FORMAT             0x329

#define NM_PLAY_RM                      0x032a
#define NM_PLAY_SWF                     0x032b
#define NM_SCREEN_COPY_PROCESS          0x032c
#define NM_PLAY_AUDIO_PLAYER		    0x032d
#define NM_SCREEN_COPY_FINISH           0x032e

/* Network notification message. */
#define NM_NET_WIFI_SCANPROGRESS        0x03A0
#define NM_NET_WIFI_CONNPROGRESS        0x03A1
#define NM_NET_SNTP_SYNC                0x03A2

#define NM_BROWSER_TASK_READY           0x03b0

/*notification message for special operation when picture is playing*/
#define NM_DELETE_IN_SINGLE_PIC         0x03C0    
#define NM_DELETE_IN_MULTI_PIC          0x03C1
/****************** End of Notification Message define *********************/

/****************** Command Message define *********************************/
//media play command
#define CM_SEQUENTIAL_PLAY              0x0400
#define CM_LIST_PLAY                    0x0401
#define CM_AB_PLAY                      0x0402
#define CM_POINT_PLAY                   0x0403
#define CM_TT_SEARCH                    0x0404
#define CM_PTT_SEARCH                   0x0405
#define CM_TIME_SEARCH                  0x0406
#define CM_PLAY                         0x0407
#define CM_PAUSE                        0x0408
#define CM_STOP                         0x0409
#define CM_FORWARD_SCAN                 0x040A
#define CM_BACKWARD_SCAN                0x040B
#define CM_FORWARD_SLOW                 0x040C
#define CM_BACKWARD_SLOW                0x040D
#define CM_FRAME                        0x040E
#define CM_FRAME_PLUS                   0x040F
#define CM_FRAME_MINUS                  0x0410
#define CM_MENU_CALL                    0x0411
#define CM_TITLE_CALL                   0x0412
#define CM_EXIT                         0x0413
#define CM_AUDIO_CHANGE                 0x0414
#define CM_SUBTITLE_CHANGE              0x0415
#define CM_ANGLE_CHANGE                 0x0416
#define CM_MENU_LANG_SELECT             0x0417
#define CM_PARENTAL_LV_SELECT           0x0418
#define CM_COUNTRY_CODE_SELECT          0x0419
#define CM_ZOOM_CHANGE                  0x041A
#define CM_BUTTON_UP                    0x041B
#define CM_BUTTON_DOWN                  0x041C
#define CM_BUTTON_LEFT                  0x041D
#define CM_BUTTON_RIGHT                 0x041E
#define CM_BUTTON_ACTIVATE              0x041F
#define CM_THUMBNAIL                    0x0420
#define CM_KEY_LEFT                     0x0421

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?