⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 em85xx.h

📁 EM8511s中使用的mp3录制源代码
💻 H
字号:
#ifndef _EM85XX_H#define _EM85XX_H#include <stdio.h>#include <fcntl.h>#include <unistd.h>#include <sys/ioctl.h>#include <memory.h>#include "rmbasic.h"#include "mpegdec.h"#include "em85xx.h"#include "realmagichwl.h"#include "jasperlib.h"class MpegDecoder : public IMpegDecoder{	OSDBuffer	m_OsdBuffer;	RMint32		m_screenWidth;	RMint32		m_screenHeight;	RMint32		m_numeratorPixelAspectRatio;	RMint32		m_denominatorPixelAspectRatio;	RMint32		m_yuvWidth;	RMint32		m_yuvHeight;	RMint32		m_osdWidth;	RMint32		m_osdHeight;	RMint32		m_isMPEG4;public:	MpegDecoder ();	~MpegDecoder ();	RMuint32	m_handle;	MPEG_DECODER_ERROR Init ();	MPEG_DECODER_ERROR GetMaxDisplayModes (RMint32 *pMode);	MPEG_DECODER_ERROR SetupDisplay (RMint32 Mode);	MPEG_DECODER_ERROR GetScreenDimensions (RMint32 *w, RMint32 *h, RMint32 *n, RMint32 *d);	MPEG_DECODER_ERROR DisplayYUV420 (RMuint8 *pY, RMuint8 *pUV, RMint32 x, RMint32 y, RMint32 w, RMint32 h, RMint32 w_screen, RMint32 h_screen);	MPEG_DECODER_ERROR SetVideoDestination (RMint32 x, RMint32 y, RMint32 w, RMint32 h);	MPEG_DECODER_ERROR RenderText (RMint8 *text, RMuint32 colour, RMint32 x, RMint32 y, RMint32 w, RMint32 h);	MPEG_DECODER_ERROR RenderOsdPalette (RMuint8 *palette);	MPEG_DECODER_ERROR RenderOsdBits (RMuint8 *osd, RMint32 x, RMint32 y, RMint32 w, RMint32 h);	MPEG_DECODER_ERROR SaveOsdBits (RMuint8 *osd, RMint32 x, RMint32 y, RMint32 w, RMint32 h);	MPEG_DECODER_ERROR Play ();	MPEG_DECODER_ERROR PlayIFrame ();	MPEG_DECODER_ERROR Pause ();	MPEG_DECODER_ERROR Stop ();	MPEG_DECODER_ERROR GetSTC (RMint64 *pSTC, RMuint32 Resolution);	MPEG_DECODER_ERROR EndOfStream (RMint64 STC, RMuint32 Resolution);	MPEG_DECODER_ERROR SetPCMParameters (PCM_PARAMETERS *pPcmParameters);	MPEG_DECODER_ERROR SetAC3Parameters (AC3_PARAMETERS *pAc3Parameters);	MPEG_DECODER_ERROR SetMpegAudioParameters (MPEGAUDIO_PARAMETERS *pMpegAudioParameters);	MPEG_DECODER_ERROR SetMpegVideoParameters (MPEGVIDEO_PARAMETERS *pMpegVideoParameters);	MPEG_DECODER_ERROR WritePCM (RMuint8 *pPCM, RMuint32 length, RMuint8 *prefcount, RMuint32 flags, RMint64 scr, RMint64 pts);	MPEG_DECODER_ERROR WriteAC3 (RMuint8 *pAc3, RMuint32 length, RMuint8 *prefcount, RMuint32 flags, RMint64 scr, RMint64 pts);	MPEG_DECODER_ERROR WriteMpegAudio (RMuint8 *pAudio, RMuint32 length, RMuint8 *prefcount, RMuint32 flags, RMint64 scr, RMint64 pts);	MPEG_DECODER_ERROR WriteMpegVideo (RMuint8 *pVideo, RMuint32 length, RMuint8 *prefcount, RMuint32 flags, RMint64 scr, RMint64 pts);	MPEG_DECODER_ERROR Brightness (RMint32 direction, RMint32 *pvalue);	MPEG_DECODER_ERROR Contrast (RMint32 direction, RMint32 *pvalue);	MPEG_DECODER_ERROR Saturation (RMint32 direction, RMint32 *pvalue);	MPEG_DECODER_ERROR Exit ();};#endif

⌨️ 快捷键说明

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