📄 avcommon.h
字号:
#ifndef __AVCOMMON_H__#define __AVCOMMON_H__#include <unistd.h>#include "hi_type.h"#include "hi_common_api.h"#define VIDEO_PORT 6666#define AUDIO_PORT 6667#define NTSC 1#define PAL 0#define QCIF 0#define CIF 1#define HD1 2#define D1 3#define MD1 4#define QVGA 5 #define VGA 6#define SXGA 7/* Define the sample rate which AD supported */#define SET_TLV_SAMPLERATE 0xaF01#define SET_8K_SAMPLERATE 0#define SET_32K_SAMPLERATE 3#define SET_48K_SAMPLERATE 5 #define AAC_CHANNEL_SUPPORT 2 /* The channles supported by AAC */#define AAC_MAX_BANDWIDTH 20000 /* The max bandwidth */typedef struct hiVDEC_THTREAD_ARGS{ HI_S32 chnum; VDEC_CHN ChanID;}VDEC_THTREAD_ARGS;HI_S32 ADconfig (HI_S32 mode, HI_S32 normal);HI_S32 ViPubConfig(HI_U16 mode, HI_U16 normal, VENC_FORMAT_E format);HI_S32 ViChnConfig(HI_U16 mode, HI_U16 normal, VI_CHN vi_chn );HI_S32 DAconfig (HI_S32 normal);HI_S32 VoPubConfig (HI_U16 normal);HI_S32 VoChnConfig (HI_U16 normal, VI_CHN voChn);/* Set the AD's sample rate */HI_VOID SetADSampleRate(HI_U32 sample);/* Set the AI's sample rate */HI_S32 SetAiSampleRate(AI_CHN ai_chnid, AUDIO_SAMPLE_RATE_E enSample);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -