1 Star 4 Fork 2

指尖岁月/HK Camera Shot

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
plaympeg4.pas 1.60 KB
一键复制 编辑 原始数据 按行查看 历史
unit plaympeg4;
interface
uses
{$IFDEF WIN32}
Windows;
{$ELSE}
Wintypes, WinProcs;
{$ENDIF}
//Stream type
//#define STREAME_REALTIME 0
//#define STREAME_FILE 1
const
STREAME_REALTIME = 0;
const
STREAME_FILE = 1;
//PLAYM4_API BOOL __stdcall PlayM4_GetPort(LONG* nPort);
type
PLongInt = ^LongInt;
type LPByte = ^Byte;
function PlayM4_GetPort(nPort: PLongInt):BOOL;stdcall; external 'PlayCtrl.dll' ;
function PlayM4_CloseStream(nPort: LongInt):BOOL;stdcall; external 'PlayCtrl.dll' ;
function PlayM4_FreePort(nPort: LongInt):BOOL;stdcall; external 'PlayCtrl.dll' ;
//PLAYM4_API BOOL __stdcall PlayM4_SetStreamOpenMode(LONG nPort,DWORD nMode);
function PlayM4_SetStreamOpenMode(nPort:LongInt; nMode:DWORD): BOOL;stdcall; external 'PlayCtrl.dll' ;
//BOOL __stdcall PlayM4_OpenStream(LONG nPort,PBYTE pFileHeadBuf,DWORD nSize,DWORD nBufPoolSize);
function PlayM4_OpenStream(nPort: LongInt; pFileHeadBuf: LPByte; nsize:DWORD; nBufPoolSize:DWORD):BOOL;stdcall; external 'PlayCtrl.dll' ;
//BOOL __stdcall PlayM4_OpenStream(LONG nPort,PBYTE pFileHeadBuf,DWORD nSize,DWORD nBufPoolSize);
//function PlayM4_OpenStream(nPort:LongInt; pFileHeadBuf:PByte; nSize:DWORD; nBufPoolSize:DWORD ):BOOL;stdcall; external 'PlayCtrl.dll'
//BOOL __stdcall PlayM4_Play(LONG nPort, HWND hWnd);
function PlayM4_Play(nPort:LongInt; hWnd:HWND):BOOL;stdcall; external 'PlayCtrl.dll' ;
//PLAYM4_API BOOL __stdcall PlayM4_InputData(LONG nPort,PBYTE pBuf,DWORD nSize);
function PlayM4_InputData(nPort:LongInt; pBuf:LPByte; nSize:DWORD):BOOL;stdcall; external 'PlayCtrl.dll' ;
implementation
end.
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Delphi
1
https://gitee.com/xuewuchen/HK-Camera-Shot.git
[email protected]:xuewuchen/HK-Camera-Shot.git
xuewuchen
HK-Camera-Shot
HK Camera Shot
master

搜索帮助