aw_msg.h

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

H
477
字号
#define CM_KEY_RIGHT                    0x0422
#define CM_KEY_UP                       0x0423
#define CM_KEY_DOWN                     0x0424
#define CM_KEY_ENTER                    0x0425
#define CM_MUTE                         0x0426
#define CM_SET_VIDEO_MODE               0x0427
#define CM_GET_VIDEO_MODE               0x0428
#define CM_PBC_ON                       0x0429
#define CM_PBC_OFF                      0x042A
#define CM_SET_VOLUME                   0x042B
#define CM_SET_SOUND_MODE               0x042C
#define CM_GET_SOUND_MODE               0x042D
#define CM_SET_AUDIO_CHANNEL_MODE       0x042E
#define CM_GET_AUDIO_CHANNEL_MODE       0x042F
#define CM_SET_PLAY_PARAM               0x0430
#define CM_BACK_TO_NORMAL_PLAY          0x0431
#define CM_GET_NEXT_ITEM                0x0432
#define CM_FILE_COPY                    0x0433
#define CM_FILE_DEL                     0x0434
#define CM_FILE_MKDIR                   0x0435
#define CM_FILE_GETLIST                 0x0436
#define CM_FILE_LISTSEEK                0x0437
#define CM_FILE_CHDIR                   0x0438
#define CM_FILE_QUERY                   0x0439
#define CM_FILE_COUNT                   0x043A

#define CM_FIRST_FRAME                  0x43B
#define CM_FRAME_RETURN                 0x043C
#define CM_VOLUME_WRITABLE              0x043D
#define CM_BUTTON_REWIND                0x43E
#define CM_BUTTON_SYNC                  0x43F
#define CM_VOLUME_REMOUNT               0x0440

#define CM_PLAY_QUEUE_RELEASE           0x0441
#define CM_PLAY_QUEUE_GET               0x0442
#define CM_SCREEN_COPY                  0x0443

#define CM_DISPLAY_ADJUST               0x0444

#define CM_NET_LISTSERVER               0x0460
#define CM_NETSERVICE_START             0x0461
#define CM_NETSERVICE_STOP              0x0462

/* Network IOCTL command message. */
#define CM_NET_GET_WIFI_BASICINFO       0x0470
#define CM_NET_GET_WIFI_SCAN            0x0471
#define CM_NET_GET_NETIF_CONFIG         0x0472

#define CM_NET_SET_WIFI_CONFIG          0x0480
#define CM_NET_SET_WIFI_SCANSTART       0x0481
#define CM_NET_SET_NETIF_CONFIG         0x0482
#define CM_NET_SET_SNTP_ENABLE          0x0483
#define CM_NET_SET_SNTP_DISABLE         0x0484

#define CM_VOLUME_UP                    0x049A
#define CM_VOLUME_DOWN                  0x049B
#define CM_RESUME_PLAY                  0x049C
#define CM_SET_PIC_SHOW_MODE            0x049D
#define CM_SET_PIC_TITLE_MODE           0x049E
#define CM_SET_PIC_WATCH_DOG            0x049F
#define CM_GET_AUDIO_INFO               0x04A0
#define CM_GET_PLAYING_AUDIO_INFO       0x04A1
#define CM_SET_USER_DEFINE_WINDOW       0x04A2
#define CM_SET_PIC_SWITCH_MODE          0x04A3
#define CM_SET_PIC_DECODING_LIMITATION  0x04A4
#define CM_SET_FRAME_DIRECTION          0x04A5
#define CM_SET_PIC_DISPLAY_OPTION       0x04A6
#define CM_SET_USER_DEFINE_ZOOM_MODE    0x04A7
#define CM_GET_AUDIO_TIME_TITLE         0x04A8
#define CM_SET_PIC_PLAY_MODE            0x04A9
#define CM_SET_JPEG_SCALER_EFFECT       0x04AA
    #define SHARPNESS_NORMAL    0
    #define SHARPNESS_SHARPER   1
    #define SHARPNESS_SOFTER    2
    #define SHARPNESS_SOFTEST   3
