SubtitlesMicroDVD.h
上传用户:tuheem
上传日期:2007-05-01
资源大小:21889k
文件大小:1k
- /**************************************************************************************
- * *
- * *
- **************************************************************************************/
- #ifndef SUBTITLES_MICRODVD_H
- #define SUBTITLES_MICRODVD_H
- #include "Input.h"
- #include "MediaClasses.h"
- #define SUB_INPUT_BUFFER_SIZE 512
- class MediaSubtitlerMicroDVD : public MediaItemSubtitler {
- private:
- MediaBuffer *inputBuffer;
- MediaInput *inputFile;
- DWORD firstFrame;
- DWORD lastFrame;
- DWORD firstSubtitleFrame;
- DWORD previousLastFrame;
- subtitles_t subtitles;
- MP_RESULT ParseSubtitle();
- MP_RESULT SeekToFrame(DWORD frameNumber);
- public:
- MediaSubtitlerMicroDVD();
- ~MediaSubtitlerMicroDVD();
- media_type_t GetType();
- char *GetName();
- MP_RESULT Connect(MediaItem *item);
- MP_RESULT ReleaseConnections();
- DWORD GetCaps();
- MP_RESULT Configure(HINSTANCE hInstance, HWND hwnd);
- MP_RESULT Open(char *lpFilename);
- subtitles_t *GetSubtitles(DWORD frameNumber);
- MP_RESULT Close();
- };
- #endif