1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: 123: 124: 125: 126: 127: 128: 129: 130: 131: 132: 133: 134: 135: 136: 137: 138: 139: 140: 141: 142: 143: 144: 145: 146: 147: 148: 149: 150: 151: 152: 153: 154: 155: 156: 157: 158: 159: 160: 161: 162: 163: 164: 165: 166: 167: 168: 169: 170: 171: 172: 173: 174: 175: 176: 177: 178: 179: 180: 181: 182: 183: 184: 185: 186: 187: 188: 189: 190: 191: 192: 193: 194: 195: 196: 197: 198: 199: 200: 201: 202: 203: 204: 205: 206: 207: 208: 209: 210: 211: 212: 213: 214: 215: 216: 217: 218: 219: 220: 221: 222: 223: 224: 225: 226: 227: 228: 229: 230: 231: 232: 233: 234: 235: 236: 237: 238: 239: 240: 241: 242: 243: 244: 245: 246: 247: 248: 249: 250: 251: 252: 253: 254: 255: 256: 257: 258: 259: 260: 261: 262: 263: 264: 265: 266: 267: 268: 269: 270: 271: 272: 273: 274: 275: 276: 277: 278: 279: 280: 281: 282: 283: 284: 285: 286: 287: 288: 289: 290: 291: 292: 293: 294: 295: 296: 297: 298: 299: 300: 301: 302: 303: 304: 305: 306: 307: 308: 309: 310: 311: 312: 313: 314: 315: 316: 317: 318: 319: 320: 321: 322: 323: 324: 325: 326: 327: 328: 329: 330: 331: 332: 333: 334: 335: 336: 337: 338: 339: 340: 341: 342: 343: 344: 345: 346: 347: 348: 349: 350: 351: 352: 353: 354: 355: 356: 357: 358: 359: 360: 361: 362: 363: 364: 365: 366: 367: 368: 369: 370: 371: 372: 373: 374: 375: 376: 377: 378: 379: 380: 381: 382: 383: 384: 385: 386: 387: 388: 389: 390: 391: 392: 393: 394: 395: 396: 397: 398: 399: 400: 401: 402: 403: 404: 405: 406: 407: 408: 409: 410: 411: 412: 413: 414: 415: 416: 417: 418: 419: 420: 421: 422: 423: 424: 425: 426: 427: 428: 429: 430: 431: 432: 433: 434: 435: 436: 437: 438: 439: 440: 441: 442: 443: 444: 445: 446: 447: 448: 449: 450: 451: 452: 453: 454: 455: 456: 457: 458: 459: 460: 461: 462: 463: 464: 465: 466: 467: 468: 469: 470: 471: 472: 473: 474: 475: 476: 477: 478: 479: 480: 481: 482: 483: 484: 485: 486: 487: 488: 489: 490: 491: 492: 493: 494: 495: 496: 497: 498: 499: 500: 501: 502: 503: 504: 505: 506: 507: 508: 509: 510: 511: 512: 513: 514: 515: 516: 517: 518: 519: 520: 521: 522: 523: 524: 525: 526: 527: 528: 529: 530: 531: 532: 533: 534: 535: 536: 537: 538: 539: 540: 541: 542: 543: 544: 545: 546: 547: 548: 549: 550: 551: 552: 553: 554: 555: 556: 557: 558: 559: 560: 561: 562: 563: 564: 565: 566: 567: 568: 569: 570: 571: 572: 573: 574: 575: 576: 577: 578: 579: 580: 581: 582: 583: 584: 585: 586: 587: 588: 589: 590: 591: 592: 593: 594: 595: 596: 597: 598: 599: 600: 601: 602: 603: 604: 605: 606: 607: 608: 609: 610: 611: 612: 613: 614: 615: 616: 617: 618: 619: 620: 621: 622: 623: 624: 625: 626: 627: 628: 629: 630: 631: 632: 633: 634: 635: 636: 637: 638: 639: 640: 641: 642: 643: 644: 645: 646: 647: 648: 649: 650: 651: 652: 653: 654: 655: 656: 657: 658: 659: 660: 661: 662: 663: 664: 665: 666: 667: 668: 669: 670: 671: 672: 673: 674: 675: 676: 677: 678: 679: 680: 681: 682: 683: 684: 685: 686: 687: 688: 689: 690: 691: 692: 693: 694: 695: 696: 697: 698: 699: 700: 701: 702: 703: 704: 705: 706: 707: 708: 709: 710: 711: 712: 713: 714: 715: 716: 717: 718: 719: 720: 721: 722: 723: 724: 725: 726: 727: 728: 729: 730: 731: 732: 733: 734: 735: 736: 737: 738: 739: 740: 741: 742: 743: 744: 745: 746: 747: 748: 749:
| unit AviCap;
interface
uses Windows, MMSystem, Messages;
const WM_CAP_START = WM_USER;
WM_CAP_GET_CAPSTREAMPTR = (WM_CAP_START+ 1); WM_CAP_SET_CALLBACK_ERROR = (WM_CAP_START+ 2); WM_CAP_SET_CALLBACK_STATUS = (WM_CAP_START+ 3); WM_CAP_SET_CALLBACK_YIELD = (WM_CAP_START+ 4); WM_CAP_SET_CALLBACK_FRAME = (WM_CAP_START+ 5); WM_CAP_SET_CALLBACK_VIDEOSTREAM = (WM_CAP_START+ 6); WM_CAP_SET_CALLBACK_WAVESTREAM = (WM_CAP_START+ 7); WM_CAP_GET_USER_DATA = (WM_CAP_START+ 8); WM_CAP_SET_USER_DATA = (WM_CAP_START+ 9);
WM_CAP_DRIVER_CONNECT = (WM_CAP_START+ 10); WM_CAP_DRIVER_DISCONNECT = (WM_CAP_START+ 11); WM_CAP_DRIVER_GET_NAME = (WM_CAP_START+ 12); WM_CAP_DRIVER_GET_VERSION = (WM_CAP_START+ 13); WM_CAP_DRIVER_GET_CAPS = (WM_CAP_START+ 14);
WM_CAP_FILE_SET_CAPTURE_FILE = (WM_CAP_START+ 20); WM_CAP_FILE_GET_CAPTURE_FILE = (WM_CAP_START+ 21); WM_CAP_FILE_ALLOCATE = (WM_CAP_START+ 22); WM_CAP_FILE_SAVEAS = (WM_CAP_START+ 23); WM_CAP_FILE_SET_INFOCHUNK = (WM_CAP_START+ 24); WM_CAP_FILE_SAVEDIB = (WM_CAP_START+ 25);
WM_CAP_EDIT_COPY = (WM_CAP_START+ 30);
WM_CAP_SET_AUDIOFORMAT = (WM_CAP_START+ 35); WM_CAP_GET_AUDIOFORMAT = (WM_CAP_START+ 36);
WM_CAP_DLG_VIDEOFORMAT = (WM_CAP_START+ 41); WM_CAP_DLG_VIDEOSOURCE = (WM_CAP_START+ 42); WM_CAP_DLG_VIDEODISPLAY = (WM_CAP_START+ 43); WM_CAP_GET_VIDEOFORMAT = (WM_CAP_START+ 44); WM_CAP_SET_VIDEOFORMAT = (WM_CAP_START+ 45); WM_CAP_DLG_VIDEOCOMPRESSION = (WM_CAP_START+ 46);
WM_CAP_SET_PREVIEW = (WM_CAP_START+ 50); WM_CAP_SET_OVERLAY = (WM_CAP_START+ 51); WM_CAP_SET_PREVIEWRATE = (WM_CAP_START+ 52); WM_CAP_SET_SCALE = (WM_CAP_START+ 53); WM_CAP_GET_STATUS = (WM_CAP_START+ 54); WM_CAP_SET_SCROLL = (WM_CAP_START+ 55);
WM_CAP_GRAB_FRAME = (WM_CAP_START+ 60); WM_CAP_GRAB_FRAME_NOSTOP = (WM_CAP_START+ 61);
WM_CAP_SEQUENCE = (WM_CAP_START+ 62); WM_CAP_SEQUENCE_NOFILE = (WM_CAP_START+ 63); WM_CAP_SET_SEQUENCE_SETUP = (WM_CAP_START+ 64); WM_CAP_GET_SEQUENCE_SETUP = (WM_CAP_START+ 65); WM_CAP_SET_MCI_DEVICE = (WM_CAP_START+ 66); WM_CAP_GET_MCI_DEVICE = (WM_CAP_START+ 67); WM_CAP_STOP = (WM_CAP_START+ 68); WM_CAP_ABORT = (WM_CAP_START+ 69);
WM_CAP_SINGLE_FRAME_OPEN = (WM_CAP_START+ 70); WM_CAP_SINGLE_FRAME_CLOSE = (WM_CAP_START+ 71); WM_CAP_SINGLE_FRAME = (WM_CAP_START+ 72);
WM_CAP_PAL_OPEN = (WM_CAP_START+ 80); WM_CAP_PAL_SAVE = (WM_CAP_START+ 81); WM_CAP_PAL_PASTE = (WM_CAP_START+ 82); WM_CAP_PAL_AUTOCREATE = (WM_CAP_START+ 83); WM_CAP_PAL_MANUALCREATE = (WM_CAP_START+ 84);
WM_CAP_SET_CALLBACK_CAPCONTROL = (WM_CAP_START+ 85);
WM_CAP_END = WM_CAP_SET_CALLBACK_CAPCONTROL;
function capSetCallbackOnError (hwnd : THandle; fpProc:LongInt):LongInt; function capSetCallbackOnStatus(hwnd : THandle; fpProc:LongInt):LongInt; function capSetCallbackOnYield (hwnd : THandle; fpProc:LongInt):LongInt; function capSetCallbackOnFrame (hwnd : THandle; fpProc:LongInt):LongInt;
function capSetCallbackOnVideoStream(hwnd:THandle; fpProc:LongInt):LongInt; function capSetCallbackOnWaveStream (hwnd:THandle; fpProc:LongInt):LongInt; function capSetCallbackOnCapControl (hwnd:THandle; fpProc:LongInt):LongInt; function capSetUserData(hwnd:THandle; lUser:LongInt):LongInt; function capGetUserData(hwnd:THandle):LongInt; function capDriverConnect(hwnd:THandle; I: Word) : LongInt;
function capDriverDisconnect(hwnd:THandle):LongInt; function capDriverGetName(hwnd:THandle; szName:LongInt; wSize:Word):LongInt; function capDriverGetVersion(hwnd:THandle; szVer:LongInt; wSize:Word):LongInt; function capDriverGetCaps(hwnd:THandle; s:LongInt; wSize:Word):LongInt;
function capFileSetCaptureFile(hwnd:THandle; szName:LongInt):LongInt; function capFileGetCaptureFile(hwnd:THandle; szName:LongInt; wSize:Word):LongInt; function capFileAlloc(hwnd:THandle; dwSize:LongInt):LongInt; function capFileSaveAs(hwnd:THandle; szName:LongInt):LongInt; function capFileSetInfoChunk(hwnd:THandle; lpInfoChunk:LongInt):LongInt; function capFileSaveDIB(hwnd:THandle; szName:LongInt):LongInt;
function capEditCopy(hwnd : THandle):LongInt;
function capSetAudioFormat(hwnd:THandle; s:LongInt; wSize:Word):LongInt; function capGetAudioFormat(hwnd:THandle; s:LongInt; wSize:Word):LongInt; function capGetAudioFormatSize(hwnd:THandle):LongInt;
function capDlgVideoFormat(hwnd:THandle):LongInt; function capDlgVideoSource(hwnd:THandle):LongInt; function capDlgVideoDisplay(hwnd:THandle):LongInt; function capDlgVideoCompression(hwnd:THandle):LongInt;
function capGetVideoFormat(hwnd:THandle; s:LongInt; wSize:Word):LongInt; function capGetVideoFormatSize(hwnd:THandle):LongInt; function capSetVideoFormat(hwnd:THandle; s:LongInt; wSize:Word):LongInt;
function capPreview(hwnd:THandle; f:Word):LongInt; function capPreviewRate(hwnd:THandle; wMS:Word):LongInt; function capOverlay(hwnd:THandle; f:Word):LongInt; function capPreviewScale(hwnd:THandle; f:Word):LongInt; function capGetStatus(hwnd:THandle; s:LongInt; wSize:Word):LongInt; function capSetScrollPos(hwnd:THandle; lpP:LongInt):LongInt;
function capGrabFrame(hwnd:THandle):LongInt; function capGrabFrameNoStop(hwnd:THandle):LongInt;
function capCaptureSequence(hwnd:THandle):LongInt; function capCaptureSequenceNoFile(hwnd:THandle):LongInt; function capCaptureStop(hwnd:THandle):LongInt; function capCaptureAbort(hwnd:THandle):LongInt;
function capCaptureSingleFrameOpen(hwnd:THandle):LongInt; function capCaptureSingleFrameClose(hwnd:THandle):LongInt; function capCaptureSingleFrame(hwnd:THandle):LongInt;
function capCaptureGetSetup(hwnd:THandle; s:LongInt; wSize:Word):LongInt; function capCaptureSetSetup(hwnd:THandle; s:LongInt; wSize:Word):LongInt;
function capSetMCIDeviceName(hwnd:THandle; szName:LongInt):LongInt; function capGetMCIDeviceName(hwnd:THandle; szName:LongInt; wSize:Word):LongInt;
function capPaletteOpen(hwnd:THandle; szName:LongInt):LongInt; function capPaletteSave(hwnd:THandle; szName:LongInt):LongInt; function capPalettePaste(hwnd:THandle):LongInt; function capPaletteAuto(hwnd:THandle; iFrames:Word; iColors:LongInt):LongInt; function capPaletteManual(hwnd:THandle; fGrab:Word; iColors:LongInt):LongInt;
type PCapDriverCaps = ^TCapDriverCaps; TCapDriverCaps = record wDeviceIndex :WORD; fHasOverlay :BOOL; fHasDlgVideoSource :BOOL; fHasDlgVideoFormat :BOOL; fHasDlgVideoDisplay :BOOL; fCaptureInitialized :BOOL; fDriverSuppliesPalettes :BOOL; hVideoIn :THANDLE; hVideoOut :THANDLE; hVideoExtIn :THANDLE; hVideoExtOut :THANDLE; end;
PCapStatus = ^TCapStatus; TCapStatus = packed record uiImageWidth :UINT; uiImageHeight :UINT; fLiveWindow :BOOL; fOverlayWindow :BOOL; fScale :BOOL; ptScroll :TPOINT; fUsingDefaultPalette :BOOL; fAudioHardware :BOOL; fCapFileExists :BOOL; dwCurrentVideoFrame :DWORD; dwCurrentVideoFramesDropped :DWORD; dwCurrentWaveSamples :DWORD; dwCurrentTimeElapsedMS :DWORD; hPalCurrent :HPALETTE; fCapturingNow :BOOL; dwReturn :DWORD; wNumVideoAllocated :WORD; wNumAudioAllocated :WORD; end;
PCaptureParms = ^TCaptureParms; TCaptureParms = record dwRequestMicroSecPerFrame :DWORD; fMakeUserHitOKToCapture :BOOL; wPercentDropForError :WORD; fYield :BOOL; dwIndexSize :DWORD; wChunkGranularity :WORD; fUsingDOSMemory :BOOL; wNumVideoRequested :WORD; fCaptureAudio :BOOL; wNumAudioRequested :WORD; vKeyAbort :WORD; fAbortLeftMouse :BOOL; fAbortRightMouse :BOOL; fLimitEnabled :BOOL; wTimeLimit :WORD; fMCIControl :BOOL; fStepMCIDevice :BOOL; dwMCIStartTime :DWORD; dwMCIStopTime :DWORD; fStepCaptureAt2x :BOOL; wStepCaptureAverageFrames :WORD; dwAudioBufferSize :DWORD; fDisableWriteCache :BOOL; AVStreamMaster :WORD; end;
PCapInfoChunk = ^TCapInfoChunk; TCapInfoChunk = record fccInfoID :FOURCC; lpData :LongInt; cbData :LongInt; end;
type TCAPSTATUSCALLBACK = function(hWnd:HWND; nID:Integer; lpsz:LongInt):LongInt; stdcall; TCAPYIELDCALLBACK = function(hWnd:HWND):LongInt; stdcall; TCAPERRORCALLBACK = function(hWnd:HWND; nID:Integer; lpsz:LongInt):LongInt; stdcall; TCAPVIDEOCALLBACK = function(hWnd:HWND; lpVHdr:LongInt):LongInt; stdcall; TCAPWAVECALLBACK = function(hWnd:HWND; lpWHdr:LongInt):LongInt; stdcall; TCAPCONTROLCALLBACK = function(hWnd:HWND; nState:Integer):LongInt; stdcall;
Const CONTROLCALLBACK_PREROLL = 1; CONTROLCALLBACK_CAPTURING = 2; function capCreateCaptureWindow ( lpszWindowName : PChar; dwStyle : DWord; x, y : Integer; nWidth, nHeight : Integer; hwndParent : THandle; nID : Integer ) : THandle; stdcall;
function capGetDriverDescription ( wDriverIndex : DWord; lpszName : PChar; cbName : Integer; lpszVer : PChar;
cbVer : Integer ) : Boolean; stdcall;
Const IDS_CAP_BEGIN = 300; IDS_CAP_END = 301;
IDS_CAP_INFO = 401; IDS_CAP_OUTOFMEM = 402; IDS_CAP_FILEEXISTS = 403; IDS_CAP_ERRORPALOPEN = 404; IDS_CAP_ERRORPALSAVE = 405; IDS_CAP_ERRORDIBSAVE = 406; IDS_CAP_DEFAVIEXT = 407; IDS_CAP_DEFPALEXT = 408; IDS_CAP_CANTOPEN = 409; IDS_CAP_SEQ_MSGSTART = 410; IDS_CAP_SEQ_MSGSTOP = 411;
IDS_CAP_VIDEDITERR = 412; IDS_CAP_READONLYFILE = 413; IDS_CAP_WRITEERROR = 414; IDS_CAP_NODISKSPACE = 415; IDS_CAP_SETFILESIZE = 416; IDS_CAP_SAVEASPERCENT = 417;
IDS_CAP_DRIVER_ERROR = 418;
IDS_CAP_WAVE_OPEN_ERROR = 419; IDS_CAP_WAVE_ALLOC_ERROR = 420; IDS_CAP_WAVE_PREPARE_ERROR = 421; IDS_CAP_WAVE_ADD_ERROR = 422; IDS_CAP_WAVE_SIZE_ERROR = 423;
IDS_CAP_VIDEO_OPEN_ERROR = 424; IDS_CAP_VIDEO_ALLOC_ERROR = 425; IDS_CAP_VIDEO_PREPARE_ERROR = 426; IDS_CAP_VIDEO_ADD_ERROR = 427; IDS_CAP_VIDEO_SIZE_ERROR = 428;
IDS_CAP_FILE_OPEN_ERROR = 429; IDS_CAP_FILE_WRITE_ERROR = 430; IDS_CAP_RECORDING_ERROR = 431; IDS_CAP_RECORDING_ERROR2 = 432; IDS_CAP_AVI_INIT_ERROR = 433; IDS_CAP_NO_FRAME_CAP_ERROR = 434; IDS_CAP_NO_PALETTE_WARN = 435; IDS_CAP_MCI_CONTROL_ERROR = 436; IDS_CAP_MCI_CANT_STEP_ERROR = 437; IDS_CAP_NO_AUDIO_CAP_ERROR = 438; IDS_CAP_AVI_DRAWDIB_ERROR = 439; IDS_CAP_COMPRESSOR_ERROR = 440; IDS_CAP_AUDIO_DROP_ERROR = 441;
IDS_CAP_STAT_LIVE_MODE = 500; IDS_CAP_STAT_OVERLAY_MODE = 501; IDS_CAP_STAT_CAP_INIT = 502; IDS_CAP_STAT_CAP_FINI = 503; IDS_CAP_STAT_PALETTE_BUILD = 504; IDS_CAP_STAT_OPTPAL_BUILD = 505; IDS_CAP_STAT_I_FRAMES = 506; IDS_CAP_STAT_L_FRAMES = 507; IDS_CAP_STAT_CAP_L_FRAMES = 508; IDS_CAP_STAT_CAP_AUDIO = 509; IDS_CAP_STAT_VIDEOCURRENT = 510; IDS_CAP_STAT_VIDEOAUDIO = 511; IDS_CAP_STAT_VIDEOONLY = 512; IDS_CAP_STAT_FRAMESDROPPED = 513;
const AVICAP32 = 'AVICAP32.dll';
implementation
function capGetDriverDescription; external AVICAP32 name 'capGetDriverDescriptionA'; function capCreateCaptureWindow; external AVICAP32 name 'capCreateCaptureWindowA';
function capSetCallbackOnError(hwnd : THandle; fpProc:LongInt) : LongInt; begin Result := SendMessage(hwnd, WM_CAP_SET_CALLBACK_ERROR, 0, fpProc); end;
function capSetCallbackOnStatus(hwnd : THandle; fpProc:LongInt):LongInt; begin Result := SendMessage(hwnd, WM_CAP_SET_CALLBACK_STATUS, 0, fpProc); end;
function capSetCallbackOnYield (hwnd : THandle; fpProc:LongInt):LongInt; begin Result := SendMessage(hwnd, WM_CAP_SET_CALLBACK_YIELD, 0, fpProc); end;
function capSetCallbackOnFrame (hwnd : THandle; fpProc:LongInt):LongInt; begin Result := SendMessage(hwnd, WM_CAP_SET_CALLBACK_FRAME, 0, fpProc); end;
function capSetCallbackOnVideoStream(hwnd:THandle; fpProc:LongInt):LongInt; begin Result := SendMessage(hwnd, WM_CAP_SET_CALLBACK_VIDEOSTREAM, 0, fpProc); end;
function capSetCallbackOnWaveStream (hwnd:THandle; fpProc:LongInt):LongInt; begin Result := SendMessage(hwnd, WM_CAP_SET_CALLBACK_WAVESTREAM, 0, fpProc); end;
function capSetCallbackOnCapControl (hwnd:THandle; fpProc:LongInt):LongInt; begin Result := SendMessage(hwnd, WM_CAP_SET_CALLBACK_CAPCONTROL, 0, fpProc); end;
function capSetUserData(hwnd:THandle; lUser:LongInt):LongInt; begin Result := SendMessage(hwnd, WM_CAP_SET_USER_DATA, 0, lUser); end;
function capGetUserData(hwnd:THandle):LongInt; begin Result := SendMessage(hwnd, WM_CAP_GET_USER_DATA, 0, 0); end;
function capDriverConnect(hwnd:THandle; I: Word) : LongInt; begin Result := SendMessage(hwnd, WM_CAP_DRIVER_CONNECT, I, 0); end;
function capDriverDisconnect(hwnd:THandle):LongInt; begin Result := SendMessage(hwnd, WM_CAP_DRIVER_DISCONNECT, 0, 0); end;
function capDriverGetName(hwnd:THandle; szName:LongInt; wSize:Word):LongInt; begin Result := SendMessage(hwnd, WM_CAP_DRIVER_GET_NAME, wSize, szName); end;
function capDriverGetVersion(hwnd:THandle; szVer:LongInt; wSize:Word):LongInt; begin Result := SendMessage(hwnd, WM_CAP_DRIVER_GET_VERSION, wSize, szVer); end;
function capDriverGetCaps(hwnd:THandle; s:LongInt; wSize:Word):LongInt; begin Result := SendMessage(hwnd, WM_CAP_DRIVER_GET_CAPS, wSize, s); end;
function capFileSetCaptureFile(hwnd:THandle; szName:LongInt):LongInt; begin Result := SendMessage(hwnd, WM_CAP_FILE_SET_CAPTURE_FILE, 0, szName); end;
function capFileGetCaptureFile(hwnd:THandle; szName:LongInt; wSize:Word):LongInt; begin Result := SendMessage(hwnd, WM_CAP_FILE_GET_CAPTURE_FILE, wSize, szName); end;
function capFileAlloc(hwnd:THandle; dwSize:LongInt):LongInt; begin Result := SendMessage(hwnd, WM_CAP_FILE_ALLOCATE, 0, dwSize); end;
function capFileSaveAs(hwnd:THandle; szName:LongInt):LongInt; begin Result := SendMessage(hwnd, WM_CAP_FILE_SAVEAS, 0, szName); end;
function capFileSetInfoChunk(hwnd:THandle; lpInfoChunk:LongInt):LongInt; begin Result := SendMessage(hwnd, WM_CAP_FILE_SET_INFOCHUNK, 0, lpInfoChunk); end;
function capFileSaveDIB(hwnd:THandle; szName:LongInt):LongInt; begin Result := SendMessage(hwnd, WM_CAP_FILE_SAVEDIB, 0, szName); end;
function capEditCopy(hwnd : THandle):LongInt; begin Result := SendMessage(hwnd, WM_CAP_EDIT_COPY, 0, 0); end;
function capSetAudioFormat(hwnd:THandle; s:LongInt; wSize:Word):LongInt; begin Result := SendMessage(hwnd, WM_CAP_SET_AUDIOFORMAT, wSize, s); end;
function capGetAudioFormat(hwnd:THandle; s:LongInt; wSize:Word):LongInt; begin Result := SendMessage(hwnd, WM_CAP_GET_AUDIOFORMAT, wSize, s); end;
function capGetAudioFormatSize(hwnd:THandle):LongInt; begin Result := SendMessage(hwnd, WM_CAP_GET_AUDIOFORMAT, 0, 0); end;
function capDlgVideoFormat(hwnd:THandle):LongInt; begin Result := SendMessage(hwnd, WM_CAP_DLG_VIDEOFORMAT, 0, 0); end;
function capDlgVideoSource(hwnd:THandle):LongInt; begin Result := SendMessage(hwnd, WM_CAP_DLG_VIDEOSOURCE, 0, 0); end;
function capDlgVideoDisplay(hwnd:THandle):LongInt; begin Result := SendMessage(hwnd, WM_CAP_DLG_VIDEODISPLAY, 0, 0); end;
function capDlgVideoCompression(hwnd:THandle):LongInt; begin Result := SendMessage(hwnd, WM_CAP_DLG_VIDEOCOMPRESSION, 0, 0); end;
function capGetVideoFormat(hwnd:THandle; s:LongInt; wSize:Word):LongInt; begin Result := SendMessage(hwnd, WM_CAP_GET_VIDEOFORMAT, wSize, s); end;
function capGetVideoFormatSize(hwnd:THandle):LongInt; begin Result := SendMessage(hwnd, WM_CAP_GET_VIDEOFORMAT, 0, 0); end;
function capSetVideoFormat(hwnd:THandle; s:LongInt; wSize:Word):LongInt; begin Result := SendMessage(hwnd, WM_CAP_SET_VIDEOFORMAT, wSize, s); end;
function capPreview(hwnd:THandle; f:Word):LongInt; begin Result := SendMessage(hwnd, WM_CAP_SET_PREVIEW, f, 0); end;
function capPreviewRate(hwnd:THandle; wMS:Word):LongInt; begin Result := SendMessage(hwnd, WM_CAP_SET_PREVIEWRATE, wMS, 0); end;
function capOverlay(hwnd:THandle; f:Word):LongInt; begin Result := SendMessage(hwnd, WM_CAP_SET_OVERLAY, f, 0); end;
function capPreviewScale(hwnd:THandle; f:Word):LongInt; begin Result := SendMessage(hwnd, WM_CAP_SET_SCALE, f, 0); end;
function capGetStatus(hwnd:THandle; s:LongInt; wSize:Word):LongInt; begin Result := SendMessage(hwnd, WM_CAP_GET_STATUS, wSize, s); end;
function capSetScrollPos(hwnd:THandle; lpP:LongInt):LongInt; begin Result := SendMessage(hwnd, WM_CAP_SET_SCROLL, 0, lpP); end;
function capGrabFrame(hwnd:THandle):LongInt; begin Result := SendMessage(hwnd, WM_CAP_GRAB_FRAME, 0, 0); end;
function capGrabFrameNoStop(hwnd:THandle):LongInt; begin Result := SendMessage(hwnd, WM_CAP_GRAB_FRAME_NOSTOP, 0, 0); end;
function capCaptureSequence(hwnd:THandle):LongInt; begin Result := SendMessage(hwnd, WM_CAP_SEQUENCE, 0, 0); end;
function capCaptureSequenceNoFile(hwnd:THandle):LongInt; begin Result := SendMessage(hwnd, WM_CAP_SEQUENCE_NOFILE, 0, 0); end;
function capCaptureStop(hwnd:THandle):LongInt; begin Result := SendMessage(hwnd, WM_CAP_STOP, 0, 0); end;
function capCaptureAbort(hwnd:THandle):LongInt; begin Result := SendMessage(hwnd, WM_CAP_ABORT, 0, 0); end;
function capCaptureSingleFrameOpen(hwnd:THandle):LongInt; begin Result := SendMessage(hwnd, WM_CAP_SINGLE_FRAME_OPEN, 0, 0); end;
function capCaptureSingleFrameClose(hwnd:THandle):LongInt; begin Result := SendMessage(hwnd, WM_CAP_SINGLE_FRAME_CLOSE, 0, 0); end;
function capCaptureSingleFrame(hwnd:THandle):LongInt; begin Result := SendMessage(hwnd, WM_CAP_SINGLE_FRAME, 0, 0); end;
function capCaptureGetSetup(hwnd:THandle; s:LongInt; wSize:Word):LongInt; begin Result := SendMessage(hwnd, WM_CAP_GET_SEQUENCE_SETUP, wSize, s); end;
function capCaptureSetSetup(hwnd:THandle; s:LongInt; wSize:Word):LongInt; begin Result := SendMessage(hwnd, WM_CAP_SET_SEQUENCE_SETUP, wSize, s); end;
function capSetMCIDeviceName(hwnd:THandle; szName:LongInt):LongInt; begin Result := SendMessage(hwnd, WM_CAP_SET_MCI_DEVICE, 0, szName); end;
function capGetMCIDeviceName(hwnd:THandle; szName:LongInt; wSize:Word):LongInt; begin Result := SendMessage(hwnd, WM_CAP_GET_MCI_DEVICE, wSize, szName); end;
function capPaletteOpen(hwnd:THandle; szName:LongInt):LongInt; begin Result := SendMessage(hwnd, WM_CAP_PAL_OPEN, 0, szName); end;
function capPaletteSave(hwnd:THandle; szName:LongInt):LongInt; begin Result := SendMessage(hwnd, WM_CAP_PAL_SAVE, 0, szName); end;
function capPalettePaste(hwnd:THandle):LongInt; begin Result := SendMessage(hwnd, WM_CAP_PAL_PASTE, 0, 0); end;
function capPaletteAuto(hwnd:THandle; iFrames:Word; iColors:LongInt):LongInt; begin Result := SendMessage(hwnd, WM_CAP_PAL_AUTOCREATE, iFrames, iColors); end;
function capPaletteManual(hwnd:THandle; fGrab:Word; iColors:LongInt):LongInt; begin Result := SendMessage(hwnd, WM_CAP_PAL_MANUALCREATE, fGrab, iColors); end;
end. |