?? em85xx.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"// builtin C-based proportional/fixed font structuretypedef struct { RMint8 *name; // font name RMint32 maxwidth; // max width in pixels RMint32 height; // height in pixels RMint32 ascent; // ascent (baseline) height RMint32 firstchar; // first character in bitmap RMint32 size; // font size in characters RMuint16 *bits; // 16-bit right-padded bitmap data RMuint16 *offset; // 256 offsets into bitmap data RMuint8 *width; // 256 character widths or 0 if fixed} BM_FONT, *PBM_FONT;typedef struct _tagsdPOINT{ RMuint32 x; RMuint32 y; RMuint32 x2; RMuint32 y2;} sdPOINT;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, RMuint8 Pal = 0); 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 PlayIFrame (RMint32 speed); 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 SetDTSParameters (DTS_PARAMETERS *pDtsParameters); 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, RMuint32 firstaccessunitpointer = 0); MPEG_DECODER_ERROR WriteAAC (RMuint8 *pAac, RMuint32 length, RMuint8 *prefcount, RMuint32 flags, RMint64 scr, RMint64 pts); MPEG_DECODER_ERROR SetAACParameters (AAC_PARAMETERS *pAacParameters); MPEG_DECODER_ERROR WriteDTS (RMuint8 *pDts, RMuint32 length, RMuint8 *prefcount, RMuint32 flags, RMint64 scr, RMint64 pts, RMint32 nFrameHeaders, RMint32 FirstAccessUnitPointer); 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 ClearScreen (); MPEG_DECODER_ERROR Exit ();};#endif
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -