1
0

header_avi.h 556 B

12345678910111213141516171819202122232425
  1. #ifndef _HEADER_AVI_H
  2. #define _HEADER_AVI_H
  3. #include <windows.h>
  4. #include "Header.h"
  5. class HeaderAvi : public Header
  6. {
  7. public:
  8. HeaderAvi(bool bAllowHttpConnection = false); // bAllowHttp will allow an http connection to read header info
  9. ~HeaderAvi();
  10. int getInfos(const wchar_t *filename, bool checkMetadata=false);
  11. int read_dword() { int v=0; myfread(&v,sizeof(v),1); return v; }
  12. private:
  13. HANDLE fh;
  14. bool bAllowHttp;
  15. size_t myfread( void *buffer, size_t size, size_t count);
  16. int myfclose();
  17. int myfseek(long offset, DWORD origin);
  18. };
  19. #endif