12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435 |
- using System;
- using System.Collections.Generic;
- using System.Runtime.InteropServices;
- using System.Text;
- using static QuickNV.HikvisionNetSDK.Defines;
- namespace QuickNV.HikvisionNetSDK
- {
- public class Methods
- {
- private static bool IsWindows = Environment.OSVersion.Platform == PlatformID.Win32NT;
- public static int Invoke(int result)
- {
- if (result < 0)
- {
- uint lastErrorCode = NET_DVR_GetLastError();
- throw new HikvisionException(lastErrorCode);
- }
- return result;
- }
- public static bool Invoke(bool result)
- {
- if (!result)
- {
- uint lastErrorCode = NET_DVR_GetLastError();
- throw new HikvisionException(lastErrorCode);
- }
- return result;
- }
- public static int NET_DVR_SendWithRecvRemoteConfig(int lHandle, IntPtr lpInBuff, uint dwInBuffSize, IntPtr lpOutBuff, uint dwOutBuffSize, ref uint dwOutDataLen)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SendWithRecvRemoteConfig(lHandle, lpInBuff, dwInBuffSize, lpOutBuff, dwOutBuffSize, ref dwOutDataLen);
- else
- return Methods_Linux.NET_DVR_SendWithRecvRemoteConfig(lHandle, lpInBuff, dwInBuffSize, lpOutBuff, dwOutBuffSize, ref dwOutDataLen);
- }
- public static int NET_DVR_SendWithRecvRemoteConfig(int lHandle, ref NET_DVR_FACE_RECORD lpInBuff, int dwInBuffSize, ref NET_DVR_FACE_STATUS lpOutBuff, int dwOutBuffSize, IntPtr dwOutDataLen)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SendWithRecvRemoteConfig(lHandle, ref lpInBuff, dwInBuffSize, ref lpOutBuff, dwOutBuffSize, dwOutDataLen);
- else
- return Methods_Linux.NET_DVR_SendWithRecvRemoteConfig(lHandle, ref lpInBuff, dwInBuffSize, ref lpOutBuff, dwOutBuffSize, dwOutDataLen);
- }
- public static int NET_DVR_SendWithRecvRemoteConfig(int lHandle, ref NET_DVR_FINGERPRINT_RECORD lpInBuff, int dwInBuffSize, ref NET_DVR_FINGERPRINT_STATUS lpOutBuff, int dwOutBuffSize, IntPtr dwOutDataLen)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SendWithRecvRemoteConfig(lHandle, ref lpInBuff, dwInBuffSize, ref lpOutBuff, dwOutBuffSize, dwOutDataLen);
- else
- return Methods_Linux.NET_DVR_SendWithRecvRemoteConfig(lHandle, ref lpInBuff, dwInBuffSize, ref lpOutBuff, dwOutBuffSize, dwOutDataLen);
- }
- public static bool NET_DVR_STDXMLConfig(int lUserID, IntPtr lpInputParam, IntPtr lpOutputParam)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_STDXMLConfig(lUserID, lpInputParam, lpOutputParam);
- else
- return Methods_Linux.NET_DVR_STDXMLConfig(lUserID, lpInputParam, lpOutputParam);
- }
- public static bool NET_DVR_ControlGateway(int lUserID, int lGatewayIndex, uint dwStaic)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_ControlGateway(lUserID, lGatewayIndex, dwStaic);
- else
- return Methods_Linux.NET_DVR_ControlGateway(lUserID, lGatewayIndex, dwStaic);
- }
- public static bool NET_DVR_SetDVRMessageCallBack_V50(int iIndex, MSGCallBack fMessageCallBack, IntPtr pUser)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetDVRMessageCallBack_V50(iIndex, fMessageCallBack, pUser);
- else
- return Methods_Linux.NET_DVR_SetDVRMessageCallBack_V50(iIndex, fMessageCallBack, pUser);
- }
- public static int NET_DVR_GetNextRemoteConfig(int lHandle, ref NET_DVR_CAPTURE_FACE_CFG lpOutBuff, int dwOutBuffSize)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetNextRemoteConfig(lHandle, ref lpOutBuff, dwOutBuffSize);
- else
- return Methods_Linux.NET_DVR_GetNextRemoteConfig(lHandle, ref lpOutBuff, dwOutBuffSize);
- }
- public static int NET_DVR_GetNextRemoteConfig(int lHandle, ref NET_DVR_FINGER_PRINT_INFO_STATUS_V50 lpOutBuff, int dwOutBuffSize)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetNextRemoteConfig(lHandle, ref lpOutBuff, dwOutBuffSize);
- else
- return Methods_Linux.NET_DVR_GetNextRemoteConfig(lHandle, ref lpOutBuff, dwOutBuffSize);
- }
- public static int NET_DVR_GetNextRemoteConfig(int lHandle, ref NET_DVR_ACS_EVENT_CFG lpOutBuff, int dwOutBuffSize)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetNextRemoteConfig(lHandle, ref lpOutBuff, dwOutBuffSize);
- else
- return Methods_Linux.NET_DVR_GetNextRemoteConfig(lHandle, ref lpOutBuff, dwOutBuffSize);
- }
- public static int NET_DVR_GetNextRemoteConfig(int lHandle, ref NET_DVR_FINGERPRINT_RECORD lpOutBuff, int dwOutBuffSize)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetNextRemoteConfig(lHandle, ref lpOutBuff, dwOutBuffSize);
- else
- return Methods_Linux.NET_DVR_GetNextRemoteConfig(lHandle, ref lpOutBuff, dwOutBuffSize);
- }
- public static int NET_DVR_GetNextRemoteConfig(int lHandle, ref NET_DVR_CAPTURE_FINGERPRINT_CFG lpOutBuff, int dwOutBuffSize)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetNextRemoteConfig(lHandle, ref lpOutBuff, dwOutBuffSize);
- else
- return Methods_Linux.NET_DVR_GetNextRemoteConfig(lHandle, ref lpOutBuff, dwOutBuffSize);
- }
- public static int NET_DVR_GetNextRemoteConfig(int lHandle, ref NET_DVR_FACE_RECORD lpOutBuff, int dwOutBuffSize)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetNextRemoteConfig(lHandle, ref lpOutBuff, dwOutBuffSize);
- else
- return Methods_Linux.NET_DVR_GetNextRemoteConfig(lHandle, ref lpOutBuff, dwOutBuffSize);
- }
- public static bool NET_DVR_Init()
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_Init();
- else
- return Methods_Linux.NET_DVR_Init();
- }
- public static bool NET_DVR_Cleanup()
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_Cleanup();
- else
- return Methods_Linux.NET_DVR_Cleanup();
- }
- public static bool NET_DVR_SetDVRMessage(uint nMessage, IntPtr hWnd)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetDVRMessage(nMessage, hWnd);
- else
- return Methods_Linux.NET_DVR_SetDVRMessage(nMessage, hWnd);
- }
- public static bool NET_DVR_SetExceptionCallBack_V30(uint nMessage, IntPtr hWnd, EXCEPYIONCALLBACK fExceptionCallBack, IntPtr pUser)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetExceptionCallBack_V30(nMessage, hWnd, fExceptionCallBack, pUser);
- else
- return Methods_Linux.NET_DVR_SetExceptionCallBack_V30(nMessage, hWnd, fExceptionCallBack, pUser);
- }
- public static bool NET_DVR_SetDVRMessCallBack(MESSCALLBACK fMessCallBack)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetDVRMessCallBack(fMessCallBack);
- else
- return Methods_Linux.NET_DVR_SetDVRMessCallBack(fMessCallBack);
- }
- public static bool NET_DVR_SetDVRMessCallBack_EX(MESSCALLBACKEX fMessCallBack_EX)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetDVRMessCallBack_EX(fMessCallBack_EX);
- else
- return Methods_Linux.NET_DVR_SetDVRMessCallBack_EX(fMessCallBack_EX);
- }
- public static bool NET_DVR_SetDVRMessCallBack_NEW(MESSCALLBACKNEW fMessCallBack_NEW)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetDVRMessCallBack_NEW(fMessCallBack_NEW);
- else
- return Methods_Linux.NET_DVR_SetDVRMessCallBack_NEW(fMessCallBack_NEW);
- }
- public static bool NET_DVR_SetDVRMessageCallBack(MESSAGECALLBACK fMessageCallBack, uint dwUser)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetDVRMessageCallBack(fMessageCallBack, dwUser);
- else
- return Methods_Linux.NET_DVR_SetDVRMessageCallBack(fMessageCallBack, dwUser);
- }
- public static bool NET_DVR_SetDVRMessageCallBack_V30(MSGCallBack fMessageCallBack, IntPtr pUser)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetDVRMessageCallBack_V30(fMessageCallBack, pUser);
- else
- return Methods_Linux.NET_DVR_SetDVRMessageCallBack_V30(fMessageCallBack, pUser);
- }
- public static bool NET_DVR_SetDVRMessageCallBack_V31(MSGCallBack_V31 fMessageCallBack, IntPtr pUser)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetDVRMessageCallBack_V31(fMessageCallBack, pUser);
- else
- return Methods_Linux.NET_DVR_SetDVRMessageCallBack_V31(fMessageCallBack, pUser);
- }
- public static bool NET_DVR_SetSDKLocalCfg(int enumType, IntPtr lpInBuff)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetSDKLocalCfg(enumType, lpInBuff);
- else
- return Methods_Linux.NET_DVR_SetSDKLocalCfg(enumType, lpInBuff);
- }
- public static bool NET_DVR_GetSDKLocalCfg(int enumType, IntPtr lpOutBuff)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetSDKLocalCfg(enumType, lpOutBuff);
- else
- return Methods_Linux.NET_DVR_GetSDKLocalCfg(enumType, lpOutBuff);
- }
- public static bool NET_DVR_SetConnectTime(uint dwWaitTime, uint dwTryTimes)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetConnectTime(dwWaitTime, dwTryTimes);
- else
- return Methods_Linux.NET_DVR_SetConnectTime(dwWaitTime, dwTryTimes);
- }
- public static bool NET_DVR_SetReconnect(uint dwInterval, int bEnableRecon)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetReconnect(dwInterval, bEnableRecon);
- else
- return Methods_Linux.NET_DVR_SetReconnect(dwInterval, bEnableRecon);
- }
- public static bool NET_DVR_GetLocalIP(byte[] strIP, ref uint pValidNum, ref Boolean pEnableBind)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetLocalIP(strIP, ref pValidNum, ref pEnableBind);
- else
- return Methods_Linux.NET_DVR_GetLocalIP(strIP, ref pValidNum, ref pEnableBind);
- }
- public static bool NET_DVR_SetValidIP(uint dwIPIndex, Boolean bEnableBind)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetValidIP(dwIPIndex, bEnableBind);
- else
- return Methods_Linux.NET_DVR_SetValidIP(dwIPIndex, bEnableBind);
- }
- public static uint NET_DVR_GetSDKVersion()
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetSDKVersion();
- else
- return Methods_Linux.NET_DVR_GetSDKVersion();
- }
- public static uint NET_DVR_GetSDKBuildVersion()
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetSDKBuildVersion();
- else
- return Methods_Linux.NET_DVR_GetSDKBuildVersion();
- }
- public static Int32 NET_DVR_IsSupport()
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_IsSupport();
- else
- return Methods_Linux.NET_DVR_IsSupport();
- }
- public static bool NET_DVR_StartListen(string sLocalIP, ushort wLocalPort)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_StartListen(sLocalIP, wLocalPort);
- else
- return Methods_Linux.NET_DVR_StartListen(sLocalIP, wLocalPort);
- }
- public static bool NET_DVR_StopListen()
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_StopListen();
- else
- return Methods_Linux.NET_DVR_StopListen();
- }
- public static int NET_DVR_StartListen_V30(String sLocalIP, ushort wLocalPort, MSGCallBack DataCallback, IntPtr pUserData)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_StartListen_V30(sLocalIP, wLocalPort, DataCallback, pUserData);
- else
- return Methods_Linux.NET_DVR_StartListen_V30(sLocalIP, wLocalPort, DataCallback, pUserData);
- }
- public static bool NET_DVR_StopListen_V30(Int32 lListenHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_StopListen_V30(lListenHandle);
- else
- return Methods_Linux.NET_DVR_StopListen_V30(lListenHandle);
- }
- public static Int32 NET_DVR_Login(string sDVRIP, ushort wDVRPort, string sUserName, string sPassword, ref NET_DVR_DEVICEINFO lpDeviceInfo)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_Login(sDVRIP, wDVRPort, sUserName, sPassword, ref lpDeviceInfo);
- else
- return Methods_Linux.NET_DVR_Login(sDVRIP, wDVRPort, sUserName, sPassword, ref lpDeviceInfo);
- }
- public static bool NET_DVR_Logout(int iUserID)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_Logout(iUserID);
- else
- return Methods_Linux.NET_DVR_Logout(iUserID);
- }
- public static uint NET_DVR_GetLastError()
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetLastError();
- else
- return Methods_Linux.NET_DVR_GetLastError();
- }
- public static IntPtr NET_DVR_GetErrorMsg(ref int pErrorNo)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetErrorMsg(ref pErrorNo);
- else
- return Methods_Linux.NET_DVR_GetErrorMsg(ref pErrorNo);
- }
- public static bool NET_DVR_SetShowMode(uint dwShowType, uint colorKey)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetShowMode(dwShowType, colorKey);
- else
- return Methods_Linux.NET_DVR_SetShowMode(dwShowType, colorKey);
- }
- public static bool NET_DVR_GetDVRIPByResolveSvr(string sServerIP, ushort wServerPort, string sDVRName, ushort wDVRNameLen, string sDVRSerialNumber, ushort wDVRSerialLen, IntPtr pGetIP)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetDVRIPByResolveSvr(sServerIP, wServerPort, sDVRName, wDVRNameLen, sDVRSerialNumber, wDVRSerialLen, pGetIP);
- else
- return Methods_Linux.NET_DVR_GetDVRIPByResolveSvr(sServerIP, wServerPort, sDVRName, wDVRNameLen, sDVRSerialNumber, wDVRSerialLen, pGetIP);
- }
- public static bool NET_DVR_GetDVRIPByResolveSvr_EX(string sServerIP, ushort wServerPort, byte[] sDVRName, ushort wDVRNameLen, byte[] sDVRSerialNumber, ushort wDVRSerialLen, byte[] sGetIP, ref uint dwPort)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetDVRIPByResolveSvr_EX(sServerIP, wServerPort, sDVRName, wDVRNameLen, sDVRSerialNumber, wDVRSerialLen, sGetIP, ref dwPort);
- else
- return Methods_Linux.NET_DVR_GetDVRIPByResolveSvr_EX(sServerIP, wServerPort, sDVRName, wDVRNameLen, sDVRSerialNumber, wDVRSerialLen, sGetIP, ref dwPort);
- }
- public static Int32 NET_DVR_RealPlay(int iUserID, ref NET_DVR_CLIENTINFO lpClientInfo)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_RealPlay(iUserID, ref lpClientInfo);
- else
- return Methods_Linux.NET_DVR_RealPlay(iUserID, ref lpClientInfo);
- }
- public static Int32 NET_SDK_RealPlay(int iUserLogID, ref NET_DVR_CLIENTINFO lpDVRClientInfo)
- {
- if (IsWindows)
- return Methods_Win.NET_SDK_RealPlay(iUserLogID, ref lpDVRClientInfo);
- else
- return Methods_Linux.NET_SDK_RealPlay(iUserLogID, ref lpDVRClientInfo);
- }
- public static int NET_DVR_RealPlay_V30(int iUserID, ref NET_DVR_CLIENTINFO lpClientInfo, REALDATACALLBACK fRealDataCallBack_V30, IntPtr pUser, UInt32 bBlocked)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_RealPlay_V30(iUserID, ref lpClientInfo, fRealDataCallBack_V30, pUser, bBlocked);
- else
- return Methods_Linux.NET_DVR_RealPlay_V30(iUserID, ref lpClientInfo, fRealDataCallBack_V30, pUser, bBlocked);
- }
- public static int NET_DVR_RealPlay_V40(int iUserID, ref NET_DVR_PREVIEWINFO lpPreviewInfo, REALDATACALLBACK fRealDataCallBack_V30, IntPtr pUser)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_RealPlay_V40(iUserID, ref lpPreviewInfo, fRealDataCallBack_V30, pUser);
- else
- return Methods_Linux.NET_DVR_RealPlay_V40(iUserID, ref lpPreviewInfo, fRealDataCallBack_V30, pUser);
- }
- public static bool NET_DVR_StopRealPlay(int iRealHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_StopRealPlay(iRealHandle);
- else
- return Methods_Linux.NET_DVR_StopRealPlay(iRealHandle);
- }
- public static bool NET_DVR_RigisterDrawFun(int lRealHandle, DRAWFUN fDrawFun, uint dwUser)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_RigisterDrawFun(lRealHandle, fDrawFun, dwUser);
- else
- return Methods_Linux.NET_DVR_RigisterDrawFun(lRealHandle, fDrawFun, dwUser);
- }
- public static bool NET_DVR_SetPlayerBufNumber(Int32 lRealHandle, uint dwBufNum)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetPlayerBufNumber(lRealHandle, dwBufNum);
- else
- return Methods_Linux.NET_DVR_SetPlayerBufNumber(lRealHandle, dwBufNum);
- }
- public static bool NET_DVR_ThrowBFrame(Int32 lRealHandle, uint dwNum)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_ThrowBFrame(lRealHandle, dwNum);
- else
- return Methods_Linux.NET_DVR_ThrowBFrame(lRealHandle, dwNum);
- }
- public static bool NET_DVR_SetAudioMode(uint dwMode)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetAudioMode(dwMode);
- else
- return Methods_Linux.NET_DVR_SetAudioMode(dwMode);
- }
- public static bool NET_DVR_OpenSound(Int32 lRealHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_OpenSound(lRealHandle);
- else
- return Methods_Linux.NET_DVR_OpenSound(lRealHandle);
- }
- public static bool NET_DVR_CloseSound()
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_CloseSound();
- else
- return Methods_Linux.NET_DVR_CloseSound();
- }
- public static bool NET_DVR_OpenSoundShare(Int32 lRealHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_OpenSoundShare(lRealHandle);
- else
- return Methods_Linux.NET_DVR_OpenSoundShare(lRealHandle);
- }
- public static bool NET_DVR_CloseSoundShare(Int32 lRealHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_CloseSoundShare(lRealHandle);
- else
- return Methods_Linux.NET_DVR_CloseSoundShare(lRealHandle);
- }
- public static bool NET_DVR_Volume(Int32 lRealHandle, ushort wVolume)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_Volume(lRealHandle, wVolume);
- else
- return Methods_Linux.NET_DVR_Volume(lRealHandle, wVolume);
- }
- public static bool NET_DVR_SaveRealData(Int32 lRealHandle, string sFileName)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SaveRealData(lRealHandle, sFileName);
- else
- return Methods_Linux.NET_DVR_SaveRealData(lRealHandle, sFileName);
- }
- public static bool NET_DVR_StopSaveRealData(Int32 lRealHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_StopSaveRealData(lRealHandle);
- else
- return Methods_Linux.NET_DVR_StopSaveRealData(lRealHandle);
- }
- public static bool NET_DVR_SetRealDataCallBack(int lRealHandle, SETREALDATACALLBACK fRealDataCallBack, uint dwUser)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetRealDataCallBack(lRealHandle, fRealDataCallBack, dwUser);
- else
- return Methods_Linux.NET_DVR_SetRealDataCallBack(lRealHandle, fRealDataCallBack, dwUser);
- }
- public static bool NET_DVR_SetStandardDataCallBack(int lRealHandle, STDDATACALLBACK fStdDataCallBack, uint dwUser)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetStandardDataCallBack(lRealHandle, fStdDataCallBack, dwUser);
- else
- return Methods_Linux.NET_DVR_SetStandardDataCallBack(lRealHandle, fStdDataCallBack, dwUser);
- }
- public static bool NET_DVR_CapturePicture(Int32 lRealHandle, string sPicFileName)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_CapturePicture(lRealHandle, sPicFileName);
- else
- return Methods_Linux.NET_DVR_CapturePicture(lRealHandle, sPicFileName);
- }
- public static bool NET_DVR_CapturePictureBlock(Int32 lRealHandle, string sPicFileName, int dwTimeOut)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_CapturePictureBlock(lRealHandle, sPicFileName, dwTimeOut);
- else
- return Methods_Linux.NET_DVR_CapturePictureBlock(lRealHandle, sPicFileName, dwTimeOut);
- }
- public static bool NET_DVR_MakeKeyFrame(Int32 lUserID, Int32 lChannel)//主码流
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MakeKeyFrame(lUserID, lChannel);
- else
- return Methods_Linux.NET_DVR_MakeKeyFrame(lUserID, lChannel);
- }
- public static bool NET_DVR_MakeKeyFrameSub(Int32 lUserID, Int32 lChannel)//子码流
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MakeKeyFrameSub(lUserID, lChannel);
- else
- return Methods_Linux.NET_DVR_MakeKeyFrameSub(lUserID, lChannel);
- }
- public static bool NET_DVR_GetPTZCtrl(Int32 lRealHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetPTZCtrl(lRealHandle);
- else
- return Methods_Linux.NET_DVR_GetPTZCtrl(lRealHandle);
- }
- public static bool NET_DVR_GetPTZCtrl_Other(Int32 lUserID, int lChannel)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetPTZCtrl_Other(lUserID, lChannel);
- else
- return Methods_Linux.NET_DVR_GetPTZCtrl_Other(lUserID, lChannel);
- }
- public static bool NET_DVR_PTZControl(Int32 lRealHandle, uint dwPTZCommand, uint dwStop)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_PTZControl(lRealHandle, dwPTZCommand, dwStop);
- else
- return Methods_Linux.NET_DVR_PTZControl(lRealHandle, dwPTZCommand, dwStop);
- }
- public static bool NET_DVR_PTZControl_Other(Int32 lUserID, Int32 lChannel, uint dwPTZCommand, uint dwStop)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_PTZControl_Other(lUserID, lChannel, dwPTZCommand, dwStop);
- else
- return Methods_Linux.NET_DVR_PTZControl_Other(lUserID, lChannel, dwPTZCommand, dwStop);
- }
- public static bool NET_DVR_TransPTZ(Int32 lRealHandle, string pPTZCodeBuf, uint dwBufSize)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_TransPTZ(lRealHandle, pPTZCodeBuf, dwBufSize);
- else
- return Methods_Linux.NET_DVR_TransPTZ(lRealHandle, pPTZCodeBuf, dwBufSize);
- }
- public static bool NET_DVR_TransPTZ_Other(int lUserID, int lChannel, string pPTZCodeBuf, uint dwBufSize)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_TransPTZ_Other(lUserID, lChannel, pPTZCodeBuf, dwBufSize);
- else
- return Methods_Linux.NET_DVR_TransPTZ_Other(lUserID, lChannel, pPTZCodeBuf, dwBufSize);
- }
- public static bool NET_DVR_PTZPreset(int lRealHandle, uint dwPTZPresetCmd, uint dwPresetIndex)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_PTZPreset(lRealHandle, dwPTZPresetCmd, dwPresetIndex);
- else
- return Methods_Linux.NET_DVR_PTZPreset(lRealHandle, dwPTZPresetCmd, dwPresetIndex);
- }
- public static bool NET_DVR_PTZPreset_Other(int lUserID, int lChannel, uint dwPTZPresetCmd, uint dwPresetIndex)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_PTZPreset_Other(lUserID, lChannel, dwPTZPresetCmd, dwPresetIndex);
- else
- return Methods_Linux.NET_DVR_PTZPreset_Other(lUserID, lChannel, dwPTZPresetCmd, dwPresetIndex);
- }
- public static bool NET_DVR_TransPTZ_EX(int lRealHandle, string pPTZCodeBuf, uint dwBufSize)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_TransPTZ_EX(lRealHandle, pPTZCodeBuf, dwBufSize);
- else
- return Methods_Linux.NET_DVR_TransPTZ_EX(lRealHandle, pPTZCodeBuf, dwBufSize);
- }
- public static bool NET_DVR_PTZControl_EX(int lRealHandle, uint dwPTZCommand, uint dwStop)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_PTZControl_EX(lRealHandle, dwPTZCommand, dwStop);
- else
- return Methods_Linux.NET_DVR_PTZControl_EX(lRealHandle, dwPTZCommand, dwStop);
- }
- public static bool NET_DVR_PTZPreset_EX(int lRealHandle, uint dwPTZPresetCmd, uint dwPresetIndex)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_PTZPreset_EX(lRealHandle, dwPTZPresetCmd, dwPresetIndex);
- else
- return Methods_Linux.NET_DVR_PTZPreset_EX(lRealHandle, dwPTZPresetCmd, dwPresetIndex);
- }
- public static bool NET_DVR_PTZCruise(int lRealHandle, uint dwPTZCruiseCmd, byte byCruiseRoute, byte byCruisePoint, ushort wInput)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_PTZCruise(lRealHandle, dwPTZCruiseCmd, byCruiseRoute, byCruisePoint, wInput);
- else
- return Methods_Linux.NET_DVR_PTZCruise(lRealHandle, dwPTZCruiseCmd, byCruiseRoute, byCruisePoint, wInput);
- }
- public static bool NET_DVR_PTZCruise_Other(int lUserID, int lChannel, uint dwPTZCruiseCmd, byte byCruiseRoute, byte byCruisePoint, ushort wInput)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_PTZCruise_Other(lUserID, lChannel, dwPTZCruiseCmd, byCruiseRoute, byCruisePoint, wInput);
- else
- return Methods_Linux.NET_DVR_PTZCruise_Other(lUserID, lChannel, dwPTZCruiseCmd, byCruiseRoute, byCruisePoint, wInput);
- }
- public static bool NET_DVR_PTZCruise_EX(int lRealHandle, uint dwPTZCruiseCmd, byte byCruiseRoute, byte byCruisePoint, ushort wInput)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_PTZCruise_EX(lRealHandle, dwPTZCruiseCmd, byCruiseRoute, byCruisePoint, wInput);
- else
- return Methods_Linux.NET_DVR_PTZCruise_EX(lRealHandle, dwPTZCruiseCmd, byCruiseRoute, byCruisePoint, wInput);
- }
- public static bool NET_DVR_PTZTrack(int lRealHandle, uint dwPTZTrackCmd)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_PTZTrack(lRealHandle, dwPTZTrackCmd);
- else
- return Methods_Linux.NET_DVR_PTZTrack(lRealHandle, dwPTZTrackCmd);
- }
- public static bool NET_DVR_PTZTrack_Other(int lUserID, int lChannel, uint dwPTZTrackCmd)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_PTZTrack_Other(lUserID, lChannel, dwPTZTrackCmd);
- else
- return Methods_Linux.NET_DVR_PTZTrack_Other(lUserID, lChannel, dwPTZTrackCmd);
- }
- public static bool NET_DVR_PTZTrack_EX(int lRealHandle, uint dwPTZTrackCmd)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_PTZTrack_EX(lRealHandle, dwPTZTrackCmd);
- else
- return Methods_Linux.NET_DVR_PTZTrack_EX(lRealHandle, dwPTZTrackCmd);
- }
- public static bool NET_DVR_PTZControlWithSpeed(int lRealHandle, uint dwPTZCommand, uint dwStop, uint dwSpeed)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_PTZControlWithSpeed(lRealHandle, dwPTZCommand, dwStop, dwSpeed);
- else
- return Methods_Linux.NET_DVR_PTZControlWithSpeed(lRealHandle, dwPTZCommand, dwStop, dwSpeed);
- }
- public static bool NET_DVR_PTZControlWithSpeed_Other(int lUserID, int lChannel, uint dwPTZCommand, uint dwStop, uint dwSpeed)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_PTZControlWithSpeed_Other(lUserID, lChannel, dwPTZCommand, dwStop, dwSpeed);
- else
- return Methods_Linux.NET_DVR_PTZControlWithSpeed_Other(lUserID, lChannel, dwPTZCommand, dwStop, dwSpeed);
- }
- public static bool NET_DVR_PTZControlWithSpeed_EX(int lRealHandle, uint dwPTZCommand, uint dwStop, uint dwSpeed)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_PTZControlWithSpeed_EX(lRealHandle, dwPTZCommand, dwStop, dwSpeed);
- else
- return Methods_Linux.NET_DVR_PTZControlWithSpeed_EX(lRealHandle, dwPTZCommand, dwStop, dwSpeed);
- }
- public static bool NET_DVR_GetPTZCruise(int lUserID, int lChannel, int lCruiseRoute, ref NET_DVR_CRUISE_RET lpCruiseRet)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetPTZCruise(lUserID, lChannel, lCruiseRoute, ref lpCruiseRet);
- else
- return Methods_Linux.NET_DVR_GetPTZCruise(lUserID, lChannel, lCruiseRoute, ref lpCruiseRet);
- }
- public static bool NET_DVR_PTZMltTrack(int lRealHandle, uint dwPTZTrackCmd, uint dwTrackIndex)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_PTZMltTrack(lRealHandle, dwPTZTrackCmd, dwTrackIndex);
- else
- return Methods_Linux.NET_DVR_PTZMltTrack(lRealHandle, dwPTZTrackCmd, dwTrackIndex);
- }
- public static bool NET_DVR_PTZMltTrack_Other(int lUserID, int lChannel, uint dwPTZTrackCmd, uint dwTrackIndex)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_PTZMltTrack_Other(lUserID, lChannel, dwPTZTrackCmd, dwTrackIndex);
- else
- return Methods_Linux.NET_DVR_PTZMltTrack_Other(lUserID, lChannel, dwPTZTrackCmd, dwTrackIndex);
- }
- public static bool NET_DVR_PTZMltTrack_EX(int lRealHandle, uint dwPTZTrackCmd, uint dwTrackIndex)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_PTZMltTrack_EX(lRealHandle, dwPTZTrackCmd, dwTrackIndex);
- else
- return Methods_Linux.NET_DVR_PTZMltTrack_EX(lRealHandle, dwPTZTrackCmd, dwTrackIndex);
- }
- public static int NET_DVR_FindFile(int lUserID, int lChannel, uint dwFileType, ref NET_DVR_TIME lpStartTime, ref NET_DVR_TIME lpStopTime)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_FindFile(lUserID, lChannel, dwFileType, ref lpStartTime, ref lpStopTime);
- else
- return Methods_Linux.NET_DVR_FindFile(lUserID, lChannel, dwFileType, ref lpStartTime, ref lpStopTime);
- }
- public static int NET_DVR_FindNextFile(int lFindHandle, ref NET_DVR_FIND_DATA lpFindData)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_FindNextFile(lFindHandle, ref lpFindData);
- else
- return Methods_Linux.NET_DVR_FindNextFile(lFindHandle, ref lpFindData);
- }
- public static bool NET_DVR_FindClose(int lFindHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_FindClose(lFindHandle);
- else
- return Methods_Linux.NET_DVR_FindClose(lFindHandle);
- }
- public static int NET_DVR_FindNextFile_V30(int lFindHandle, ref NET_DVR_FINDDATA_V30 lpFindData)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_FindNextFile_V30(lFindHandle, ref lpFindData);
- else
- return Methods_Linux.NET_DVR_FindNextFile_V30(lFindHandle, ref lpFindData);
- }
- public static int NET_DVR_FindNextFile_V40(int lFindHandle, ref NET_DVR_FINDDATA_V40 lpFindData)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_FindNextFile_V40(lFindHandle, ref lpFindData);
- else
- return Methods_Linux.NET_DVR_FindNextFile_V40(lFindHandle, ref lpFindData);
- }
- public static int NET_DVR_FindFile_V30(int lUserID, ref NET_DVR_FILECOND pFindCond)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_FindFile_V30(lUserID, ref pFindCond);
- else
- return Methods_Linux.NET_DVR_FindFile_V30(lUserID, ref pFindCond);
- }
- public static int NET_DVR_FindFile_V40(int lUserID, ref NET_DVR_FILECOND_V40 pFindCond)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_FindFile_V40(lUserID, ref pFindCond);
- else
- return Methods_Linux.NET_DVR_FindFile_V40(lUserID, ref pFindCond);
- }
- public static int NET_DVR_FindFileByEvent_V40(int lUserID, ref NET_DVR_SEARCH_EVENT_PARAM_V40 lpSearchEventParam)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_FindFileByEvent_V40(lUserID, ref lpSearchEventParam);
- else
- return Methods_Linux.NET_DVR_FindFileByEvent_V40(lUserID, ref lpSearchEventParam);
- }
- public static int NET_DVR_FindNextEvent_V40(int lSearchHandle, ref NET_DVR_SEARCH_EVENT_RET_V40 lpSearchEventRet)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_FindNextEvent_V40(lSearchHandle, ref lpSearchEventRet);
- else
- return Methods_Linux.NET_DVR_FindNextEvent_V40(lSearchHandle, ref lpSearchEventRet);
- }
- public static bool NET_DVR_FindClose_V30(int lFindHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_FindClose_V30(lFindHandle);
- else
- return Methods_Linux.NET_DVR_FindClose_V30(lFindHandle);
- }
- public static int NET_DVR_FindNextFile_Card(int lFindHandle, ref NET_DVR_FINDDATA_CARD lpFindData)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_FindNextFile_Card(lFindHandle, ref lpFindData);
- else
- return Methods_Linux.NET_DVR_FindNextFile_Card(lFindHandle, ref lpFindData);
- }
- public static int NET_DVR_FindFile_Card(int lUserID, int lChannel, uint dwFileType, ref NET_DVR_TIME lpStartTime, ref NET_DVR_TIME lpStopTime)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_FindFile_Card(lUserID, lChannel, dwFileType, ref lpStartTime, ref lpStopTime);
- else
- return Methods_Linux.NET_DVR_FindFile_Card(lUserID, lChannel, dwFileType, ref lpStartTime, ref lpStopTime);
- }
- public static bool NET_DVR_LockFileByName(int lUserID, string sLockFileName)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_LockFileByName(lUserID, sLockFileName);
- else
- return Methods_Linux.NET_DVR_LockFileByName(lUserID, sLockFileName);
- }
- public static bool NET_DVR_UnlockFileByName(int lUserID, string sUnlockFileName)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_UnlockFileByName(lUserID, sUnlockFileName);
- else
- return Methods_Linux.NET_DVR_UnlockFileByName(lUserID, sUnlockFileName);
- }
- public static int NET_DVR_PlayBackByName(int lUserID, string sPlayBackFileName, IntPtr hWnd)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_PlayBackByName(lUserID, sPlayBackFileName, hWnd);
- else
- return Methods_Linux.NET_DVR_PlayBackByName(lUserID, sPlayBackFileName, hWnd);
- }
- public static int NET_DVR_PlayBackByTime(int lUserID, int lChannel, ref NET_DVR_TIME lpStartTime, ref NET_DVR_TIME lpStopTime, System.IntPtr hWnd)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_PlayBackByTime(lUserID, lChannel, ref lpStartTime, ref lpStopTime, hWnd);
- else
- return Methods_Linux.NET_DVR_PlayBackByTime(lUserID, lChannel, ref lpStartTime, ref lpStopTime, hWnd);
- }
- public static int NET_DVR_PlayBackByTime_V40(int lUserID, ref NET_DVR_VOD_PARA pVodPara)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_PlayBackByTime_V40(lUserID, ref pVodPara);
- else
- return Methods_Linux.NET_DVR_PlayBackByTime_V40(lUserID, ref pVodPara);
- }
- public static int NET_DVR_PlayBackReverseByName(int lUserID, string sPlayBackFileName, IntPtr hWnd)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_PlayBackReverseByName(lUserID, sPlayBackFileName, hWnd);
- else
- return Methods_Linux.NET_DVR_PlayBackReverseByName(lUserID, sPlayBackFileName, hWnd);
- }
- public static int NET_DVR_PlayBackReverseByTime_V40(int lUserID, IntPtr hWnd, ref NET_DVR_PLAYCOND pPlayCond)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_PlayBackReverseByTime_V40(lUserID, hWnd, ref pPlayCond);
- else
- return Methods_Linux.NET_DVR_PlayBackReverseByTime_V40(lUserID, hWnd, ref pPlayCond);
- }
- public static bool NET_DVR_PlayBackControl(int lPlayHandle, uint dwControlCode, uint dwInValue, ref uint LPOutValue)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_PlayBackControl(lPlayHandle, dwControlCode, dwInValue, ref LPOutValue);
- else
- return Methods_Linux.NET_DVR_PlayBackControl(lPlayHandle, dwControlCode, dwInValue, ref LPOutValue);
- }
- public static bool NET_DVR_PlayBackControl_V40(int lPlayHandle, uint dwControlCode, IntPtr lpInBuffer, uint dwInValue, IntPtr lpOutBuffer, ref uint LPOutValue)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_PlayBackControl_V40(lPlayHandle, dwControlCode, lpInBuffer, dwInValue, lpOutBuffer, ref LPOutValue);
- else
- return Methods_Linux.NET_DVR_PlayBackControl_V40(lPlayHandle, dwControlCode, lpInBuffer, dwInValue, lpOutBuffer, ref LPOutValue);
- }
- public static bool NET_DVR_StopPlayBack(int lPlayHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_StopPlayBack(lPlayHandle);
- else
- return Methods_Linux.NET_DVR_StopPlayBack(lPlayHandle);
- }
- public static bool NET_DVR_SetPlayDataCallBack(int lPlayHandle, PLAYDATACALLBACK fPlayDataCallBack, uint dwUser)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetPlayDataCallBack(lPlayHandle, fPlayDataCallBack, dwUser);
- else
- return Methods_Linux.NET_DVR_SetPlayDataCallBack(lPlayHandle, fPlayDataCallBack, dwUser);
- }
- public static bool NET_DVR_PlayBackSaveData(int lPlayHandle, string sFileName)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_PlayBackSaveData(lPlayHandle, sFileName);
- else
- return Methods_Linux.NET_DVR_PlayBackSaveData(lPlayHandle, sFileName);
- }
- public static bool NET_DVR_StopPlayBackSave(int lPlayHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_StopPlayBackSave(lPlayHandle);
- else
- return Methods_Linux.NET_DVR_StopPlayBackSave(lPlayHandle);
- }
- public static bool NET_DVR_GetPlayBackOsdTime(int lPlayHandle, ref NET_DVR_TIME lpOsdTime)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetPlayBackOsdTime(lPlayHandle, ref lpOsdTime);
- else
- return Methods_Linux.NET_DVR_GetPlayBackOsdTime(lPlayHandle, ref lpOsdTime);
- }
- public static bool NET_DVR_PlayBackCaptureFile(int lPlayHandle, string sFileName)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_PlayBackCaptureFile(lPlayHandle, sFileName);
- else
- return Methods_Linux.NET_DVR_PlayBackCaptureFile(lPlayHandle, sFileName);
- }
- public static int NET_DVR_GetFileByName(int lUserID, string sDVRFileName, string sSavedFileName)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetFileByName(lUserID, sDVRFileName, sSavedFileName);
- else
- return Methods_Linux.NET_DVR_GetFileByName(lUserID, sDVRFileName, sSavedFileName);
- }
- public static int NET_DVR_GetFileByTime(int lUserID, int lChannel, ref NET_DVR_TIME lpStartTime, ref NET_DVR_TIME lpStopTime, string sSavedFileName)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetFileByTime(lUserID, lChannel, ref lpStartTime, ref lpStopTime, sSavedFileName);
- else
- return Methods_Linux.NET_DVR_GetFileByTime(lUserID, lChannel, ref lpStartTime, ref lpStopTime, sSavedFileName);
- }
- public static int NET_DVR_GetFileByTime_V40(int lUserID, string sSavedFileName, ref NET_DVR_PLAYCOND pDownloadCond)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetFileByTime_V40(lUserID, sSavedFileName, ref pDownloadCond);
- else
- return Methods_Linux.NET_DVR_GetFileByTime_V40(lUserID, sSavedFileName, ref pDownloadCond);
- }
- public static bool NET_DVR_StopGetFile(int lFileHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_StopGetFile(lFileHandle);
- else
- return Methods_Linux.NET_DVR_StopGetFile(lFileHandle);
- }
- public static int NET_DVR_GetDownloadPos(int lFileHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetDownloadPos(lFileHandle);
- else
- return Methods_Linux.NET_DVR_GetDownloadPos(lFileHandle);
- }
- public static int NET_DVR_GetPlayBackPos(int lPlayHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetPlayBackPos(lPlayHandle);
- else
- return Methods_Linux.NET_DVR_GetPlayBackPos(lPlayHandle);
- }
- public static int NET_DVR_FindPicture(int lUserID, ref NET_DVR_FIND_PICTURE_PARAM pFindParam)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_FindPicture(lUserID, ref pFindParam);
- else
- return Methods_Linux.NET_DVR_FindPicture(lUserID, ref pFindParam);
- }
- public static int NET_DVR_FindNextPicture_V50(int lFindHandle, ref NET_DVR_FIND_PICTURE_V50 lpFindData)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_FindNextPicture_V50(lFindHandle, ref lpFindData);
- else
- return Methods_Linux.NET_DVR_FindNextPicture_V50(lFindHandle, ref lpFindData);
- }
- public static bool NET_DVR_CloseFindPicture(int lFindHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_CloseFindPicture(lFindHandle);
- else
- return Methods_Linux.NET_DVR_CloseFindPicture(lFindHandle);
- }
- public static bool NET_DVR_GetPicture(int lUserID, String sDVRFileName, String sSavedFileName)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetPicture(lUserID, sDVRFileName, sSavedFileName);
- else
- return Methods_Linux.NET_DVR_GetPicture(lUserID, sDVRFileName, sSavedFileName);
- }
- public static int NET_DVR_Upgrade(int lUserID, string sFileName)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_Upgrade(lUserID, sFileName);
- else
- return Methods_Linux.NET_DVR_Upgrade(lUserID, sFileName);
- }
- public static int NET_DVR_GetUpgradeState(int lUpgradeHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetUpgradeState(lUpgradeHandle);
- else
- return Methods_Linux.NET_DVR_GetUpgradeState(lUpgradeHandle);
- }
- public static int NET_DVR_GetUpgradeProgress(int lUpgradeHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetUpgradeProgress(lUpgradeHandle);
- else
- return Methods_Linux.NET_DVR_GetUpgradeProgress(lUpgradeHandle);
- }
- public static bool NET_DVR_CloseUpgradeHandle(int lUpgradeHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_CloseUpgradeHandle(lUpgradeHandle);
- else
- return Methods_Linux.NET_DVR_CloseUpgradeHandle(lUpgradeHandle);
- }
- public static bool NET_DVR_SetNetworkEnvironment(uint dwEnvironmentLevel)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetNetworkEnvironment(dwEnvironmentLevel);
- else
- return Methods_Linux.NET_DVR_SetNetworkEnvironment(dwEnvironmentLevel);
- }
- public static int NET_DVR_FormatDisk(int lUserID, int lDiskNumber)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_FormatDisk(lUserID, lDiskNumber);
- else
- return Methods_Linux.NET_DVR_FormatDisk(lUserID, lDiskNumber);
- }
- public static bool NET_DVR_GetFormatProgress(int lFormatHandle, ref int pCurrentFormatDisk, ref int pCurrentDiskPos, ref int pFormatStatic)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetFormatProgress(lFormatHandle, ref pCurrentFormatDisk, ref pCurrentDiskPos, ref pFormatStatic);
- else
- return Methods_Linux.NET_DVR_GetFormatProgress(lFormatHandle, ref pCurrentFormatDisk, ref pCurrentDiskPos, ref pFormatStatic);
- }
- public static bool NET_DVR_CloseFormatHandle(int lFormatHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_CloseFormatHandle(lFormatHandle);
- else
- return Methods_Linux.NET_DVR_CloseFormatHandle(lFormatHandle);
- }
- public static bool NET_DVR_GetIPCProtoList(int lUserID, ref NET_DVR_IPC_PROTO_LIST lpProtoList)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetIPCProtoList(lUserID, ref lpProtoList);
- else
- return Methods_Linux.NET_DVR_GetIPCProtoList(lUserID, ref lpProtoList);
- }
- public static bool NET_DVR_GetIPCProtoList_V41(int lUserID, ref NET_DVR_IPC_PROTO_LIST_V41 lpProtoList)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetIPCProtoList_V41(lUserID, ref lpProtoList);
- else
- return Methods_Linux.NET_DVR_GetIPCProtoList_V41(lUserID, ref lpProtoList);
- }
- public static int NET_DVR_SetupAlarmChan(int lUserID)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetupAlarmChan(lUserID);
- else
- return Methods_Linux.NET_DVR_SetupAlarmChan(lUserID);
- }
- public static bool NET_DVR_CloseAlarmChan(int lAlarmHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_CloseAlarmChan(lAlarmHandle);
- else
- return Methods_Linux.NET_DVR_CloseAlarmChan(lAlarmHandle);
- }
- public static int NET_DVR_SetupAlarmChan_V30(int lUserID)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetupAlarmChan_V30(lUserID);
- else
- return Methods_Linux.NET_DVR_SetupAlarmChan_V30(lUserID);
- }
- public static int NET_DVR_SetupAlarmChan_V41(int lUserID, ref NET_DVR_SETUPALARM_PARAM lpSetupParam)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetupAlarmChan_V41(lUserID, ref lpSetupParam);
- else
- return Methods_Linux.NET_DVR_SetupAlarmChan_V41(lUserID, ref lpSetupParam);
- }
- public static bool NET_DVR_CloseAlarmChan_V30(int lAlarmHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_CloseAlarmChan_V30(lAlarmHandle);
- else
- return Methods_Linux.NET_DVR_CloseAlarmChan_V30(lAlarmHandle);
- }
- public static int NET_DVR_StartVoiceCom(int lUserID, VOICEDATACALLBACK fVoiceDataCallBack, uint dwUser)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_StartVoiceCom(lUserID, fVoiceDataCallBack, dwUser);
- else
- return Methods_Linux.NET_DVR_StartVoiceCom(lUserID, fVoiceDataCallBack, dwUser);
- }
- public static int NET_DVR_StartVoiceCom_V30(int lUserID, uint dwVoiceChan, bool bNeedCBNoEncData, VOICEDATACALLBACKV30 fVoiceDataCallBack, IntPtr pUser)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_StartVoiceCom_V30(lUserID, dwVoiceChan, bNeedCBNoEncData, fVoiceDataCallBack, pUser);
- else
- return Methods_Linux.NET_DVR_StartVoiceCom_V30(lUserID, dwVoiceChan, bNeedCBNoEncData, fVoiceDataCallBack, pUser);
- }
- public static bool NET_DVR_SetVoiceComClientVolume(int lVoiceComHandle, ushort wVolume)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetVoiceComClientVolume(lVoiceComHandle, wVolume);
- else
- return Methods_Linux.NET_DVR_SetVoiceComClientVolume(lVoiceComHandle, wVolume);
- }
- public static bool NET_DVR_StopVoiceCom(int lVoiceComHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_StopVoiceCom(lVoiceComHandle);
- else
- return Methods_Linux.NET_DVR_StopVoiceCom(lVoiceComHandle);
- }
- public static int NET_DVR_StartVoiceCom_MR(int lUserID, VOICEDATACALLBACK fVoiceDataCallBack, uint dwUser)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_StartVoiceCom_MR(lUserID, fVoiceDataCallBack, dwUser);
- else
- return Methods_Linux.NET_DVR_StartVoiceCom_MR(lUserID, fVoiceDataCallBack, dwUser);
- }
- public static int NET_DVR_StartVoiceCom_MR_V30(int lUserID, uint dwVoiceChan, VOICEDATACALLBACKV30 fVoiceDataCallBack, IntPtr pUser)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_StartVoiceCom_MR_V30(lUserID, dwVoiceChan, fVoiceDataCallBack, pUser);
- else
- return Methods_Linux.NET_DVR_StartVoiceCom_MR_V30(lUserID, dwVoiceChan, fVoiceDataCallBack, pUser);
- }
- public static bool NET_DVR_VoiceComSendData(int lVoiceComHandle, string pSendBuf, uint dwBufSize)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_VoiceComSendData(lVoiceComHandle, pSendBuf, dwBufSize);
- else
- return Methods_Linux.NET_DVR_VoiceComSendData(lVoiceComHandle, pSendBuf, dwBufSize);
- }
- public static bool NET_DVR_ClientAudioStart()
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_ClientAudioStart();
- else
- return Methods_Linux.NET_DVR_ClientAudioStart();
- }
- public static bool NET_DVR_ClientAudioStart_V30(VOICEAUDIOSTART fVoiceAudioStart, IntPtr pUser)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_ClientAudioStart_V30(fVoiceAudioStart, pUser);
- else
- return Methods_Linux.NET_DVR_ClientAudioStart_V30(fVoiceAudioStart, pUser);
- }
- public static bool NET_DVR_ClientAudioStop()
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_ClientAudioStop();
- else
- return Methods_Linux.NET_DVR_ClientAudioStop();
- }
- public static bool NET_DVR_AddDVR(int lUserID)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_AddDVR(lUserID);
- else
- return Methods_Linux.NET_DVR_AddDVR(lUserID);
- }
- public static int NET_DVR_AddDVR_V30(int lUserID, uint dwVoiceChan)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_AddDVR_V30(lUserID, dwVoiceChan);
- else
- return Methods_Linux.NET_DVR_AddDVR_V30(lUserID, dwVoiceChan);
- }
- public static bool NET_DVR_DelDVR(int lUserID)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_DelDVR(lUserID);
- else
- return Methods_Linux.NET_DVR_DelDVR(lUserID);
- }
- public static bool NET_DVR_DelDVR_V30(int lVoiceHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_DelDVR_V30(lVoiceHandle);
- else
- return Methods_Linux.NET_DVR_DelDVR_V30(lVoiceHandle);
- }
- public static bool NET_DVR_SerialStart(int lUserID, int lSerialPort, SERIALDATACALLBACK fSerialDataCallBack, uint dwUser)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SerialStart(lUserID, lSerialPort, fSerialDataCallBack, dwUser);
- else
- return Methods_Linux.NET_DVR_SerialStart(lUserID, lSerialPort, fSerialDataCallBack, dwUser);
- }
- public static bool NET_DVR_SerialSend(int lSerialHandle, int lChannel, string pSendBuf, uint dwBufSize)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SerialSend(lSerialHandle, lChannel, pSendBuf, dwBufSize);
- else
- return Methods_Linux.NET_DVR_SerialSend(lSerialHandle, lChannel, pSendBuf, dwBufSize);
- }
- public static bool NET_DVR_SerialStop(int lSerialHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SerialStop(lSerialHandle);
- else
- return Methods_Linux.NET_DVR_SerialStop(lSerialHandle);
- }
- public static bool NET_DVR_SendTo232Port(int lUserID, string pSendBuf, uint dwBufSize)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SendTo232Port(lUserID, pSendBuf, dwBufSize);
- else
- return Methods_Linux.NET_DVR_SendTo232Port(lUserID, pSendBuf, dwBufSize);
- }
- public static bool NET_DVR_SendToSerialPort(int lUserID, uint dwSerialPort, uint dwSerialIndex, string pSendBuf, uint dwBufSize)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SendToSerialPort(lUserID, dwSerialPort, dwSerialIndex, pSendBuf, dwBufSize);
- else
- return Methods_Linux.NET_DVR_SendToSerialPort(lUserID, dwSerialPort, dwSerialIndex, pSendBuf, dwBufSize);
- }
- public static System.IntPtr NET_DVR_InitG722Decoder(int nBitrate)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_InitG722Decoder(nBitrate);
- else
- return Methods_Linux.NET_DVR_InitG722Decoder(nBitrate);
- }
- public static void NET_DVR_ReleaseG722Decoder(IntPtr pDecHandle)
- {
- if (IsWindows)
- Methods_Win.NET_DVR_ReleaseG722Decoder(pDecHandle);
- else
- Methods_Linux.NET_DVR_ReleaseG722Decoder(pDecHandle);
- }
- public static bool NET_DVR_DecodeG722Frame(IntPtr pDecHandle, ref byte pInBuffer, ref byte pOutBuffer)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_DecodeG722Frame(pDecHandle, ref pInBuffer, ref pOutBuffer);
- else
- return Methods_Linux.NET_DVR_DecodeG722Frame(pDecHandle, ref pInBuffer, ref pOutBuffer);
- }
- public static IntPtr NET_DVR_InitG722Encoder()
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_InitG722Encoder();
- else
- return Methods_Linux.NET_DVR_InitG722Encoder();
- }
- public static bool NET_DVR_EncodeG722Frame(IntPtr pEncodeHandle, ref byte pInBuffer, ref byte pOutBuffer)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_EncodeG722Frame(pEncodeHandle, ref pInBuffer, ref pOutBuffer);
- else
- return Methods_Linux.NET_DVR_EncodeG722Frame(pEncodeHandle, ref pInBuffer, ref pOutBuffer);
- }
- public static void NET_DVR_ReleaseG722Encoder(IntPtr pEncodeHandle)
- {
- if (IsWindows)
- Methods_Win.NET_DVR_ReleaseG722Encoder(pEncodeHandle);
- else
- Methods_Linux.NET_DVR_ReleaseG722Encoder(pEncodeHandle);
- }
- public static bool NET_DVR_ClickKey(int lUserID, int lKeyIndex)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_ClickKey(lUserID, lKeyIndex);
- else
- return Methods_Linux.NET_DVR_ClickKey(lUserID, lKeyIndex);
- }
- public static bool NET_DVR_StartDVRRecord(int lUserID, int lChannel, int lRecordType)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_StartDVRRecord(lUserID, lChannel, lRecordType);
- else
- return Methods_Linux.NET_DVR_StartDVRRecord(lUserID, lChannel, lRecordType);
- }
- public static bool NET_DVR_StopDVRRecord(int lUserID, int lChannel)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_StopDVRRecord(lUserID, lChannel);
- else
- return Methods_Linux.NET_DVR_StopDVRRecord(lUserID, lChannel);
- }
- public static bool NET_DVR_InitDevice_Card(ref int pDeviceTotalChan)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_InitDevice_Card(ref pDeviceTotalChan);
- else
- return Methods_Linux.NET_DVR_InitDevice_Card(ref pDeviceTotalChan);
- }
- public static bool NET_DVR_ReleaseDevice_Card()
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_ReleaseDevice_Card();
- else
- return Methods_Linux.NET_DVR_ReleaseDevice_Card();
- }
- public static bool NET_DVR_InitDDraw_Card(IntPtr hParent, uint colorKey)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_InitDDraw_Card(hParent, colorKey);
- else
- return Methods_Linux.NET_DVR_InitDDraw_Card(hParent, colorKey);
- }
- public static bool NET_DVR_ReleaseDDraw_Card()
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_ReleaseDDraw_Card();
- else
- return Methods_Linux.NET_DVR_ReleaseDDraw_Card();
- }
- public static int NET_DVR_RealPlay_Card(int lUserID, ref NET_DVR_CARDINFO lpCardInfo, int lChannelNum)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_RealPlay_Card(lUserID, ref lpCardInfo, lChannelNum);
- else
- return Methods_Linux.NET_DVR_RealPlay_Card(lUserID, ref lpCardInfo, lChannelNum);
- }
- public static bool NET_DVR_ResetPara_Card(int lRealHandle, ref NET_DVR_DISPLAY_PARA lpDisplayPara)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_ResetPara_Card(lRealHandle, ref lpDisplayPara);
- else
- return Methods_Linux.NET_DVR_ResetPara_Card(lRealHandle, ref lpDisplayPara);
- }
- public static bool NET_DVR_RefreshSurface_Card()
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_RefreshSurface_Card();
- else
- return Methods_Linux.NET_DVR_RefreshSurface_Card();
- }
- public static bool NET_DVR_ClearSurface_Card()
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_ClearSurface_Card();
- else
- return Methods_Linux.NET_DVR_ClearSurface_Card();
- }
- public static bool NET_DVR_RestoreSurface_Card()
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_RestoreSurface_Card();
- else
- return Methods_Linux.NET_DVR_RestoreSurface_Card();
- }
- public static bool NET_DVR_OpenSound_Card(int lRealHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_OpenSound_Card(lRealHandle);
- else
- return Methods_Linux.NET_DVR_OpenSound_Card(lRealHandle);
- }
- public static bool NET_DVR_CloseSound_Card(int lRealHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_CloseSound_Card(lRealHandle);
- else
- return Methods_Linux.NET_DVR_CloseSound_Card(lRealHandle);
- }
- public static bool NET_DVR_SetVolume_Card(int lRealHandle, ushort wVolume)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetVolume_Card(lRealHandle, wVolume);
- else
- return Methods_Linux.NET_DVR_SetVolume_Card(lRealHandle, wVolume);
- }
- public static bool NET_DVR_AudioPreview_Card(int lRealHandle, int bEnable)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_AudioPreview_Card(lRealHandle, bEnable);
- else
- return Methods_Linux.NET_DVR_AudioPreview_Card(lRealHandle, bEnable);
- }
- public static int NET_DVR_GetCardLastError_Card()
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetCardLastError_Card();
- else
- return Methods_Linux.NET_DVR_GetCardLastError_Card();
- }
- public static System.IntPtr NET_DVR_GetChanHandle_Card(int lRealHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetChanHandle_Card(lRealHandle);
- else
- return Methods_Linux.NET_DVR_GetChanHandle_Card(lRealHandle);
- }
- public static bool NET_DVR_CapturePicture_Card(int lRealHandle, string sPicFileName)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_CapturePicture_Card(lRealHandle, sPicFileName);
- else
- return Methods_Linux.NET_DVR_CapturePicture_Card(lRealHandle, sPicFileName);
- }
- public static bool NET_DVR_GetSerialNum_Card(int lChannelNum, ref uint pDeviceSerialNo)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetSerialNum_Card(lChannelNum, ref pDeviceSerialNo);
- else
- return Methods_Linux.NET_DVR_GetSerialNum_Card(lChannelNum, ref pDeviceSerialNo);
- }
- public static int NET_DVR_FindDVRLog(int lUserID, int lSelectMode, uint dwMajorType, uint dwMinorType, ref NET_DVR_TIME lpStartTime, ref NET_DVR_TIME lpStopTime)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_FindDVRLog(lUserID, lSelectMode, dwMajorType, dwMinorType, ref lpStartTime, ref lpStopTime);
- else
- return Methods_Linux.NET_DVR_FindDVRLog(lUserID, lSelectMode, dwMajorType, dwMinorType, ref lpStartTime, ref lpStopTime);
- }
- public static int NET_DVR_FindNextLog(int lLogHandle, ref NET_DVR_LOG lpLogData)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_FindNextLog(lLogHandle, ref lpLogData);
- else
- return Methods_Linux.NET_DVR_FindNextLog(lLogHandle, ref lpLogData);
- }
- public static bool NET_DVR_FindLogClose(int lLogHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_FindLogClose(lLogHandle);
- else
- return Methods_Linux.NET_DVR_FindLogClose(lLogHandle);
- }
- public static int NET_DVR_FindDVRLog_V30(int lUserID, int lSelectMode, uint dwMajorType, uint dwMinorType, ref NET_DVR_TIME lpStartTime, ref NET_DVR_TIME lpStopTime, bool bOnlySmart)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_FindDVRLog_V30(lUserID, lSelectMode, dwMajorType, dwMinorType, ref lpStartTime, ref lpStopTime, bOnlySmart);
- else
- return Methods_Linux.NET_DVR_FindDVRLog_V30(lUserID, lSelectMode, dwMajorType, dwMinorType, ref lpStartTime, ref lpStopTime, bOnlySmart);
- }
- public static int NET_DVR_FindNextLog_V30(int lLogHandle, ref NET_DVR_LOG_V30 lpLogData)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_FindNextLog_V30(lLogHandle, ref lpLogData);
- else
- return Methods_Linux.NET_DVR_FindNextLog_V30(lLogHandle, ref lpLogData);
- }
- public static bool NET_DVR_FindLogClose_V30(int lLogHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_FindLogClose_V30(lLogHandle);
- else
- return Methods_Linux.NET_DVR_FindLogClose_V30(lLogHandle);
- }
- public static int NET_DVR_FindFileByCard(int lUserID, int lChannel, uint dwFileType, int nFindType, ref byte sCardNumber, ref NET_DVR_TIME lpStartTime, ref NET_DVR_TIME lpStopTime)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_FindFileByCard(lUserID, lChannel, dwFileType, nFindType, ref sCardNumber, ref lpStartTime, ref lpStopTime);
- else
- return Methods_Linux.NET_DVR_FindFileByCard(lUserID, lChannel, dwFileType, nFindType, ref sCardNumber, ref lpStartTime, ref lpStopTime);
- }
- public static bool NET_DVR_CaptureJPEGPicture(int lUserID, int lChannel, ref NET_DVR_JPEGPARA lpJpegPara, string sPicFileName)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_CaptureJPEGPicture(lUserID, lChannel, ref lpJpegPara, sPicFileName);
- else
- return Methods_Linux.NET_DVR_CaptureJPEGPicture(lUserID, lChannel, ref lpJpegPara, sPicFileName);
- }
- public static bool NET_DVR_CaptureJPEGPicture_NEW(int lUserID, int lChannel, ref NET_DVR_JPEGPARA lpJpegPara, byte[] sJpegPicBuffer, uint dwPicSize, ref uint lpSizeReturned)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_CaptureJPEGPicture_NEW(lUserID, lChannel, ref lpJpegPara, sJpegPicBuffer, dwPicSize, ref lpSizeReturned);
- else
- return Methods_Linux.NET_DVR_CaptureJPEGPicture_NEW(lUserID, lChannel, ref lpJpegPara, sJpegPicBuffer, dwPicSize, ref lpSizeReturned);
- }
- public static int NET_DVR_GetRealPlayerIndex(int lRealHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetRealPlayerIndex(lRealHandle);
- else
- return Methods_Linux.NET_DVR_GetRealPlayerIndex(lRealHandle);
- }
- public static int NET_DVR_GetPlayBackPlayerIndex(int lPlayHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetPlayBackPlayerIndex(lPlayHandle);
- else
- return Methods_Linux.NET_DVR_GetPlayBackPlayerIndex(lPlayHandle);
- }
- public static Int32 NET_DVR_UploadSend(int lUploadHandle, ref NET_DVR_SEND_PARAM_IN pstruSendParamIN, IntPtr lpOutBuffer)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_UploadSend(lUploadHandle, ref pstruSendParamIN, lpOutBuffer);
- else
- return Methods_Linux.NET_DVR_UploadSend(lUploadHandle, ref pstruSendParamIN, lpOutBuffer);
- }
- public static Int32 NET_DVR_UploadFile_V40(int lUserID, uint dwUploadType, IntPtr lpInBuffer, uint dwInBufferSize, string sFileName, IntPtr lpOutBuffer, uint dwOutBufferSize)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_UploadFile_V40(lUserID, dwUploadType, lpInBuffer, dwInBufferSize, sFileName, lpOutBuffer, dwOutBufferSize);
- else
- return Methods_Linux.NET_DVR_UploadFile_V40(lUserID, dwUploadType, lpInBuffer, dwInBufferSize, sFileName, lpOutBuffer, dwOutBufferSize);
- }
- public static Int32 NET_DVR_GetUploadState(int lUploadHandle, ref uint pProgress)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetUploadState(lUploadHandle, ref pProgress);
- else
- return Methods_Linux.NET_DVR_GetUploadState(lUploadHandle, ref pProgress);
- }
- public static bool NET_DVR_GetUploadResult(int lUploadHandle, IntPtr lpOutBuffer, uint dwOutBufferSize)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetUploadResult(lUploadHandle, lpOutBuffer, dwOutBufferSize);
- else
- return Methods_Linux.NET_DVR_GetUploadResult(lUploadHandle, lpOutBuffer, dwOutBufferSize);
- }
- public static bool NET_DVR_UploadClose(int lUploadHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_UploadClose(lUploadHandle);
- else
- return Methods_Linux.NET_DVR_UploadClose(lUploadHandle);
- }
- public static bool NET_DVR_SetScaleCFG(int lUserID, uint dwScale)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetScaleCFG(lUserID, dwScale);
- else
- return Methods_Linux.NET_DVR_SetScaleCFG(lUserID, dwScale);
- }
- public static bool NET_DVR_GetScaleCFG(int lUserID, ref uint lpOutScale)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetScaleCFG(lUserID, ref lpOutScale);
- else
- return Methods_Linux.NET_DVR_GetScaleCFG(lUserID, ref lpOutScale);
- }
- public static bool NET_DVR_SetScaleCFG_V30(int lUserID, ref NET_DVR_SCALECFG pScalecfg)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetScaleCFG_V30(lUserID, ref pScalecfg);
- else
- return Methods_Linux.NET_DVR_SetScaleCFG_V30(lUserID, ref pScalecfg);
- }
- public static bool NET_DVR_GetScaleCFG_V30(int lUserID, ref NET_DVR_SCALECFG pScalecfg)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetScaleCFG_V30(lUserID, ref pScalecfg);
- else
- return Methods_Linux.NET_DVR_GetScaleCFG_V30(lUserID, ref pScalecfg);
- }
- public static bool NET_DVR_SetATMPortCFG(int lUserID, ushort wATMPort)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetATMPortCFG(lUserID, wATMPort);
- else
- return Methods_Linux.NET_DVR_SetATMPortCFG(lUserID, wATMPort);
- }
- public static bool NET_DVR_GetATMPortCFG(int lUserID, ref ushort LPOutATMPort)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetATMPortCFG(lUserID, ref LPOutATMPort);
- else
- return Methods_Linux.NET_DVR_GetATMPortCFG(lUserID, ref LPOutATMPort);
- }
- public static bool NET_DVR_InitDDrawDevice()
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_InitDDrawDevice();
- else
- return Methods_Linux.NET_DVR_InitDDrawDevice();
- }
- public static bool NET_DVR_ReleaseDDrawDevice()
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_ReleaseDDrawDevice();
- else
- return Methods_Linux.NET_DVR_ReleaseDDrawDevice();
- }
- public static int NET_DVR_GetDDrawDeviceTotalNums()
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetDDrawDeviceTotalNums();
- else
- return Methods_Linux.NET_DVR_GetDDrawDeviceTotalNums();
- }
- public static bool NET_DVR_SetDDrawDevice(int lPlayPort, uint nDeviceNum)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetDDrawDevice(lPlayPort, nDeviceNum);
- else
- return Methods_Linux.NET_DVR_SetDDrawDevice(lPlayPort, nDeviceNum);
- }
- public static bool NET_DVR_PTZSelZoomIn(int lRealHandle, ref NET_DVR_POINT_FRAME pStruPointFrame)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_PTZSelZoomIn(lRealHandle, ref pStruPointFrame);
- else
- return Methods_Linux.NET_DVR_PTZSelZoomIn(lRealHandle, ref pStruPointFrame);
- }
- public static bool NET_DVR_PTZSelZoomIn_EX(int lUserID, int lChannel, ref NET_DVR_POINT_FRAME pStruPointFrame)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_PTZSelZoomIn_EX(lUserID, lChannel, ref pStruPointFrame);
- else
- return Methods_Linux.NET_DVR_PTZSelZoomIn_EX(lUserID, lChannel, ref pStruPointFrame);
- }
- public static bool NET_DVR_StartDecode(int lUserID, int lChannel, ref NET_DVR_DECODERINFO lpDecoderinfo)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_StartDecode(lUserID, lChannel, ref lpDecoderinfo);
- else
- return Methods_Linux.NET_DVR_StartDecode(lUserID, lChannel, ref lpDecoderinfo);
- }
- public static bool NET_DVR_StopDecode(int lUserID, int lChannel)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_StopDecode(lUserID, lChannel);
- else
- return Methods_Linux.NET_DVR_StopDecode(lUserID, lChannel);
- }
- public static bool NET_DVR_GetDecoderState(int lUserID, int lChannel, ref NET_DVR_DECODERSTATE lpDecoderState)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetDecoderState(lUserID, lChannel, ref lpDecoderState);
- else
- return Methods_Linux.NET_DVR_GetDecoderState(lUserID, lChannel, ref lpDecoderState);
- }
- public static bool NET_DVR_SetDecInfo(int lUserID, int lChannel, ref NET_DVR_DECCFG lpDecoderinfo)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetDecInfo(lUserID, lChannel, ref lpDecoderinfo);
- else
- return Methods_Linux.NET_DVR_SetDecInfo(lUserID, lChannel, ref lpDecoderinfo);
- }
- public static bool NET_DVR_GetDecInfo(int lUserID, int lChannel, ref NET_DVR_DECCFG lpDecoderinfo)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetDecInfo(lUserID, lChannel, ref lpDecoderinfo);
- else
- return Methods_Linux.NET_DVR_GetDecInfo(lUserID, lChannel, ref lpDecoderinfo);
- }
- public static bool NET_DVR_SetDecTransPort(int lUserID, ref NET_DVR_PORTCFG lpTransPort)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetDecTransPort(lUserID, ref lpTransPort);
- else
- return Methods_Linux.NET_DVR_SetDecTransPort(lUserID, ref lpTransPort);
- }
- public static bool NET_DVR_GetDecTransPort(int lUserID, ref NET_DVR_PORTCFG lpTransPort)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetDecTransPort(lUserID, ref lpTransPort);
- else
- return Methods_Linux.NET_DVR_GetDecTransPort(lUserID, ref lpTransPort);
- }
- public static bool NET_DVR_DecPlayBackCtrl(int lUserID, int lChannel, uint dwControlCode, uint dwInValue, ref uint LPOutValue, ref NET_DVR_PLAYREMOTEFILE lpRemoteFileInfo)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_DecPlayBackCtrl(lUserID, lChannel, dwControlCode, dwInValue, ref LPOutValue, ref lpRemoteFileInfo);
- else
- return Methods_Linux.NET_DVR_DecPlayBackCtrl(lUserID, lChannel, dwControlCode, dwInValue, ref LPOutValue, ref lpRemoteFileInfo);
- }
- public static bool NET_DVR_StartDecSpecialCon(int lUserID, int lChannel, ref NET_DVR_DECCHANINFO lpDecChanInfo)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_StartDecSpecialCon(lUserID, lChannel, ref lpDecChanInfo);
- else
- return Methods_Linux.NET_DVR_StartDecSpecialCon(lUserID, lChannel, ref lpDecChanInfo);
- }
- public static bool NET_DVR_StopDecSpecialCon(int lUserID, int lChannel, ref NET_DVR_DECCHANINFO lpDecChanInfo)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_StopDecSpecialCon(lUserID, lChannel, ref lpDecChanInfo);
- else
- return Methods_Linux.NET_DVR_StopDecSpecialCon(lUserID, lChannel, ref lpDecChanInfo);
- }
- public static bool NET_DVR_DecCtrlDec(int lUserID, int lChannel, uint dwControlCode)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_DecCtrlDec(lUserID, lChannel, dwControlCode);
- else
- return Methods_Linux.NET_DVR_DecCtrlDec(lUserID, lChannel, dwControlCode);
- }
- public static bool NET_DVR_DecCtrlScreen(int lUserID, int lChannel, uint dwControl)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_DecCtrlScreen(lUserID, lChannel, dwControl);
- else
- return Methods_Linux.NET_DVR_DecCtrlScreen(lUserID, lChannel, dwControl);
- }
- public static bool NET_DVR_GetDecCurLinkStatus(int lUserID, int lChannel, ref NET_DVR_DECSTATUS lpDecStatus)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetDecCurLinkStatus(lUserID, lChannel, ref lpDecStatus);
- else
- return Methods_Linux.NET_DVR_GetDecCurLinkStatus(lUserID, lChannel, ref lpDecStatus);
- }
- public static bool NET_DVR_MatrixStartDynamic(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_DYNAMIC_DEC lpDynamicInfo)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MatrixStartDynamic(lUserID, dwDecChanNum, ref lpDynamicInfo);
- else
- return Methods_Linux.NET_DVR_MatrixStartDynamic(lUserID, dwDecChanNum, ref lpDynamicInfo);
- }
- public static bool NET_DVR_MatrixStopDynamic(int lUserID, uint dwDecChanNum)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MatrixStopDynamic(lUserID, dwDecChanNum);
- else
- return Methods_Linux.NET_DVR_MatrixStopDynamic(lUserID, dwDecChanNum);
- }
- public static bool NET_DVR_MatrixGetDecChanInfo(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_DEC_CHAN_INFO lpInter)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MatrixGetDecChanInfo(lUserID, dwDecChanNum, ref lpInter);
- else
- return Methods_Linux.NET_DVR_MatrixGetDecChanInfo(lUserID, dwDecChanNum, ref lpInter);
- }
- public static bool NET_DVR_MatrixGetDecChanInfo_V41(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_DEC_CHAN_INFO_V41 lpOuter)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MatrixGetDecChanInfo_V41(lUserID, dwDecChanNum, ref lpOuter);
- else
- return Methods_Linux.NET_DVR_MatrixGetDecChanInfo_V41(lUserID, dwDecChanNum, ref lpOuter);
- }
- public static bool NET_DVR_MatrixSetLoopDecChanInfo(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_LOOP_DECINFO lpInter)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MatrixSetLoopDecChanInfo(lUserID, dwDecChanNum, ref lpInter);
- else
- return Methods_Linux.NET_DVR_MatrixSetLoopDecChanInfo(lUserID, dwDecChanNum, ref lpInter);
- }
- public static bool NET_DVR_MatrixGetLoopDecChanInfo(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_LOOP_DECINFO lpInter)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MatrixGetLoopDecChanInfo(lUserID, dwDecChanNum, ref lpInter);
- else
- return Methods_Linux.NET_DVR_MatrixGetLoopDecChanInfo(lUserID, dwDecChanNum, ref lpInter);
- }
- public static bool NET_DVR_MatrixSetLoopDecChanEnable(int lUserID, uint dwDecChanNum, uint dwEnable)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MatrixSetLoopDecChanEnable(lUserID, dwDecChanNum, dwEnable);
- else
- return Methods_Linux.NET_DVR_MatrixSetLoopDecChanEnable(lUserID, dwDecChanNum, dwEnable);
- }
- public static bool NET_DVR_MatrixGetLoopDecChanEnable(int lUserID, uint dwDecChanNum, ref uint lpdwEnable)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MatrixGetLoopDecChanEnable(lUserID, dwDecChanNum, ref lpdwEnable);
- else
- return Methods_Linux.NET_DVR_MatrixGetLoopDecChanEnable(lUserID, dwDecChanNum, ref lpdwEnable);
- }
- public static bool NET_DVR_MatrixGetLoopDecEnable(int lUserID, ref uint lpdwEnable)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MatrixGetLoopDecEnable(lUserID, ref lpdwEnable);
- else
- return Methods_Linux.NET_DVR_MatrixGetLoopDecEnable(lUserID, ref lpdwEnable);
- }
- public static bool NET_DVR_MatrixSetDecChanEnable(int lUserID, uint dwDecChanNum, uint dwEnable)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MatrixSetDecChanEnable(lUserID, dwDecChanNum, dwEnable);
- else
- return Methods_Linux.NET_DVR_MatrixSetDecChanEnable(lUserID, dwDecChanNum, dwEnable);
- }
- public static bool NET_DVR_MatrixGetDecChanEnable(int lUserID, uint dwDecChanNum, ref uint lpdwEnable)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MatrixGetDecChanEnable(lUserID, dwDecChanNum, ref lpdwEnable);
- else
- return Methods_Linux.NET_DVR_MatrixGetDecChanEnable(lUserID, dwDecChanNum, ref lpdwEnable);
- }
- public static bool NET_DVR_MatrixGetDecChanStatus(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_DEC_CHAN_STATUS lpInter)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MatrixGetDecChanStatus(lUserID, dwDecChanNum, ref lpInter);
- else
- return Methods_Linux.NET_DVR_MatrixGetDecChanStatus(lUserID, dwDecChanNum, ref lpInter);
- }
- public static bool NET_DVR_MatrixSetTranInfo(int lUserID, ref NET_DVR_MATRIX_TRAN_CHAN_CONFIG lpTranInfo)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MatrixSetTranInfo(lUserID, ref lpTranInfo);
- else
- return Methods_Linux.NET_DVR_MatrixSetTranInfo(lUserID, ref lpTranInfo);
- }
- public static bool NET_DVR_MatrixGetTranInfo(int lUserID, ref NET_DVR_MATRIX_TRAN_CHAN_CONFIG lpTranInfo)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MatrixGetTranInfo(lUserID, ref lpTranInfo);
- else
- return Methods_Linux.NET_DVR_MatrixGetTranInfo(lUserID, ref lpTranInfo);
- }
- public static bool NET_DVR_MatrixSetRemotePlay(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_DEC_REMOTE_PLAY lpInter)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MatrixSetRemotePlay(lUserID, dwDecChanNum, ref lpInter);
- else
- return Methods_Linux.NET_DVR_MatrixSetRemotePlay(lUserID, dwDecChanNum, ref lpInter);
- }
- public static bool NET_DVR_MatrixSetRemotePlayControl(int lUserID, uint dwDecChanNum, uint dwControlCode, uint dwInValue, ref uint LPOutValue)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MatrixSetRemotePlayControl(lUserID, dwDecChanNum, dwControlCode, dwInValue, ref LPOutValue);
- else
- return Methods_Linux.NET_DVR_MatrixSetRemotePlayControl(lUserID, dwDecChanNum, dwControlCode, dwInValue, ref LPOutValue);
- }
- public static bool NET_DVR_MatrixGetRemotePlayStatus(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_DEC_REMOTE_PLAY_STATUS lpOuter)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MatrixGetRemotePlayStatus(lUserID, dwDecChanNum, ref lpOuter);
- else
- return Methods_Linux.NET_DVR_MatrixGetRemotePlayStatus(lUserID, dwDecChanNum, ref lpOuter);
- }
- public static bool NET_DVR_MatrixStartDynamic_V30(int lUserID, uint dwDecChanNum, ref NET_DVR_PU_STREAM_CFG lpDynamicInfo)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MatrixStartDynamic_V30(lUserID, dwDecChanNum, ref lpDynamicInfo);
- else
- return Methods_Linux.NET_DVR_MatrixStartDynamic_V30(lUserID, dwDecChanNum, ref lpDynamicInfo);
- }
- public static bool NET_DVR_MatrixStartDynamic_V41(int lUserID, uint dwDecChanNum, ref NET_DVR_PU_STREAM_CFG_V41 lpDynamicInfo)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MatrixStartDynamic_V41(lUserID, dwDecChanNum, ref lpDynamicInfo);
- else
- return Methods_Linux.NET_DVR_MatrixStartDynamic_V41(lUserID, dwDecChanNum, ref lpDynamicInfo);
- }
- public static bool NET_DVR_MatrixSetLoopDecChanInfo_V30(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_LOOP_DECINFO_V30 lpInter)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MatrixSetLoopDecChanInfo_V30(lUserID, dwDecChanNum, ref lpInter);
- else
- return Methods_Linux.NET_DVR_MatrixSetLoopDecChanInfo_V30(lUserID, dwDecChanNum, ref lpInter);
- }
- public static bool NET_DVR_MatrixGetLoopDecChanInfo_V30(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_LOOP_DECINFO_V30 lpInter)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MatrixGetLoopDecChanInfo_V30(lUserID, dwDecChanNum, ref lpInter);
- else
- return Methods_Linux.NET_DVR_MatrixGetLoopDecChanInfo_V30(lUserID, dwDecChanNum, ref lpInter);
- }
- public static bool NET_DVR_MatrixGetDecChanInfo_V30(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_DEC_CHAN_INFO_V30 lpInter)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MatrixGetDecChanInfo_V30(lUserID, dwDecChanNum, ref lpInter);
- else
- return Methods_Linux.NET_DVR_MatrixGetDecChanInfo_V30(lUserID, dwDecChanNum, ref lpInter);
- }
- public static bool NET_DVR_MatrixSetTranInfo_V30(int lUserID, ref NET_DVR_MATRIX_TRAN_CHAN_CONFIG_V30 lpTranInfo)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MatrixSetTranInfo_V30(lUserID, ref lpTranInfo);
- else
- return Methods_Linux.NET_DVR_MatrixSetTranInfo_V30(lUserID, ref lpTranInfo);
- }
- public static bool NET_DVR_MatrixGetTranInfo_V30(int lUserID, ref NET_DVR_MATRIX_TRAN_CHAN_CONFIG_V30 lpTranInfo)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MatrixGetTranInfo_V30(lUserID, ref lpTranInfo);
- else
- return Methods_Linux.NET_DVR_MatrixGetTranInfo_V30(lUserID, ref lpTranInfo);
- }
- public static bool NET_DVR_MatrixGetDisplayCfg(int lUserID, uint dwDispChanNum, ref NET_DVR_VGA_DISP_CHAN_CFG lpDisplayCfg)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MatrixGetDisplayCfg(lUserID, dwDispChanNum, ref lpDisplayCfg);
- else
- return Methods_Linux.NET_DVR_MatrixGetDisplayCfg(lUserID, dwDispChanNum, ref lpDisplayCfg);
- }
- public static bool NET_DVR_MatrixSetDisplayCfg(int lUserID, uint dwDispChanNum, ref NET_DVR_VGA_DISP_CHAN_CFG lpDisplayCfg)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MatrixSetDisplayCfg(lUserID, dwDispChanNum, ref lpDisplayCfg);
- else
- return Methods_Linux.NET_DVR_MatrixSetDisplayCfg(lUserID, dwDispChanNum, ref lpDisplayCfg);
- }
- public static bool NET_DVR_MatrixGetDisplayCfg_V41(int lUserID, uint dwDispChanNum, ref NET_DVR_MATRIX_VOUTCFG lpDisplayCfg)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MatrixGetDisplayCfg_V41(lUserID, dwDispChanNum, ref lpDisplayCfg);
- else
- return Methods_Linux.NET_DVR_MatrixGetDisplayCfg_V41(lUserID, dwDispChanNum, ref lpDisplayCfg);
- }
- public static bool NET_DVR_MatrixSetDisplayCfg_V41(int lUserID, uint dwDispChanNum, ref NET_DVR_MATRIX_VOUTCFG lpDisplayCfg)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MatrixSetDisplayCfg_V41(lUserID, dwDispChanNum, ref lpDisplayCfg);
- else
- return Methods_Linux.NET_DVR_MatrixSetDisplayCfg_V41(lUserID, dwDispChanNum, ref lpDisplayCfg);
- }
- public static int NET_DVR_MatrixStartPassiveDecode(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_PASSIVEMODE lpPassiveMode)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MatrixStartPassiveDecode(lUserID, dwDecChanNum, ref lpPassiveMode);
- else
- return Methods_Linux.NET_DVR_MatrixStartPassiveDecode(lUserID, dwDecChanNum, ref lpPassiveMode);
- }
- public static bool NET_DVR_MatrixSendData(int lPassiveHandle, System.IntPtr pSendBuf, uint dwBufSize)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MatrixSendData(lPassiveHandle, pSendBuf, dwBufSize);
- else
- return Methods_Linux.NET_DVR_MatrixSendData(lPassiveHandle, pSendBuf, dwBufSize);
- }
- public static bool NET_DVR_MatrixStopPassiveDecode(int lPassiveHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MatrixStopPassiveDecode(lPassiveHandle);
- else
- return Methods_Linux.NET_DVR_MatrixStopPassiveDecode(lPassiveHandle);
- }
- public static bool NET_DVR_UploadLogo(int lUserID, uint dwDispChanNum, ref NET_DVR_DISP_LOGOCFG lpDispLogoCfg, System.IntPtr sLogoBuffer)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_UploadLogo(lUserID, dwDispChanNum, ref lpDispLogoCfg, sLogoBuffer);
- else
- return Methods_Linux.NET_DVR_UploadLogo(lUserID, dwDispChanNum, ref lpDispLogoCfg, sLogoBuffer);
- }
- public static int NET_DVR_PicUpload(int lUserID, String sFileName, ref NET_DVR_PICTURECFG lpPictureCfg)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_PicUpload(lUserID, sFileName, ref lpPictureCfg);
- else
- return Methods_Linux.NET_DVR_PicUpload(lUserID, sFileName, ref lpPictureCfg);
- }
- public static int NET_DVR_GetPicUploadProgress(int lUploadHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetPicUploadProgress(lUploadHandle);
- else
- return Methods_Linux.NET_DVR_GetPicUploadProgress(lUploadHandle);
- }
- public static bool NET_DVR_CloseUploadHandle(int lUploadHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_CloseUploadHandle(lUploadHandle);
- else
- return Methods_Linux.NET_DVR_CloseUploadHandle(lUploadHandle);
- }
- public static int NET_DVR_GetPicUploadState(int lUploadHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetPicUploadState(lUploadHandle);
- else
- return Methods_Linux.NET_DVR_GetPicUploadState(lUploadHandle);
- }
- public static bool NET_DVR_LogoSwitch(int lUserID, uint dwDecChan, uint dwLogoSwitch)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_LogoSwitch(lUserID, dwDecChan, dwLogoSwitch);
- else
- return Methods_Linux.NET_DVR_LogoSwitch(lUserID, dwDecChan, dwLogoSwitch);
- }
- public static bool NET_DVR_MatrixGetDeviceStatus(int lUserID, ref NET_DVR_DECODER_WORK_STATUS lpDecoderCfg)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MatrixGetDeviceStatus(lUserID, ref lpDecoderCfg);
- else
- return Methods_Linux.NET_DVR_MatrixGetDeviceStatus(lUserID, ref lpDecoderCfg);
- }
- public static bool NET_DVR_GetInputSignalList_V40(int lUserID, uint dwDevNum, ref NET_DVR_INPUT_SIGNAL_LIST lpInputSignalList)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetInputSignalList_V40(lUserID, dwDevNum, ref lpInputSignalList);
- else
- return Methods_Linux.NET_DVR_GetInputSignalList_V40(lUserID, dwDevNum, ref lpInputSignalList);
- }
- public static bool NET_DVR_MatrixDiaplayControl(int lUserID, uint dwDispChanNum, uint dwDispChanCmd, uint dwCmdParam)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MatrixDiaplayControl(lUserID, dwDispChanNum, dwDispChanCmd, dwCmdParam);
- else
- return Methods_Linux.NET_DVR_MatrixDiaplayControl(lUserID, dwDispChanNum, dwDispChanCmd, dwCmdParam);
- }
- public static bool NET_DVR_RefreshPlay(int lPlayHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_RefreshPlay(lPlayHandle);
- else
- return Methods_Linux.NET_DVR_RefreshPlay(lPlayHandle);
- }
- public static bool NET_DVR_RestoreConfig(int lUserID)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_RestoreConfig(lUserID);
- else
- return Methods_Linux.NET_DVR_RestoreConfig(lUserID);
- }
- public static bool NET_DVR_SaveConfig(int lUserID)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SaveConfig(lUserID);
- else
- return Methods_Linux.NET_DVR_SaveConfig(lUserID);
- }
- public static bool NET_DVR_RebootDVR(int lUserID)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_RebootDVR(lUserID);
- else
- return Methods_Linux.NET_DVR_RebootDVR(lUserID);
- }
- public static bool NET_DVR_ShutDownDVR(int lUserID)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_ShutDownDVR(lUserID);
- else
- return Methods_Linux.NET_DVR_ShutDownDVR(lUserID);
- }
- public static bool NET_DVR_GetDVRConfig(int lUserID, uint dwCommand, int lChannel, IntPtr lpOutBuffer, uint dwOutBufferSize, ref uint lpBytesReturned)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetDVRConfig(lUserID, dwCommand, lChannel, lpOutBuffer, dwOutBufferSize, ref lpBytesReturned);
- else
- return Methods_Linux.NET_DVR_GetDVRConfig(lUserID, dwCommand, lChannel, lpOutBuffer, dwOutBufferSize, ref lpBytesReturned);
- }
- public static bool NET_DVR_SetDVRConfig(int lUserID, uint dwCommand, int lChannel, System.IntPtr lpInBuffer, uint dwInBufferSize)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetDVRConfig(lUserID, dwCommand, lChannel, lpInBuffer, dwInBufferSize);
- else
- return Methods_Linux.NET_DVR_SetDVRConfig(lUserID, dwCommand, lChannel, lpInBuffer, dwInBufferSize);
- }
- public static bool NET_DVR_GetDVRWorkState_V30(int lUserID, IntPtr pWorkState)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetDVRWorkState_V30(lUserID, pWorkState);
- else
- return Methods_Linux.NET_DVR_GetDVRWorkState_V30(lUserID, pWorkState);
- }
- public static bool NET_DVR_GetDVRWorkState(int lUserID, ref NET_DVR_WORKSTATE lpWorkState)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetDVRWorkState(lUserID, ref lpWorkState);
- else
- return Methods_Linux.NET_DVR_GetDVRWorkState(lUserID, ref lpWorkState);
- }
- public static bool NET_DVR_SetVideoEffect(int lUserID, int lChannel, uint dwBrightValue, uint dwContrastValue, uint dwSaturationValue, uint dwHueValue)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetVideoEffect(lUserID, lChannel, dwBrightValue, dwContrastValue, dwSaturationValue, dwHueValue);
- else
- return Methods_Linux.NET_DVR_SetVideoEffect(lUserID, lChannel, dwBrightValue, dwContrastValue, dwSaturationValue, dwHueValue);
- }
- public static bool NET_DVR_GetVideoEffect(int lUserID, int lChannel, ref uint pBrightValue, ref uint pContrastValue, ref uint pSaturationValue, ref uint pHueValue)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetVideoEffect(lUserID, lChannel, ref pBrightValue, ref pContrastValue, ref pSaturationValue, ref pHueValue);
- else
- return Methods_Linux.NET_DVR_GetVideoEffect(lUserID, lChannel, ref pBrightValue, ref pContrastValue, ref pSaturationValue, ref pHueValue);
- }
- public static bool NET_DVR_ClientGetframeformat(int lUserID, ref NET_DVR_FRAMEFORMAT lpFrameFormat)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_ClientGetframeformat(lUserID, ref lpFrameFormat);
- else
- return Methods_Linux.NET_DVR_ClientGetframeformat(lUserID, ref lpFrameFormat);
- }
- public static bool NET_DVR_ClientSetframeformat(int lUserID, ref NET_DVR_FRAMEFORMAT lpFrameFormat)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_ClientSetframeformat(lUserID, ref lpFrameFormat);
- else
- return Methods_Linux.NET_DVR_ClientSetframeformat(lUserID, ref lpFrameFormat);
- }
- public static bool NET_DVR_GetAtmProtocol(int lUserID, ref NET_DVR_ATM_PROTOCOL lpAtmProtocol)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetAtmProtocol(lUserID, ref lpAtmProtocol);
- else
- return Methods_Linux.NET_DVR_GetAtmProtocol(lUserID, ref lpAtmProtocol);
- }
- public static bool NET_DVR_GetAlarmOut_V30(int lUserID, IntPtr lpAlarmOutState)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetAlarmOut_V30(lUserID, lpAlarmOutState);
- else
- return Methods_Linux.NET_DVR_GetAlarmOut_V30(lUserID, lpAlarmOutState);
- }
- public static bool NET_DVR_GetAlarmOut(int lUserID, ref NET_DVR_ALARMOUTSTATUS lpAlarmOutState)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetAlarmOut(lUserID, ref lpAlarmOutState);
- else
- return Methods_Linux.NET_DVR_GetAlarmOut(lUserID, ref lpAlarmOutState);
- }
- public static bool NET_DVR_SetAlarmOut(int lUserID, int lAlarmOutPort, int lAlarmOutStatic)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetAlarmOut(lUserID, lAlarmOutPort, lAlarmOutStatic);
- else
- return Methods_Linux.NET_DVR_SetAlarmOut(lUserID, lAlarmOutPort, lAlarmOutStatic);
- }
- public static bool NET_DVR_GetUpnpNatState(int lUserID, ref NET_DVR_UPNP_NAT_STATE lpState)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetUpnpNatState(lUserID, ref lpState);
- else
- return Methods_Linux.NET_DVR_GetUpnpNatState(lUserID, ref lpState);
- }
- public static bool NET_DVR_ClientSetVideoEffect(int lRealHandle, uint dwBrightValue, uint dwContrastValue, uint dwSaturationValue, uint dwHueValue)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_ClientSetVideoEffect(lRealHandle, dwBrightValue, dwContrastValue, dwSaturationValue, dwHueValue);
- else
- return Methods_Linux.NET_DVR_ClientSetVideoEffect(lRealHandle, dwBrightValue, dwContrastValue, dwSaturationValue, dwHueValue);
- }
- public static bool NET_DVR_ClientGetVideoEffect(int lRealHandle, ref uint pBrightValue, ref uint pContrastValue, ref uint pSaturationValue, ref uint pHueValue)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_ClientGetVideoEffect(lRealHandle, ref pBrightValue, ref pContrastValue, ref pSaturationValue, ref pHueValue);
- else
- return Methods_Linux.NET_DVR_ClientGetVideoEffect(lRealHandle, ref pBrightValue, ref pContrastValue, ref pSaturationValue, ref pHueValue);
- }
- public static bool NET_DVR_GetConfigFile(int lUserID, string sFileName)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetConfigFile(lUserID, sFileName);
- else
- return Methods_Linux.NET_DVR_GetConfigFile(lUserID, sFileName);
- }
- public static bool NET_DVR_SetConfigFile(int lUserID, string sFileName)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetConfigFile(lUserID, sFileName);
- else
- return Methods_Linux.NET_DVR_SetConfigFile(lUserID, sFileName);
- }
- public static bool NET_DVR_GetConfigFile_V30(int lUserID, string sOutBuffer, uint dwOutSize, ref uint pReturnSize)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetConfigFile_V30(lUserID, sOutBuffer, dwOutSize, ref pReturnSize);
- else
- return Methods_Linux.NET_DVR_GetConfigFile_V30(lUserID, sOutBuffer, dwOutSize, ref pReturnSize);
- }
- public static bool NET_DVR_GetConfigFile_EX(int lUserID, string sOutBuffer, uint dwOutSize)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetConfigFile_EX(lUserID, sOutBuffer, dwOutSize);
- else
- return Methods_Linux.NET_DVR_GetConfigFile_EX(lUserID, sOutBuffer, dwOutSize);
- }
- public static bool NET_DVR_SetConfigFile_EX(int lUserID, string sInBuffer, uint dwInSize)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetConfigFile_EX(lUserID, sInBuffer, dwInSize);
- else
- return Methods_Linux.NET_DVR_SetConfigFile_EX(lUserID, sInBuffer, dwInSize);
- }
- public static bool NET_DVR_SetLogToFile(int bLogEnable, string strLogDir, bool bAutoDel)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetLogToFile(bLogEnable, strLogDir, bAutoDel);
- else
- return Methods_Linux.NET_DVR_SetLogToFile(bLogEnable, strLogDir, bAutoDel);
- }
- public static bool NET_DVR_GetSDKState(ref NET_DVR_SDKSTATE pSDKState)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetSDKState(ref pSDKState);
- else
- return Methods_Linux.NET_DVR_GetSDKState(ref pSDKState);
- }
- public static bool NET_DVR_GetSDKAbility(ref NET_DVR_SDKABL pSDKAbl)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetSDKAbility(ref pSDKAbl);
- else
- return Methods_Linux.NET_DVR_GetSDKAbility(ref pSDKAbl);
- }
- public static bool NET_DVR_GetPTZProtocol(int lUserID, ref NET_DVR_PTZCFG pPtzcfg)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetPTZProtocol(lUserID, ref pPtzcfg);
- else
- return Methods_Linux.NET_DVR_GetPTZProtocol(lUserID, ref pPtzcfg);
- }
- public static bool NET_DVR_LockPanel(int lUserID)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_LockPanel(lUserID);
- else
- return Methods_Linux.NET_DVR_LockPanel(lUserID);
- }
- public static bool NET_DVR_UnLockPanel(int lUserID)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_UnLockPanel(lUserID);
- else
- return Methods_Linux.NET_DVR_UnLockPanel(lUserID);
- }
- public static bool NET_DVR_SetRtspConfig(int lUserID, uint dwCommand, ref NET_DVR_RTSPCFG lpInBuffer, uint dwInBufferSize)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetRtspConfig(lUserID, dwCommand, ref lpInBuffer, dwInBufferSize);
- else
- return Methods_Linux.NET_DVR_SetRtspConfig(lUserID, dwCommand, ref lpInBuffer, dwInBufferSize);
- }
- public static bool NET_DVR_GetRtspConfig(int lUserID, uint dwCommand, ref NET_DVR_RTSPCFG lpOutBuffer, uint dwOutBufferSize)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetRtspConfig(lUserID, dwCommand, ref lpOutBuffer, dwOutBufferSize);
- else
- return Methods_Linux.NET_DVR_GetRtspConfig(lUserID, dwCommand, ref lpOutBuffer, dwOutBufferSize);
- }
- public static bool NET_DVR_MatrixGetSceneCfg(int lUserID, uint dwSceneNum, ref NET_DVR_MATRIX_SCENECFG lpSceneCfg)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MatrixGetSceneCfg(lUserID, dwSceneNum, ref lpSceneCfg);
- else
- return Methods_Linux.NET_DVR_MatrixGetSceneCfg(lUserID, dwSceneNum, ref lpSceneCfg);
- }
- public static bool NET_DVR_MatrixSetSceneCfg(int lUserID, uint dwSceneNum, ref NET_DVR_MATRIX_SCENECFG lpSceneCfg)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_MatrixSetSceneCfg(lUserID, dwSceneNum, ref lpSceneCfg);
- else
- return Methods_Linux.NET_DVR_MatrixSetSceneCfg(lUserID, dwSceneNum, ref lpSceneCfg);
- }
- public static bool NET_DVR_GetRealHeight(int lUserID, int lChannel, ref NET_VCA_LINE lpLine, ref Single lpHeight)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetRealHeight(lUserID, lChannel, ref lpLine, ref lpHeight);
- else
- return Methods_Linux.NET_DVR_GetRealHeight(lUserID, lChannel, ref lpLine, ref lpHeight);
- }
- public static bool NET_DVR_GetRealLength(int lUserID, int lChannel, ref NET_VCA_LINE lpLine, ref Single lpLength)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetRealLength(lUserID, lChannel, ref lpLine, ref lpLength);
- else
- return Methods_Linux.NET_DVR_GetRealLength(lUserID, lChannel, ref lpLine, ref lpLength);
- }
- public static bool NET_DVR_SaveRealData_V30(int lRealHandle, uint dwTransType, string sFileName)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SaveRealData_V30(lRealHandle, dwTransType, sFileName);
- else
- return Methods_Linux.NET_DVR_SaveRealData_V30(lRealHandle, dwTransType, sFileName);
- }
- public static IntPtr NET_DVR_InitG711Encoder(ref NET_DVR_AUDIOENC_INFO enc_info)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_InitG711Encoder(ref enc_info);
- else
- return Methods_Linux.NET_DVR_InitG711Encoder(ref enc_info);
- }
- public static bool NET_DVR_EncodeG711Frame(IntPtr handle, ref NET_DVR_AUDIOENC_PROCESS_PARAM p_enc_proc_param)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_EncodeG711Frame(handle, ref p_enc_proc_param);
- else
- return Methods_Linux.NET_DVR_EncodeG711Frame(handle, ref p_enc_proc_param);
- }
- public static bool NET_DVR_ReleaseG711Encoder(IntPtr pEncodeHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_ReleaseG711Encoder(pEncodeHandle);
- else
- return Methods_Linux.NET_DVR_ReleaseG711Encoder(pEncodeHandle);
- }
- public static bool NET_DVR_DecodeG711Frame(uint iType, ref byte pInBuffer, ref byte pOutBuffer)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_DecodeG711Frame(iType, ref pInBuffer, ref pOutBuffer);
- else
- return Methods_Linux.NET_DVR_DecodeG711Frame(iType, ref pInBuffer, ref pOutBuffer);
- }
- public static bool NET_DVR_EmailTest(int lUserID)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_EmailTest(lUserID);
- else
- return Methods_Linux.NET_DVR_EmailTest(lUserID);
- }
- public static int NET_DVR_FindFileByEvent(int lUserID, ref NET_DVR_SEARCH_EVENT_PARAM lpSearchEventParam)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_FindFileByEvent(lUserID, ref lpSearchEventParam);
- else
- return Methods_Linux.NET_DVR_FindFileByEvent(lUserID, ref lpSearchEventParam);
- }
- public static int NET_DVR_FindNextEvent(int lSearchHandle, ref NET_DVR_SEARCH_EVENT_RET lpSearchEventRet)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_FindNextEvent(lSearchHandle, ref lpSearchEventRet);
- else
- return Methods_Linux.NET_DVR_FindNextEvent(lSearchHandle, ref lpSearchEventRet);
- }
- public static Int32 NET_DVR_Login_V30(string sDVRIP, Int32 wDVRPort, string sUserName, string sPassword, ref NET_DVR_DEVICEINFO_V30 lpDeviceInfo)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_Login_V30(sDVRIP, wDVRPort, sUserName, sPassword, ref lpDeviceInfo);
- else
- return Methods_Linux.NET_DVR_Login_V30(sDVRIP, wDVRPort, sUserName, sPassword, ref lpDeviceInfo);
- }
- public static int NET_DVR_Login_V40(ref NET_DVR_USER_LOGIN_INFO pLoginInfo, ref NET_DVR_DEVICEINFO_V40 lpDeviceInfo)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_Login_V40(ref pLoginInfo, ref lpDeviceInfo);
- else
- return Methods_Linux.NET_DVR_Login_V40(ref pLoginInfo, ref lpDeviceInfo);
- }
- public static bool NET_DVR_Logout_V30(Int32 lUserID)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_Logout_V30(lUserID);
- else
- return Methods_Linux.NET_DVR_Logout_V30(lUserID);
- }
- public static int NET_DVR_FindNextLog_MATRIX(int iLogHandle, ref NET_DVR_LOG_MATRIX lpLogData)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_FindNextLog_MATRIX(iLogHandle, ref lpLogData);
- else
- return Methods_Linux.NET_DVR_FindNextLog_MATRIX(iLogHandle, ref lpLogData);
- }
- public static int NET_DVR_FindDVRLog_Matrix(int iUserID, int lSelectMode, uint dwMajorType, uint dwMinorType, ref tagVEDIOPLATLOG lpVedioPlatLog, ref NET_DVR_TIME lpStartTime, ref NET_DVR_TIME lpStopTime)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_FindDVRLog_Matrix(iUserID, lSelectMode, dwMajorType, dwMinorType, ref lpVedioPlatLog, ref lpStartTime, ref lpStopTime);
- else
- return Methods_Linux.NET_DVR_FindDVRLog_Matrix(iUserID, lSelectMode, dwMajorType, dwMinorType, ref lpVedioPlatLog, ref lpStartTime, ref lpStopTime);
- }
- public static bool NET_DVR_STDXMLConfig(int iUserID, ref NET_DVR_XML_CONFIG_INPUT lpInputParam, ref NET_DVR_XML_CONFIG_OUTPUT lpOutputParam)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_STDXMLConfig(iUserID, ref lpInputParam, ref lpOutputParam);
- else
- return Methods_Linux.NET_DVR_STDXMLConfig(iUserID, ref lpInputParam, ref lpOutputParam);
- }
- public static bool NET_DVR_GetDeviceConfig(int lUserID, uint dwCommand, uint dwCount, IntPtr lpInBuffer, uint dwInBufferSize, IntPtr lpStatusList, IntPtr lpOutBuffer, uint dwOutBufferSize)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetDeviceConfig(lUserID, dwCommand, dwCount, lpInBuffer, dwInBufferSize, lpStatusList, lpOutBuffer, dwOutBufferSize);
- else
- return Methods_Linux.NET_DVR_GetDeviceConfig(lUserID, dwCommand, dwCount, lpInBuffer, dwInBufferSize, lpStatusList, lpOutBuffer, dwOutBufferSize);
- }
- public static bool NET_DVR_SetDeviceConfig(int lUserID, uint dwCommand, uint dwCount, IntPtr lpInBuffer, uint dwInBufferSize, IntPtr lpStatusList, IntPtr lpInParamBuffer, uint dwInParamBufferSize)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetDeviceConfig(lUserID, dwCommand, dwCount, lpInBuffer, dwInBufferSize, lpStatusList, lpInParamBuffer, dwInParamBufferSize);
- else
- return Methods_Linux.NET_DVR_SetDeviceConfig(lUserID, dwCommand, dwCount, lpInBuffer, dwInBufferSize, lpStatusList, lpInParamBuffer, dwInParamBufferSize);
- }
- public static bool NET_DVR_SetDeviceConfigEx(Int32 lUserID, uint dwCommand, uint dwCount, ref NET_DVR_IN_PARAM lpInParam, ref NET_DVR_OUT_PARAM lpOutParam)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetDeviceConfigEx(lUserID, dwCommand, dwCount, ref lpInParam, ref lpOutParam);
- else
- return Methods_Linux.NET_DVR_SetDeviceConfigEx(lUserID, dwCommand, dwCount, ref lpInParam, ref lpOutParam);
- }
- public static bool NET_DVR_GetSTDConfig(int iUserID, uint dwCommand, ref NET_DVR_STD_CONFIG lpConfigParam)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetSTDConfig(iUserID, dwCommand, ref lpConfigParam);
- else
- return Methods_Linux.NET_DVR_GetSTDConfig(iUserID, dwCommand, ref lpConfigParam);
- }
- public static bool NET_DVR_SetSTDConfig(int iUserID, uint dwCommand, ref NET_DVR_STD_CONFIG lpConfigParam)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetSTDConfig(iUserID, dwCommand, ref lpConfigParam);
- else
- return Methods_Linux.NET_DVR_SetSTDConfig(iUserID, dwCommand, ref lpConfigParam);
- }
- public static int NET_DVR_StartRemoteConfig(int lUserID, int dwCommand, IntPtr lpInBuffer, Int32 dwInBufferLen, RemoteConfigCallback cbStateCallback, IntPtr pUserData)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_StartRemoteConfig(lUserID, dwCommand, lpInBuffer, dwInBufferLen, cbStateCallback, pUserData);
- else
- return Methods_Linux.NET_DVR_StartRemoteConfig(lUserID, dwCommand, lpInBuffer, dwInBufferLen, cbStateCallback, pUserData);
- }
- public static int NET_DVR_GetNextRemoteConfig(int lHandle, IntPtr lpOutBuff, int dwOutBuffSize)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetNextRemoteConfig(lHandle, lpOutBuff, dwOutBuffSize);
- else
- return Methods_Linux.NET_DVR_GetNextRemoteConfig(lHandle, lpOutBuff, dwOutBuffSize);
- }
- public static bool NET_DVR_SendRemoteConfig(int lHandle, int dwDataType, IntPtr pSendBuf, int dwBufSize)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SendRemoteConfig(lHandle, dwDataType, pSendBuf, dwBufSize);
- else
- return Methods_Linux.NET_DVR_SendRemoteConfig(lHandle, dwDataType, pSendBuf, dwBufSize);
- }
- public static bool NET_DVR_StopRemoteConfig(int lHandle)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_StopRemoteConfig(lHandle);
- else
- return Methods_Linux.NET_DVR_StopRemoteConfig(lHandle);
- }
- public static bool NET_DVR_RemoteControl(int lUserID, int dwCommand, IntPtr lpInBuffer, int dwInBufferSize)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_RemoteControl(lUserID, dwCommand, lpInBuffer, dwInBufferSize);
- else
- return Methods_Linux.NET_DVR_RemoteControl(lUserID, dwCommand, lpInBuffer, dwInBufferSize);
- }
- public static bool NET_DVR_RemoteControl(int lUserID, int dwCommand, ref NET_DVR_FACE_PARAM_CTRL_CARDNO lpInBuffer, int dwInBufferSize)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_RemoteControl(lUserID, dwCommand, ref lpInBuffer, dwInBufferSize);
- else
- return Methods_Linux.NET_DVR_RemoteControl(lUserID, dwCommand, ref lpInBuffer, dwInBufferSize);
- }
- public static bool NET_DVR_ContinuousShoot(Int32 lUserID, ref NET_DVR_SNAPCFG lpInter)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_ContinuousShoot(lUserID, ref lpInter);
- else
- return Methods_Linux.NET_DVR_ContinuousShoot(lUserID, ref lpInter);
- }
- public static bool NET_DVR_ManualSnap(Int32 lUserID, ref NET_DVR_MANUALSNAP lpInter, ref NET_DVR_PLATE_RESULT lpOuter)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_ManualSnap(lUserID, ref lpInter, ref lpOuter);
- else
- return Methods_Linux.NET_DVR_ManualSnap(lUserID, ref lpInter, ref lpOuter);
- }
- public static bool NET_DVR_GetDeviceAbility(int lUserID, uint dwAbilityType, IntPtr pInBuf, uint dwInLength, IntPtr pOutBuf, uint dwOutLength)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetDeviceAbility(lUserID, dwAbilityType, pInBuf, dwInLength, pOutBuf, dwOutLength);
- else
- return Methods_Linux.NET_DVR_GetDeviceAbility(lUserID, dwAbilityType, pInBuf, dwInLength, pOutBuf, dwOutLength);
- }
- public static bool NET_DVR_SetBehaviorParamKey(int lUserID, int lChannel, uint dwParameterKey, int nValue)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetBehaviorParamKey(lUserID, lChannel, dwParameterKey, nValue);
- else
- return Methods_Linux.NET_DVR_SetBehaviorParamKey(lUserID, lChannel, dwParameterKey, nValue);
- }
- public static bool NET_DVR_GetBehaviorParamKey(int lUserID, int lChannel, uint dwParameterKey, ref int pValue)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetBehaviorParamKey(lUserID, lChannel, dwParameterKey, ref pValue);
- else
- return Methods_Linux.NET_DVR_GetBehaviorParamKey(lUserID, lChannel, dwParameterKey, ref pValue);
- }
- public static bool NET_DVR_GetVCADrawMode(int lUserID, int lChannel, ref NET_VCA_DRAW_MODE lpDrawMode)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetVCADrawMode(lUserID, lChannel, ref lpDrawMode);
- else
- return Methods_Linux.NET_DVR_GetVCADrawMode(lUserID, lChannel, ref lpDrawMode);
- }
- public static bool NET_DVR_SetVCADrawMode(int lUserID, int lChannel, ref NET_VCA_DRAW_MODE lpDrawMode)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetVCADrawMode(lUserID, lChannel, ref lpDrawMode);
- else
- return Methods_Linux.NET_DVR_SetVCADrawMode(lUserID, lChannel, ref lpDrawMode);
- }
- public static bool NET_DVR_SetLFTrackMode(int lUserID, int lChannel, ref NET_DVR_LF_TRACK_MODE lpTrackMode)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetLFTrackMode(lUserID, lChannel, ref lpTrackMode);
- else
- return Methods_Linux.NET_DVR_SetLFTrackMode(lUserID, lChannel, ref lpTrackMode);
- }
- public static bool NET_DVR_GetLFTrackMode(int lUserID, int lChannel, ref NET_DVR_LF_TRACK_MODE lpTrackMode)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetLFTrackMode(lUserID, lChannel, ref lpTrackMode);
- else
- return Methods_Linux.NET_DVR_GetLFTrackMode(lUserID, lChannel, ref lpTrackMode);
- }
- public static bool NET_DVR_GetCCDCfg(int lUserID, int lChannel, ref NET_DVR_CCD_CFG lpCCDCfg)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetCCDCfg(lUserID, lChannel, ref lpCCDCfg);
- else
- return Methods_Linux.NET_DVR_GetCCDCfg(lUserID, lChannel, ref lpCCDCfg);
- }
- public static bool NET_DVR_SetCCDCfg(int lUserID, int lChannel, ref NET_DVR_CCD_CFG lpCCDCfg)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_SetCCDCfg(lUserID, lChannel, ref lpCCDCfg);
- else
- return Methods_Linux.NET_DVR_SetCCDCfg(lUserID, lChannel, ref lpCCDCfg);
- }
- public static bool NET_DVR_GetParamSetMode(int lUserID, ref uint dwParamSetMode)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_GetParamSetMode(lUserID, ref dwParamSetMode);
- else
- return Methods_Linux.NET_DVR_GetParamSetMode(lUserID, ref dwParamSetMode);
- }
- public static bool NET_DVR_InquestStartCDW_V30(int lUserID, ref NET_DVR_INQUEST_ROOM lpInquestRoom, bool bNotBurn)
- {
- if (IsWindows)
- return Methods_Win.NET_DVR_InquestStartCDW_V30(lUserID, ref lpInquestRoom, bNotBurn);
- else
- return Methods_Linux.NET_DVR_InquestStartCDW_V30(lUserID, ref lpInquestRoom, bNotBurn);
- }
- public static int PostMessage(IntPtr hWnd, int Msg, int wParam, int lParam)
- {
- if (IsWindows)
- return Methods_Win.PostMessage(hWnd, Msg, wParam, lParam);
- else
- return Methods_Linux.PostMessage(hWnd, Msg, wParam, lParam);
- }
- public static bool NET_VCA_RestartLib(int lUserID, int lChannel)
- {
- if (IsWindows)
- return Methods_Win.NET_VCA_RestartLib(lUserID, lChannel);
- else
- return Methods_Linux.NET_VCA_RestartLib(lUserID, lChannel);
- }
- }
- }
|