You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
955 B
C

1 year ago
#ifndef _HVDLLH_
#define _HVDLLH_
#include "GlobalDef.h"
extern "C" HV_HANDLE OpenHv(const PSTR pcIP);
extern "C" HRESULT CloseHv(HV_HANDLE hHandle);
extern "C" HRESULT HvIsConnected(HV_HANDLE hHandle, INT32 *piStatus);
extern "C" HRESULT SetHvCallBack(
HV_HANDLE hHandle,
void *pFunction,
void *pFirstParameter,
WORD wVideoID,
WORD wStream
);
extern "C" HRESULT Yuv2Rgb(
BYTE *pbDest,
BYTE *pbSrc,
int iSrcWidth,
int iSrcHeight,
int iBGRStride
);
extern "C" HRESULT Yuv2BMP(
BYTE *pbDest,
int iDestBufLen,
int *piDestLen,
BYTE *pbSrc,
int iSrcWidth,
int iSrcHeight
);
extern "C" HRESULT Yuv2Jpg(
BYTE *pbDest,
int iDestBufLen,
int *piDestLen,
BYTE *pbSrc,
int iSrcWidth,
int iSrcHeight
);
extern "C" HRESULT HV_ForceSend(HV_HANDLE hHandle);
extern "C" HRESULT SetHvTime(HV_HANDLE hHandle, DWORD64 dw64TimeMs);
extern "C" HRESULT GetHvTime(
HV_HANDLE hHandle,
DWORD64 *pdw64TimeMs
);
#endif