InputFile.h
上传用户:tuheem
上传日期:2007-05-01
资源大小:21889k
文件大小:1k
- #ifndef INPUT_FILE_H
- #define INPUT_FILE_H
- #include "MediaClasses.h"
- #include <fcntl.h>
- #include <stdio.h>
- #include <io.h>
- #include <crtdbg.h>
- class MediaInputFile : public MediaItemInput {
- private:
- FILE *file;
- DWORD size;
- public:
- MediaInputFile();
- ~MediaInputFile();
- 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 *url, media_input_mode_t mode);
- long GetSize();
- long GetBufferSize();
- long GetBufferPosition();
- long GetBufferingSize();
- unsigned int Read(MediaBuffer *mb, unsigned int size);
- unsigned int Seek(int size, media_input_seek_t method);
- unsigned int GetLine(MediaBuffer *mb);
- BOOL EndOfFile();
- MP_RESULT Close();
- };
- #endif