#define CM_SET_PIC_PLAY_STATUS          0x04AB
#define CM_SET_PIC_USE_DEFAULT_ENABLE   0x04AC
#define CM_MP3_TOTAL_TIME               0x04AD
#define CM_SET_PIC_BACK_GROUND_COLOR    0x04AE
#define CM_SET_PIC_TITLE_INDICATOR_ENABLE   0x04AF
#define CM_SET_PIC_USE_DYNAMIC_FRAME_BUFFER_ENABLE  0x04B0
#define CM_SET_PIC_TITLE_REQUEST_INFO   0x04B1 
#define CM_SET_PIC_TRANSITION_CONFIG    0x04B2
#define CM_SET_PIC_CROP_POLICY          0x04B3
#define CM_SET_PIC_SMART_VPP_ZOOM       0X04B4
#define CM_ENABLE_PIC_SWITCH            0x04B5
#define CM_SMALL_PIC_DISPLAY_POLICY     0x04B6
#define CM_SET_LOGO_TYPE                0x04B7
//other command message
#define CM_POWER_ON                     0x0500
#define CM_POWER_OFF                    0x0501
#define CM_QUIT                         0x0502
#define CM_OPEN_LOADER                  0x0503
#define CM_CLOSE_LOADER                 0x0504
#define CM_GET_MEDIA_INFO               0x0505
#define CM_GET_FILE_LIST                0x0506
#define CM_LOAD_APP                     0x0507
#define CM_ENC_FILENAME                 0x0508
#define CM_ENC_QUALITY                  0x0509
#define CM_LFTV_AUTO_CONNECT            0X0510
#define CM_LFTV_PLAY_FILE               0X0511
#define CM_LFTV_ENABLE_REG              0X0512
#define CM_LFTV_READ_RSSI               0X0513
#define CM_LFTV_CHANGE_SCR              0x0514
#define CM_LFTV_ASSOCIATION_REQ         0x0515



#define CM_APP_CUSTOMER_ADD             0x1000  // this define just for app define app's own command. 
/****************** Broadcast Message define ****************************/
#define BM_TIMEOUT                      0x0600
#define BM_DEVICE_POST_MOUNT            0x0601
#define BM_DEVICE_PRE_UNMOUNT           0x0602
#define BM_POWERDOWN                    0x0603
#define BM_DEVICE_POST_UNMOUNT          0x0604
#define BM_DEVICE_FATAL_ERROR           0x0605
#define BM_DEVICE_PC_CONNECT            0x0606
#define BM_DEVICE_PC_DISCONNECT         0x0607
#define BM_DEVICE_PRINT_CONNECT         0x0608
#define BM_DEVICE_PRINT_DISCONNECT      0x0609
#define BM_DEVICE_BT_INSERT             0x060A
#define BM_DEVICE_BT_REMOVE             0x060B
#define BM_DEVICE_BT_OPEN               0x060C
#define BM_DEVICE_BT_CLOSE              0x060D
#define BM_NETIF_STATUS_NOTIFICATION    0x060E
#define BM_NETDEV_STATUS_NOTIFICATION   0x060F
#define BM_DEVICE_USB_NO_PARTATION      0x0610
#define BM_DEVICE_USB_NO_FAT            0x0611

#define BM_DEVICE_BT_CONNECT            0x0612
#define BM_DEVICE_BT_DISCONNECT         0x0613
#define BM_DEVICE_BT_DEV_ABORT          0x0614
#define BM_DEVICE_BT_DEV_DOWN           0x0615
#define BM_DISPLAY_READY                0x0616

#define BM_DIR_REFRESH                  0x0617
/****************** End of Broadcast Message define *********************/
/******************** End of Command Message define ******************************/


/******************** Customer Message can define at here ************************/
#define WM_USER                         0x1000
/******************** End of Customer Message define *****************************/

