📄 vob_define.h
字号:
/*******************************************************************
*
* Copyright C 2005 by Amlogic, Inc. All Rights Reserved.
*
* Description:
*
* Author: Amlogic Software
* Created: Fri Nov 11 00:19:01 2005
*
*******************************************************************/
#ifndef VOB_DEFINE_H
#define VOB_DEFINE_H
typedef enum {
VOB_INIT = 0,
VOB_PLAY, /* normal seamless playback */
VOB_PAUSE, /* paused during normal seamless playback */
VOB_SEAMLESS_FF, /* 2x seamless FF */
VOB_NON_SEAMLESS_BREAK,
VOB_STOP,
VOB_QUIT,
VOB_PLAYEND,
VOB_ERROR,
VOB_NON_SEAMLESS_FF, /* non_seamless playback */
VOB_SEAMLESS_SF,
VOB_PAL,
VOB_NTSC,
} vob_status_e;
typedef enum {
NM_VOB_PLAYTIME = 0, /* current play time in 90Khz */
NM_VOB_PIC_INFO, /* picture size information, [width:height] in high/low 16 bits */
NM_VOB_STATUS, /* playback status change notification in avi_status_e */
NM_VOB_END_OF_PLAY, /* avi file playback end */
NM_VOB_GET_NEXT, /* search next avi file */
NM_VOB_GET_PREV, /* search previous avi file */
NM_VOB_VIDEO_ZOOMLEVEL, /* if video is zoomed, it tells current zoom level */
NM_VOB_AUDIO_INFO, /* audio information */
NM_VOB_VIDEO_INFO, /* video information */
NM_VOB_GETTOTALTIME, /* total total time of VOB file*/
NM_VOB_START, /* start up signal for VOB playback */
NM_VOB_VIDEO,
} vob_notify_msg_e;
#define VOB_AUDIO_FORMAT_MPEG 1
#define VOB_AUDIO_FORMAT_PCM 2
#define VOB_AUDIO_FORMAT_AC3 3
#define VOB_AUDIO_FORMAT_DTS 4
#define VOB_AUDIO_FORMAT_SDDS 5
#define vob_audio_put_format(msg, val) (msg = msg & 0xffffffc0L | val)
#define vob_audio_put_sr(msg, val) (msg = msg & 0xfe0000ffL | (val << 8))
#define vob_audio_put_chan_num(msg, val) (msg = msg & 0x01ffffffL | (val << 25))
#define vob_audio_put_samplebit(msg, val) (msg = msg & 0x01ffffffL | (val << 25))
#define vob_audio_put_chan_status(msg, val) (msg = msg & 0xffffff3fL | (val << 6))
#define vob_audio_format(msg) ((msg) & 0x3f)
#define vob_audio_sr(msg) (((msg) >> 8) & 0x1ffff)
#define vob_audio_chan_num(msg) (((msg) >> 25) & 0x7)
#define vob_audio_chan_status(msg) ((msg) >> 6) & 0x3)
#define vob_video_put_format(msg, val) (msg = msg & 0xffffff00L | val)
#define vob_video_put_width(msg, val) (msg = msg & 0xfff000ffL | (val << 8))
#define vob_video_put_height(msg, val) (msg = msg & 0x000fffffL | (val << 20))
#define vob_video_format(msg) ((msg) & 0xff)
#define vob_video_width(msg) (((msg) >> 8) & 0xfff)
#define vob_video_height(msg) (((msg) >> 20) & 0xfff)
#define VIDEO_FORMAT_MPEG2 0
#define VIDEO_FORMAT_MPEG1 1
#define VIDEO_FORMAT_HVD 2
#define VIDEO_FORMAT_HVDDEMO 3
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -