avi_define.h

来自「AMLOGIC DPF source code」· C头文件 代码 · 共 84 行

H
84
字号
/*******************************************************************
 * 
 *  Copyright C 2005 by Amlogic, Inc. All Rights Reserved.
 *
 *  Description: 
 *
 *  Author: Amlogic Software
 *  Created: Fri Nov 11 00:17:51 2005
 *
 *******************************************************************/
#ifndef AVI_DEFINE_H
#define AVI_DEFINE_H

typedef enum {
    AVI_INIT = 0, 
    AVI_BUILD_INDEX,            /* building index */
    AVI_HOLD,                   /* when normal seamless playback, hold decoder before enough data */ 
    AVI_PLAY,                   /* normal seamless playback */ 
    AVI_PAUSE,                  /* paused during normal seamless playback */ 
    AVI_SEAMLESS_FF,            /* 2x seamless FF */ 
    AVI_NON_SEAMLESS_BREAK,

    AVI_STOP, 
    AVI_QUIT,
    AVI_DATAEND, 
    AVI_PLAYEND, 
    AVI_ERROR,
    AVI_NON_SEAMLESS_FF,        /* non_seamless playback */
    AVI_UNSUPPORT
} avi_status_e;

typedef struct {
    avi_status_e  status;
} aviinfo_t;

typedef enum {
    NM_AVI_PLAYTIME = 0,        /* current play time in 90Khz */
    NM_AVI_SUBTITLE_TEXT,       /* a pointer to subtext data will be returned */
    NM_AVI_SUBTITLE_INFO,       /* 0: no or invalid subtitle file, 1: subtitle file found and parsed ok */
    NM_AVI_PIC_INFO,            /* picture size information, [width:height] in high/low 16 bits */
    NM_AVI_STATUS,              /* playback status change notification in avi_status_e */
    NM_AVI_END_OF_PLAY,         /* avi file playback end */
    NM_AVI_GET_NEXT,            /* search next avi file */
    NM_AVI_GET_PREV,            /* search previous avi file */
    NM_AVI_VIDEO_ZOOMLEVEL,     /* if video is zoomed, it tells current zoom level */
    NM_AVI_FFFB_SPEED,          /* FF speed, FB speed with FB_TYPE set */
    NM_AVI_AUDIO_INFO,           /* audio information */
    NM_AVI_FILTER,              /* filter one format we dont wanna support */
    NM_AVI_SUBTITLE_BMP         /* a pointer to subpicture data will be returned */
} avi_notify_msg_e;

#define AVI_AUDIO_FORMAT_MP3    1
#define AVI_AUDIO_FORMAT_MPEG   2
#define AVI_AUDIO_FORMAT_PCM    3
#define AVI_AUDIO_FORMAT_AC3    4
#define AVI_AUDIO_FORMAT_WMA    5
#define AVI_AUDIO_FORMAT_ADPCM  6

#define avi_audio_put_format(msg, val)      (msg = msg & 0xffffff00L | val)
#define avi_audio_put_sr(msg, val)          (msg = msg & 0xfe0000ffL | (val << 8))
#define avi_audio_put_chan_num(msg, val)    (msg = msg & 0x01ffffffL | (val << 25))

#define avi_audio_format(msg)               ((msg) & 0xff)
#define avi_audio_sr(msg)                   (((msg) >> 8) & 0x1ffff)
#define avi_audio_chan_num(msg)             (((msg) >> 25) & 0x7)

#define FFFB_MASK       0x7fff
#define FB_TYPE         0x8000

typedef struct {
	int left;
	int top;
	int width;
	int height;	
	short background;
	short  pattern;
	short  emphasis1;
	short  emphasis2;	
	unsigned prtData;
} divx_subtitle_showdata;
#define OSD_HALF_SIZE 720*480/8

#endif

⌨️ 快捷键说明

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