//Window controls can define a message id for itself use in its code
#define WM_CONTROL_USE                  0xf000 //from 0xf000 to oxffff, any control can reused it as it private msg id

/** 
 * @brief Send a message to a application or application UI.
 * @param [in] app_id When the message is send to application UI from application, this parameter used to
 * decide which application UI will receive this message.
 * @param [in] msg_queue The queue which will used to store the message, if this message is send to a 
 * application, this is the application's message queue, otherwise this queue is the GUI application's queue.
 * @param [in] event_handle The event handle of applcation which message send to.
 * @param [in] msg_type The message type, like MSG_INPUT_EVENT, MSG_PAINT, MSG_COMMAND,etc.
 * @param [in] msgid Sub message type.
 * @param [in] msg_value message parameter.
 * @return return 0 if send success. -1 if malloc message space fail; -2 if send message fail.
 */
INT32S AWAppSendMessage(INT8U app_id, OS_EVENT * msg_queue, AVSysEvent_t event_handle, 
                       INT8U msg_type, INT16U msgid, INT32U msg_value) ;
#define AUDIO_TYPE_UNKNOW		0
#define AUDIO_TYPE_WMA1 0x160
#define AUDIO_TYPE_WMA2 0x161
#define AUDIO_TYPE_MP3     0x55
#define AUDIO_TYPE_MPEG12 0x50
#define AUDIO_TYPE_PCM    0x1
#define AUDIO_TYPE_MSADPCM  0x2
#define AUDIO_TYPE_IMAADPCM  0x11
#define AUDIO_TYPE_ALAC  0x63616c61
#define AUDIO_TYPE_ULAW    0x77616c75
#define AUDIO_TYPE_ALAW    0x6	//0x77616C61
#define AUDIO_TYPE_FLAC 0x43614c66
#define AUDIO_TYPE_AAC  0x6134706d
#define AUDIO_TYPE_RAWPCM 0x20776172
#define AUDIO_TYPE_MONOPCM 0x454e4f4e
#define AUDIO_TYPE_AC3	0xff000000
#define AUDIO_TYPE_COOK   0x636F6F6B
#define AUDIO_TYPE_RAAC   8

#define VIDEO_TYPE_UNKNOW		0
#define VIDEO_TYPE_NONE		1
#define VIDEO_TYPE_MOV			2
#define VIDEO_TYPE_AVI			3
#define VIDEO_TYPE_VOB			4
#define VIDEO_TYPE_MPEG		5
#define VIDEO_TYPE_RM			6
#define VIDEO_TYPE_MP4			7
#define VIDEO_TYPE_REAL_8 		0x52563330
#define VIDEO_TYPE_REAL_9 		0x52563430
#define VIDEO_TYPE_DIVX         8
#define VIDEO_TYPE_XVID         9
#define VIDEO_TYPE_MJPEG        10

typedef struct{
	INT32U audio_type;
	INT32U video_type;
	INT32U total_time;
	INT32U size;	
} VIDEO_INFO ; 
                      
typedef struct{
        char    title[30] ;
        char    artist[30] ;
        char    album[64] ;
        char    year[5] ;
        char    comment[128] ;
        char    track ;
        char    genre[3] ;
} ID3_Tag ;
typedef struct
{
    char au_type[5];
    int au_samplerate;
    int au_channels;
    int au_bitrate;
    int au_total_size;
    int au_ff_fb_flag;
    int au_vbr_flag;    
    ID3_Tag au_ID3_Tag;
    char au_genre_value[20];
}AUDIO_STREAM_INFO;
                        
typedef struct
{
    char first_title[30];
    char second_title[30];
    char third_title[30];
    int first_total_time;    
    int second_total_time;    
    int third_total_time;    
}AUDIO_KODAK_INFO;                       

#define FILTER_DIVX                0x1
                       
#endif //end of _AW_MSG_H

⌨️ 快捷键说明

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