forked from LosaDev/ls-2019-source
LosaDev source snapshot 2019
This commit is contained in:
commit
c198676e97
20588 files changed
+8812878
No files matched your search
@@ -0,0 +1,38 @@
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
///
|
||||
/// BandiVideoLibrary 2.1
|
||||
///
|
||||
/// Copyright(C) 2008-2011 BandiSoft.com All rights reserved.
|
||||
///
|
||||
/// Visit http://www.bandisoft.com for more information.
|
||||
///
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "bandivid.h"
|
||||
|
||||
class CBandiVideoFileReader : public IBandiVideoFileReader
|
||||
{
|
||||
public:
|
||||
CBandiVideoFileReader();
|
||||
virtual ~CBandiVideoFileReader();
|
||||
|
||||
// IUnknown
|
||||
STDMETHODIMP QueryInterface(REFIID riid, void **ppv) { return E_NOTIMPL; };
|
||||
STDMETHODIMP_(ULONG) AddRef();
|
||||
STDMETHODIMP_(ULONG) Release();
|
||||
|
||||
// IBandiVideoFileReader
|
||||
HRESULT Open(LPCWSTR path_name);
|
||||
void Close();
|
||||
INT Read(BYTE* buf, INT bytes_to_read);
|
||||
INT64 SetPosition(INT64 pos);
|
||||
INT64 GetPosition();
|
||||
INT64 GetFileSize();
|
||||
|
||||
protected:
|
||||
LONG m_ref_count;
|
||||
HANDLE m_file_handle;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user