aboutsummaryrefslogtreecommitdiff
path: root/Src/Plugins/Input/in_dshow/header_avi.h
blob: d96fe2c36ab7c6e1d1bad7fbafc301691a900d80 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef _HEADER_AVI_H
#define _HEADER_AVI_H

#include <windows.h>

#include "Header.h"

class HeaderAvi : public Header
{
public:
	HeaderAvi(bool bAllowHttpConnection = false); // bAllowHttp will allow an http connection to read header info
~HeaderAvi();
	int getInfos(const wchar_t *filename, bool checkMetadata=false);
	int read_dword() { int v=0; myfread(&v,sizeof(v),1); return v; }

private:
	HANDLE fh;

	bool bAllowHttp;
	size_t myfread( void *buffer, size_t size, size_t count);
	int myfclose();
	int myfseek(long offset, DWORD origin);
};

#endif